/* Polaris Landing — Desert Dusk Theme
   Premium travel intelligence platform
   Cinematic, calm, intentional */

:root {
  /* Primary dark backgrounds */
  --bg-deepest: #0B1220;
  --bg-dark: #121A2B;
  --bg-surface: #1A2438;

  /* Warm accents */
  --accent-primary: #F2A65A;
  --accent-secondary: #E89C4A;
  --accent-glow: #FFE7A3;

  /* Text */
  --text-primary: #F4F1EA;
  --text-muted: #B8C0D1;

  /* Transparent overlays */
  --overlay-dark: rgba(11, 18, 32, 0.85);
  --overlay-dusk: rgba(18, 26, 43, 0.7);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-deepest);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.page {
  position: relative;
}

/* ========== NAVBAR ========== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  transition: background var(--duration) var(--ease-out);
}

.nav.scrolled {
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(12px);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity var(--duration) var(--ease-out);
}

.nav__link:hover {
  opacity: 0.85;
}

/* ========== HERO ========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 5rem var(--space-md) var(--space-xl);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.5) 0%,
    rgba(11, 18, 32, 0.2) 40%,
    rgba(11, 18, 32, 0.4) 100%
  );
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 80%,
    rgba(242, 166, 90, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

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

.hero__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(244, 241, 234, 0.92);
  margin-bottom: var(--space-md);
}

.hero__subheadline {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.hero__actions {
  margin-top: var(--space-lg);
}

.hero__secondary {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--duration) var(--ease-out);
}

.hero__secondary:hover {
  color: var(--text-primary);
}

/* Fallback gradient when no hero image */
.hero__bg.no-image {
  background-image: linear-gradient(
    180deg,
    var(--bg-deepest) 0%,
    var(--bg-dark) 40%,
    #1a2840 70%,
    var(--bg-deepest) 100%
  );
}

/* ========== PROBLEM SECTION ========== */

.problem {
  padding: var(--space-2xl) var(--space-md);
}

.problem__container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.problem__headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.problem__text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ========== FEATURES SECTION ========== */

.features {
  padding: var(--space-2xl) var(--space-md);
  background-color: var(--bg-dark);
}

.features__container {
  max-width: 1200px;
  margin: 0 auto;
}

.features__header {
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.features__headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.features__subheadline {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

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

.feature-card:nth-child(odd) {
  grid-column: 1;
}

.feature-card:nth-child(even) {
  grid-column: 2;
}

.feature-card {
  background-color: var(--bg-surface);
  border-radius: 8px;
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

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

/* ========== BRAND STORY ========== */

.brand-story {
  padding: var(--space-2xl) var(--space-md);
  background-color: var(--bg-deepest);
}

.brand-story__container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.brand-story__headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.brand-story__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ========== WAITLIST SECTION ========== */

.waitlist {
  padding: var(--space-2xl) var(--space-md);
  background-color: var(--bg-dark);
}

.waitlist__container {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.waitlist__headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.waitlist__subtext {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.waitlist__message {
  font-size: 0.9375rem;
  line-height: 1.5;
  min-height: 1.5em;
}

.waitlist__message--success {
  color: var(--accent-glow);
}

.waitlist__message--error {
  color: var(--accent-secondary);
}

.waitlist__input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--duration) var(--ease-out);
}

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

.waitlist__input:focus {
  border-color: var(--accent-primary);
}

.waitlist__submit {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--bg-deepest);
  background-color: var(--accent-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-out);
}

.waitlist__submit:hover {
  background-color: var(--accent-secondary);
}

/* ========== FOOTER ========== */

.footer {
  padding: var(--space-lg) var(--space-md);
  background-color: var(--bg-deepest);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__logo {
  text-decoration: none;
}

.footer__logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--duration) var(--ease-out);
}

.footer__link:hover {
  color: var(--text-primary);
}

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

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .nav {
    padding: var(--space-md);
  }

  .nav__links {
    display: none;
  }

  .hero {
    padding: 5rem var(--space-md) var(--space-xl);
  }

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

  .footer__container {
    gap: var(--space-sm);
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .waitlist__form {
    width: 100%;
  }
}
