:root {
  --bg: #efe5d3;
  --bg-strong: #e2d3ba;
  --surface: rgba(255, 251, 244, 0.74);
  --surface-strong: rgba(255, 250, 244, 0.92);
  --surface-deep: rgba(41, 33, 26, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.48);
  --text: #1b1510;
  --muted: #5e5145;
  --line: rgba(50, 38, 28, 0.14);
  --line-strong: rgba(50, 38, 28, 0.24);
  --accent: #c65a2e;
  --accent-strong: #a64318;
  --accent-soft: rgba(198, 90, 46, 0.12);
  --signal: #1d6a52;
  --signal-soft: rgba(29, 106, 82, 0.12);
  --danger: #a63d35;
  --shadow-lg: 0 34px 100px rgba(64, 42, 26, 0.17);
  --shadow-md: 0 20px 50px rgba(64, 42, 26, 0.12);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --radius-pill: 999px;
}

body[data-theme="dark"] {
  --bg: #11151a;
  --bg-strong: #1a232d;
  --surface: rgba(18, 23, 28, 0.72);
  --surface-strong: rgba(19, 25, 32, 0.9);
  --surface-deep: rgba(226, 214, 196, 0.08);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text: #f7f0e5;
  --muted: #baa995;
  --line: rgba(247, 240, 229, 0.12);
  --line-strong: rgba(247, 240, 229, 0.24);
  --accent: #ff9360;
  --accent-strong: #ffd4bd;
  --accent-soft: rgba(255, 147, 96, 0.13);
  --signal: #73d2af;
  --signal-soft: rgba(115, 210, 175, 0.12);
  --danger: #ffb4a6;
  --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.36);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.62), transparent 24%),
    radial-gradient(circle at 85% 18%, var(--accent-soft), transparent 22%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-strong) 100%);
  transition: background 220ms ease, color 220ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(39, 28, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 28, 20, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 82%);
}

body::after {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  opacity: 0.35;
  transform: translateX(-100%);
  animation: sweep 15s linear infinite;
}

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.market-grid {
  position: absolute;
  inset: 120px 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  opacity: 0.42;
  pointer-events: none;
}

.market-grid span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 8px 0 24px;
}

.topbar,
.topbar-actions,
.brand,
.eyebrow-row,
.hero-actions,
.form-row {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.brand {
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name,
.status-pill,
.eyebrow,
.eyebrow-chip,
.rail-label,
.story-kicker,
.section-label,
.offer-label,
.theme-toggle-option,
.signal-strip dt,
.ticker-ribbon span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtitle {
  color: #000000;
  font-size: 0.82rem;
}

.topbar-actions {
  align-items: center;
  gap: 12px;
}

.status-pill,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  backdrop-filter: blur(16px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.theme-toggle {
  padding: 4px;
  border-radius: var(--radius-pill);
  color: inherit;
  cursor: pointer;
}

.theme-toggle-track {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.theme-toggle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle-option.is-active {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.hero-grid,
.story-grid,
.preview-section,
.waitlist-section,
.seo-section,
.faq-section,
.conversion-row {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.82fr);
  align-items: stretch;
}

.hero-copy,
.hero-rail,
.story-card,
.preview-copy,
.preview-stage,
.waitlist-copy,
.offer-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-copy,
.preview-copy,
.waitlist-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.hero-copy::before,
.preview-copy::before,
.waitlist-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  transform: translate(-28%, -28%);
}

.eyebrow-row {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow,
.eyebrow-chip,
.rail-label,
.story-kicker,
.section-label,
.offer-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow,
.rail-label,
.section-label,
.offer-label {
  color: var(--accent);
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--surface-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 500;
  line-height: 0.96;
}

h1 {
  max-width: 11ch;
  margin-top: 14px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.lede,
.hero-actions-note,
.rail-card p,
.story-card p,
.story-list,
.preview-copy p,
.waitlist-copy p,
.offer-copy,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 42rem;
  margin: 14px 0 0;
  font-size: 0.98rem;
}

.hero-actions {
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.hero-actions-note {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.button-primary {
  color: #fff6ef;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 18px 32px rgba(166, 67, 24, 0.25);
}

body[data-theme="dark"] .button-primary {
  color: #11151a;
  font-weight: 800;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.signal-strip div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.signal-strip dt {
  margin-bottom: 10px;
  color: var(--signal);
  font-size: 0.74rem;
  font-weight: 700;
}

.signal-strip dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-rail {
  display: grid;
  gap: 14px;
  border-radius: var(--radius-xl);
}

.rail-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.rail-card-accent {
  overflow: hidden;
}

.rail-card-offer {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 65%, var(--surface-strong)), var(--surface));
}

.rail-card-accent::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--accent-soft), transparent);
  transform: rotate(18deg);
}

.rail-card h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
}

.rail-card p {
  margin: 10px 0 0;
}

.rail-stats {
  display: grid;
  gap: 14px;
}

.rail-stats article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 2px;
}

