/* ============================================================
   Aviator's Lounge – Landing Page Stylesheet
   ============================================================ */

:root {
  --ink:       #050D1A;
  --surface:   #0B1A30;
  --surface-2: #112240;
  --primary:   #0A3D91;
  --primary-l: #1552B8;
  --accent:    #FFC107;
  --accent-d:  #E6AC00;
  --text:      #E8EEF8;
  --muted:     rgba(232, 238, 248, 0.52);
  --border:    rgba(255, 255, 255, 0.065);
  --border-2:  rgba(255, 255, 255, 0.13);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;

  --radius:    14px;
  --radius-lg: 24px;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 7rem;

  --container: min(1140px, 100% - 3rem);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }
.delay-4 { transition-delay: 0.12s; }
.delay-5 { transition-delay: 0.15s; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0A0A0A;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.22);
}
.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.32);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: var(--container);
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-logo svg { width: 30px; height: 30px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }


/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Atmospheric glow – full viewport width */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 61, 145, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 75% 50%, rgba(10, 61, 145, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

/* HUD grid – full viewport width */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding-block: 108px 80px;
  position: relative;
  z-index: 1;
}

.hero-content { }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1.5px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.97rem, 1.8vw, 1.1rem);
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 2.4rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.store-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn-label { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn-label small { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.store-btn-label strong { font-size: 0.92rem; font-weight: 600; }

/* ── Phone Mockup ───────────────────────────────────────────── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  inset: -80px;
  background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(10, 61, 145, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.phone-frame {
  width: 256px;
  height: 530px;
  border-radius: 42px;
  background: var(--surface);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.025),
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(10, 61, 145, 0.18);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  width: 96px;
  height: 26px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}
.phone-screen {
  padding: 0 14px 14px;
}

.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
}

.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}
.app-header-title { font-size: 16px; font-weight: 700; }
.app-reg-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(10, 61, 145, 0.5);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
}

.app-hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  border-radius: 15px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.app-hero-label { font-size: 7.5px; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; }
.app-hero-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 3px; }
.app-hero-sub { font-size: 8px; color: rgba(255, 255, 255, 0.55); }

.app-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}
.app-tile {
  background: var(--surface-2);
  border-radius: 11px;
  padding: 9px 10px;
}
.app-tile-label { font-size: 7px; color: rgba(255, 255, 255, 0.45); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.app-tile-value { font-size: 15px; font-weight: 700; }

.app-recent-header { font-size: 8.5px; color: rgba(255, 255, 255, 0.45); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 7px; }

.app-flight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.app-flight-left { display: flex; align-items: center; gap: 6px; }
.app-flight-route { font-size: 10px; font-weight: 600; }
.app-flight-chip {
  font-size: 7px;
  background: rgba(10, 61, 145, 0.4);
  color: rgba(255, 255, 255, 0.65);
  padding: 2px 5px;
  border-radius: 4px;
}
.app-flight-chip.fstd { background: rgba(255, 193, 7, 0.15); color: rgba(255, 193, 7, 0.8); }
.app-flight-time { font-size: 9.5px; color: var(--accent); font-weight: 700; }

/* ── Trust Bar ──────────────────────────────────────────────── */
.trust-bar {
  border-block: 1px solid var(--border);
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.012);
}
.trust-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-l);
  flex-shrink: 0;
}
.trust-sep { color: rgba(255, 255, 255, 0.12); font-size: 1rem; }

/* ── Section base ───────────────────────────────────────────── */
.section { padding-block: var(--space-2xl); }
.section-alt { background: var(--surface); }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-sub {
  margin-top: 0.875rem;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}
.section-header { margin-bottom: var(--space-xl); }

/* ── Features ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feat-card {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.feat-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.feat-card.wide { grid-column: span 2; }

.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(10, 61, 145, 0.22);
  border: 1px solid rgba(10, 61, 145, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.feat-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.feat-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FTL Section ────────────────────────────────────────────── */
