/* ICCASS Landing — dark-only premium (page-scoped) */
body.landing{
  /* Palette (graphite, controlled) */
  --bg:#0E1116;
  --bg-2:#12161D;
  --panel:rgba(255,255,255,0.05);
  --panel-2:rgba(255,255,255,0.035);
  --border:rgba(255,255,255,0.10);
  --border-soft:rgba(255,255,255,0.08);

  --text:#EEF1F6;
  --muted:#D6D9DF;
  --muted-2:rgba(238,241,246,0.72);

  --accent:#3C6DF0;
  --accent-2:#2B4CA3;

  --shadow:0 22px 70px rgba(0,0,0,0.55);
  --shadow-sm:0 14px 40px rgba(0,0,0,0.42);

  /* Fixed header height (updated in JS for exact value) */
  --nav-h:72px;

  /* Single continuous background (no section banding) */
  background:
    radial-gradient(900px 600px at 22% 8%, rgba(60,109,240,0.10), transparent 60%),
    radial-gradient(700px 450px at 88% 18%, rgba(60,109,240,0.07), transparent 55%),
    radial-gradient(900px 700px at 70% 85%, rgba(60,109,240,0.05), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 55%),
    var(--bg);
  background-attachment: fixed;
  color:var(--text);
}

/* Layout helpers */
.l-main{ position:relative; padding-top:var(--nav-h); }
.l-wrap{
  width:min(1120px, calc(100% - 48px));
  margin:0 auto;
/* Background refinement (luxury, continuous, non-pixely) */
body.landing{
  position:relative;
  overflow-x:hidden;
}
/* Micro-dither + vignette to add depth without raster noise */
body.landing::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.016) 0px, rgba(0,0,0,0.016) 1px, transparent 1px, transparent 4px);
  opacity:0.10;
  mix-blend-mode:overlay;
  z-index:0;
}
body.landing::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 700px at 50% 0%, rgba(0,0,0,0.00) 35%, rgba(0,0,0,0.32) 78%, rgba(0,0,0,0.58) 100%);
  opacity:0.55;
  z-index:0;
}
/* Ensure content sits above the overlays */
body.landing > *{
  position:relative;
  z-index:1;
}

}

/* Header */
.l-nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  backdrop-filter:saturate(130%) blur(10px);
  -webkit-backdrop-filter:saturate(130%) blur(10px);
  background:rgba(14,17,22,0.58);
  border-bottom:1px solid rgba(255,255,255,0.06);
  transition:transform 220ms ease-out, opacity 220ms ease-out, background 220ms ease-out, border-color 220ms ease-out;
  will-change:transform;
}
.l-nav.scrolled{
  background:rgba(14,17,22,0.78);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.l-nav.is-hidden{
  transform:translateY(-100%);
  opacity:0;
  pointer-events:none;
}
.l-nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}
.wordmark{ display:flex; flex-direction:column; line-height:1.05; }
.wm-name{ font-weight:800; letter-spacing:0.06em; }
.wm-tag{ font-size:12px; color:var(--muted-2); margin-top:4px; }

.l-links{
  display:flex;
  gap:18px;
  align-items:center;
}
.l-links a{
  color:rgba(238,241,246,0.75);
  text-decoration:none;
  font-size:14px;
}
.l-links a:hover{ color:rgba(238,241,246,0.95); }
.l-cta{ display:flex; gap:10px; align-items:center; }

/* Scenes */
.scene{
  min-height:90vh;
  display:flex;
  align-items:center;
  padding:80px 0;
  background:transparent;
}


/* Hero */
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:42px;
  align-items:center;
}
.hero-title{
  font-size:clamp(36px, 4.4vw, 56px);
  letter-spacing:-0.02em;
  line-height:1.02;
  margin:0 0 14px 0;
}
.hero-sub{
  font-size:16px;
  color:var(--muted);
  margin:0 0 22px 0;
  max-width:46ch;
}
.hero-actions{ display:flex; gap:12px; align-items:center; }

.hero-visual{ display:flex; justify-content:flex-end; }

