/* ============================================================
   Shreyan AI — Website
   Background system (bg-base / bg-aurora / #field / bg-grain / bg-vignette)
   is carried over unchanged from the live shreyan.ai "Coming Soon" build.
   Everything else (layout, sections, components) is new.
   ============================================================ */

:root {
  /* ---- Official brand palette (brand guidelines) ---- */
  --brand-magenta: #EC008C;
  --brand-magenta-dark: #B8006D;
  --brand-navy: #13436D;

  /* ---- Atmospheric palette (from shreyan.ai background system — unchanged) ---- */
  --navy: #0D426E;
  --navy-deep: #0A3158;
  --navy-darker: #07223E;
  --navy-soft: #14507F;
  --magenta: #D90E8C;
  --magenta-bright: #FF2BA6;
  --white: #FFFFFF;
  --muted: #5A6B7B;

  --void-top: #08294A;
  --void-bottom: #061B33;
  --halo: rgba(217, 14, 140, 0.42);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* ---- Surface tokens for the new UI layer ---- */
  --ink-hi: #FFFFFF;
  --ink-mid: rgba(255, 255, 255, 0.72);
  --ink-lo: rgba(255, 255, 255, 0.52);
  --ink-faint: rgba(255, 255, 255, 0.32);

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.08);

  --maxw: 1280px;
  --maxw-narrow: 900px;
}

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

html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink-hi);
  background: var(--navy-darker);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ============================================================
   Atmospheric background layers — unchanged from shreyan.ai
   ============================================================ */

.bg-base {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 50% 8%, var(--void-top) 0%, var(--navy-deep) 42%, var(--void-bottom) 100%);
}

.bg-aurora {
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 30%, rgba(20, 80, 127, 0.55) 0%, rgba(20, 80, 127, 0) 60%),
    radial-gradient(34% 40% at 80% 22%, rgba(217, 14, 140, 0.20) 0%, rgba(217, 14, 140, 0) 62%),
    radial-gradient(46% 50% at 68% 82%, rgba(13, 66, 110, 0.6) 0%, rgba(13, 66, 110, 0) 64%);
  filter: blur(28px) saturate(115%);
  opacity: 0;
  animation:
    auroraDrift 34s ease-in-out infinite alternate,
    auroraIn 2.4s var(--ease-soft) 0.1s forwards;
  will-change: transform, opacity;
}
@keyframes auroraIn { to { opacity: 0.82; } }
@keyframes auroraDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(0deg); }
  50%  { transform: translate3d(3%, 2%, 0)   scale(1.08) rotate(2deg); }
  100% { transform: translate3d(-1%, 3%, 0)  scale(1.04) rotate(-1.5deg); }
}

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  opacity: 0;
  animation: fieldIn 2.6s var(--ease-soft) 0.25s forwards;
}
@keyframes fieldIn { to { opacity: 1; } }

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(78% 78% at 50% 46%, transparent 52%, rgba(4, 17, 32, 0.55) 100%);
}

/* ============================================================
   Layout utilities
   ============================================================ */

.wrap { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.tc { text-align: center; }
.tl { text-align: left; }

main { position: relative; z-index: 1; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.section-glass { position: relative; }
.section-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--glass-border-soft);
  border-bottom: 1px solid var(--glass-border-soft);
  z-index: 0;
}
.section-glass > .wrap { z-index: 2; }

.section-void { position: relative; }
.section-void::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 11, 22, 0.62);
  border-top: 1px solid var(--glass-border-soft);
  border-bottom: 1px solid var(--glass-border-soft);
  z-index: 0;
}
.section-void > .wrap { z-index: 2; }

.col-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-top: 32px;
}
.col-3 > * { flex: 1 1 240px; min-width: 220px; }

.hr { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.1); margin: 56px 0 40px; }

