:root {
  --bg: #f7f9ff;
  --bg-secondary: #eef3ff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-tint: rgba(243, 246, 255, 0.88);
  --line: rgba(110, 137, 200, 0.18);
  --line-strong: rgba(110, 137, 200, 0.28);
  --text-primary: #2e4ca4;
  --text-secondary: #6b7cb6;
  --accent-primary: #3c5fd0;
  --accent-secondary: #b8caff;
  --accent-shadow: rgba(60, 95, 208, 0.16);
  --shadow-soft: 0 28px 72px rgba(60, 95, 208, 0.13);
  --shadow-card: 0 18px 40px rgba(60, 95, 208, 0.1);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1180px, calc(100% - 40px));
  --font-display: "SF Pro Display", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 14% 12%, rgba(184, 202, 255, 0.78), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(164, 189, 255, 0.38), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

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

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

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  animation: drift 20s ease-in-out infinite;
}

.ambient-one {
  top: 104px;
  left: -110px;
  width: 260px;
  height: 260px;
  background: rgba(184, 202, 255, 0.52);
}

.ambient-two {
  top: 220px;
  right: -84px;
  width: 220px;
  height: 220px;
  background: rgba(60, 95, 208, 0.1);
  animation-duration: 24s;
}

.ambient-three {
  bottom: 80px;
  left: 42%;
  width: 240px;
  height: 240px;
  background: rgba(184, 202, 255, 0.18);
  animation-duration: 28s;
}

