/* Ctx — Landing Page Styles */
/* Vibe: dark terminal meets editorial. Grounded, fast, no decoration for its own sake. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

/* ─── Design Tokens ───────────────────────────────────── */
:root {
  --bg:        #0d0d0d;
  --bg-card:   #141414;
  --bg-nav:    rgba(13, 13, 13, 0.85);
  --border:    rgba(255, 255, 255, 0.08);
  --text:      #f0f0ee;
  --text-muted: #888880;
  --accent:    #5bffa8;
  --accent-dim: rgba(91, 255, 168, 0.15);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:    4px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
  --max-width: 1080px;
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img, svg { display: block; }

/* ─── Layout Utilities ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--transition);
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--accent); }

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  padding: 140px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 44px;
}

/* ─── Waitlist Form ───────────────────────────────────── */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
}

.waitlist-form input[type="email"]::placeholder { color: var(--text-muted); }
.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.waitlist-form button {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 13px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}

.waitlist-form button:hover { opacity: 0.9; transform: translateY(-1px); }
.waitlist-form button:active { transform: translateY(0); }
.waitlist-form button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

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

.form-message {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  min-height: 1.4em;
}

/* ─── Value Props ─────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 120px;
}

.props-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.props-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

@media (min-width: 700px) {
  .props-grid { grid-template-columns: repeat(3, 1fr); }
}

.prop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.prop-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.prop-card:hover {
  border-color: rgba(91, 255, 168, 0.25);
  background: rgba(20, 20, 20, 0.9);
}
.prop-card:hover::before { opacity: 1; }

.prop-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.prop-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.prop-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── How It Works ────────────────────────────────────── */
.how-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.steps-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 0;
}

@media (min-width: 700px) {
  .steps-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 0 0;
  position: relative;
}

@media (min-width: 700px) {
  .step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -4px;
    top: 4px;
    color: var(--text-muted);
    font-size: 1rem;
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-contact:hover { color: var(--accent); }

/* Success state replaces the form row after submission */
.form-success {
  color: var(--accent);
  font-size: 0.95rem;
  font-family: var(--font-body);
  padding: 10px 0;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .waitlist-form button { width: 100%; }
  .hero { padding-top: 120px; }
  .nav-logo { font-size: 1.1rem; }
}

/* ─── Animations ──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: fade-up 0.5s ease both;
  }
  .hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.14s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.2s; }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