/* Mock dashboard (hero) */
.mock-dashboard{
  width:min(520px, 100%);
  border:1px solid var(--border-soft);
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
  transform:translateY(0);
}
.mock-topbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.mock-dot{
  width:10px; height:10px; border-radius:999px;
  background:rgba(238,241,246,0.18);
}
.mock-title{
  margin-left:auto;
  font-size:12px;
  letter-spacing:0.08em;
  color:rgba(238,241,246,0.65);
  text-transform:uppercase;
}
.mock-body{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  padding:16px;
}
.mock-col{ display:flex; flex-direction:column; gap:14px; }

.mock-card, .mock-layer{
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  background:rgba(14,17,22,0.55);
  padding:14px;
}
.mock-card-h{
  font-size:12px;
  letter-spacing:0.08em;
  color:rgba(238,241,246,0.62);
  text-transform:uppercase;
  margin-bottom:10px;
}
.mock-line{
  height:8px;
  border-radius:999px;
  background:rgba(238,241,246,0.10);
  margin:10px 0 0 0;
}
.mock-line.short{ width:70%; }
.mock-bar{
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(60,109,240,0.9), rgba(60,109,240,0.25));
  margin-top:12px;
}
.mock-bar.short{ width:64%; opacity:0.85; }

.mock-layer{
  position:relative;
  background:rgba(18,22,29,0.65);
}
.mock-layer-tag{
  font-size:11px;
  letter-spacing:0.10em;
  text-transform:uppercase;
  color:rgba(238,241,246,0.75);
  margin-bottom:10px;
}
.mock-ai{ opacity:0; transform:translateX(12px); }
.mock-human{ opacity:0; transform:translateY(10px); }

/* Problem */
.problem-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:26px;
}
.problem-item{
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.02);
  border-radius:18px;
  padding:26px 22px;
  box-shadow:var(--shadow-sm);
}
.problem-title{
  font-size:14px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:rgba(238,241,246,0.78);
}
.problem-line{
  height:1px;
  background:rgba(255,255,255,0.08);
  margin:14px 0;
}
.problem-desc{
  color:rgba(238,241,246,0.78);
  font-size:15px;
}

/* Problem (rail + nodes, engineered presentation) */
.problem-layout{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap:44px;
  /* Align the rail vertically to the centre of the title block */
  align-items:center;
}
.problem-head{ padding-right:10px; }
.problem-head-title{
  font-size:clamp(26px, 3.1vw, 40px);
  letter-spacing:-0.01em;
  line-height:1.06;
  margin:0;
}

.problem-rail{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:26px;
  padding-left:18px;
  align-self:center;
}
.problem-rail::before{
  content:"";
  position:absolute;
  left:6px;
  top:8px;
  bottom:8px;
  width:1px;
  background:rgba(255,255,255,0.10);
}

.problem-node{
  position:relative;
  display:flex;
  gap:16px;
  padding:20px 18px;
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(255,255,255,0.018);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
}
.problem-node-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:rgba(60,109,240,0.70);
  box-shadow:0 0 0 6px rgba(60,109,240,0.12);
  margin-left:-24px; /* pull dot onto the rail */
  margin-top:4px;
  flex:0 0 auto;
}
.problem-node-body{ display:flex; flex-direction:column; gap:10px; }

/* Reuse existing typography tokens, but tighten hierarchy slightly */
.problem-node .problem-title{ color:rgba(238,241,246,0.82); }
.problem-node .problem-desc{ color:rgba(238,241,246,0.76); }

/* Process section */
.process{
  background:transparent;
}
.process-inner{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap:40px;
  align-items:stretch;
  padding:0;
}
.process-left{
  position:sticky;
  /* Align the sticky region to the usable viewport (below fixed header) */
  top:var(--nav-h, 0px);
  height:calc(100vh - var(--nav-h, 0px));
  display:flex;
  align-items:center;
}
/* Nudge copy so the title aligns to the stage content (between Aircraft/Narrative on step 1) */
.process-copy{ padding: 32px 0; transform:translateY(56px); }
.kicker{
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:rgba(238,241,246,0.62);
  margin-bottom:10px;
}
.process-title{
  font-size:clamp(26px, 2.6vw, 34px);
  margin:0 0 10px 0;
  line-height:1.10;
}
.process-desc{ margin:0; color:rgba(238,241,246,0.72); min-height:1.4em; }

