/* Rekur */

:root {
  --bg: #0A0908;
  --bg-elevated: #141210;
  --surface: #1A1714;
  --surface-hover: #211E1A;
  --surface-border: rgba(255, 255, 255, 0.04);
  --accent: #7A9E82;
  --accent-glow: #A3C4A8;
  --accent-dim: rgba(122, 158, 130, 0.08);
  --text-primary: #F2F0ED;
  --text-secondary: rgba(242, 240, 237, 0.5);
  --text-tertiary: rgba(242, 240, 237, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-glow);
}

/* Layout */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Navigation */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 9, 8, 0.8);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--surface-border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

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

/* Hero */

.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(122, 158, 130, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-store-badge {
  display: inline-block;
  background: var(--text-primary);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--bg);
}

/* Waitlist form (temporary, until App Store link is live) */

.waitlist-form {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.waitlist-form input[type="email"] {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-size: 15px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  min-width: 260px;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-tertiary);
}

.waitlist-form button {
  background: var(--accent);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.waitlist-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.waitlist-form button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.waitlist-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
}

.waitlist-status--ok {
  color: var(--accent-glow);
}

.waitlist-status--error {
  color: var(--text-secondary);
}

.waitlist-subtext {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
    width: 100%;
  }

  .waitlist-form input[type="email"],
  .waitlist-form button {
    width: 100%;
  }
}

/* Pulse ring animation */

.pulse-ring {
  width: 180px;
  height: 180px;
  margin: 0 auto 56px;
  position: relative;
}

.pulse-ring .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(122, 158, 130, 0.25);
  animation: pulse 6s ease-in-out infinite;
}

.pulse-ring .ring:nth-child(2) {
  inset: 20px;
  border-color: rgba(122, 158, 130, 0.15);
  animation-delay: 0.4s;
}

.pulse-ring .ring:nth-child(3) {
  inset: 40px;
  border-color: rgba(122, 158, 130, 0.1);
  animation-delay: 0.8s;
}

.pulse-ring .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(122, 158, 130, 0.3);
  animation: pulse-dot 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.88); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Sections */

.section {
  padding: 120px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 200;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section p.subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.section--center {
  text-align: center;
}

.section--center p.subtitle {
  margin: 0 auto;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.3s;
}

.step:hover {
  border-color: rgba(122, 158, 130, 0.15);
}

.step-number {
  font-size: 56px;
  font-weight: 100;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 72px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: border-color 0.3s;
}

.feature:hover {
  border-color: rgba(122, 158, 130, 0.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 14px;
  color: var(--accent);
}

.feature h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.feature p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Pricing */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.pricing-card--popular {
  border-color: rgba(122, 158, 130, 0.25);
}

.pricing-card--popular:hover {
  border-color: rgba(122, 158, 130, 0.4);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 14px;
  border-radius: 100px;
}

.pricing-card h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.pricing-detail {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Science / Why section */

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.science-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s;
}

.science-card:hover {
  border-color: rgba(122, 158, 130, 0.12);
}

.science-stat {
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 12px;
}

.science-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.science-source {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* CTA Section */

.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(122, 158, 130, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 200;
  margin-bottom: 32px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Footer */

footer {
  border-top: 1px solid var(--surface-border);
  padding: 48px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

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

/* Legal Pages */

.legal {
  padding: 140px 0 100px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 200;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 56px;
}

.legal h2 {
  font-size: 17px;
  font-weight: 500;
  margin-top: 48px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.legal h3 {
  font-size: 15px;
  font-weight: 500;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.legal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal ul {
  margin: 10px 0 18px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.legal strong {
  color: var(--text-primary);
  font-weight: 500;
}

.legal a {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .steps,
  .pricing-cards,
  .science-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 140px 0 80px;
  }

  .section {
    padding: 80px 0;
  }

  .nav-links {
    gap: 20px;
  }

  footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 9, 8, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--surface-border);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 14px 32px;
    font-size: 14px;
    color: var(--text-secondary);
  }

  .hero h1 {
    font-size: 36px;
  }

  .pricing-price {
    font-size: 32px;
  }
}
