/* ============================================================
   KRITRIM SYSTEM — Design System
   Intelligence Rooted in Wisdom
   Royal blue · Metallic silver · Gold accents · Glassmorphism
   ============================================================ */

:root {
  /* Brand palette */
  --navy-950: #060D1F;
  --navy-900: #0A1633;
  --navy-800: #10204A;
  --navy-700: #1A2F63;
  --royal: #2E4A8F;
  --royal-bright: #4066C7;
  --royal-soft: #6E8FDD;
  --sky: #9DB8F0;
  --gold: #C9A227;
  --gold-bright: #E8C34E;
  --silver: #C7CEDB;
  --silver-bright: #E8ECF4;
  --ink: #101828;
  --slate: #475467;
  --mist: #F6F8FC;
  --white: #FFFFFF;

  /* Semantics */
  --bg-dark: var(--navy-900);
  --bg-light: var(--mist);
  --card-border: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 24px 60px -24px rgba(10, 22, 51, 0.35);
  --shadow-soft: 0 10px 40px -12px rgba(10, 22, 51, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--royal-bright); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }

.display-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; font-weight: 700; }
.display-lg { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; font-weight: 700; }
.display-md { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; font-weight: 600; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }

.text-gradient {
  background: linear-gradient(100deg, #fff 20%, var(--sky) 55%, var(--gold-bright) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-royal {
  background: linear-gradient(100deg, var(--royal) 10%, var(--royal-bright) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--sky { color: var(--royal-soft); }

/* ---------- Layout ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--dark { background: var(--bg-dark); color: var(--silver-bright); }
.section--light { background: var(--bg-light); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--slate); }
.section--dark .section-head p { color: var(--silver); }
.section-head .display-lg { margin: 0.9rem 0 1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- AI grid backdrop ---------- */
.ai-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(110, 143, 221, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 143, 221, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.ai-grid-light::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46, 74, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 74, 143, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 25%, transparent 72%);
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(6, 13, 31, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; color: #fff; }
.nav-logo svg { width: 40px; height: 44px; }
.nav-logo img { width: 42px; height: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35)); }
.nav-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.06em; line-height: 1.1; }
.nav-logo-text small { display: block; font-weight: 400; font-size: 0.56rem; letter-spacing: 0.24em; color: var(--gold-bright); text-transform: uppercase; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: nowrap; }
.nav-links > a,
.nav-dropdown > a {
  color: var(--silver);
  font-size: 0.88rem; font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}
.nav-links > a:hover, .nav-links > a.active,
.nav-dropdown > a:hover, .nav-dropdown:hover > a { color: #fff; }
.nav-links > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--royal-bright), var(--gold));
}

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  padding: 0.6rem;
  background: rgba(12, 24, 54, 0.96);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); }
.nav-dropdown-menu .hex-mini { flex-shrink: 0; margin-top: 2px; }
.nav-dropdown-menu strong { display: block; color: #fff; font-size: 0.88rem; font-family: var(--font-display); }
.nav-dropdown-menu span { display: block; color: var(--silver); font-size: 0.76rem; line-height: 1.4; margin-top: 2px; }

.nav-cta {
  display: flex; gap: 0.6rem; align-items: center; flex-shrink: 0;
  margin-left: clamp(1rem, 1.5vw, 1.5rem);
}

.nav-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  color: #fff;
}

@media (max-width: 1240px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 620px) {
  .nav-cta .btn-primary { display: none; }
  .nav-logo img { width: 36px; }
  .nav-logo-text { font-size: 0.88rem; }
  .nav-logo-text small { font-size: 0.48rem; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(6, 13, 31, 0.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 8vw;
  gap: 1.1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  color: #fff; font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
}
.mobile-menu .sub { font-size: 1.05rem; color: var(--silver); font-weight: 400; padding-left: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: var(--navy-950);
  background: linear-gradient(115deg, var(--gold-bright), var(--gold) 60%);
  box-shadow: 0 8px 28px -8px rgba(201, 162, 39, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(201, 162, 39, 0.7); }

.btn-royal {
  color: #fff;
  background: linear-gradient(115deg, var(--royal-bright), var(--royal) 70%);
  box-shadow: 0 8px 28px -8px rgba(64, 102, 199, 0.6);
}
.btn-royal:hover { box-shadow: 0 14px 36px -8px rgba(64, 102, 199, 0.75); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.08); }

.btn-ghost-dark {
  color: var(--royal);
  border-color: rgba(46, 74, 143, 0.3);
  background: transparent;
}
.btn-ghost-dark:hover { border-color: var(--royal); background: rgba(46, 74, 143, 0.05); }

/* Shine sweep on primary buttons */
.btn-primary::after, .btn-royal::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
}
.btn-primary:hover::after, .btn-royal:hover::after { left: 130%; }

/* ---------- Glass cards ---------- */
.glass-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease-out), border-color 0.35s, background 0.35s;
  overflow: hidden;
}
.glass-card:hover {
  border-color: rgba(232, 195, 78, 0.35);
  background: var(--glass-strong);
}
.glass-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(110,143,221,0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.glass-card:hover::before { opacity: 1; }

.light-card {
  background: var(--white);
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease-out), box-shadow 0.35s;
}
.light-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

