:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-light: #334155;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 30%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 25%),
    var(--background);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 90%);
}

.hero-shell,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav,
.hero,
.social-proof,
.features,
.showcase,
.science,
.steps,
.waitlist-section,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 12px;
}

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

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.24);
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero h1,
.section-heading h2,
.waitlist-copy h2 {
  margin: 18px 0 16px;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  max-width: 10ch;
}

.hero-text,
.section-heading p,
.waitlist-copy p,
.feature-card p,
.step-card p,
.social-proof span,
.footer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 32px 0 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--primary), #6558ff);
  color: #fff;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.35);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(30, 41, 59, 0.55);
}

.button-block {
  width: 100%;
}

.hero-points {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  display: grid;
  gap: 12px;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 390px);
  padding: 16px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.14), rgba(248, 250, 252, 0.02));
  border: 1px solid rgba(248, 250, 252, 0.12);
  box-shadow: var(--shadow);
}

.phone-screen {
  background: linear-gradient(180deg, #111c35 0%, #0f172a 100%);
  border-radius: 26px;
  padding: 24px;
  min-height: 640px;
}

.screen-top,
.parsed-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.screen-label {
  margin: 0 0 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.screen-top h2 {
  margin: 0;
  font-size: 2rem;
}

.screen-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  font-weight: 600;
  font-size: 0.85rem;
}

.screen-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.screen-stat-grid article,
.screen-panel {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 16px;
}

.screen-stat-grid span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.screen-stat-grid strong {
  font-size: 1.15rem;
}

.speech-bubble {
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: 16px 16px 16px 6px;
  background: rgba(79, 70, 229, 0.18);
  color: #dbe4ff;
}

.parsed-row {
  color: var(--text-secondary);
  font-weight: 600;
}

.screen-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 160px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.chart-bar {
  flex: 1;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.95), rgba(79, 70, 229, 0.35));
}

.chart-bar-1 { height: 48%; }
.chart-bar-2 { height: 72%; }
.chart-bar-3 { height: 58%; }
.chart-bar-4 { height: 86%; }
.chart-bar-5 { height: 95%; }

.social-proof,
.features,
.showcase,
.science,
.steps,
.waitlist-section {
  padding: 32px 0 88px;
}

.social-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.social-proof div,
.feature-card,
.step-card,
.waitlist-form {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

.social-proof div {
  padding: 22px;
}

.social-proof strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading.narrow {
  max-width: 560px;
}

.feature-grid,
.step-grid {
  display: grid;
  gap: 18px;
}

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

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

.feature-card,
.step-card {
  padding: 24px;
}

.feature-card h3,
.step-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.16);
  color: var(--primary-light);
  font-weight: 700;
}

.waitlist-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.waitlist-form {
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-fields[hidden] {
  display: none;
}

.waitlist-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.9);
  color: var(--text);
  font: inherit;
}

.waitlist-form input:focus,
.waitlist-form textarea:focus {
  outline: 2px solid rgba(129, 140, 248, 0.55);
  border-color: transparent;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--text-secondary);
}

.form-status.success {
  color: #6ee7b7;
}

.form-status.error {
  color: #fca5a5;
}

.waitlist-success {
  display: grid;
  gap: 16px;
}

.waitlist-success[hidden] {
  display: none;
}

.waitlist-success h3 {
  margin: 0;
  font-size: 1.7rem;
}

.success-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(110, 231, 183, 0.3);
  color: #6ee7b7;
  font-weight: 700;
}

.waitlist-success-list {
  margin: 0;
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
  position: relative;
  z-index: 1;
}

.admin-hero {
  max-width: 720px;
  margin-bottom: 28px;
}

.admin-hero h1,
.admin-table-header h2 {
  margin: 16px 0;
}

.admin-panel,
.admin-card,
.admin-table-panel {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

.admin-panel,
.admin-table-panel {
  padding: 24px;
}

.admin-panel label {
  display: block;
  font-weight: 600;
}

.admin-panel input {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.9);
  color: var(--text);
  font: inherit;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.admin-card {
  padding: 24px;
}

.admin-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Science section ===== */

.science {
  padding: 32px 0 88px;
}

.science .section-heading {
  margin-bottom: 40px;
}

.science-quote {
  margin: 0 0 56px;
  padding: 28px 32px;
  border-left: 3px solid var(--primary);
  background: rgba(79, 70, 229, 0.07);
  border-radius: 0 16px 16px 0;
}

.science-quote p {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
}

.science-quote footer {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.science-quote footer a {
  color: var(--primary-light);
  text-decoration: none;
}

.science-quote footer a:hover {
  text-decoration: underline;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.science-card {
  padding: 28px 24px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

.science-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 16px;
}

.science-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.science-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ===== Screenshot showcase ===== */

.showcase .section-heading {
  margin-bottom: 56px;
}

.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}

.showcase-block:last-child {
  margin-bottom: 0;
}

.showcase-block-reverse .showcase-copy {
  order: -1;
}

.showcase-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.showcase-phones .phone-frame {
  width: min(100%, 248px);
  padding: 10px;
  flex-shrink: 0;
}

.showcase-phone-secondary {
  margin-top: 48px;
  margin-left: -28px;
  opacity: 0.85;
}

.showcase-phone-solo {
  width: min(100%, 280px) !important;
  margin: 0 auto;
}

.showcase-phones-trio {
  gap: 6px;
}

.showcase-phones-trio .phone-frame {
  width: min(100%, 190px);
  margin: 0 !important;
  opacity: 1;
}

.showcase-phones-trio .phone-frame:nth-child(1) {
  margin-top: 36px !important;
}

.showcase-phones-trio .phone-frame:nth-child(3) {
  margin-top: 36px !important;
}

.phone-screenshot {
  display: block;
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-copy h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.15;
}

.showcase-copy p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.showcase-copy .hero-points {
  padding-left: 18px;
  margin: 4px 0 0;
}

.showcase-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.24);
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 600;
}

.showcase-coming-soon {
  min-height: 480px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.06), rgba(248, 250, 252, 0.01));
}

.coming-soon-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
}

.coming-soon-icon {
  font-size: 2.8rem;
}

.coming-soon-placeholder p {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.footer {
  padding: 0 0 32px;
  text-align: center;
}

@media (max-width: 960px) {
  .hero,
  .waitlist-section,
  .admin-grid,
  .feature-grid,
  .step-grid,
  .science-grid,
  .social-proof,
  .showcase-block,
  .showcase-phones-trio {
    grid-template-columns: 1fr;
  }

  .showcase-block {
    gap: 32px;
    margin-bottom: 64px;
  }

  .showcase-block-reverse .showcase-copy {
    order: 0;
  }

  .showcase-phones {
    justify-content: center;
  }

  .showcase-phones-trio {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .showcase-phones-trio .phone-frame {
    width: min(33%, 180px);
  }

  .showcase-phones-trio .phone-frame:nth-child(1),
  .showcase-phones-trio .phone-frame:nth-child(3) {
    margin-top: 28px !important;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    height: 44px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .admin-actions,
  .admin-table-header {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .phone-screen {
    min-height: auto;
  }
}
