:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-soft: #18181b;
  --text: #ffffff;
  --muted: #a1a1aa;
  --muted-strong: #e4e4e7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #3b82f6;
  --danger: #ef4444;
  --success: #22c55e;
  --container: min(1200px, calc(100vw - 48px));
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background glow effect */
.bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
  z-index: -1;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.max-w-md { max-width: 480px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--muted); }
.inline-flex { display: inline-flex; }
.justify-center { justify-content: center; }

.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent);
}

.section {
  padding: 120px 0;
}

.section-stacked {
  border-bottom: 1px solid var(--line);
}

/* Typography Scale */
h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
  line-height: 1;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: var(--muted-strong);
  margin: 0 0 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-lead p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  margin: 8px 0;
}

.feature-description {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--muted);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* Imagery */
.app-screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 40px; /* To match mobile device curve */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line), 0 0 120px rgba(59, 130, 246, 0.1);
  margin: 0 auto;
}

.hero-screenshot {
  max-width: 380px;
}

.feature-visual {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Forms & Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--text);
  color: var(--bg);
  font-size: 1.125rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.button:hover {
  background: var(--muted-strong);
  transform: translateY(-2px);
}

.button--full {
  width: 100%;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 16px;
  border-radius: 12px;
  outline: none;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-message {
  min-height: 24px;
}

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

/* Footer */
.footer-text {
  color: var(--muted);
  padding: 40px 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

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

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .app-screenshot {
    border-radius: 32px;
  }
  
  .hero-screenshot,
  .feature-visual {
    max-width: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .button {
    transition: none;
  }
}