.site-header,
.top-quick-links,
.signup-band,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: var(--content-width);
  margin: 22px auto 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-brain {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-wordmark {
  width: clamp(154px, 18vw, 188px);
  height: auto;
}

.header-badge {
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(60, 95, 208, 0.1);
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.top-quick-links {
  width: fit-content;
  max-width: var(--content-width);
  margin: 12px auto 0;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.signup-band {
  width: var(--content-width);
  margin: 24px auto 0;
}

.signup-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(184, 202, 255, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.signup-copy {
  display: grid;
  align-content: center;
}

.signup-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 680;
}

.signup-summary {
  margin: 16px 0 0;
  max-width: 38ch;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.58;
}

.signup-form-shell {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(243, 246, 255, 0.9), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(110, 137, 200, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.hero {
  width: var(--content-width);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.hero-copy,
.proof-card {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-xl);
  display: grid;
  align-content: start;
  min-height: 100%;
}

.eyebrow,
.floating-label {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  font-weight: 680;
}

.hero-summary,
.proof-card p,
.floating-detail li,
.site-footer p {
  color: var(--text-secondary);
  line-height: 1.58;
}

.hero-summary {
  margin: 18px 0 0;
  font-size: 18px;
  max-width: 32ch;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-footnote {
  margin: auto 0 0;
  padding-top: 28px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.58;
  border-top: 1px solid rgba(110, 137, 200, 0.16);
}

.app-store-badge-link {
  display: inline-flex;
  border-radius: 12px;
  line-height: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-store-badge-link:hover,
.app-store-badge-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 33, 64, 0.16);
}

.app-store-badge-link:focus-visible {
  outline: 2px solid rgba(60, 95, 208, 0.45);
  outline-offset: 4px;
}

.app-store-badge {
  width: clamp(150px, 30vw, 186px);
  height: auto;
}

.header-store-badge .app-store-badge {
  width: clamp(122px, 20vw, 164px);
}

.point-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.waitlist-form {
  position: relative;
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.signup-form {
  margin-top: 0;
}

.waitlist-form input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.waitlist-form input[type="email"]:focus {
  border-color: rgba(60, 95, 208, 0.5);
  box-shadow: 0 0 0 4px rgba(60, 95, 208, 0.12);
}

.waitlist-form button {
  padding: 16px 22px;
  border: 0;
  border-radius: 18px;
  background: rgba(60, 95, 208, 0.92);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 28px rgba(60, 95, 208, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

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

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-note {
  color: var(--text-secondary);
}

.form-message {
  min-height: 24px;
  color: var(--accent-primary);
  font-weight: 600;
}

.form-message.is-error {
  color: #b96b53;
}

.hero-visual {
  min-height: 760px;
}

.screen-stage {
  position: relative;
  min-height: 760px;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.54), transparent 28%),
    linear-gradient(160deg, rgba(243, 246, 255, 0.7), rgba(232, 239, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.screen-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.screen-glow-top {
  top: 46px;
  right: 28px;
  width: 180px;
  height: 180px;
  background: rgba(184, 202, 255, 0.42);
}

.screen-glow-bottom {
  left: 60px;
  bottom: 56px;
  width: 220px;
  height: 220px;
  background: rgba(60, 95, 208, 0.1);
}

.screen-stack {
  position: absolute;
  inset: 34px 24px 24px;
}

.phone-card {
  position: absolute;
  margin: 0;
}

.phone-card-back {
  top: 46px;
  right: 8px;
  width: min(47%, 330px);
  transform: rotate(8deg);
  transform-origin: bottom right;
}

.phone-card-front {
  left: 18px;
  bottom: 18px;
  width: min(50%, 350px);
  z-index: 2;
}

.phone-frame {
  position: relative;
  padding: 10px;
  border-radius: 42px;
  box-shadow: 0 30px 60px rgba(22, 29, 52, 0.24);
}

.light-frame {
  background: linear-gradient(180deg, #e9eef9 0%, #cfd7ea 100%);
}

.dark-frame {
  background: linear-gradient(180deg, #1f2846 0%, #141b30 100%);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 24%;
  height: 18px;
  border-radius: 999px;
  background: rgba(10, 14, 28, 0.9);
  transform: translateX(-50%);
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  border-radius: 32px;
  aspect-ratio: 960 / 2048;
  object-fit: cover;
}

.floating-detail {
  position: absolute;
  right: 24px;
  bottom: 34px;
  width: min(44%, 300px);
  padding: 20px 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.92)),
    linear-gradient(150deg, rgba(184, 202, 255, 0.3), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 38px rgba(60, 95, 208, 0.14);
  z-index: 3;
}

.floating-detail::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(110, 137, 200, 0.12);
  pointer-events: none;
}

.floating-detail h2,
.proof-card h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 680;
}

.floating-detail h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.detail-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 600;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(60, 95, 208, 0.74);
}

.site-footer {
  width: var(--content-width);
  margin: 28px auto 38px;
  padding: 0 6px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.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;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -18px, 0);
  }
}

@media (max-width: 1100px) {
  .signup-card,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .screen-stage {
    min-height: 720px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 26px;
  }

  .signup-card,
  .hero-copy {
    padding: 24px;
  }

  .signup-form-shell {
    padding: 16px;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .screen-stage {
    min-height: 920px;
  }

  .screen-stack {
    inset: 18px;
  }

  .phone-card-back {
    top: 40px;
    right: -8px;
    width: 62%;
  }

  .phone-card-front {
    left: 0;
    bottom: 220px;
    width: 68%;
  }

  .floating-detail {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }
}

.legal-links {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-links a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links-buttons {
  margin-top: 14px;
  gap: 12px;
}

.legal-links-buttons .legal-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 16px rgba(60, 95, 208, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.legal-links-buttons .legal-link-button:hover,
.legal-links-buttons .legal-link-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 22px rgba(60, 95, 208, 0.14);
}

.top-quick-links .legal-link-button:hover,
.top-quick-links .legal-link-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 22px rgba(60, 95, 208, 0.14);
}

.legal-page .ambient {
  position: fixed;
}

.legal-header {
  margin-bottom: 20px;
}

.legal-main {
  width: var(--content-width);
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 3vw, 34px);
}

.legal-nav {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.legal-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.legal-nav a.active {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.legal-card h1,
.legal-card h2,
.legal-card h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.legal-card h1 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.02;
  margin-bottom: 14px;
}

.legal-card h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.12;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-card h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.2;
  margin-top: 14px;
  margin-bottom: 8px;
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-card p {
  margin: 0;
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .top-quick-links {
    width: var(--content-width);
    justify-content: center;
    border-radius: 20px;
  }

  .legal-links {
    flex-wrap: wrap;
  }

  .legal-main {
    margin-bottom: 28px;
  }
}
