:root {
  --ink: #0d0f0e;
  --ink-soft: #2b312e;
  --paper: #f4f1ea;
  --sand: #ebe6db;
  --accent: #3e72ff;
  --accent-2: #f2c94c;
  --accent-3: #1ac6be;
  --muted: #6f766f;
  --card: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px rgba(13, 15, 14, 0.16);
}

body {
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body.dark-mode {
  background: #0c0d0c;
  color: #f6f3ec;
}

.site {
  overflow-x: hidden;
}

.navbar {
  padding: 28px 8vw;
}

.navbar ul li a {
  font-weight: 600;
}

.hero-video {
  padding: 120px 8vw 100px;
  background:
    radial-gradient(circle at 10% 20%, rgba(62, 114, 255, 0.14), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(242, 201, 76, 0.22), transparent 40%),
    linear-gradient(180deg, #f7f4ed 0%, #efe9dc 100%);
}

body.dark-mode .hero-video {
  background:
    radial-gradient(circle at 10% 20%, rgba(62, 114, 255, 0.22), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(26, 198, 190, 0.18), transparent 40%),
    linear-gradient(180deg, #0c0d0c 0%, #101211 100%);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 16px 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(62, 114, 255, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

body.dark-mode .hero-copy p {
  color: #c9cfc7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(62, 114, 255, 0.3);
}

.btn-secondary {
  border: 1px solid rgba(13, 15, 14, 0.2);
  color: var(--ink);
}

body.dark-mode .btn-secondary {
  color: #f6f3ec;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(13, 15, 14, 0.18);
}

.hero-media {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.video-shell {
  width: min(520px, 90vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 15, 14, 0.08);
  background: #000;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.hero-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  background: var(--card);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(13, 15, 14, 0.12);
}

.scroll-story {
  padding: 100px 8vw;
  background: var(--paper);
}

.scroll-story:nth-of-type(even) {
  background: var(--sand);
}

body.dark-mode .scroll-story {
  background: #0f1110;
}

body.dark-mode .scroll-story:nth-of-type(even) {
  background: #131615;
}

.story-header {
  max-width: 780px;
  margin: 0 auto 80px;
  text-align: center;
  padding-bottom: 40px;
}

.story-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.story-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.story-container {
  position: relative;
  /* Height will be set by GSAP ScrollTrigger */
}

.story-track {
  position: relative;
  /* This will be the trigger element for ScrollTrigger */
}

.story-panel {
  /* GSAP will handle pinning, no sticky needed */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 48px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 15, 14, 0.08);
  box-shadow: var(--shadow);
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  will-change: transform;
  max-height: 85vh;
  box-sizing: border-box;
}

body.dark-mode .story-panel {
  background: rgba(18, 20, 19, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.story-copy {
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 20px;
}

.story-copy h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
}

.story-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-phone {
  display: grid;
  gap: 12px;
  transition: opacity 0.3s ease;
  justify-items: center;
  align-content: center;
}

.phone-frame {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 15, 14, 0.1);
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

body.dark-mode .phone-frame {
  background: #1b1e1c;
  border-color: rgba(255, 255, 255, 0.08);
}

.phone-frame img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
  transition: opacity 0.2s ease;
}

.phone-frame.alt {
  border: 1px solid rgba(26, 198, 190, 0.3);
}

.phone-caption {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.closing-cta {
  padding: 100px 8vw 140px;
  background: radial-gradient(circle at 20% 20%, rgba(62, 114, 255, 0.16), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(242, 201, 76, 0.2), transparent 45%),
    linear-gradient(180deg, #f8f4ed, #efe9dc);
}

body.dark-mode .closing-cta {
  background: linear-gradient(180deg, #0c0d0c, #121412);
}

.cta-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

body.dark-mode .cta-card {
  background: #171a18;
}

.cta-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .story-panel {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
    max-height: 90vh;
    width: 95%;
  }

  .story-copy {
    padding-right: 0;
    text-align: center;
  }

  .story-copy h3 {
    font-size: 1.6rem;
  }

  .phone-frame {
    max-width: 320px;
  }

  .phone-frame img {
    max-height: 50vh;
  }
}

@media (max-width: 720px) {
  .hero-video {
    padding: 96px 6vw 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
