:root {
  --bg: #f5f5f5;
  --panel: #e8e7f5;
  --panel-elevated: #f0eff8;
  --ink: #1c1616;
  --muted: rgba(28, 22, 22, 0.62);
  --line: rgba(28, 22, 22, 0.1);
  --line-soft: rgba(28, 22, 22, 0.06);
  --shadow-device: 0 32px 64px -24px rgba(28, 22, 22, 0.22), 0 12px 28px rgba(28, 22, 22, 0.08);
  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

body {
  position: relative;
  overflow-x: hidden;
}

.deco-wave {
  position: fixed;
  top: 12%;
  left: -5%;
  width: 110%;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.deco-wave svg {
  width: 100%;
  height: 100%;
}

.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.96) 0%, rgba(245, 245, 245, 0.88) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4cef0 0%, #c4b8e8 45%, #b8a8df 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 4px 14px rgba(100, 80, 160, 0.18);
}

.brand-name {
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #faf8f7;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(28, 22, 22, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(28, 22, 22, 0.26);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(28, 22, 22, 0.04);
}

.btn-ghost:hover {
  background: #fff;
}

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

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 28px) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: italic;
  font-weight: 800;
}

.subtitle {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta-label--mobile {
  display: none;
}

.store-line {
  margin: 22px 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(165deg, #fff 0%, #f4f2fb 100%);
  box-shadow: var(--shadow-device);
  border: 1px solid rgba(255, 255, 255, 0.9);
  max-width: 100%;
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

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

.content-slab {
  background: var(--panel);
  margin: 0;
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 72px);
  box-shadow: 0 -12px 48px rgba(120, 100, 180, 0.08);
}

.content-slab .container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.story-section {
  scroll-margin-top: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.story-head {
  max-width: min(46rem, 100%);
  margin: 0 auto;
}

.story-head .eyebrow {
  margin-bottom: 14px;
}

.story-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.story-title em {
  font-style: italic;
  font-weight: 800;
}

.story-lead {
  margin: 16px auto 0;
  max-width: 50ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.text-slider {
  margin: 36px auto 0;
  width: 100%;
  max-width: min(64rem, 100%);
}

.story-tag {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.story-tag-sep {
  margin: 0 0.5em;
  opacity: 0.6;
}

.text-slider-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.text-slider-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  outline: none;
}

.text-slider-viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--panel);
}

.text-slider-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.25, 0.85, 0.3, 1);
  will-change: transform;
}

.text-slider-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.story-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 12.5rem;
  padding: 14px clamp(12px, 3vw, 36px) 18px;
  text-align: center;
}

.story-eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.story-num {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.7;
}

.story-q {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.story-a {
  margin: 16px auto 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.text-slider-btn {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.text-slider-btn:hover {
  background: #fff;
  transform: scale(1.04);
}

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

.text-slider-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.text-slider-counter {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 4.2em;
  text-align: left;
}

.text-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.text-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(28, 22, 22, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.text-slider-dot:hover {
  background: rgba(28, 22, 22, 0.38);
}

.text-slider-dot[aria-current="true"] {
  background: var(--ink);
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .text-slider-track {
    transition: none;
  }
}

.footer {
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px clamp(16px, 4vw, 28px) 32px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-divider {
  opacity: 0.6;
}

.footer-credit a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-credit a:hover {
  color: var(--ink);
  border-bottom-color: rgba(28, 22, 22, 0.25);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .nav-actions {
    display: none;
  }

  .hero-cta-label--desktop {
    display: none;
  }

  .hero-cta-label--mobile {
    display: inline;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .store-line {
    text-align: center;
  }

  .text-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .story-slide {
    min-height: 13rem;
  }
}

@media (max-width: 640px) {
  .text-slider-controls {
    gap: 6px;
  }

  .text-slider-meta {
    flex-direction: column;
    gap: 10px;
  }

  .text-slider-counter {
    min-width: auto;
    text-align: center;
  }
}