/* ---------- Hexagon icon (brand motif) ---------- */
.hex-icon {
  width: 58px; height: 64px;
  display: grid; place-items: center;
  position: relative;
  margin-bottom: 1.2rem;
}
.hex-icon svg.hex-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.hex-icon .glyph { position: relative; z-index: 1; width: 26px; height: 26px; color: var(--gold-bright); }
.hex-mini {
  width: 34px; height: 38px;
  display: grid; place-items: center; position: relative;
}
.hex-mini svg.hex-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.hex-mini .glyph { position: relative; z-index: 1; width: 15px; height: 15px; color: var(--gold-bright); }

/* ---------- Pillar / product cards ---------- */
.pillar-card h3 { font-size: 1.12rem; color: #fff; margin-bottom: 0.25rem; }
.pillar-card .sanskrit { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); font-weight: 600; }
.pillar-card p { color: var(--silver); font-size: 0.92rem; line-height: 1.6; margin: 0.7rem 0 1rem; }
.pillar-card .card-link {
  font-size: 0.85rem; font-weight: 600; color: var(--royal-soft);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.25s, color 0.2s;
}
.pillar-card .card-link:hover { gap: 0.7rem; color: #fff; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 30s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--silver);
  display: flex; align-items: center; gap: 0.8rem;
  white-space: nowrap;
}
.marquee-item::before { content: "⬡"; color: var(--gold); font-size: 1.1rem; }

/* ---------- Stats ---------- */
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(120deg, #fff, var(--sky));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--silver); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-scale.visible { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
[data-stagger].visible > * { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.home-intro {
  display: flex;
  flex-direction: column;
}
.home-intro .story { order: 1; }
.home-intro .hero { order: 2; }

.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding: 90px 0 64px;
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(64,102,199,0.22), transparent 60%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(201,162,39,0.10), transparent 60%),
    var(--navy-950);
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(232,195,78,0.3);
  background: rgba(201,162,39,0.08);
  color: var(--gold-bright);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.hero-badge .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-bright);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,195,78,0.5); }
  50% { box-shadow: 0 0 0 7px rgba(232,195,78,0); }
}
.hero h1 { color: #fff; margin: 1.4rem 0 1.2rem; max-width: 820px; }
.hero .lede { color: var(--silver); max-width: 640px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap; }

/* ---------- Indexable marketing landing pages ---------- */
.marketing-hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 78% 20%, rgba(64,102,199,0.24), transparent 62%),
    radial-gradient(ellipse 50% 45% at 12% 90%, rgba(201,162,39,0.1), transparent 65%),
    var(--navy-950);
}
.marketing-hero .container { grid-template-columns: minmax(0, 820px); }
.marketing-hero h1 { color: #fff; margin: 1.2rem 0; }
.marketing-card-grid { align-items: stretch; }
.marketing-card-grid .glass-card { display: flex; flex-direction: column; }
.marketing-card-grid .card-link { margin-top: auto; }
.marketing-contact-panel {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: rgba(10, 22, 52, 0.72);
  scroll-margin-top: 7.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.marketing-contact-panel:target {
  border-color: rgba(232, 195, 78, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 195, 78, 0.08), var(--shadow-card);
}
.crumb [aria-current="page"] { color: var(--gold-bright); }

/* Floating glass chips over hero canvas */
.hero-chip {
  position: absolute; z-index: 1;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: rgba(16, 32, 74, 0.55);
  border: 1px solid rgba(157,184,240,0.25);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  color: var(--silver-bright);
  font-size: 0.8rem; font-weight: 500;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.6);
  animation: floatY 7s ease-in-out infinite;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 900px) { .hero-chip { display: none; } }

/* ---------- Problem section ---------- */
.problem-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  padding: 2rem;
  overflow: hidden;
}
.gap-bar { margin-bottom: 1.1rem; }
.gap-bar .gap-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--silver); margin-bottom: 0.4rem; }
.gap-bar .gap-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.gap-bar .gap-fill {
  height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--royal-bright), var(--gold-bright));
  transition: width 1.4s var(--ease-out);
}

