/* ============================================================
   THE TRAVEL PLUG — night-flight design system
   Ink      #0B0E14  (deep navy-black)
   Panel    #131824
   Gold     #FFC501  (brand — from logo)
   Paper    #F5F1E8  (warm white text)
   Slate    #8B93A7  (secondary text)
   Teal     #37C3B8  (flight paths only, sparing)
   Type: Instrument Serif (display) / Outfit (body) / Space Grotesk (flight codes)
   ============================================================ */

:root {
  --ink: #0B0E14;
  --panel: #131824;
  --panel-2: #1A2130;
  --gold: #FFC501;
  --gold-dim: #B98F00;
  --paper: #F5F1E8;
  --slate: #8B93A7;
  --teal: #37C3B8;
  --radius: 14px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-code: "Space Grotesk", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- shared ---------- */
.eyebrow {
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.8); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--gold {
  background: var(--gold); color: #171200;
  box-shadow: 0 6px 24px rgba(255, 197, 1, 0.25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255, 197, 1, 0.35); }
.btn--ghost {
  background: transparent; color: var(--paper);
  border-color: rgba(245, 241, 232, 0.25);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--small { padding: 0.6em 1.2em; font-size: 0.85rem; }
.btn--full { width: 100%; }

.section { padding: 7rem clamp(1.2rem, 5vw, 6rem); }
.section--alt { background: linear-gradient(180deg, var(--ink), var(--panel) 30%, var(--ink)); }
.section__head { max-width: 640px; margin-bottom: 3.5rem; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0.4em 0 0.35em;
}
.section__sub { color: var(--slate); font-size: 1.05rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(11,14,20,0.9), rgba(11,14,20,0));
  backdrop-filter: blur(6px);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__brand-mark {
  font-family: var(--font-code); font-weight: 700; font-size: 0.85rem;
  color: #171200; background: var(--gold);
  padding: 0.35em 0.55em; border-radius: 8px; letter-spacing: 0.05em;
}
.nav__brand-name { font-weight: 500; letter-spacing: 0.02em; }
.nav__links { display: flex; gap: 2rem; font-size: 0.92rem; color: var(--slate); }
.nav__links a:hover { color: var(--gold); }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__brand-name { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 0 clamp(1.2rem, 6vw, 7rem);
  overflow: hidden;
}
#flightmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 30% 50%, rgba(11,14,20,0.2), rgba(11,14,20,0.85) 80%),
    linear-gradient(180deg, rgba(11,14,20,0.35), rgba(11,14,20,0.9));
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 720px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  margin: 0.5em 0 0.4em;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub { color: var(--slate); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__ticker {
  margin-top: 2.6rem;
  font-family: var(--font-code);
  font-size: 0.8rem; color: var(--slate);
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.ticker__code { color: var(--gold); }
.hero__scrollcue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(245,241,232,0.3);
  border-radius: 999px; z-index: 2;
}
.hero__scrollcue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translate(-50%, 12px); opacity: 0.3; } }

/* ---------- destinations ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.dest-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.dest-card:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.dest-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s ease; opacity: 0.85;
}
.dest-card:hover img { transform: scale(1.06); }
.dest-card__body {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(11,14,20,0.92) 55%);
}
.dest-card__route {
  font-family: var(--font-code); font-size: 0.72rem;
  letter-spacing: 0.18em; color: var(--gold);
}
.dest-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.9rem; margin: 0.15em 0 0.2em;
}
.dest-card p { color: var(--slate); font-size: 0.92rem; }
.dest-card__cta {
  display: inline-block; margin-top: 0.8rem;
  font-weight: 600; font-size: 0.88rem; color: var(--gold);
}

.disclosure {
  margin-top: 2.5rem; max-width: 60em;
  font-size: 0.82rem; color: var(--slate);
  border-left: 2px solid var(--gold-dim);
  padding-left: 1em;
}

/* ---------- deals: boarding passes ---------- */
.passes { display: grid; gap: 1.2rem; max-width: 880px; }
.pass {
  display: flex; align-items: stretch;
  background: var(--panel-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(245,241,232,0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pass:hover { transform: translateX(6px); border-color: rgba(255,197,1,0.35); }
.pass__main { flex: 1; padding: 1.6rem 1.8rem; }
.pass__tag {
  font-family: var(--font-code); font-size: 0.68rem;
  letter-spacing: 0.2em; color: var(--teal);
}
.pass__route {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0.25em 0 0.15em;
}
.pass__route span { color: var(--gold); font-size: 0.8em; }
.pass__detail { color: var(--slate); font-size: 0.92rem; }
.pass__stub {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 0.7rem;
  padding: 1.6rem 1.8rem;
  border-left: 2px dashed rgba(245,241,232,0.18);
  background: rgba(255,197,1,0.04);
  min-width: 190px;
}
.pass__price { font-family: var(--font-code); font-weight: 700; font-size: 1.25rem; color: var(--gold); }
.pass__price span { font-size: 0.7em; color: var(--slate); font-weight: 400; margin-left: 0.2em; }
@media (max-width: 620px) {
  .pass { flex-direction: column; }
  .pass__stub { border-left: none; border-top: 2px dashed rgba(245,241,232,0.18); min-width: 0; }
}
.deals__more { margin-top: 3rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.deals__more p { color: var(--slate); }
.deals__more em { color: var(--paper); font-style: normal; font-weight: 500; }

/* ---------- how it works ---------- */
.how-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.how-step {
  background: var(--panel); border-radius: var(--radius);
  padding: 2rem 1.8rem;
  border: 1px solid rgba(245,241,232,0.05);
}
.how-step__code {
  font-family: var(--font-code); font-size: 0.7rem;
  letter-spacing: 0.22em; color: var(--gold);
}
.how-step h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; margin: 0.5em 0 0.4em;
}
.how-step p { color: var(--slate); font-size: 0.95rem; }

/* ---------- trust ---------- */
.trust { padding: 0 clamp(1.2rem, 5vw, 6rem) 6rem; }
.trust ul {
  list-style: none;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: rgba(245,241,232,0.08);
  border-radius: var(--radius); overflow: hidden;
}
.trust li {
  background: var(--ink); padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.trust strong { font-weight: 600; font-size: 1rem; }
.trust span { color: var(--slate); font-size: 0.85rem; }

/* ---------- footer ---------- */
.footer {
  padding: 3.5rem clamp(1.2rem, 5vw, 6rem);
  border-top: 1px solid rgba(245,241,232,0.07);
  display: grid; gap: 1.6rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.9rem; color: var(--slate); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.9rem; color: var(--slate); }
.footer__links a:hover { color: var(--gold); }
.footer__legal { font-size: 0.78rem; color: var(--slate); opacity: 0.8; max-width: 62em; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative; z-index: 1;
  width: min(600px, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid rgba(255,197,1,0.18);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.modal__close {
  position: absolute; top: 0.9rem; right: 1rem;
  background: none; border: none; color: var(--slate);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.modal__close:hover { color: var(--gold); }
.modal h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin: 0.35em 0 0.2em; }
.modal__sub { color: var(--slate); margin-bottom: 1.6rem; font-size: 0.95rem; }

.hp { position: absolute; left: -9999px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.field > span, .field--tags legend {
  font-family: var(--font-code); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate);
}
.field input, .field select {
  background: var(--ink);
  border: 1px solid rgba(245,241,232,0.14);
  color: var(--paper);
  border-radius: 10px;
  padding: 0.75em 0.9em;
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--gold);
}
.field--tags { border: none; margin: 0.4rem 0 1.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tags label { position: relative; }
.tags input { position: absolute; opacity: 0; }
.tags span {
  display: inline-block;
  padding: 0.45em 1em;
  border-radius: 999px;
  border: 1px solid rgba(245,241,232,0.2);
  font-size: 0.85rem; color: var(--slate);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tags input:checked + span {
  background: var(--gold); color: #171200; border-color: var(--gold); font-weight: 600;
}
.tags input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-error { color: #FF7A7A; font-size: 0.85rem; margin-bottom: 0.8rem; }
.modal__fineprint { margin-top: 0.9rem; font-size: 0.75rem; color: var(--slate); }

/* success animation */
.modal__success { text-align: center; padding: 1.5rem 0; }
.success-anim { width: 120px; margin: 0 auto 1.2rem; }
.success-anim svg { width: 100%; }
.success-anim__ring {
  fill: none; stroke: var(--gold); stroke-width: 3;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  animation: draw-ring 0.9s ease forwards;
}
.success-anim__plane {
  fill: var(--gold);
  transform-origin: center;
  opacity: 0;
  animation: plane-in 0.6s 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes plane-in {
  from { opacity: 0; transform: scale(0.4) rotate(-30deg); }
  to { opacity: 1; transform: scale(0.55) rotate(0deg); }
}

/* scroll-reveal base (GSAP enhances; harmless without JS) */
.reveal { opacity: 0; transform: translateY(30px); }
.no-js .reveal { opacity: 1; transform: none; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}