/* ============================================================
   KEEVAL — scroll-cinematic marketing site
   Brand: deep blue #1E40AF / #3B82F6 on cinematic dark, Inter,
   clean light content sections. Premium, calm, trustworthy.
   ============================================================ */
:root {
  --brand: #2563EB;
  --brand-deep: #1E40AF;
  --brand-bright: #3B82F6;
  --brand-glow: #60A5FA;
  --ink: #0A0E1A;        /* cinematic dark */
  --ink-2: #0D1426;
  --paper: #FFFFFF;
  --paper-2: #F7F9FC;
  --paper-3: #EEF2F9;
  --text: #0B1220;
  --text-soft: #5A6577;
  --line: #E4E9F2;
  --ok: #10B981;
  --warn: #F59E0B;
  --radius: 16px;
  --maxw: 1120px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(12px);
  background: rgba(8, 12, 24, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .4s ease;
}
.nav .brand {
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.nav .brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 14px var(--brand-glow);
}
.nav .links { display: flex; align-items: center; gap: 28px; }
.nav .links a { color: rgba(255,255,255,0.72); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav .links a:hover { color: #fff; }
/* Mobile: keep every nav link reachable — wrap the bar to a second row rather
   than hiding the section links (which left mobile users with no in-page nav). */
@media (max-width: 760px){
  .nav { flex-wrap: wrap; gap: 8px 18px; padding: 12px clamp(16px, 5vw, 48px); }
  .nav .links { width: 100%; gap: 18px; flex-wrap: wrap; justify-content: flex-start; }
  .nav .links a { font-size: .82rem; }
  .nav .links a.btn { margin-left: auto; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9rem;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 24px rgba(37,99,235,.35); }
.btn-primary:hover { background: var(--brand-bright); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(37,99,235,.45); }
.btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.18); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--ink); color:#fff; }
.btn-dark:hover { background: var(--brand-deep); }

/* ── Hero (sticky cinematic stage) ── */
.hero { position: relative; height: 280vh; background: var(--ink); }
.hero .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 48% at 50% 46%, rgba(7,11,22,.5) 0%, transparent 62%),
    radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(5,8,16,.55) 100%);
}
.hero .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 24px; pointer-events: none;
}
.hero .eyebrow {
  color: var(--brand-glow); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; font-size: .75rem; margin-bottom: 22px;
}
.hero h1 {
  color: #fff; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 16ch;
  text-shadow: 0 2px 44px rgba(5,8,20,0.75), 0 1px 4px rgba(5,8,20,0.5);
}
.hero h1 .accent { color: var(--brand-bright); }
.hero .line { position: absolute; will-change: opacity, transform; }
/* Primary hero block (line 1) is visible with zero JS; only the scroll-reveal headlines start hidden. */
.hero h1.line { opacity: 0; }
.hero .sub {
  color: rgba(255,255,255,0.86); font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 52ch; margin-top: 26px; line-height: 1.6;
  text-shadow: 0 1px 20px rgba(5,8,20,0.75);
}
.hero .cta-row { display: flex; gap: 14px; margin-top: 38px; pointer-events: auto; flex-wrap: wrap; justify-content: center; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: .72rem; letter-spacing: .2em; transition: opacity .4s;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(7px);} }

/* ── Cinematic scroll-scrub interstitials (Higgsfield clip sections) ── */
.cine-section { position: relative; height: 200vh; background: var(--ink); }
.cine-section .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cine-section canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cine-section .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,8,16,.80) 0%, rgba(5,8,16,.48) 52%, rgba(5,8,16,.16) 80%, transparent 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 42%, rgba(5,8,16,.62) 100%);
}
.cine-section .cine-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; padding: 0 clamp(24px, 8vw, 120px); max-width: 1200px;
}
.cine-section .reveal-line {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; will-change: opacity, transform;
}
.cine-section .cine-kicker {
  color: var(--brand-glow); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; font-size: .74rem; margin-bottom: 18px;
}
.cine-section h2.cine-head {
  color: #fff; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(2.1rem, 5.2vw, 4rem); max-width: 18ch;
  text-shadow: 0 2px 40px rgba(5,8,20,0.7);
}
.cine-section h2.cine-head .accent { color: var(--brand-bright); }
.cine-section .cine-sub {
  color: rgba(255,255,255,0.92); font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 46ch; margin-top: 20px; line-height: 1.6;
  text-shadow: 0 1px 18px rgba(5,8,20,0.8);
}

/* ── Sections ── */
.section { padding: clamp(80px, 12vh, 150px) clamp(20px, 5vw, 48px); }
.section .inner { max-width: var(--maxw); margin: 0 auto; }
.light { background: var(--paper); color: var(--text); }
.light-2 { background: var(--paper-2); color: var(--text); }
.dark { background: var(--ink-2); color: #fff; }
.kicker { color: var(--brand); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.dark .kicker { color: var(--brand-glow); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 14px 0 18px; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-soft); max-width: 60ch; line-height: 1.6; }
.dark .lead { color: rgba(255,255,255,.7); }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* pillars */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
@media (max-width: 860px){ .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.light-2 .card { background:#fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,.10); border-color: #cfd9ec; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright)); color:#fff; font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(37,99,235,.3); margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--text-soft); line-height: 1.6; font-size: .96rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
@media (max-width: 860px){ .steps { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr;} }
.step { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.step .n { font-family: var(--font); font-weight: 800; font-size: 1.1rem; color: var(--brand-glow); }
.step h4 { margin: 12px 0 6px; font-weight: 700; font-size: 1.05rem; }
.step p { color: rgba(255,255,255,.62); font-size: .92rem; line-height: 1.55; }

/* sectors */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.chip {
  padding: 12px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; color: var(--text); transition: all .25s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.chip.broad { background: var(--brand); color:#fff; border-color: var(--brand); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 30px; }
@media (max-width: 760px){ .stats { grid-template-columns: repeat(2,1fr);} }
.stat { text-align: center; }
.stat .stat-num { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; color:#fff; line-height: 1; }
.stat .stat-num .pre { color: var(--brand-glow); }
.stat .lbl { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 10px; }

/* CTA band */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--brand-deep), #0B1226 70%); color:#fff; }
.cta-band .h2 { color:#fff; }
.cta-band .lead { color: rgba(255,255,255,.78); margin: 0 auto 30px; }

/* footer */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 50px clamp(20px,5vw,48px); border-top: 1px solid rgba(255,255,255,.07); }
.footer .inner { max-width: var(--maxw); margin: 0 auto; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items:center; }
.footer .brand { color:#fff; font-weight: 800; font-size: 1.1rem; }
.footer .muted { font-size: .82rem; }

/* ── Reduced motion ──
   Honour prefers-reduced-motion: collapse the tall scroll stages to a single screen each
   (the JS draws a static first frame and shows all copy), and kill the flash / bob / scroll-hint.
   The two decorative hero scroll-headlines stay hidden; the main hero block + interstitial copy show. */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { display: none; }
  .hero { height: 100vh; }
  .hero .sticky { position: relative; }
  .cine-section { height: 100vh; }
  .cine-section .sticky { position: relative; }
  /* The lead .reveal-line of each section is shown by JS (opacity:1); the rest stay hidden. */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