/* ---------- Platform diagram ---------- */
.platform-layer {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--silver-bright);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.platform-core {
  border-color: rgba(232,195,78,0.45);
  background: linear-gradient(120deg, rgba(201,162,39,0.16), rgba(64,102,199,0.16));
  box-shadow: 0 0 44px -8px rgba(232,195,78,0.25);
}
.connector-line {
  width: 1px; height: 26px; margin-left: 2.1rem;
  background: linear-gradient(var(--royal-soft), transparent);
}

/* ---------- Dashboard mockup ---------- */
.dash {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: linear-gradient(165deg, #101F45, #0A142E);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.dash-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--card-border);
}
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dash-bar i:nth-child(1) { background: #FF6058; }
.dash-bar i:nth-child(2) { background: #FFBD2E; }
.dash-bar i:nth-child(3) { background: #29C740; }
.dash-bar span { margin-left: 0.6rem; font-size: 0.72rem; color: var(--silver); letter-spacing: 0.06em; }
.dash-body { padding: 1.3rem; display: grid; gap: 1rem; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dash-tile {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  padding: 0.9rem 1rem;
}
.dash-tile .k { font-size: 0.68rem; color: var(--silver); letter-spacing: 0.08em; text-transform: uppercase; }
.dash-tile .v { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; margin-top: 0.2rem; }
.dash-tile .v em { font-style: normal; font-size: 0.72rem; color: #4ADE80; margin-left: 0.4rem; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-top: 0.6rem; }
.spark i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--royal-bright), rgba(64,102,199,0.25));
  min-height: 12%;
  animation: sparkGrow 1.1s var(--ease-out) both;
}
.spark i.hot { background: linear-gradient(180deg, var(--gold-bright), rgba(201,162,39,0.3)); }
@keyframes sparkGrow { from { transform: scaleY(0); transform-origin: bottom; } }

/* Chat bubbles (AI assistant) */
.chat { display: grid; gap: 0.8rem; }
.bubble {
  max-width: 85%;
  padding: 0.8rem 1.05rem;
  border-radius: 16px;
  font-size: 0.86rem; line-height: 1.5;
}
.bubble-user {
  justify-self: end;
  background: rgba(255,255,255,0.09);
  color: var(--silver-bright);
  border-bottom-right-radius: 4px;
}
.bubble-ai {
  justify-self: start;
  background: linear-gradient(120deg, rgba(64,102,199,0.35), rgba(46,74,143,0.28));
  border: 1px solid rgba(110,143,221,0.35);
  color: #fff;
  border-bottom-left-radius: 4px;
}
.bubble-ai .tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.66rem; color: var(--gold-bright); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem; font-weight: 700; }
.typing { display: inline-flex; gap: 4px; padding: 0.6rem 0.9rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---------- Industries ---------- */
.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(165deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
}
.industry-card:hover { transform: translateY(-6px); border-color: rgba(232,195,78,0.4); }
.industry-card .ind-icon { position: absolute; top: 1.5rem; left: 1.6rem; width: 34px; height: 34px; color: var(--gold-bright); opacity: 0.9; }
.industry-card h3 { color: #fff; font-size: 1.05rem; }
.industry-card p { color: var(--silver); font-size: 0.85rem; line-height: 1.55; margin: 0.5rem 0 0; }
.industry-card::after {
  content: "";
  position: absolute; inset: auto -30% -50% auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(64,102,199,0.35), transparent 65%);
  transition: transform 0.5s var(--ease-out);
}
.industry-card:hover::after { transform: scale(1.35); }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative;
  border-radius: 32px;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.8rem, 5vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% -20%, rgba(64,102,199,0.5), transparent 70%),
    radial-gradient(ellipse 45% 60% at 80% 110%, rgba(201,162,39,0.22), transparent 70%),
    linear-gradient(165deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(157,184,240,0.22);
  overflow: hidden;
}
.cta-panel h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-panel p { color: var(--silver); max-width: 560px; margin: 1.2rem auto 2rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: var(--silver);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer a { display: block; font-size: 0.9rem; padding: 0.3rem 0; color: var(--silver); transition: color 0.2s; }
.footer a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--silver);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { color: var(--gold-bright); border-color: rgba(232,195,78,0.4); background: rgba(232,195,78,0.08); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(199,206,219,0.65);
}

/* ---------- Product page hero ---------- */
.product-hero {
  min-height: 78vh;
  display: flex; align-items: center;
  position: relative;
  padding-top: 110px; padding-bottom: 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 15%, rgba(64,102,199,0.25), transparent 65%),
    var(--navy-950);
  overflow: hidden;
}
#product-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.85; }
.product-hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
@media (max-width: 940px) { .product-hero .container { grid-template-columns: 1fr; } }
.product-hero h1 { color: #fff; margin: 1rem 0 1.1rem; }
.product-hero .lede { color: var(--silver); }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; } }
.feature-row.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .feature-row.reverse > :first-child { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--slate); font-size: 0.95rem; line-height: 1.55; }
.section--dark .check-list li { color: var(--silver); }
.check-list .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  background: linear-gradient(135deg, var(--royal-bright), var(--royal));
  color: #fff; font-size: 0.7rem; font-weight: 700;
}