/* ---- Reveal-on-scroll ----
   Sections replay this both ways: scrolling down, they rise up from
   below; scrolling back up, they settle down from above. Direction
   comes from the [data-dir] attribute on <html>, set in app.js.

   Important: the element IntersectionObserver watches (.section /
   .closing) only ever animates opacity, which never changes layout
   geometry. The translateY motion lives on the inner .wrap instead.
   Putting transform directly on the observed element would move its
   own bounding box, which the observer would then re-measure,
   re-toggle in-view, restart the transition, move the box again, and
   so on. That feedback loop is what caused the flutter and the
   "nothing happens" feel on slow scrolls, since the transition kept
   getting cancelled and restarted before it could finish. */
.reveal { opacity: 0; transform: translateY(32px); }
.reveal.reveal { opacity: 1; transform: translateY(0); }

.section, .closing { opacity: 0; }
.section.in-view, .closing.in-view {
  opacity: 1;
  transition: opacity 1.05s var(--ease-out);
}
.section > .wrap, .closing > .wrap {
  transform: translateY(32px);
  transition: transform 1.05s var(--ease-out);
}
.section.in-view > .wrap, .closing.in-view > .wrap { transform: translateY(0); }

html[data-dir="up"] .section:not(.in-view) > .wrap,
html[data-dir="up"] .closing:not(.in-view) > .wrap {
  transform: translateY(-32px);
}

.hero.reveal, .hero { opacity: 1; transform: none; } /* hero shows immediately */
.hero-copy.reveal, .hero-visual.reveal {
  opacity: 0; transform: translateY(18px);
  animation: revealUp 1s var(--ease-out) forwards;
}
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

/* ---- Card stagger cascade ----
   Cards inside these grids animate in one after another rather than
   popping in as a single block, keyed off the parent section's
   .in-view state so they replay in step with the section reveal. */
.case-card, .cap-card, .outcome-card, .stage-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.section.in-view .case-card,
.section.in-view .cap-card,
.section.in-view .outcome-card,
.section.in-view .stage-item {
  opacity: 1;
  transform: translateY(0);
}
.carousel-track .case-card:nth-child(1) { transition-delay: 0.02s; }
.carousel-track .case-card:nth-child(2) { transition-delay: 0.10s; }
.carousel-track .case-card:nth-child(3) { transition-delay: 0.18s; }
.carousel-track .case-card:nth-child(4) { transition-delay: 0.26s; }
.carousel-track .case-card:nth-child(5) { transition-delay: 0.34s; }
.carousel-track .case-card:nth-child(6) { transition-delay: 0.42s; }

.cap-grid .cap-card:nth-child(1) { transition-delay: 0.02s; }
.cap-grid .cap-card:nth-child(2) { transition-delay: 0.09s; }
.cap-grid .cap-card:nth-child(3) { transition-delay: 0.16s; }
.cap-grid .cap-card:nth-child(4) { transition-delay: 0.23s; }
.cap-grid .cap-card:nth-child(5) { transition-delay: 0.30s; }
.cap-grid .cap-card:nth-child(6) { transition-delay: 0.37s; }
.cap-grid .cap-card:nth-child(7) { transition-delay: 0.44s; }
.cap-grid .cap-card:nth-child(8) { transition-delay: 0.51s; }

.outcome-grid .outcome-card:nth-child(1) { transition-delay: 0.02s; }
.outcome-grid .outcome-card:nth-child(2) { transition-delay: 0.11s; }
.outcome-grid .outcome-card:nth-child(3) { transition-delay: 0.20s; }
.outcome-grid .outcome-card:nth-child(4) { transition-delay: 0.29s; }
.outcome-grid .outcome-card:nth-child(5) { transition-delay: 0.38s; }