.rail-stats article + article {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rail-stats span {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.rail-stats p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.story-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  margin-top: 18px;
}

.story-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.story-card-dark {
  color: #fbf5ea;
  background:
    radial-gradient(circle at top right, rgba(255, 147, 96, 0.16), transparent 28%),
    linear-gradient(145deg, #1a2530 0%, #141a21 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.story-card-dark .story-kicker,
.story-card-dark p {
  color: rgba(251, 245, 234, 0.74);
}

.story-card-outline {
  background:
    linear-gradient(180deg, var(--surface-strong), var(--surface)),
    transparent;
}

.story-card p {
  margin: 10px 0 0;
}

.story-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 12px 0 0;
}

.preview-section,
.waitlist-section,
.seo-section {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 18px;
  align-items: stretch;
}

.preview-section {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

.conversion-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  align-items: stretch;
}

.preview-copy,
.waitlist-copy,
.seo-copy,
.faq-copy {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.preview-copy h2,
.waitlist-copy h2,
.seo-copy h2,
.faq-copy h2 {
  margin-top: 10px;
}

.preview-copy p:last-child,
.waitlist-copy p:last-child,
.seo-copy p:last-child,
.faq-copy p:last-child {
  margin-bottom: 0;
}

.preview-stage {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.preview-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 20% 0%, var(--accent-soft), transparent 24%);
  pointer-events: none;
}

.ticker-ribbon {
  display: flex;
  gap: 10px;
  width: max-content;
  margin-bottom: 12px;
  padding-right: 10px;
  animation: ticker 24s linear infinite;
}

.ticker-ribbon span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.device-frame {
  position: relative;
  min-height: 620px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.16)),
    linear-gradient(145deg, #d7c4a5 0%, #b99e7d 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body[data-theme="dark"] .device-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, #18212b 0%, #10161d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.device-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.app-preview {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  object-fit: contain;
  opacity: 0;
  transform: translateY(18px) scale(0.982);
  transition: opacity 220ms ease, transform 220ms ease;
  filter: drop-shadow(0 26px 40px rgba(14, 18, 22, 0.24));
}

.app-preview.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.offer-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.preview-caption {
  margin: 14px 0 0;
  padding: 0 4px;
}

.preview-caption figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.seo-copy,
.faq-copy,
.faq-item {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.faq-section {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  margin-top: 18px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
}

.faq-item h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.1;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.offer-copy {
  margin: 10px 0 0;
}

.waitlist-form {
  margin-top: 16px;
}

.form-row {
  gap: 12px;
  align-items: center;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--surface-strong);
  font: inherit;
  outline: none;
}

input[type="email"]::placeholder,
input[type="text"]::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.form-note,
.form-message {
  margin: 12px 0 0;
  font-size: 0.94rem;
}

.form-message {
  min-height: 1.5em;
  color: var(--text);
}

.form-message[data-state="success"] {
  color: var(--signal);
}

.form-message[data-state="error"] {
  color: var(--danger);
}

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

.turnstile-slot {
  margin-top: 14px;
}

.hero-copy,
.rail-card,
.story-card,
.preview-copy,
.preview-stage,
.waitlist-copy,
.offer-card,
.seo-copy,
.faq-copy,
.faq-item {
  animation: rise-in 700ms ease both;
}

.hero-rail .rail-card:nth-child(1) {
  animation-delay: 100ms;
}

.hero-rail .rail-card:nth-child(2) {
  animation-delay: 180ms;
}

.story-grid .story-card:nth-child(1) {
  animation-delay: 220ms;
}

.story-grid .story-card:nth-child(2) {
  animation-delay: 300ms;
}

.preview-copy {
  animation-delay: 340ms;
}

.preview-stage {
  animation-delay: 420ms;
}

.waitlist-copy {
  animation-delay: 460ms;
}

.offer-card {
  animation-delay: 540ms;
}

.seo-copy {
  animation-delay: 500ms;
}

.faq-copy {
  animation-delay: 580ms;
}

.faq-item:nth-child(1) {
  animation-delay: 620ms;
}

.faq-item:nth-child(2) {
  animation-delay: 660ms;
}

.faq-item:nth-child(3) {
  animation-delay: 700ms;
}

.faq-item:nth-child(4) {
  animation-delay: 740ms;
}

.faq-item:nth-child(5) {
  animation-delay: 780ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-25%);
  }
}

@keyframes sweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .story-grid,
  .preview-section,
  .waitlist-section,
  .seo-section,
  .faq-section,
  .conversion-row,
  .signal-strip,
  .form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid,
  .preview-section,
  .waitlist-section,
  .seo-section,
  .faq-section,
  .conversion-row {
    gap: 20px;
  }

  .device-frame {
    min-height: 520px;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .eyebrow-row,
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-toggle {
    width: 100%;
  }

  .theme-toggle-track {
    width: 100%;
  }

  .theme-toggle-option {
    min-width: 0;
  }

  .hero-copy,
  .preview-copy,
  .preview-stage,
  .waitlist-copy,
  .seo-copy,
  .faq-copy,
  .offer-card,
  .story-card,
  .faq-item {
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  h2 {
    max-width: none;
    font-size: clamp(1.65rem, 7vw, 2.3rem);
  }

  .device-frame {
    min-height: 400px;
    border-radius: 28px;
  }

  .market-grid {
    display: none;
  }
}