/* Breadcrumb pills on product pages */
.crumb {
  display: inline-flex; gap: 0.5rem; align-items: center;
  font-size: 0.78rem; color: var(--silver);
}
.crumb a:hover { color: var(--gold-bright); }

/* AR frame visual */
.ar-frame {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border: 1px solid var(--card-border);
  display: grid; place-items: center;
  overflow: hidden;
}
.ar-frame .corner { position: absolute; width: 34px; height: 34px; border: 2.5px solid var(--gold-bright); }
.ar-frame .corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.ar-frame .corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.ar-frame .corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.ar-frame .corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

/* Trust shield */
.shield-ring {
  width: 190px; height: 190px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(64,102,199,0.25), transparent 70%);
  position: relative;
}
.shield-ring::before, .shield-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(157,184,240,0.4);
  animation: spin 26s linear infinite;
}
.shield-ring::after { inset: 22px; animation-direction: reverse; animation-duration: 18s; border-color: rgba(232,195,78,0.35); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Machine's Perspective — pinned scrollytelling section
   Stage 1: what customers see · Stage 2: what machines read ·
   Stage 3: what AI understands
   ============================================================ */
.scrolly { position: relative; height: 420vh; background: var(--navy-950); }
.scrolly-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; padding: 5.5rem 4vw 5rem;
}
.scrolly-sticky::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(110,143,221,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,143,221,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 78%);
  pointer-events: none;
}
.scrolly-head { text-align: center; position: relative; z-index: 2; max-width: 760px; }
.scrolly-head h2 { color: #fff; margin-top: 0.8rem; }
.scrolly-caption {
  position: relative; z-index: 2;
  min-height: 3.2em; max-width: 620px; text-align: center;
  display: grid;
}
.scrolly-caption p {
  grid-area: 1 / 1;
  margin: 0; color: var(--silver); font-size: clamp(0.95rem, 1.4vw, 1.08rem); line-height: 1.6;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
[data-stage="1"] .scrolly-caption p:nth-child(1),
[data-stage="2"] .scrolly-caption p:nth-child(2),
[data-stage="3"] .scrolly-caption p:nth-child(3) { opacity: 1; transform: none; }

/* Stage area */
.scrolly-stage {
  position: relative; z-index: 1;
  width: min(1150px, 92vw);
  flex: 0 1 auto;
  display: grid; grid-template-columns: 240px 1fr 250px; gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 1020px) { .scrolly-stage { grid-template-columns: 1fr; width: min(560px, 92vw); } }

/* Browser frame (center) */
.m-browser {
  border-radius: var(--radius-md);
  border: 1px solid rgba(157,184,240,0.28);
  background: linear-gradient(170deg, #101F45, #0A142E);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7);
  overflow: hidden;
  position: relative;
  transition: border-color 0.6s;
}
[data-stage="2"] .m-browser { border-color: rgba(232,195,78,0.45); }
[data-stage="3"] .m-browser { border-color: rgba(110,143,221,0.6); }
.m-url {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.7rem; color: var(--silver);
}
.m-url i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.m-url i:nth-child(1) { background: #FF6058; } .m-url i:nth-child(2) { background: #FFBD2E; } .m-url i:nth-child(3) { background: #29C740; }
.m-url .m-addr {
  flex: 1; margin-left: 0.5rem; padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.06); border-radius: 99px;
  font-family: var(--font-display); letter-spacing: 0.04em;
}
.m-mode { color: var(--gold-bright); font-weight: 700; letter-spacing: 0.08em; opacity: 0; transition: opacity 0.5s; }
[data-stage="2"] .m-mode, [data-stage="3"] .m-mode { opacity: 1; }

.m-page { position: relative; padding: 1.1rem; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; min-height: 240px; }
@media (max-width: 640px) { .m-page { grid-template-columns: 1fr; } }
.m-photo {
  border-radius: 10px; min-height: 150px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(64,102,199,0.45), transparent 70%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.m-photo img { width: 46%; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.5)); }
.m-photo .m-kurta { width: 38%; height: auto; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.5)); }
.m-info { display: flex; flex-direction: column; gap: 0.55rem; position: relative; }
.m-title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.02rem; position: relative; }
.m-price { color: var(--gold-bright); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; position: relative; }
.m-line { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.10); position: relative; }
.m-line.w80 { width: 80%; } .m-line.w60 { width: 60%; } .m-line.w70 { width: 70%; }
.m-buy {
  margin-top: auto; align-self: flex-start;
  padding: 0.5rem 1.2rem; border-radius: 99px;
  background: linear-gradient(115deg, var(--gold-bright), var(--gold));
  color: var(--navy-950); font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  position: relative;
}