.stages .stage-item:nth-child(1) { transition-delay: 0.02s; }
.stages .stage-item:nth-child(2) { transition-delay: 0.12s; }
.stages .stage-item:nth-child(3) { transition-delay: 0.22s; }
.stages .stage-item:nth-child(4) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .bg-aurora { animation: auroraIn 0.6s ease forwards; }
  #field { animation: fieldIn 0.6s ease forwards; }
  .reveal, .section, .hero, .closing, .hero-copy, .hero-visual,
  .section > .wrap, .closing > .wrap,
  .case-card, .cap-card, .outcome-card, .stage-item {
    animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ============================================================
   Typography
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--magenta-bright);
  margin-bottom: 20px;
}
.eyebrow-center { justify-content: center; }
.pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta-bright);
  box-shadow: 0 0 10px 1px var(--magenta-bright);
  animation: pip 3.4s ease-in-out infinite;
  flex: none;
}
@keyframes pip {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.h1 {
  font-weight: 300;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-hi);
  margin: 0;
}
.h1 span { display: block; }

.h2 {
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.18;
  color: var(--ink-hi);
  margin: 0;
}
.h2-narrow { max-width: 720px; }

.lede {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 460px;
  margin: 28px 0 0;
}

.sub {
  font-weight: 300;
  font-size: 15px;
  color: var(--ink-mid);
  margin: 12px 0 0;
}
.sub-wide { max-width: 640px; }

.quote {
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-mid);
  margin: 16px 0 0;
}

.microcopy { font-weight: 300; font-size: 13px; color: var(--ink-mid); margin-top: 26px; }

.footnote { font-weight: 300; font-size: 13px; font-style: italic; color: var(--ink-mid); margin-top: 24px; }
.footnote.link { cursor: pointer; }

.rule-static {
  width: 48px; height: 1px; background: var(--glass-border);
  margin: 28px auto;
}
.rule-static-left { margin: 28px 0; }

.feature-min-label { font-weight: 500; font-size: 13px; color: var(--ink-hi); margin-bottom: 10px; }
.feature-min p { font-weight: 300; font-size: 14px; line-height: 1.8; color: var(--ink-mid); margin: 0; }

.diamond {
  width: 8px; height: 8px; background: var(--magenta-bright);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  margin-bottom: 14px;
  box-shadow: 0 0 10px 1px rgba(255, 43, 166, 0.35);
}
.diamond-sm { width: 5px; height: 5px; margin-bottom: 16px; }

.point p { font-weight: 300; font-size: 14px; line-height: 1.75; color: var(--ink-mid); margin: 6px 0 0; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}
.btn-primary {
  background: var(--brand-magenta);
  color: #fff;
  box-shadow: 0 0 0 rgba(236,0,140,0);
}
.btn-primary:hover { background: var(--brand-magenta-dark); box-shadow: 0 10px 30px -10px rgba(236,0,140,0.55); transform: translateY(-1px); }

.btn-onbrand { background: #fff; color: var(--brand-magenta); }
.btn-onbrand:hover { background: #f3f3f3; }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--ink-hi);
}
.btn-outline:hover { border-color: var(--magenta-bright); background: rgba(217,14,140,0.08); }

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--ink-hi);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn-sm { padding: 12px 22px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.btn-row-center { justify-content: center; }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft), backdrop-filter 0.35s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 21, 40, 0.72);
  border-bottom-color: var(--glass-border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 64px);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 24px; width: auto; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink-mid);
  text-decoration: none; white-space: nowrap;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 20px;
  background: rgba(7, 21, 40, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border-soft);
  padding: 24px clamp(20px, 5vw, 64px) 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 16px; color: var(--ink-mid); text-decoration: none; }
.nav-mobile a.active { color: #fff; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 132px clamp(20px, 5vw, 64px) 60px;
}
.hero .h1 { max-width: 920px; }
.hero .lede { max-width: 560px; }
.proof-line {
  font-weight: 300; font-style: italic; font-size: 13px; color: var(--ink-mid);
  margin: 18px 0 0; max-width: 520px;
}

/* ============================================================
   Case study carousel
   ============================================================ */

