/* ═══════════════════════════════════════════════════════════════════════════
   thetravelhq.app — AURORA FIELD Light & Dark Edition
   Palette sampled from @heydamir 08/20 "Aurora field" (LED matrix, 13px):
     0%   #89addb  (Glacial Sky)
     25%  #9ac69d  (Aurora Mint)
     50%  #477e48  (Boreal Pine)
     75%  #0e251a  (Deep Forest)
     100% #050707  (Midnight Pine)
   Quiet chrome everywhere, one expressive Aurora Field gradient on the hero
   and closing CTA, strict 4px spacing scale, exact nested radii, calm labels.
   ═══════════════════════════════════════════════════════════════════════════ */

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf4f5;
  --bg-elev: #f6fbfb;
  --bg-band: #e5f0ee;
  --surface: #ffffff;
  --nav-bg: rgba(237, 244, 245, 0.88);
  --ink: #0b1d16;
  --ink-soft: #28473c;
  --ink-muted: #506f64;
  --hero-sub-ink: #153126;
  --accent: #185738;
  --accent-2: #2a668a;
  --line: rgba(11, 29, 22, 0.11);
  --line-strong: rgba(11, 29, 22, 0.22);

  --brand-bg: #0e251a;
  --brand-fg: #edf8f2;
  --btn-primary-bg: #0e251a;
  --btn-primary-hover: #183d2c;
  --btn-primary-fg: #edf8f2;
  --btn-ghost-bg: rgba(255, 255, 255, 0.78);
  --btn-ghost-hover: #ffffff;
  --code-bg: rgba(24, 87, 56, 0.08);
  --code-border: rgba(24, 87, 56, 0.18);
  --shell-rim: rgba(255, 255, 255, 0.72);
  --shell-border: rgba(255, 255, 255, 0.85);
  --dot-color: rgba(11, 29, 22, 0.18);
  --url-bg: rgba(11, 29, 22, 0.05);
  --tab-hover: rgba(11, 29, 22, 0.06);

  --hero-bg: linear-gradient(180deg,
    #c6def5 0%,
    #9ec0e4 24%,
    #9ac69d 54%,
    #4a8252 84%,
    #163828 100%);
  --grad-aurora-full: linear-gradient(160deg, #b8d6f0 0%, #89addb 22%, #9ac69d 50%, #477e48 78%, #0e251a 100%);

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-w: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08130e;
  --bg-elev: #0e1e17;
  --bg-band: #0c1913;
  --surface: #10221a;
  --nav-bg: rgba(8, 19, 14, 0.88);
  --ink: #ebf4ef;
  --ink-soft: #bdd4c9;
  --ink-muted: #84a495;
  --hero-sub-ink: #cfe2d8;
  --accent: #9ac69d;
  --accent-2: #89addb;
  --line: rgba(235, 244, 239, 0.12);
  --line-strong: rgba(235, 244, 239, 0.24);

  --brand-bg: #235c3d;
  --brand-fg: #edf8f2;
  --btn-primary-bg: #9ac69d;
  --btn-primary-hover: #b2d6b4;
  --btn-primary-fg: #08130e;
  --btn-ghost-bg: rgba(16, 34, 26, 0.78);
  --btn-ghost-hover: #172f24;
  --code-bg: rgba(154, 198, 157, 0.12);
  --code-border: rgba(154, 198, 157, 0.24);
  --shell-rim: rgba(16, 34, 26, 0.84);
  --shell-border: rgba(154, 198, 157, 0.22);
  --dot-color: rgba(235, 244, 239, 0.24);
  --url-bg: rgba(235, 244, 239, 0.08);
  --tab-hover: rgba(235, 244, 239, 0.08);

  --hero-bg: linear-gradient(180deg,
    #18364a 0%,
    #193c34 32%,
    #132e21 66%,
    #08130e 100%);
  --grad-aurora-full: linear-gradient(160deg, #21445c 0%, #26543d 48%, #0e251a 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
}

/* ── Signature 13px LED-Matrix Texture Layer (@heydamir 08/20) ──────────── */
.led-textured {
  position: relative;
  overflow: hidden;
}
.led-textured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='9' height='9' rx='2.4' fill='none' stroke='%230b2016' stroke-opacity='0.085' stroke-width='1'/%3E%3Ccircle cx='6.5' cy='6.5' r='1.1' fill='%23ffffff' fill-opacity='0.20'/%3E%3C/svg%3E");
  background-size: 13px 13px;
}
:root[data-theme="dark"] .led-textured::before {
  background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='9' height='9' rx='2.4' fill='none' stroke='%239ac69d' stroke-opacity='0.12' stroke-width='1'/%3E%3Ccircle cx='6.5' cy='6.5' r='1.1' fill='%2389addb' fill-opacity='0.14'/%3E%3C/svg%3E");
}
.led-textured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.75'/%3E%3C/svg%3E");
  background-size: 190px 190px;
}
:root[data-theme="dark"] .led-textured::after {
  opacity: 0.12;
  mix-blend-mode: overlay;
}
.led-textured > * {
  position: relative;
  z-index: 1;
}

/* ── Top Navigation ─────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--brand-bg);
  color: var(--brand-fg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a {
  text-decoration: none;
  transition: color 150ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Light / Dark Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--btn-ghost-bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.theme-toggle:hover {
  background: var(--btn-ghost-hover);
  border-color: var(--accent);
  color: var(--ink);
}
.theme-toggle:active { transform: scale(0.96); }
:root[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
}
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-ghost {
  background: var(--btn-ghost-bg);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--btn-ghost-hover);
  border-color: var(--accent);
}
.btn-light {
  background: #edf8f2;
  color: #0b1d16;
  font-weight: 600;
}
.btn-light:hover { background: #ffffff; }
.btn-light-ghost {
  background: rgba(237, 248, 242, 0.12);
  border-color: rgba(237, 248, 242, 0.34);
  color: #edf8f2;
}
.btn-light-ghost:hover { background: rgba(237, 248, 242, 0.22); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }

/* ── Hero Section (Aurora Field Light / Dark) ───────────────────────────── */
.hero {
  padding: 56px 0 80px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
}
.hero-top {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-sub {
  margin: 0 auto 24px;
  max-width: 620px;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--hero-sub-ink);
  line-height: 1.56;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Hero Showcase Frame (Quiet Outer Rim · Exact Nested Radii) ─────────── */
/* Outer 20px - padding 8px = Inner 12px */
.hero-frame-shell {
  padding: 8px;
  border-radius: 20px;
  background: var(--shell-rim);
  border: 1px solid var(--shell-border);
  box-shadow: 0 24px 60px rgba(4, 14, 10, 0.26);
}
.browser-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-color);
}
.browser-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--url-bg);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.hero-demo-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.hero-tab {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.hero-tab:hover { color: var(--ink); background: var(--tab-hover); }
.hero-tab[aria-selected="true"] {
  color: var(--btn-primary-fg);
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  font-weight: 600;
}
.browser-viewport {
  position: relative;
  background: var(--bg);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.viewport-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.caption-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Quick Pillar Strip ─────────────────────────────────────────────────── */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.strip-item {
  background: var(--bg-elev);
  padding: 24px 20px;
}
.strip-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.strip-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.strip-desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
}

/* ── Editorial Feature Showcases ────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-header { max-width: 680px; margin-bottom: 48px; }
.section-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 8px;
}
h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-lead { margin: 0; color: var(--ink-soft); font-size: 16px; }

.feature-stack { display: grid; gap: 72px; }
.feature-row {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: 48px;
  align-items: center;
}
.feature-row.reverse { grid-template-columns: 1.28fr 0.92fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.feature-copy h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.feature-copy p { margin: 0 0 20px; color: var(--ink-soft); }
.feature-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.bullet-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--accent);
}

/* Quiet surface frame with exact nested radius: outer 16px - padding 8px = inner 8px */
.media-frame {
  padding: 8px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(4, 14, 10, 0.10);
}
.media-inner {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.media-inner img { width: 100%; height: auto; display: block; }
.media-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ── Security & Email Ingest Band (Quiet Surface, Zero Noise) ───────────── */
.arch-band {
  padding: 80px 0;
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ingest-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.flow-step {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.flow-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.flow-step h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.flow-step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.sec-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.sec-card h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.sec-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ── Final CTA Card (Quiet Aurora Field Plate · Exact Nested Radii) ────── */
/* Outer 20px - padding 8px = Inner 12px */
.cta-section { padding: 80px 0; }
.cta-card {
  padding: 8px;
  border-radius: 20px;
  background: var(--grad-aurora-full);
  border: 1px solid var(--line);
}
.cta-scrim {
  background: rgba(11, 29, 22, 0.88);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(154, 198, 157, 0.24);
  color: #edf8f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-scrim .section-kicker { color: #9ac69d; }
.cta-scrim h2 { margin: 0 0 8px; color: #ffffff; }
.cta-scrim p { margin: 0; color: rgba(237, 248, 242, 0.84); max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--bg-elev);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 150ms var(--ease-out);
}
.footer-links a:hover { color: var(--ink); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .strip-grid, .ingest-flow { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media { order: unset; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .site-nav-inner { gap: 10px; padding: 10px 0; flex-wrap: nowrap; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; border-radius: var(--radius-sm); }
  .nav-cta { gap: 6px; }
  .theme-toggle { width: 32px; height: 32px; }
  .nav-cta .btn-sm { padding: 6px 10px; font-size: 12px; min-height: 32px; }
  .strip-grid, .ingest-flow, .security-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .hero-frame-shell { padding: 6px; border-radius: 14px; }
  .browser-window { border-radius: 8px; }
  .cta-scrim { padding: 24px; }
}