/* Stage-2 machine annotations on page elements */
.m-tag {
  position: absolute;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.58rem; letter-spacing: 0.04em;
  color: var(--gold-bright);
  background: rgba(6,13,31,0.92);
  border: 1px solid rgba(232,195,78,0.5);
  border-radius: 5px; padding: 0.14rem 0.42rem;
  opacity: 0; transform: translateY(6px) scale(0.94);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none; z-index: 3; white-space: nowrap;
}
[data-stage="2"] .m-tag { opacity: 1; transform: none; }
[data-stage="2"] .m-outline { outline: 1.5px dashed rgba(232,195,78,0.65); outline-offset: 3px; }
.m-outline { transition: outline-color 0.4s; outline: 1.5px dashed transparent; }

/* Stage-3 semantic overlay */
.m-semantic {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  background: rgba(6,13,31,0.78);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
[data-stage="3"] .m-semantic { opacity: 1; visibility: visible; }
.m-semantic svg { width: 92%; height: 88%; }
.m-semantic .node { fill: rgba(64,102,199,0.35); stroke: var(--royal-soft); stroke-width: 1; }
.m-semantic .node-core { fill: rgba(201,162,39,0.25); stroke: var(--gold-bright); stroke-width: 1.4; }
.m-semantic .edge { stroke: rgba(110,143,221,0.5); stroke-width: 1; stroke-dasharray: 4 4; animation: dashFlow 2.4s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -16; } }
.m-semantic text { font-family: var(--font-display); font-size: 9px; fill: var(--silver-bright); text-anchor: middle; }
.m-semantic .t-core { fill: var(--gold-bright); font-weight: 700; }