.carousel { margin-top: 40px; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.case-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(8px);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.case-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta-bright); margin-bottom: 14px; }
.case-card h3 { font-weight: 500; font-size: 16px; color: var(--ink-hi); line-height: 1.35; margin: 0 0 14px; }
.case-card p { font-weight: 300; font-size: 13px; color: var(--ink-mid); line-height: 1.65; margin: 0 0 18px; }
/* Pin the divider + result to the bottom of the card regardless of paragraph length above */
.case-rule { width: 100%; height: 1px; background: var(--glass-border-soft); margin: auto 0 18px; }
.case-result { display: flex; gap: 8px; font-weight: 500; font-size: 13px; color: var(--ink-hi); line-height: 1.5; }
.case-result span { color: var(--magenta-bright); font-weight: 600; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dot { width: 10px; height: 3px; background: rgba(255,255,255,0.25); cursor: pointer; transition: width 0.3s, background 0.3s; }
.carousel-dot.active { width: 24px; background: var(--magenta-bright); }

/* ============================================================
   Outcome nav (self-sorting)
   ============================================================ */

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.outcome-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-soft);
  border-left: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(8px);
  padding: 28px 20px;
  scroll-margin-top: 100px;
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.outcome-card:hover { border-color: var(--magenta-bright); border-left: 3px solid var(--magenta-bright); background: rgba(255,255,255,0.06); }
.outcome-statement { font-weight: 500; font-size: 15px; color: var(--ink-hi); line-height: 1.4; min-height: 42px; }
.outcome-explain { font-weight: 300; font-size: 13px; color: var(--ink-mid); margin: 10px 0 0; line-height: 1.5; }
/* Pin the pills + link to the bottom of the card regardless of copy length above */
.outcome-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.pill { background: rgba(255,255,255,0.06); color: var(--ink-mid); font-size: 11px; padding: 5px 10px; }
.outcome-link { margin-top: 16px; color: var(--magenta-bright); font-size: 12px; font-weight: 500; opacity: 0.7; transition: opacity 0.2s; }
.outcome-card:hover .outcome-link { opacity: 1; }

@media (max-width: 980px) { .outcome-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .outcome-grid { grid-template-columns: 1fr; } }

/* Landing highlight when jumping in from an outcome card */
.pulse-target {
  animation: pulseTarget 1.2s var(--ease-soft);
}
@keyframes pulseTarget {
  0%   { box-shadow: 0 0 0 0 rgba(255, 43, 166, 0.6); border-color: var(--magenta-bright); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 43, 166, 0); border-color: var(--magenta-bright); }
  100% { box-shadow: 0 0 0 0 rgba(255, 43, 166, 0); }
}

/* ============================================================
   Capabilities
   ============================================================ */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.cap-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(8px);
  padding: 24px 20px;
}
.cap-card h3 { font-weight: 500; font-size: 15px; color: var(--ink-hi); margin: 0 0 10px; }
.cap-card p { font-weight: 300; font-size: 13px; line-height: 1.65; color: var(--ink-mid); margin: 0 0 14px; }
.cap-for { font-weight: 300; font-size: 12px; font-style: italic; color: var(--ink-lo); }

