/* STAM landing — category-standard split composition
   Palette: navy ground, indigo accent, cool surfaces
   Type: Manrope (display/body) */

:root {
  --bg: #070b14;
  --bg-elev: #0d1424;
  --bg-panel: #121a2e;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --ok: #34d399;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.5), 0 10px 24px rgba(0, 0, 0, 0.32);
  --shadow-accent: 0 16px 40px rgba(99, 102, 241, 0.38), 0 4px 14px rgba(99, 102, 241, 0.22);
  --shadow-accent-strong: 0 22px 56px rgba(99, 102, 241, 0.5), 0 8px 20px rgba(99, 102, 241, 0.28);
  --radius: 16px;
  --nav-h: 72px;
  --font: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(56, 189, 248, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 20, 0.88);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.nav__links {
  display: none;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 560;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.nav__cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.nav__cta:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.35);
}

.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.btn__hint {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 4rem;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
  }
}

.hero__copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 14ch;
}

.hero__copy h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero__lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.hero__proof {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.btn__row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn img {
  opacity: 0.95;
}

.hero__proof li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  align-items: start;
}

.hero__proof strong {
  color: var(--text);
  font-weight: 700;
}

.proof-icon {
  margin-top: 0.1rem;
}

/* Product stage */
.stage {
  position: relative;
  min-height: 460px;
  padding-bottom: 1.5rem;
  perspective: 1400px;
}

.stage__glow {
  position: absolute;
  inset: 10% 5% auto;
  height: 55%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.28), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.stage__dash {
  margin: 0;
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-7deg) rotateX(5deg);
  transform-origin: 30% 60%;
}

.stage__dash img {
  width: 100%;
  height: auto;
  display: block;
}

.stage__assist {
  margin: 0;
  position: absolute;
  right: -2%;
  bottom: 8%;
  width: min(48%, 280px);
  z-index: 3;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
}

.stage__link {
  position: absolute;
  width: 34%;
  height: auto;
  right: 34%;
  bottom: 26%;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

.stage__link path {
  stroke: #a5b4fc;
  stroke-width: 2.5;
}

.stage__note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}

/* Pain rail — stacked narrative, not equal card grid */
.pain-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pain {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

@media (min-width: 800px) {
  .pain {
    grid-template-columns: minmax(14rem, 0.9fr) 1.2fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.5rem 0;
  }
}

.pain h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.pain p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 52ch;
}

@media (max-width: 959px) {
  .stage {
    min-height: 0;
  }

  .stage__dash {
    transform: none;
  }

  .stage__assist {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 320px);
    margin: -1.5rem auto 0;
  }

  .stage__link {
    display: none;
  }
}
.section {
  padding: 5.5rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.section__head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Story band */
.story {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 3rem;
  }
}

.story__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.story__list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.step {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.85rem;
}

.story__list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.story__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.chat__bubble {
  max-width: 92%;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}

.chat__bubble--in {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.chat__bubble--out {
  margin-left: auto;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.chat__meta {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

/* Modules strip — one job, not a card wall of icons+blurb as page structure;
   still a product map under canon */
.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.modules span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

/* CTA */
.cta {
  text-align: center;
  padding: 4.5rem 1.25rem;
  border-radius: 24px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(99, 102, 241, 0.22), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--line);
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.cta p {
  margin: 0 auto 1.5rem;
  max-width: 36ch;
  color: var(--muted);
}

.cta .btn {
  margin-inline: auto;
}

/* Footer */
.footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 1.5rem;
}

.footer a:hover {
  color: var(--text);
}

/* Reveal defaults (visible without JS) */
[data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

.js [data-reveal] {
  opacity: 0.001;
  transform: translateY(18px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .stage__dash {
    transform: none !important;
  }
}
