/* ============================================================
   Motonom — Marketing landing
   Warm Asphalt #0C0D0F · Accent gold #D4AF37
   Space Grotesk + Inter
   ============================================================ */

:root {
  --bg: #0c0d0f;
  --bg-elevated: #141518;
  --bg-card: #16181c;
  --bg-card-hover: #1c1f24;
  --border: rgba(212, 175, 55, 0.12);
  --border-strong: rgba(212, 175, 55, 0.28);
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text: #f2f0ea;
  --text-muted: #9a968c;
  --text-dim: #6b675f;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: #0c0d0f;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.gold {
  color: var(--gold);
}

/* ---------- Ambient background ---------- */

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(212, 175, 55, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 40%, rgba(212, 175, 55, 0.05), transparent 50%),
    radial-gradient(ellipse 35% 30% at 10% 70%, rgba(212, 175, 55, 0.04), transparent 50%),
    var(--bg);
}

.road-lines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(50% - 1px),
      var(--gold) calc(50% - 1px),
      var(--gold) calc(50% + 1px),
      transparent calc(50% + 1px),
      transparent 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 48px,
      rgba(212, 175, 55, 0.6) 48px,
      rgba(212, 175, 55, 0.6) 56px
    );
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 13, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(12, 13, 15, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  z-index: 101;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #a88820 100%);
  box-shadow: 0 0 20px var(--gold-glow);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #0c0d0f;
  border-radius: 3px;
  border-top-color: transparent;
  transform: rotate(-45deg);
}

.logo--sm {
  font-size: 1.05rem;
}

.logo--sm .logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.logo--sm .logo-mark::after {
  inset: 5px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0c0d0f;
  background: var(--gold);
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--gold-glow);
  outline: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  color: #0c0d0f;
  background: var(--gold);
  box-shadow: 0 0 0 0 transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Proof rail ---------- */

.proof {
  padding: 0 0 3.5rem;
}

.proof-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-gold);
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.proof-icon {
  font-size: 1.1rem;
  color: var(--gold);
  line-height: 1;
}

.proof-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

/* ---------- Sections shared ---------- */

.section-header {
  margin-bottom: 2.75rem;
  max-width: 560px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Features ---------- */

.features {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- How it works ---------- */

.how {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.03), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 1rem;
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

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

/* ---------- Waitlist ---------- */

.waitlist {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.waitlist-inner {
  max-width: 560px;
  margin-inline: auto;
  padding: 2.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-gold);
}

.waitlist-form {
  margin-top: 0.5rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.9rem 1.15rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:hover {
  border-color: var(--border-strong);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-input.is-invalid {
  border-color: #e85d5d;
}

.form-submit {
  flex: 0 0 auto;
}

.form-status {
  min-height: 1.4em;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
}

.form-status.is-success {
  color: var(--gold);
}

.form-status.is-error {
  color: #e85d5d;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold);
  outline: none;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 13, 15, 0.96);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 0.85rem 1.5rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.75rem;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }

  .waitlist-inner {
    padding: 1.75rem 1.25rem;
  }

  .form-row {
    flex-direction: column;
  }

  .form-submit {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }

  .proof-rail {
    padding: 0.85rem;
  }
}
