/* =========================================================================
   JNS Cloud Labs — public site styles
   Single lightweight stylesheet. No build step. Swap the brand tokens below
   with the values from your cloud design (fonts / colours / logo).
   ========================================================================= */

:root {
  /* --- Brand tokens: change these to match your design system --- */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ink:        #0e1526;   /* deep near-black blue for headings + footer */
  --text:       #1b2233;   /* body text */
  --muted:      #5c667a;   /* secondary text */
  --line:       #e7ebf2;   /* hairline borders */
  --surface:    #ffffff;   /* page background */
  --surface-2:  #f5f7fb;   /* alternating section background */
  --accent:     #17b4a6;   /* primary brand accent */
  --accent-ink: #0c7c72;   /* darker accent for text on light */

  --radius:     14px;
  --radius-sm:  10px;
  --maxw:       1120px;
  --shadow:     0 1px 2px rgba(14,21,38,.04), 0 12px 30px -18px rgba(14,21,38,.25);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 .8rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .72rem 1.25rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--ink));
  display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--text); font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------------- Hero ---------------- */
.hero { padding: 84px 0 64px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 15ch; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--muted); max-width: 54ch; margin: 0 0 1.8rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------- Section shell ---------------- */
.section { padding: 72px 0; }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------------- Product triad (the signature element) ---------------- */
.products { display: grid; gap: 22px; grid-template-columns: 1fr; }
.product {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 28px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease;
}
.product::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--p-accent, var(--accent));
}
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--p-accent, var(--accent)) 45%, var(--line)); }
.product .chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--p-accent, var(--accent));
  background: color-mix(in srgb, var(--p-accent, var(--accent)) 12%, #fff);
  border-radius: 999px; padding: .3rem .7rem; margin-bottom: 1rem;
}
.product .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p-accent, var(--accent)); }
.product h3 { font-size: 1.42rem; margin-bottom: .3rem; }
.product .tagline { color: var(--p-accent, var(--accent-ink)); font-weight: 600; font-size: .98rem; margin: 0 0 .8rem; filter: brightness(.85); }
.product .desc { color: var(--muted); font-size: .98rem; margin: 0 0 1.1rem; }
.product ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.product ul li { position: relative; padding-left: 1.6rem; font-size: .95rem; color: var(--text); }
.product ul li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--p-accent, var(--accent)); opacity: .16;
}
.product ul li::after {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 3px; border-left: 2px solid var(--p-accent, var(--accent));
  border-bottom: 2px solid var(--p-accent, var(--accent)); transform: rotate(-45deg);
}

/* ---------------- About ---------------- */
.about-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
.about-body { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 44px 34px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.72); max-width: 48ch; margin: 0 auto 1.6rem; }
.cta-band .btn-primary { background: var(--accent); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }

/* ---------------- Contact form ---------------- */
.form-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.contact-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert-success {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent-ink); padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-weight: 500;
}
.errors { background: #fff4f4; border: 1px solid #f3c9c9; color: #a12a2a; padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; }
.errors ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.contact-detail { display: grid; gap: 1rem; }
.contact-detail .row { display: flex; gap: .7rem; align-items: baseline; }
.contact-detail .row .k { font-family: var(--font-display); font-weight: 600; color: var(--ink); min-width: 76px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 46px 0 34px; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer .footer-top { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: space-between; align-items: center; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: #fff; }
.site-footer .foot-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.site-footer .copyright { padding-top: 1.4rem; font-size: .9rem; color: rgba(255,255,255,.55); }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1.2fr .8fr; gap: 3rem; }
  .form-grid  { grid-template-columns: 1.3fr .7fr; gap: 2.4rem; }
}
@media (min-width: 900px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .product:hover { transform: none; }
}
