/* CSC System — site design system.
 *
 * A ground-up replacement for the previous layout, which was derived from the
 * ZazaPass template: tilted fake-dashboard mock, sparkline "metrics", grid
 * overlays, "fragmented" panels and mono micro-labels. None of that is here.
 *
 * The language instead: deep navy field, a single luminous accent, wide
 * horizontal rules instead of card soup, large confident type, and real content
 * hierarchy. The logo mark is the only decorative element.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(0, 8, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-700);
}
.site-header .brand { display: flex; align-items: center; gap: 12px; }
.site-header .brand img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 14px; }
.site-header nav a { color: var(--grey-200); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--white); border-bottom-color: var(--cyan-400); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--cyan-400); }

/* Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.button-primary { background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #00142e; box-shadow: var(--glow); }
.button-primary:hover { transform: translateY(-1px); box-shadow: var(--glow-strong); }
.button-ghost { border-color: var(--navy-600); color: var(--white); }
.button-ghost:hover { border-color: var(--cyan-400); color: var(--cyan-300); }
.nav-cta { composes: button; }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vw, 132px) var(--gutter) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(90rem 44rem at 50% -18%, rgba(0, 144, 240, .28), transparent 62%),
    radial-gradient(60rem 30rem at 82% 8%, rgba(0, 216, 255, .14), transparent 60%),
    var(--navy-950);
  text-align: center;
}
.hero-mark { width: min(430px, 76vw); margin: 0 auto clamp(26px, 4vw, 40px); filter: drop-shadow(0 0 40px rgba(0, 144, 240, .45)); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 6vw, 70px); line-height: 1.04; letter-spacing: -.03em;
  margin: 0 auto 20px; max-width: 16ch;
}
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--cyan-300), var(--blue-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { max-width: 62ch; margin: 0 auto; color: var(--grey-200); font-size: clamp(16px, 1.7vw, 19px); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 26px; color: var(--grey-500); font-size: 13px; }

/* Sections -------------------------------------------------------------- */
.section { max-width: var(--measure); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section + .section { border-top: 1px solid var(--navy-700); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan-400);
}
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.section p { color: var(--grey-200); margin: 0 0 14px; }
.muted { color: var(--grey-400); }

/* Feature rows — replaces the old module-card grid --------------------- */
.feature-list { display: grid; gap: 0; }
.feature {
  display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px); align-items: start;
  padding: clamp(26px, 4vw, 40px) 0; border-top: 1px solid var(--navy-700);
}
.feature:last-child { border-bottom: 1px solid var(--navy-700); }
.feature-index { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--cyan-400); padding-top: 6px; }
.feature p { margin: 0; }

/* Product split — CSC-OS and CSC-PASS as features of CSC System --------- */
.product-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product {
  padding: clamp(26px, 3.5vw, 38px); border: 1px solid var(--navy-700); border-radius: 14px;
  background: linear-gradient(170deg, var(--navy-900), var(--navy-950));
}
.product:hover { border-color: var(--navy-600); }
.product-tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-400); }
.product h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 12px 0 10px; }
.product ul { list-style: none; padding: 0; margin: 18px 0 0; }
.product li { padding: 9px 0; border-top: 1px solid var(--navy-700); color: var(--grey-200); font-size: 15px; }
.product li::before { content: '—'; color: var(--cyan-400); margin-right: 10px; }

/* Steps ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; counter-reset: step; }
.step { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--navy-600); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; color: var(--cyan-400); margin-bottom: 8px; }
.step strong { display: block; margin-bottom: 6px; font-size: 17px; }
.step span { color: var(--grey-400); font-size: 14px; }

/* Call to action -------------------------------------------------------- */
.cta {
  text-align: center; padding: clamp(60px, 9vw, 110px) var(--gutter);
  background: radial-gradient(70rem 32rem at 50% 120%, rgba(0, 144, 240, .26), transparent 64%), var(--navy-900);
  border-top: 1px solid var(--navy-700);
}
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { color: var(--grey-200); max-width: 54ch; margin-inline: auto; }

/* Forms / auth cards ---------------------------------------------------- */
.auth-card {
  max-width: 460px; margin: clamp(40px, 8vw, 90px) auto; padding: clamp(26px, 4vw, 40px);
  background: var(--navy-900); border: 1px solid var(--navy-700); border-radius: 16px;
}
.auth-card h1 { font-family: var(--font-display); font-size: 28px; margin: 6px 0 20px; }
.field { margin-bottom: 16px; }
.field label, form label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--grey-200); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--navy-950); border: 1px solid var(--navy-700); color: var(--white); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan-400); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
.notice, [role="status"], [role="alert"] { font-size: 14px; color: var(--grey-200); }
.inline-panel { padding: 22px; border: 1px solid var(--navy-700); border-radius: 14px; background: var(--navy-900); margin: 18px 0; }
.status-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--navy-800); color: var(--cyan-300); font-size: 13px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--navy-700); }
th { color: var(--grey-400); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--navy-700); padding: clamp(40px, 6vw, 68px) var(--gutter) 28px; background: var(--navy-950); }
.footer-inner { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 36px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--grey-500); font-size: 13px; max-width: 34ch; }
.footer-col b { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-400); }
.footer-col a { display: block; margin: 8px 0; color: var(--grey-400); font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--measure); margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid var(--navy-700); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--grey-500); font-size: 13px;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 820px) {
  .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px var(--gutter); background: var(--navy-950); border-bottom: 1px solid var(--navy-700);
  }
  .site-header nav.open { display: flex; }
  .menu-toggle { display: block; }
  .feature { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .product { transition: none; }
}

:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; }

/* ======================================================================
   Motion — paired with js/motion.js. Everything here is additive: with
   JS off or reduced motion on, content renders visible and static.
   ====================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible,
[data-reveal="scale"].is-visible { transform: none; }

/* Scroll progress bar sits under the sticky header. */
.site-header { --progress: 0; }
.site-header::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 2px;
  width: calc(var(--progress) * 100%);
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  box-shadow: 0 0 12px rgba(0, 216, 255, .6);
  transition: width .1s linear;
}
.site-header.is-scrolled { background: rgba(0, 8, 23, .94); }

/* Section sub-navigation (product pages). */
.section-nav {
  position: sticky; top: 63px; z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 12px var(--gutter);
  background: rgba(0, 8, 23, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-700);
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  white-space: nowrap; padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--grey-400);
  border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.section-nav a:hover { color: var(--white); }
.section-nav a.is-active { color: var(--cyan-300); border-color: var(--navy-600); background: var(--navy-900); }

/* Stat band ------------------------------------------------------------- */
.stat-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px;
  max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter);
}
.stat { padding: clamp(24px, 3.4vw, 38px) 8px; text-align: center; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1;
  background: linear-gradient(140deg, var(--white), var(--cyan-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }

/* Product badge cards --------------------------------------------------- */
.badge-card {
  position: relative; overflow: hidden;
  display: grid; gap: 18px; padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--navy-700); border-radius: 20px;
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 100%);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.badge-card:hover { border-color: var(--navy-600); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), var(--glow); }
.badge-card::before {
  content: ''; position: absolute; inset: -40% 40% 60% -40%;
  background: radial-gradient(closest-side, rgba(0, 144, 240, .22), transparent);
  pointer-events: none;
}
.badge-card > * { position: relative; }
.badge-art { width: clamp(108px, 14vw, 148px); filter: drop-shadow(0 0 26px rgba(0, 176, 255, .5)); }
.badge-card h3 { font-size: clamp(24px, 2.6vw, 30px); margin: 0; }
.badge-card .product-tag { margin-bottom: -6px; }
.badge-card ul { list-style: none; padding: 0; margin: 0; }
.badge-card li { padding: 10px 0; border-top: 1px solid var(--navy-700); color: var(--grey-200); font-size: 15px; }
.badge-card li::before { content: '→'; color: var(--cyan-400); margin-right: 10px; }

/* Split rows — alternating media/text ----------------------------------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 6vw, 76px) 0; border-top: 1px solid var(--navy-700);
}
.split-media { display: flex; justify-content: center; }
.split-media img { width: min(320px, 70%); filter: drop-shadow(0 0 40px rgba(0, 144, 240, .35)); }
.split:nth-of-type(even) .split-media { order: 2; }

/* Spec grid ------------------------------------------------------------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.spec {
  padding: 24px; border: 1px solid var(--navy-700); border-radius: 14px;
  background: var(--navy-900); transition: border-color .25s ease, transform .25s ease;
}
.spec:hover { border-color: var(--navy-600); transform: translateY(-3px); }
.spec h3 { font-size: 17px; margin-bottom: 8px; }
.spec p { font-size: 14px; color: var(--grey-400); margin: 0; }

/* Timeline -------------------------------------------------------------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue-500), var(--cyan-400), transparent); }
.timeline-item { position: relative; padding: 0 0 30px; }
.timeline-item::before {
  content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy-950); border: 2px solid var(--cyan-400); box-shadow: 0 0 12px rgba(0, 216, 255, .7);
}
.timeline-item h3 { font-size: 18px; }
.timeline-item p { color: var(--grey-400); margin: 0; font-size: 15px; }

/* FAQ ------------------------------------------------------------------- */
.faq details { border-top: 1px solid var(--navy-700); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--navy-700); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--cyan-400); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 12px 0 0; color: var(--grey-400); }

@media (max-width: 820px) {
  .section-nav { top: 59px; }
  .split:nth-of-type(even) .split-media { order: 0; }
}

/* Nested inside a split column the grid has roughly half the width, so the
   standalone 240px track floor collapses it to one column. Tighten it there. */
.split .spec-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.split .spec { padding: 18px; }
.split .spec h3 { font-size: 15px; }
.split .spec p { font-size: 13px; }
