/* ============================================
   Visit All 50 States — Design System & Styles
   visitall50states.com
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-bg:          #0b0f1a;
  --color-bg-surface:  #121828;
  --color-bg-card:     #1a2236;
  --color-bg-elevated: #222c42;
  --color-border:      #2a3550;

  --color-amber:       #f59e0b;
  --color-amber-light: #fbbf24;
  --color-amber-dark:  #d97706;
  --color-amber-glow:  rgba(245, 158, 11, 0.15);

  --color-text:        #f1f5f9;
  --color-text-muted:  #94a3b8;
  --color-text-dim:    #64748b;

  --color-white:       #ffffff;
  --color-success:     #22c55e;

  /* Typography */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Sizing */
  --container-max: 1140px;
  --container-narrow: 800px;

  /* Borders */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-amber);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-amber-light);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  color: var(--color-text-muted);
  max-width: 65ch;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-amber-light), var(--color-amber-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-4xl) 0;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  color: #0b0f1a;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.45);
  color: #0b0f1a;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-amber);
  border: 2px solid var(--color-amber);
}

.btn--outline:hover {
  background: var(--color-amber-glow);
  color: var(--color-amber-light);
  border-color: var(--color-amber-light);
}

.btn--lg {
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
}

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-amber);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* --- Badge (coming soon, etc.) --- */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge--amber {
  background: var(--color-amber-glow);
  color: var(--color-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

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

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo:hover {
  color: var(--color-white);
}

.nav__logo-icon {
  font-size: 1.4rem;
}

.nav__cta {
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
}

/* Subtle road/grid texture */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-amber);
  margin-bottom: var(--space-lg);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--color-text-muted);
  margin: 0 auto var(--space-2xl);
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.hero__note {
  margin-top: var(--space-xl);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  padding: var(--space-xl) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 640px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stats__number {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--color-amber);
  line-height: 1.1;
}

.stats__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  text-align: center;
}

.features__header {
  margin-bottom: var(--space-3xl);
}

.features__header p {
  margin: var(--space-md) auto 0;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

.feature-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--color-amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
}

.feature-card__title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.feature-card__desc {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--color-bg-surface);
  text-align: center;
}

.how-it-works__header {
  margin-bottom: var(--space-3xl);
}

.how-it-works__header p {
  margin: var(--space-md) auto 0;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  counter-reset: step-counter;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }
}

.step {
  counter-increment: step-counter;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-amber);
  border: 2px solid var(--color-amber);
  border-radius: var(--radius-full);
  background: var(--color-amber-glow);
}

.step__title {
  font-size: 1.15rem;
}

.step__desc {
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================
   COMMUNITY CTA
   ============================================ */
.community-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--color-amber-glow) 0%, transparent 70%);
  pointer-events: none;
}

.community-cta__content {
  position: relative;
  z-index: 1;
}

.community-cta h2 {
  margin-bottom: var(--space-lg);
}

.community-cta p {
  margin: 0 auto var(--space-2xl);
  font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-amber);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

@media (min-width: 640px) {
  .footer__copy {
    text-align: right;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-amber { color: var(--color-amber); }
.text-muted { color: var(--color-text-muted); }