.cap-banner {
  grid-column: 1 / -1;
  background: var(--brand-magenta);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cap-banner div:first-child { font-weight: 400; font-size: 16px; line-height: 1.5; max-width: 520px; }

@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* ============================================================
   See it in action (demo)
   ============================================================ */

.demo-tabs { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.demo-tab {
  font-weight: 500; font-size: 14px; padding: 12px 20px; border: none; cursor: pointer;
  white-space: nowrap; background: rgba(255,255,255,0.08); color: #fff;
  transition: background 0.2s;
}
.demo-tab.active { background: var(--brand-magenta); }
.demo-tab:hover:not(.active) { background: rgba(255,255,255,0.14); }

.demo-panel {
  max-width: 1080px;
  margin: 32px auto 0;
  background: rgba(3, 11, 22, 0.6);
  border: 1px solid var(--glass-border-soft);
  padding: 32px;
}
.demo-fade { animation: demoFade 220ms ease; }
@keyframes demoFade { from { opacity: 0.4; } to { opacity: 1; } }

.demo-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.demo-header-main { font-weight: 300; font-size: 15px; color: #fff; }
.demo-header-sub { font-weight: 300; font-size: 12px; color: var(--ink-lo); }

.demo-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.demo-metric { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border-soft); padding: 16px; }
.demo-metric-label { font-weight: 300; font-size: 11px; color: var(--ink-lo); text-transform: uppercase; letter-spacing: 0.08em; }
.demo-metric-value { font-weight: 200; font-size: 28px; color: #fff; margin-top: 8px; }
.demo-metric-sub { font-weight: 300; font-size: 12px; color: var(--ink-lo); margin-top: 6px; }

.demo-list-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--glass-border-soft); }
.demo-list-item:first-child { border-top: none; }
.demo-list-num { font-weight: 500; font-size: 13px; color: var(--magenta-bright); flex-shrink: 0; }
.demo-list-text { font-weight: 300; font-size: 13px; color: var(--ink-mid); line-height: 1.6; }

.demo-doc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--glass-border-soft); flex-wrap: wrap;
}
.demo-doc-row:first-child { border-top: none; }
.demo-doc-vendor { font-weight: 400; font-size: 13px; color: #fff; min-width: 150px; }
.demo-doc-type { font-weight: 300; font-size: 13px; color: var(--ink-lo); min-width: 120px; }
.demo-doc-amount { font-weight: 300; font-size: 13px; color: var(--ink-mid); min-width: 150px; }
.demo-doc-action { font-weight: 500; font-size: 12px; color: var(--magenta-bright); }

.demo-footer-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--glass-border-soft); font-weight: 300; font-size: 12px; color: var(--ink-mid); }

@media (max-width: 700px) {
  .demo-metric-row { grid-template-columns: 1fr; }
  .demo-tabs { flex-wrap: wrap; }
  .demo-tab { flex: 1 1 auto; }
}

/* ============================================================
   ROI calculator
   ============================================================ */

