/* Clean preview — real app shot + prod WebGL ambient patterns */

:root {
  --bg: #f6f4ef;
  --paper: #fbfaf7;
  --text: #12151a;
  --muted: #5e6670;
  --line: rgba(18, 21, 26, 0.09);
  --blue: #2c79f0;
  --blue-deep: #1d4ed8;
  --shadow: 0 28px 70px rgba(28, 44, 67, 0.14);
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 32px);
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 7px;
}

.nav-links {
  display: none;
  gap: 8px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(18, 21, 26, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 1rem;
}

.btn-dark {
  background: #12151a;
  color: #fff;
}

.btn-dark:hover {
  background: #1c222b;
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

.btn-ghost {
  background: rgba(18, 21, 26, 0.05);
}

.btn-ghost:hover {
  background: rgba(18, 21, 26, 0.08);
}

/* Hero — mirrors production structure */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 20px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92vh, 980px);
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--ambient-opacity, 1);
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(ellipse 40% 35% at 18% 30%, rgba(180, 230, 255, 0.55), transparent 50%),
    radial-gradient(ellipse 45% 40% at 82% 22%, rgba(200, 220, 255, 0.5), transparent 48%),
    linear-gradient(180deg, #eef8ff 0%, #f6f4ef 72%);
}

.hero-ambient__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.hero-copy,
.hero-preview {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 12ch;
  margin-inline: auto;
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.45;
}

.hero-copy .btn {
  margin-top: 26px;
}

.hero-preview {
  width: min(1080px, calc(100vw - 40px));
  margin: 48px auto 0;
}

.hero-shot {
  width: 100%;
  height: auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(36, 67, 97, 0.12);
  box-shadow: var(--shadow);
  background: #f3f3f4;
}

/* Story */
.story {
  padding: 72px 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.story-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.story-rail {
  display: grid;
  gap: 8px;
}

.story-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: 0.2s var(--ease);
}

.story-step span {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.story-step strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.story-step em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.story-step.is-active,
.story-step:hover {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(28, 44, 67, 0.06);
}

.story-stage {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.story-stage img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

/* Cases */
.cases {
  padding: 80px 20px;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.case-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.case {
  display: grid;
  grid-template-rows: 160px auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.case:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case-body {
  padding: 16px 16px 18px;
}

.case-body span {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.case-body h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.case-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Pricing */
.pricing {
  padding: 40px 20px 80px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.price-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.price > p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
}

.price strong {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.price strong span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price .btn {
  margin-top: 6px;
  width: 100%;
}

.price-featured {
  border-color: rgba(44, 121, 240, 0.35);
  box-shadow: 0 0 0 1px rgba(44, 121, 240, 0.08), var(--shadow);
}

/* CTA */
.cta {
  padding: 88px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(44, 121, 240, 0.12), transparent 60%),
    #12151a;
  color: #fff;
}

.cta h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.cta .btn-primary {
  background: #fff;
  color: #12151a;
  box-shadow: none;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(16px, 4vw, 32px) 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

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

.footer > p {
  margin: 0;
  width: 100%;
  font-size: 0.8rem;
  color: #94a3b8;
}

@media (min-width: 800px) {
  .nav-links {
    display: flex;
  }

  .story-inner {
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 40px;
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-wide {
    grid-column: 1 / -1;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 200px;
  }

  .case-wide img {
    height: 200px;
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