/* Side panels */
.m-side {
  border-radius: var(--radius-md);
  border: 1px solid rgba(157,184,240,0.22);
  background: rgba(10, 20, 46, 0.88);
  backdrop-filter: blur(10px);
  padding: 0.9rem 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.6rem; line-height: 1.75; color: var(--silver);
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0.6s;
  overflow: hidden;
  max-height: 340px;
}
.m-side h5 {
  margin: 0 0 0.5rem; font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-bright);
}
.m-log { transform: translateX(-28px); }
.m-dash { transform: translateX(28px); font-family: var(--font-body); font-size: 0.74rem; }
[data-stage="2"] .m-log, [data-stage="3"] .m-log { opacity: 1; visibility: visible; transform: none; }
[data-stage="3"] .m-dash { opacity: 1; visibility: visible; transform: none; }
.m-log .ok { color: #4ADE80; }
.m-log .req { color: var(--sky); }
.m-dash .m-kv { display: flex; justify-content: space-between; padding: 0.42rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.m-dash .m-kv b { color: #fff; font-weight: 600; }
.m-dash .m-kv .good { color: #4ADE80; font-weight: 700; }
.m-dash .m-kv .gold { color: var(--gold-bright); font-weight: 700; }
@media (max-width: 1020px) { .m-side { display: none; } }

/* Step tabs */
.scrolly-steps {
  position: relative; z-index: 2;
  display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center;
}
.scrolly-steps button {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(157,184,240,0.28);
  background: rgba(255,255,255,0.04);
  color: var(--silver);
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.scrolly-steps button .n {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.09);
  font-size: 0.66rem;
}
.scrolly-steps button.active {
  background: linear-gradient(115deg, rgba(232,195,78,0.18), rgba(64,102,199,0.18));
  border-color: rgba(232,195,78,0.55);
  color: #fff;
}
.scrolly-steps button.active .n { background: var(--gold); color: var(--navy-950); font-weight: 700; }

/* Progress rail */
.scrolly-rail {
  position: absolute; right: 2vw; top: 50%; transform: translateY(-50%);
  width: 3px; height: 180px; border-radius: 99px;
  background: rgba(255,255,255,0.09); z-index: 2;
}
.scrolly-rail i {
  display: block; width: 100%; border-radius: 99px; height: calc(var(--p, 0) * 100%);
  background: linear-gradient(var(--royal-bright), var(--gold-bright));
}
@media (max-width: 1020px) { .scrolly-rail { display: none; } }

/* ============================================================
   Kritrim Vyapar — suite journey flow (light section)
   ============================================================ */
.journey {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.4rem;
  counter-reset: step;
}
.journey-step {
  position: relative;
  flex: 1 1 150px; max-width: 175px;
  text-align: center;
  padding: 1.4rem 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  transition: background 0.3s, transform 0.4s var(--ease-out);
}
.journey-step:hover { background: rgba(46,74,143,0.05); transform: translateY(-4px); }
.journey-step .hex-mini { margin: 0 auto 0.8rem; width: 46px; height: 52px; }
.journey-step .hex-mini .glyph { width: 19px; height: 19px; }
.journey-step .j-role {
  display: block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.3rem;
}
.journey-step strong { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--royal); }
.journey-step p { margin: 0.4rem 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--slate); }
.journey-step + .journey-step::before {
  content: "→";
  position: absolute; left: -0.65rem; top: 2.4rem;
  color: var(--gold); font-size: 1rem; opacity: 0.7;
}
@media (max-width: 760px) {
  .journey-step + .journey-step::before { display: none; }
  .journey-step { flex-basis: 42%; max-width: none; }
}

.addon-callout {
  margin-top: 2.5rem;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,162,39,0.4);
  background: linear-gradient(115deg, rgba(232,195,78,0.08), rgba(46,74,143,0.06));
  text-align: left;
  flex-wrap: wrap;
}
.addon-callout .hex-mini { flex-shrink: 0; width: 52px; height: 58px; }
.addon-callout .addon-body { flex: 1 1 320px; }
.addon-callout .addon-chip {
  display: inline-block; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-950); background: linear-gradient(115deg, var(--gold-bright), var(--gold));
  padding: 0.26rem 0.7rem; border-radius: 99px; margin-bottom: 0.5rem;
}
.addon-callout strong { font-family: var(--font-display); color: var(--royal); font-size: 1.08rem; display: block; }
.addon-callout p { margin: 0.4rem 0 0; color: var(--slate); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   AI-Era cinematic video story (pinned scroll)
   ============================================================ */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  pointer-events: none;
}
#scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--royal-bright), var(--gold-bright));
  box-shadow: 0 0 12px rgba(232,195,78,0.6);
}