.step-indicator{
  display:flex;
  gap:10px;
  margin-top:18px;
  align-items:center;
}
.step-indicator .dot{
  width:9px; height:9px;
  border-radius:999px;
  background:rgba(238,241,246,0.18);
  border:1px solid rgba(255,255,255,0.18);
}
.step-indicator .dot.active{
  background:rgba(60,109,240,0.95);
  border-color:rgba(60,109,240,0.95);
  box-shadow:0 0 0 6px rgba(60,109,240,0.12);
}

.process-right{
  position:relative;
  /* Symmetric lead-in/lead-out so step 1 and step 4 can "rest" in the centre */
  padding-top:14vh;
  padding-bottom:14vh;
}
.process-step{
  /* More compact scroll between slides while keeping deterministic observer behaviour */
  min-height:62vh;
  display:flex;
  align-items:center;
  padding:40px 0;
}

/* Stages */
.stage{
  width:100%;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:var(--shadow);
  padding:22px;
  overflow:hidden;
}

.stage-card{
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(14,17,22,0.55);
  border-radius:18px;
  padding:18px;
}
.stage-h{
  font-size:12px;
  letter-spacing:0.10em;
  text-transform:uppercase;
  color:rgba(238,241,246,0.68);
  margin-bottom:12px;
}

/* Stage 1 fields */
.field{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(255,255,255,0.02);
  margin-top:10px;

  opacity:0;
  transform:translateY(12px);
}
.field .label{
  font-size:13px;
  color:rgba(238,241,246,0.70);
}
.field .fill{
  width:48%;
  height:8px;
  border-radius:999px;
  background:rgba(238,241,246,0.10);
}
.field .fill.long{ width:62%; }

/* Stage 2 split */
.stage-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}
.stage-panel{
  position:relative;
  min-height:220px;
}
.tag{
  font-size:11px;
  letter-spacing:0.10em;
  text-transform:uppercase;
  color:rgba(238,241,246,0.78);
  margin-bottom:12px;
}
.line{
  height:8px;
  border-radius:999px;
  background:rgba(238,241,246,0.10);
  margin-top:12px;
}
.line.short{ width:72%; }

/* stage animation defaults */
.ai-panel{ opacity:0; transform:translateX(12px); }
.human-panel{ opacity:0; transform:translateY(10px); }

.stage-stack{
  display:grid;
  grid-template-rows: auto auto;
  gap:14px;
}
.dimmable{ transition:opacity 300ms ease-out; }

/* Stage 3 stamp */
.stamp{
  position:absolute;
  right:14px;
  bottom:14px;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:rgba(238,241,246,0.72);
  border:1px solid rgba(238,241,246,0.22);
  border-radius:999px;
  padding:7px 10px;
  opacity:0;
  transform:translateY(8px);
}

/* Stage 4 timeline */
.timeline{
  position:relative;
  padding-left:28px;
}
.tl-rule{
  position:absolute;
  left:10px;
  top:8px;
  bottom:8px;
  width:1px;
  background:rgba(255,255,255,0.12);
}
.tl-item{
  display:flex;
  gap:14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(255,255,255,0.02);
  margin:10px 0;

  opacity:0;
  transform:translateY(12px);
}
.tl-item .t{
  width:56px;
  font-size:12px;
  color:rgba(238,241,246,0.60);
  letter-spacing:0.08em;
}
.tl-item .a{
  font-size:14px;
  color:rgba(238,241,246,0.82);
}

/* Governance */
.gov-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:34px;
  align-items:center;
}
.gov-title{
  font-size:clamp(26px, 2.8vw, 36px);
  margin:0;
  line-height:1.08;
}
.gov-right{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.gov-item{
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
  color:rgba(238,241,246,0.80);
}
.gov-item:last-child{ border-bottom:none; }

/* Proof */
.proof-card{
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius:22px;
  padding:22px;
  box-shadow:var(--shadow);
}
.proof-top{ margin-bottom:16px; }
.proof-kicker{
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:rgba(238,241,246,0.62);
  margin-bottom:8px;
}
.proof-caption{ color:rgba(238,241,246,0.80); }

.proof-mock{
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(14,17,22,0.55);
  padding:16px;
  overflow:hidden;
  transform:translateY(0);
  transition:transform 600ms ease-out;
}
.proof-card.in .proof-mock{ transform:translateY(-2px) scale(1.01); }

.pm-row{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-bottom:12px; }
.pm-row.tall{ grid-template-columns: 1.4fr 0.6fr; }
.pm-card, .pm-panel{
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(255,255,255,0.02);
  height:64px;
}
.pm-row.tall .pm-panel{ height:190px; }
.pm-panel.wide{ height:190px; }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap:36px;
  align-items:start;
}
.contact-copy h2{ margin:0 0 10px 0; font-size:34px; }
.contact-copy p{ margin:0; color:rgba(238,241,246,0.76); max-width:52ch; }