.ftl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.ftl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: var(--space-md);
}
.ftl-tag {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.ftl-tag.active {
  background: rgba(10, 61, 145, 0.28);
  color: var(--text);
  border-color: rgba(21, 82, 184, 0.55);
}

.reg-switcher { margin-top: 1.75rem; }
.reg-label {
  font-size: 0.73rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.reg-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  gap: 3px;
}
.reg-tab {
  padding: 6px 18px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.reg-tab.active {
  background: var(--primary);
  color: white;
}

.ftl-visual {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
}
.ftl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.ftl-row:last-child { border-bottom: none; }
.ftl-row-name { font-size: 0.9rem; font-weight: 600; }
.ftl-row-desc { font-size: 0.75rem; color: var(--muted); margin-top: 1px; }
.ftl-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 193, 7, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ── Export ─────────────────────────────────────────────────── */
.export-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: var(--space-xl);
}
.export-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--ink);
  transition: border-color 0.25s, transform 0.25s;
}
.export-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.export-format {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.export-format.csv  { color: #4CAF50; }
.export-format.pdf  { color: #EF5350; }
.export-format.json { color: #42A5F5; }
.export-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.45rem; }
.export-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ── Download CTA ───────────────────────────────────────────── */
.download-section {
  background: linear-gradient(140deg, var(--primary) 0%, #081F56 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.download-section .container { position: relative; z-index: 1; }

.download-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.download-sub {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}
.download-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0.875rem 1.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.store-btn-lg:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.store-btn-lg svg { width: 30px; height: 30px; flex-shrink: 0; }
.store-btn-lg-label { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-btn-lg-label small { font-size: 0.68rem; color: rgba(255, 255, 255, 0.65); text-transform: uppercase; letter-spacing: 0.06em; }
.store-btn-lg-label strong { font-size: 1rem; font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--ink);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet landscape / small desktop: 1024px */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feat-card.wide { grid-column: span 2; }
}

/* Tablet portrait: 900px */
@media (max-width: 900px) {
  :root { --space-2xl: 5rem; }

  .nav-links { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 110px 64px;
    gap: var(--space-lg);
  }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-frame { width: 220px; height: 455px; }
  .app-hero-value { font-size: 26px; }
  .app-tile-value { font-size: 13px; }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .feat-card.wide { grid-column: span 2; }

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

  .export-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Mobile: 640px */
@media (max-width: 640px) {
  :root {
    --space-2xl: 4rem;
    --space-xl: 3rem;
  }

  .features-grid { grid-template-columns: 1fr; }
  .feat-card.wide { grid-column: span 1; }

  .export-cards { grid-template-columns: 1fr; }

  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .phone-frame { width: 190px; height: 395px; }
  .app-hero-value { font-size: 22px; }

  .trust-inner { gap: 8px 16px; }
  .trust-sep { display: none; }

  .download-buttons { flex-direction: column; align-items: center; }
  .store-btn-lg { width: 100%; max-width: 280px; justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Small mobile: 400px */
@media (max-width: 400px) {
  :root { --container: min(1140px, 100% - 1.5rem); }

  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; justify-content: center; }
  .nav-inner { padding-inline: 0.25rem; }
}

/* ── Subpage (Datenschutz / Impressum) ───────────────────────── */
.subpage-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 120px var(--space-md) var(--space-2xl);
}
.subpage-wrap h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.subpage-wrap .lead {
  color: var(--muted);
  margin-bottom: var(--space-xl);
  font-size: 1rem;
}
.subpage-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
}
.subpage-wrap p, .subpage-wrap li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}
.subpage-wrap ul { padding-left: 1.4rem; margin-top: 0.5rem; }
.subpage-wrap li { margin-bottom: 0.3rem; }
.subpage-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.subpage-wrap .placeholder-note {
  display: block;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: rgba(255, 193, 7, 0.85);
  margin: 1rem 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
