:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f2f4f7;
  --text: #11141a;
  --text-muted: #5a6475;
  --line: #d8deea;
  --accent: #1f6fff;
  --accent-strong: #0c4dd0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 20, 26, 0.08);
  --container: 1120px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 4%, rgba(31, 111, 255, 0.16) 0%, rgba(31, 111, 255, 0) 38%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 40%, #ffffff 100%);
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-tint {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(216, 222, 234, 0.7);
  border-bottom: 1px solid rgba(216, 222, 234, 0.7);
}

.section-strong {
  background: linear-gradient(145deg, #0f1728 0%, #182a4a 100%);
  color: #f8fbff;
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.2rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

h1,
h2,
h3,
.logo {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  margin: 0;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0;
  line-height: 1.2;
}

h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 56ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #ffffff;
  color: #11141a;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(216, 222, 234, 0.9);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus-visible {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #11141a;
  margin: 5px 0;
}

.hero {
  padding-top: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1rem;
}

.hero-proof {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  background: linear-gradient(145deg, #f8fbff, #edf4ff);
  border: 1px solid #dce7ff;
  border-radius: calc(var(--radius) + 10px);
  padding: 1rem;
  box-shadow: var(--shadow);
  min-height: 350px;
}

.hero-visual img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d5def0;
  cursor: zoom-in;
}

.image-missing {
  min-height: 330px;
}

.image-missing::before {
  content: "Image Placeholder";
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 310px;
  border-radius: 14px;
  color: #2457a8;
  font-weight: 600;
  background: linear-gradient(135deg, #dce7ff, #f1f6ff);
}

.floating-card {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  background: #ffffff;
  border: 1px solid #dce7ff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 20, 26, 0.12);
  padding: 0.75rem 0.85rem;
  max-width: 250px;
}

.floating-card p {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.floating-card strong {
  display: block;
  margin-top: 0.4rem;
  line-height: 1.4;
}

.bg-shape {
  position: absolute;
  z-index: 0;
  filter: blur(2px);
}

.bg-shape-1 {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(31, 111, 255, 0.16);
  top: 1rem;
  right: -60px;
}

.bg-shape-2 {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(31, 111, 255, 0.12);
  bottom: 0;
  left: -60px;
}

.problem-grid,
.steps-grid,
.search-grid,
.benefits-grid,
.screens-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

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

.problem-card,
.step-card,
.query-card,
.feature-card,
.screen-card,
.waitlist-form,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(17, 20, 26, 0.04);
}

.step-number {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.screen-card {
  padding: 0.9rem;
}

.screen-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid #d5def0;
  background: #eef2f7;
  cursor: zoom-in;
}

.screen-sprite {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  max-width: none;
  object-fit: cover;
  transform-origin: top left;
}

.screen-timeline .screen-sprite {
  transform: translate(0, 0);
}

.screen-search .screen-sprite {
  transform: translate(-50%, 0);
}

.screen-summary .screen-sprite {
  transform: translate(0, -50%);
}

.screen-album .screen-sprite {
  transform: translate(-50%, -50%);
}

.screen-card figcaption {
  margin-top: 0.7rem;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, 0.8);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  width: min(1200px, 100%);
  max-height: 90vh;
  background: #f7f9fd;
  border: 1px solid #d8e1f3;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(11, 18, 33, 0.3);
  padding: 0.8rem;
}

.lightbox-close {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid #ccd8ee;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  color: #1a2438;
  cursor: pointer;
}

.lightbox-body {
  margin-top: 0.7rem;
}

.lightbox-image,
.lightbox-sprite {
  display: block;
  width: 100%;
  max-height: calc(90vh - 5.4rem);
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #d4ddf0;
  background: #eef2f7;
  aspect-ratio: 16 / 10;
}

.lightbox-image {
  object-fit: contain;
}

.lightbox-sprite {
  background-repeat: no-repeat;
  background-size: 200% 200%;
}

.lightbox-sprite.view-timeline {
  background-position: 0% 0%;
}

.lightbox-sprite.view-search {
  background-position: 100% 0%;
}

.lightbox-sprite.view-summary {
  background-position: 0% 100%;
}

.lightbox-sprite.view-album {
  background-position: 100% 100%;
}

.query-card {
  background: linear-gradient(120deg, #ffffff, #f5f9ff);
  border-color: #dbe8ff;
  font-size: 1.05rem;
}

.waitlist-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.waitlist-copy h2 {
  margin-bottom: 0.9rem;
  line-height: 1.15;
}

.waitlist-copy p {
  margin: 0;
  color: #d6e2fb;
  font-size: 1.08rem;
}

.waitlist-points {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.waitlist-points span {
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #eaf1ff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.waitlist-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px rgba(8, 15, 30, 0.26);
}

.waitlist-embed {
  padding: 1rem;
  border-radius: 18px;
}

.tally-iframe {
  width: 100%;
  min-height: 900px;
  height: 900px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 0.9rem;
}

.waitlist-embed .btn {
  font-size: 1.02rem;
}

.waitlist-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: 2px solid rgba(31, 111, 255, 0.7);
  outline-offset: 2px;
}

.form-note {
  margin: 0.4rem 0 0;
  color: #d0dcf7;
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .tally-iframe {
    min-height: 720px;
    height: 720px;
  }
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 1rem 1.1rem;
  color: var(--text);
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 180px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  background: #ffffff;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  margin: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 7px 20px rgba(31, 111, 255, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 10px 25px rgba(31, 111, 255, 0.32);
}

.btn-secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f7f9fc;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

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

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

@media (max-width: 980px) {
  .hero-grid,
  .waitlist-wrap {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .steps-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    width: min(320px, calc(100vw - 2rem));
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.8rem 0;
  }

  .container {
    width: min(var(--container), calc(100% - 1.4rem));
  }

  .problem-grid,
  .steps-grid,
  .search-grid,
  .benefits-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