.story { position: relative; height: 520vh; background: var(--navy-950); }
.story-sticky {
  --story-accent: #E8C34E;
  --story-accent-rgb: 232, 195, 78;
  --story-panel-rgb: 23, 26, 36;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.story-sticky[data-chapter="2"] {
  --story-accent: #7EA6FF;
  --story-accent-rgb: 126, 166, 255;
  --story-panel-rgb: 13, 29, 58;
}
.story-sticky[data-chapter="3"] {
  --story-accent: #B69AF8;
  --story-accent-rgb: 182, 154, 248;
  --story-panel-rgb: 32, 26, 58;
}
.story-sticky[data-chapter="4"] {
  --story-accent: #5FD6C6;
  --story-accent-rgb: 95, 214, 198;
  --story-panel-rgb: 10, 45, 48;
}
.story-sticky[data-chapter="5"] {
  --story-accent: #F4A261;
  --story-accent-rgb: 244, 162, 97;
  --story-panel-rgb: 53, 33, 17;
}
.story-sticky::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-color: rgba(var(--story-accent-rgb), 0.045);
  box-shadow: inset 0 -190px 240px rgba(var(--story-accent-rgb), 0.10);
  transition: background-color 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.story-video {
  position: absolute; inset: 0; z-index: 0;
}
.story-video video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05);
}
.story-video::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,13,31,0.85) 0%, rgba(6,13,31,0.25) 35%, rgba(6,13,31,0.35) 65%, rgba(6,13,31,0.92) 100%),
    linear-gradient(100deg, rgba(6,13,31,0.75) 0%, transparent 55%);
}
.story-head {
  position: absolute; top: 7rem; left: 0; right: 0; z-index: 2; text-align: center;
  padding: 0 6vw;
}
.story-head h2 { color: #fff; }

.story-chapters {
  position: relative; z-index: 2;
  width: min(1180px, 92vw); margin: 0 auto;
  min-height: 260px;
  display: grid;
}
.story-chapter {
  grid-area: 1 / 1;
  align-self: end;
  max-width: 560px;
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--story-panel-rgb), 0.94), rgba(6, 13, 31, 0.88));
  border: 1px solid rgba(var(--story-accent-rgb), 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 30px 70px -30px rgba(0,0,0,0.8),
    0 0 48px -34px rgba(var(--story-accent-rgb), 0.8);
  opacity: 0; visibility: hidden; transform: translateY(22px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity 0.34s var(--ease-out),
    transform 0.44s var(--ease-out),
    filter 0.34s var(--ease-out),
    background 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    visibility 0s linear 0.44s;
}
.story-chapter::before {
  content: "";
  position: absolute; left: 0; top: 1.15rem; bottom: 1.15rem;
  width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--story-accent), rgba(var(--story-accent-rgb), 0.22));
  box-shadow: 0 0 20px rgba(var(--story-accent-rgb), 0.55);
}
.story-chapter .s-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--story-accent); margin-bottom: 0.6rem;
  transition: color 0.45s var(--ease-out);
}
.story-chapter .s-eyebrow .hex-mini { width: 26px; height: 30px; }
.story-chapter .s-eyebrow .hex-mini .glyph { width: 12px; height: 12px; }
.story-chapter h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 0.6rem; }
.story-chapter p { color: var(--silver-bright); font-size: 0.95rem; line-height: 1.65; margin: 0; }
.story-chapter .s-metric {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem; padding: 0.45rem 0.95rem;
  border-radius: 99px; font-size: 0.76rem; font-weight: 600;
  background: rgba(var(--story-accent-rgb), 0.13);
  border: 1px solid rgba(var(--story-accent-rgb), 0.48);
  color: var(--story-accent);
  transition: color 0.45s var(--ease-out), background-color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.story-chapter .s-metric .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }

[data-chapter="1"] .story-chapter:nth-of-type(1),
[data-chapter="2"] .story-chapter:nth-of-type(2),
[data-chapter="3"] .story-chapter:nth-of-type(3),
[data-chapter="4"] .story-chapter:nth-of-type(4),
[data-chapter="5"] .story-chapter:nth-of-type(5) {
  opacity: 1; visibility: visible; transform: none; filter: none;
  transition-delay: 0.06s, 0.06s, 0.06s, 0s, 0s, 0s, 0s;
}