.contact-form{
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.contact-form label{ display:flex; flex-direction:column; gap:8px; }
.contact-form label span{ font-size:12px; color:rgba(238,241,246,0.62); letter-spacing:0.06em; }
.contact-form input,
.contact-form select,
.contact-form textarea{
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(14,17,22,0.60);
  color:var(--text);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
}
.contact-form textarea{ resize:vertical; min-height:110px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color:rgba(60,109,240,0.55);
  box-shadow:0 0 0 4px rgba(60,109,240,0.16);
}
.contact-form .full{ grid-column: 1 / -1; }
.contact-actions{ display:flex; gap:10px; align-items:center; }
.form-note{
  color:rgba(238,241,246,0.60);
  font-size:12px;
  padding-top:6px;
}

/* Footer */
.l-footer{
  padding:36px 0;
  border-top:1px solid rgba(255,255,255,0.06);
  background:rgba(14,17,22,0.70);
}
.l-footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.f-brand{ font-weight:800; letter-spacing:0.06em; }
.f-muted{ color:rgba(238,241,246,0.65); margin-top:6px; font-size:13px; }
.f-right{ display:flex; gap:16px; flex-wrap:wrap; }
.f-right a{ color:rgba(238,241,246,0.70); text-decoration:none; font-size:14px; }
.f-right a:hover{ color:rgba(238,241,246,0.92); }

/* Reveal motion */
.reveal{
  opacity:0;
  transform:translateY(12px);
  transition:opacity 320ms ease-out, transform 320ms ease-out;
}
.reveal.in{
  opacity:1;
  transform:translateY(0);
}

/* Hero layer sequence */
.mock-dashboard.in .mock-ai{ opacity:1; transform:translateX(0); transition:opacity 320ms ease-out 120ms, transform 320ms ease-out 120ms; }
.mock-dashboard.in .mock-human{ opacity:1; transform:translateY(0); transition:opacity 320ms ease-out 220ms, transform 320ms ease-out 220ms; }

/* Process step activation */
.process-step.active .field{
  opacity:1;
  transform:translateY(0);
  transition:opacity 320ms ease-out var(--d), transform 320ms ease-out var(--d);
}
.process-step.active .ai-panel{
  opacity:1;
  transform:translateX(0);
  transition:opacity 320ms ease-out 120ms, transform 320ms ease-out 120ms;
}
.process-step.active .human-panel{
  opacity:1;
  transform:translateY(0);
  transition:opacity 320ms ease-out 180ms, transform 320ms ease-out 180ms;
}
.process-step.active .dimmable{ opacity:0.55; }
.process-step.active .stamp{
  opacity:1;
  transform:translateY(0);
  transition:opacity 320ms ease-out 240ms, transform 320ms ease-out 240ms;
}
.process-step.active .tl-item{
  opacity:1;
  transform:translateY(0);
  transition:opacity 320ms ease-out var(--d), transform 320ms ease-out var(--d);
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ justify-content:flex-start; }
  .problem-grid{ grid-template-columns: 1fr; }
  .problem-layout{ grid-template-columns: 1fr; gap:22px; }
  .problem-rail{ padding-left:16px; }
  .process-inner{ grid-template-columns: 1fr; }
  .process-left{ position:relative; height:auto; }
  .process-copy{ transform:none; padding: 18px 0 10px; }
  .process-right{ padding-top:0; padding-bottom:0; }
  .process-step{ min-height:auto; padding:44px 0; }
  .gov-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-form{ grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal, .mock-ai, .mock-human,
  .field, .ai-panel, .human-panel,
  .tl-item, .stamp{ transition:none !important; transform:none !important; }
}
