/* ============================================
   AirSelects Landing Page Styles
   ============================================ */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Colors - warm dark palette */
  --bg-primary: #0d0c0b;
  --bg-secondary: #161514;
  --bg-elevated: #1e1d1b;
  --bg-card: #232220;

  --text-primary: #f5f3f0;
  --text-secondary: #a8a5a0;
  --text-muted: #6b6966;

  --accent: #e8a84c;
  --accent-hover: #f0b85c;
  --accent-muted: rgba(232, 168, 76, 0.15);

  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(232, 168, 76, 0.3);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

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

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 680px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 60px rgba(232, 168, 76, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo-img {
  height: 28px;
  width: auto;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-muted);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.hero__headline em {
  font-style: italic;
  color: var(--accent);
}

.hero__subhead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero__form {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.hero__input {
  flex: 1;
  max-width: 280px;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.hero__input::placeholder {
  color: var(--text-muted);
}

.hero__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bg-primary);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn--large {
  padding: var(--space-md) var(--space-lg);
  font-size: 1.0625rem;
}

.hero__trust {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  padding: 20px;
  margin: -20px;
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, rgba(232, 168, 76, 0.25) 0%, rgba(232, 168, 76, 0.08) 40%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  padding: var(--space-2xl) 0;
  position: relative;
}

.problem__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.problem__content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.problem__content p:last-child {
  margin-bottom: 0;
}

.problem__content .highlight {
  color: var(--accent);
  font-weight: 500;
}

.problem__content .emphasis {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ============================================
   BEFORE / AFTER SECTION
   ============================================ */
.compare {
  padding: var(--space-2xl) 0;
}

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

.compare__card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.compare__card--before {
  background: var(--bg-secondary);
}

.compare__card--after {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.compare__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.compare__card--after .compare__label {
  color: var(--accent);
}

.compare__list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.compare__list li {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.compare__list li::before {
  content: '−';
  color: var(--text-muted);
  font-weight: 500;
}

.compare__card--after .compare__list li::before {
  content: '+';
  color: var(--accent);
}

.compare__result {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.compare__card--after .compare__result {
  color: var(--accent);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.steps__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.steps__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.steps__headline {
  font-size: clamp(2rem, 4vw, 3rem);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.step {
  position: relative;
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.step:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--accent);
  background: var(--accent-muted);
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust__badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trust__icon {
  font-size: 1.25rem;
  opacity: 0.7;
}

/* ============================================
   IDENTITY SECTION
   ============================================ */
.identity {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.identity__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.identity__headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.identity__copy {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto var(--space-md);
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta {
  padding: var(--space-2xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.cta__subhead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.cta__form {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.cta__input {
  width: 280px;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.cta__input::placeholder {
  color: var(--text-muted);
}

.cta__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.cta__trust {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.footer__logo {
  height: 24px;
  width: auto;
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__visual {
    order: -1;
  }

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

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

@media (max-width: 600px) {
  .hero__form {
    flex-direction: column;
  }

  .hero__input {
    max-width: 100%;
  }

  .cta__form {
    flex-direction: column;
    align-items: center;
  }

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