.story-counter {
  position: absolute; right: 0; bottom: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 112px; min-height: 58px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(var(--story-panel-rgb), 0.84);
  border: 1px solid rgba(var(--story-accent-rgb), 0.46);
  box-shadow: 0 18px 44px -28px rgba(var(--story-accent-rgb), 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.story-counter-visual {
  display: inline-flex; align-items: baseline; gap: 0.3rem;
  font-family: var(--font-display);
  color: var(--silver);
}
.story-counter-visual strong {
  color: var(--story-accent);
  font-size: 1.45rem;
  line-height: 1;
  transition: color 0.45s var(--ease-out);
}
.story-counter-visual span { font-size: 0.72rem; letter-spacing: 0.08em; }

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

.story-tabs {
  position: relative; z-index: 2;
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  padding: 1.6rem 4vw 2rem;
}
.story-tabs button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.05rem; border-radius: 999px;
  border: 1px solid rgba(157,184,240,0.3);
  background: rgba(8,17,40,0.6);
  backdrop-filter: blur(10px);
  color: var(--silver);
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.3s var(--ease-out);
}
.story-tabs button:hover { transform: translateY(-2px); }
.story-tabs button:focus-visible {
  outline: 2px solid var(--story-accent);
  outline-offset: 3px;
}
.story-tabs button.active {
  background: linear-gradient(115deg, rgba(var(--story-accent-rgb), 0.30), rgba(var(--story-panel-rgb), 0.80));
  border-color: var(--story-accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(var(--story-accent-rgb), 0.16), 0 8px 26px -16px rgba(var(--story-accent-rgb), 0.9);
}
@media (max-width: 700px) {
  .story-chapter { max-width: none; }
  .story-head { top: 5.5rem; }
  .story-counter {
    position: static;
    grid-area: 2 / 1;
    justify-self: end;
    min-width: 92px; min-height: 48px;
    margin-top: 0.75rem;
  }
}

/* ============================================================
   Lead capture form (AI-readiness summary)
   ============================================================ */
.lead-form {
  max-width: 720px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
  text-align: left;
}
.lead-form .lf-full { grid-column: 1 / -1; }
.lead-form label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 0.4rem;
}
.lead-form input {
  width: 100%; box-sizing: border-box;
  padding: 0.85rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(157,184,240,0.3);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.lead-form input::placeholder { color: rgba(199,206,219,0.55); }
.lead-form input:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(232,195,78,0.18);
}
.lead-form input.lf-error { border-color: #F87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.15); }
.field-error { display: block; min-height: 1.1em; margin-top: 0.35rem; font-size: 0.76rem; color: #F87171; }
.field-hint { display: block; margin-top: 0.35rem; font-size: 0.74rem; color: var(--silver); opacity: 0.82; }
.lf-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.75rem;
  align-items: start;
}
.lf-consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--gold-bright);
}
.lf-consent label {
  margin: 0;
  color: var(--silver);
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}
.lf-consent a { color: var(--gold-bright); text-decoration: underline; }
.lf-consent .field-error { grid-column: 2; }

/* intl-tel-input: match the dark glass theme via its CSS variables.
   --iti-country-selector-bg is the actual background of the floating
   country-list popup (`.iti__country-selector`), not just the closed
   selector button — it needs to be a solid, opaque colour, since a
   translucent one lets page content bleed through the open dropdown. */
.lead-form .iti { width: 100%; }
.lead-form .iti input { width: 100%; }
:root {
  --iti-border-color: rgba(157,184,240,0.35);
  --iti-country-selector-bg: var(--navy-800);
  --iti-hover-color: rgba(232,195,78,0.16);
  --iti-icon-color: var(--silver);
}
.iti__country-selector {
  border: 1px solid rgba(157,184,240,0.35);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.55);
}
.iti__country-list { background: var(--navy-800); color: var(--silver-bright); }
.iti__country { color: var(--silver-bright); }
.iti__country.iti__highlight { background-color: rgba(232,195,78,0.16); }
.iti__search-input {
  background: var(--navy-900);
  color: #fff;
}
.iti__search-input::placeholder { color: rgba(199,206,219,0.55); }
.lead-form .lf-actions {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  margin-top: 0.4rem;
}
.lead-form .lf-actions .btn:disabled {
  cursor: wait;
  opacity: 0.68;
  box-shadow: none;
}
.lead-form .lf-note { font-size: 0.76rem; color: var(--silver); opacity: 0.8; }
.lead-form .lf-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.demo-label {
  margin: 0.75rem 0 0;
  color: var(--silver);
  font-size: 0.72rem;
  line-height: 1.5;
  opacity: 0.82;
}
.lead-success {
  display: none;
  max-width: 560px; margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(74,222,128,0.4);
  background: rgba(74,222,128,0.08);
}
.lead-success.show { display: block; animation: fadeUp 0.6s var(--ease-out); }
.lead-success h3 { color: #4ADE80; font-size: 1.15rem; margin-bottom: 0.5rem; }
.lead-success p { color: var(--silver-bright); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.lead-error-msg { display: none; color: #F87171; font-size: 0.82rem; }
.lead-error-msg.show { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 620px) { .lead-form { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(16,24,40,0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--royal);
  display: grid; place-items: center;
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--slate); font-size: 0.94rem; line-height: 1.65; }

/* Utility */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.muted { color: var(--slate); }
.section--dark .muted { color: var(--silver); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.15s !important; }
  html { scroll-behavior: auto; }
}