.roi-panel {
  position: relative;
  z-index: 2;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 40px;
  max-width: 920px;
  margin: 40px 0 0;
}
.roi-inputs { display: flex; flex-wrap: wrap; gap: 24px; }
.roi-field { flex: 1 1 180px; }
.roi-field label {
  display: block; font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-mid); margin-bottom: 10px;
}
.roi-field select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-hi);
  font-family: "IBM Plex Sans", sans-serif;
}
.roi-field select option { background: #0A2036; color: #fff; }
.roi-hours-val { font-weight: 300; font-size: 36px; color: #fff; margin-bottom: 6px; }
.roi-field input[type="range"] { width: 100%; accent-color: var(--brand-magenta); cursor: pointer; }

.btn.btn-primary.btn-block#roiShowBtn { margin-top: 32px; height: 50px; }

.roi-results {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px;
}
.roi-results[hidden] { display: none; }
.roi-fade-up { animation: roiFadeUp 0.5s ease forwards; }
@keyframes roiFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.roi-result-card {
  flex: 1 1 180px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border-soft);
  padding: 20px;
}
.roi-result-label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--magenta-bright); margin-bottom: 10px; letter-spacing: 0.08em; }
.roi-result-value { font-weight: 300; font-size: 32px; color: #fff; margin-bottom: 8px; }
.roi-result-note { font-weight: 300; font-size: 13px; color: var(--ink-mid); }

.roi-cta { font-weight: 500; font-size: 13px; color: var(--magenta-bright); cursor: pointer; margin-top: 16px; }

/* ============================================================
   How we work / stages
   ============================================================ */

.stages {
  position: relative;
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.stages::before {
  content: "";
  position: absolute; top: 16px; left: 0; right: 0; height: 1px;
  background: var(--glass-border-soft);
}
.stage-item { position: relative; flex: 1 1 220px; min-width: 220px; }
.stage-num { font-weight: 300; font-size: 28px; color: var(--magenta-bright); margin-bottom: 14px; }
.stage-item h3 { font-weight: 500; font-size: 16px; color: #fff; margin: 0 0 10px; }
.stage-item p { font-weight: 300; font-size: 13px; line-height: 1.75; color: var(--ink-mid); margin: 0 0 10px; }
.stage-time { font-weight: 300; font-size: 12px; font-style: italic; color: var(--ink-lo); }

/* A deliberate transitional "pull quote" band between How We Work and
   Launchpad — needs its own visual identity so it doesn't read as a
   leftover line from the section above it. */
.strip {
  position: relative;
  z-index: 2;
  padding: 44px 20px;
  background: linear-gradient(90deg, rgba(236, 0, 140, 0) 0%, rgba(236, 0, 140, 0.07) 50%, rgba(236, 0, 140, 0) 100%);
  border-top: 1px solid var(--glass-border-soft);
  border-bottom: 1px solid var(--glass-border-soft);
}
.strip-pip { display: inline-block; margin-bottom: 16px; }
.strip p {
  font-weight: 300; font-style: italic; font-size: 16px; color: var(--ink-hi);
  max-width: 760px; margin: 0 auto;
}

/* ============================================================
   Launchpad
   ============================================================ */

.lp-col { display: flex; flex-direction: column; gap: 4px; }
.lp-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta-bright); margin-bottom: 14px; }
.lp-col > div:not(.lp-label) { font-weight: 300; font-size: 14px; line-height: 2.0; color: var(--ink-mid); }

.lp-headline { font-weight: 300; font-size: 26px; color: #fff; }
.lp-note { font-weight: 300; font-size: 13px; color: var(--ink-mid); margin-top: 16px; }

/* ============================================================
   Industries
   ============================================================ */

.ind-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.ind-card {
  flex: 1 1 200px; min-width: 200px;
  border: 1px solid var(--glass-border-soft);
  background: var(--glass-bg);
  padding: 20px 24px;
}
.ind-card h3 { font-weight: 500; font-size: 14px; color: #fff; margin: 0 0 8px; }
.ind-card p { font-weight: 300; font-size: 12px; color: var(--ink-mid); margin: 0; }

/* ============================================================
   About / Who We Are
   ============================================================ */

.about-copy { max-width: 680px; }
.about-copy p { font-weight: 300; font-size: 15px; line-height: 1.85; color: var(--ink-mid); margin: 0 0 20px; }

/* ============================================================
   Closing
   ============================================================ */

.closing {
  padding: clamp(60px, 10vw, 90px) 0;
  position: relative;
}
.closing::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(3, 11, 22, 0.5);
  border-top: 1px solid var(--glass-border-soft);
  z-index: 0;
}
.closing > .wrap { z-index: 2; }
.h1-closing { font-size: clamp(32px, 6vw, 50px); line-height: 1.12; white-space: nowrap; }
.closing-sub { font-weight: 300; font-size: clamp(16px, 3vw, 19px); color: var(--ink-mid); margin: 16px 0 0; white-space: nowrap; }
.closing-emphasis {
  color: var(--magenta-bright);
  font-weight: 600;
  font-size: 1.2em;
  text-shadow: 0 0 22px rgba(255, 43, 166, 0.55), 0 0 46px rgba(255, 43, 166, 0.25);
}
.closing-email { font-weight: 300; font-size: 12px; color: var(--ink-mid); margin-top: 24px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(3, 9, 18, 0.75);
  border-top: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(10px);
  padding: clamp(48px, 7vw, 80px) 0 32px;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { flex: 1 1 220px; min-width: 220px; }
.footer-logo { height: 22px; width: auto; }
.footer-tag { font-weight: 300; font-size: 12px; color: var(--ink-mid); margin-top: 14px; }

.footer-col { flex: 1 1 200px; min-width: 190px; }
.footer-heading { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta-bright); margin-bottom: 16px; }
.footer-col > div { font-weight: 300; font-size: 13px; line-height: 2.2; color: var(--ink-mid); }
.footer-col .link { cursor: pointer; }
.footer-col .link:hover { color: #fff; }

.footer-start .btn { margin-top: 4px; }
.footer-start .btn-outline-light { margin-top: 10px; }
.footer-email { font-weight: 300; font-size: 12px; color: var(--ink-mid); margin-top: 10px; }

.footer-bottom {
  border-top: 1px solid var(--glass-border-soft);
  margin-top: 48px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-weight: 300;
  font-size: 11px;
  color: var(--ink-lo);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {
  .col-3 { gap: 32px; }
  .hero { padding-top: 120px; }
  .h1-closing, .closing-sub { white-space: normal; }
}

/* ============================================================
   Wide-screen scale-up (1440px+)
   Body copy and headings are tuned for laptop widths; on Full HD+
   monitors the viewport-based clamps top out early and everything
   reads small relative to the canvas. This block widens the content
   column and bumps type sizes so the page reads correctly without
   needing browser zoom. Line-length-controlling max-widths are
   nudged up in step so paragraphs don't gain extra wrapped lines
   than the layout was designed to hold.
   ============================================================ */
@media (min-width: 1440px) {
  :root {
    --maxw: 1400px;
    --maxw-narrow: 960px;
  }

  .eyebrow { font-size: 12px; }

  .h1 { font-size: clamp(48px, 3.4vw, 70px); }
  .hero .h1 { max-width: 1040px; }
  .hero .lede { max-width: 620px; }

  .h2 { font-size: clamp(34px, 2.6vw, 46px); }
  .h2-narrow { max-width: 780px; }

  .lede { font-size: 18px; max-width: 500px; }
  .sub { font-size: 16px; }
  .quote { font-size: 24px; }
  .microcopy, .footnote { font-size: 14px; }
  .proof-line { font-size: 14px; max-width: 560px; }

  .feature-min-label { font-size: 14px; }
  .feature-min p { font-size: 15px; }
  .point p { font-size: 15px; }

  .btn { font-size: 16px; padding: 16px 32px; }
  .btn-sm { font-size: 15px; padding: 13px 24px; }
  .btn-lg { font-size: 17px; padding: 19px 42px; }

  .case-card { flex-basis: 320px; padding: 32px; }
  .case-label { font-size: 11px; }
  .case-card h3 { font-size: 17px; }
  .case-card p { font-size: 14px; }
  .case-result { font-size: 14px; }

  .outcome-statement { font-size: 16px; min-height: 46px; }
  .outcome-explain { font-size: 14px; }
  .pill { font-size: 12px; }
  .outcome-link { font-size: 13px; }

  .cap-card h3 { font-size: 16px; }
  .cap-card p { font-size: 14px; }
  .cap-for { font-size: 13px; }
  .cap-banner div:first-child { font-size: 17px; max-width: 580px; }

  .demo-panel { max-width: 1180px; padding: 36px; }
  .demo-tab { font-size: 15px; padding: 13px 22px; }
  .demo-header-main { font-size: 16px; }
  .demo-header-sub { font-size: 13px; }
  .demo-metric-label { font-size: 12px; }
  .demo-metric-value { font-size: 32px; }
  .demo-metric-sub { font-size: 13px; }
  .demo-list-num, .demo-list-text { font-size: 14px; }
  .demo-doc-vendor, .demo-doc-type, .demo-doc-amount { font-size: 14px; }
  .demo-doc-action { font-size: 13px; }
  .demo-footer-note { font-size: 13px; }

  .roi-panel { max-width: 1000px; padding: 44px; }
  .roi-field label { font-size: 12px; }
  .roi-field select { font-size: 15px; padding: 13px 15px; }
  .roi-hours-val { font-size: 40px; }
  .roi-result-label { font-size: 11px; }
  .roi-result-value { font-size: 36px; }
  .roi-result-note { font-size: 14px; }
  .roi-cta { font-size: 14px; }

  .stage-num { font-size: 32px; }
  .stage-item h3 { font-size: 17px; }
  .stage-item p { font-size: 14px; }
  .stage-time { font-size: 13px; }

  .strip p { font-size: 18px; max-width: 840px; }

  .lp-label { font-size: 11px; }
  .lp-col > div:not(.lp-label) { font-size: 15px; }
  .lp-headline { font-size: 28px; }
  .lp-note { font-size: 14px; }

  .ind-card h3 { font-size: 15px; }
  .ind-card p { font-size: 13px; }

  .about-copy { max-width: 740px; }
  .about-copy p { font-size: 16px; }

  .h1-closing { font-size: clamp(38px, 3.6vw, 58px); }
  .closing-sub { font-size: clamp(17px, 2vw, 21px); }
  .closing-email { font-size: 13px; }

  .footer-tag { font-size: 13px; }
  .footer-col > div { font-size: 14px; }
  .footer-email { font-size: 13px; }
  .footer-bottom { font-size: 12px; }

  .nav-links a { font-size: 15px; }
}

/* ============================================================
   Focus states
   ============================================================ */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--magenta-bright);
  outline-offset: 3px;
}

/* ============================================================
   Discovery Call form
   ============================================================ */
.dc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000; /* above the nav (1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 16, 30, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s var(--ease-soft);
  overflow-y: auto;
}
.dc-overlay[hidden] { display: none; }
.dc-overlay.is-open { opacity: 1; }

body.dc-open { overflow: hidden; }

.dc-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: auto;
  background: #0B2C4A;
  border: 1px solid var(--glass-border);
  padding: 40px;
  transform: translateY(12px);
  transition: transform 0.24s var(--ease-out);
}
.dc-overlay.is-open .dc-modal { transform: translateY(0); }

.dc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: var(--ink-lo);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s var(--ease-soft);
}
.dc-close:hover { color: var(--ink-hi); }

.dc-title {
  font-weight: 300;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  margin: 10px 0 10px;
  color: #fff;
}
.dc-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0 0 28px;
}

.dc-field { flex: 1 1 200px; margin-bottom: 22px; }
.dc-row { display: flex; flex-wrap: wrap; gap: 20px; }

.dc-label {
  display: block;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  margin-bottom: 10px;
}

.dc-modal select,
.dc-modal input[type="text"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-hi);
  font-family: "IBM Plex Sans", sans-serif;
}
.dc-modal select option { background: #0A2036; color: #fff; }
.dc-modal input[type="text"]::placeholder { color: var(--ink-faint); }

/* Services checklist */
.dc-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.dc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border-soft);
  font-size: 13.5px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color 0.18s var(--ease-soft), color 0.18s var(--ease-soft);
}
.dc-check:hover { border-color: var(--glass-border); color: var(--ink-hi); }
.dc-check input { accent-color: var(--brand-magenta); flex: none; cursor: pointer; }
.dc-check:has(input:checked) {
  border-color: var(--brand-magenta);
  color: var(--ink-hi);
  background: rgba(236, 0, 140, 0.08);
}

.dc-error {
  font-size: 12px;
  color: var(--magenta-bright);
  margin-top: 8px;
  min-height: 1em;
}
.dc-services.dc-invalid { outline: 1px solid var(--magenta-bright); outline-offset: 6px; }
input.dc-invalid { border-color: var(--magenta-bright); }

.dc-submit { margin-top: 10px; height: 50px; }
.dc-note {
  font-size: 12px;
  color: var(--ink-lo);
  text-align: center;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .dc-overlay { padding: 0; }
  .dc-modal { padding: 32px 22px; min-height: 100%; border: 0; }
  .dc-services { grid-template-columns: 1fr; }
  .dc-row { gap: 0; }
  .dc-field { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-overlay, .dc-modal { transition: none; }
  .dc-modal { transform: none; }
}
