/* TravelShield — Luxury travel + concierge SaaS direction
   Design tokens, base styles, mobile-responsive layout. */

:root {
  /* ---- Brand: premium deep blue ------------------------------ */
  --brand-900: #06122A;   /* near-black blue */
  --brand-800: #0A1C3D;
  --brand-700: #0F2A5C;
  --brand-600: #143A7A;
  --brand-500: #1E5BC6;   /* hero blue */
  --brand-400: #2E73E8;
  --brand-300: #5E97F4;
  --brand-200: #B7CDF6;
  --brand-100: #E2ECFB;
  --brand-050: #F2F6FE;

  /* ---- Luxury accent (used sparingly) ------------------------ */
  --gold-600: #B68B3C;
  --gold-500: #C9A85F;
  --gold-300: #E6D29A;
  --gold-050: #F8F1DF;

  /* ---- Surfaces ---------------------------------------------- */
  --bg:           #F6F8FC;
  --bg-card:      #FFFFFF;
  --bg-soft:      #EEF2F9;
  --bg-deep:      var(--brand-900);
  --bg-deep-2:    var(--brand-800);

  /* ---- Ink ---------------------------------------------------- */
  --ink-strong:   #0A1530;
  --ink:          #1F2A44;
  --ink-mute:     #5B6680;
  --ink-faint:    #9099AE;
  --on-deep:      #ECEFF7;
  --on-deep-mute: #9DA8C2;

  /* ---- Lines -------------------------------------------------- */
  --line:         #E3E8F2;
  --line-soft:    #EEF1F8;
  --line-on-deep: rgba(255,255,255,0.10);

  /* ---- Signals ------------------------------------------------ */
  --signal:       #DC2626;
  --signal-soft:  #FEE4E4;
  --good:         #15803D;
  --good-soft:    #DCFBE9;
  --bad:          #B91C1C;

  /* ---- Gradients (the secret sauce) -------------------------- */
  --grad-hero: radial-gradient(120% 80% at 80% 0%,
                  #2E73E8 0%, #1E5BC6 25%,
                  #0F2A5C 60%, #06122A 100%);
  --grad-hero-soft: linear-gradient(180deg, #F2F6FE 0%, #F6F8FC 100%);
  --grad-card-blue: linear-gradient(140deg, #1E5BC6 0%, #0A1C3D 100%);
  --grad-card-glass: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%);
  --grad-gold: linear-gradient(135deg, #E6D29A 0%, #B68B3C 100%);
  --grad-shimmer: linear-gradient(120deg,
                    rgba(255,255,255,0.0) 0%,
                    rgba(255,255,255,0.10) 40%,
                    rgba(255,255,255,0.0) 80%);

  /* ---- Radii -------------------------------------------------- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* ---- Shadows (soft, premium) ------------------------------- */
  --sh-xs: 0 1px 2px rgba(10, 28, 61, 0.04);
  --sh-sm: 0 4px 12px -4px rgba(10, 28, 61, 0.08), 0 2px 4px rgba(10, 28, 61, 0.04);
  --sh:    0 12px 32px -10px rgba(10, 28, 61, 0.18), 0 4px 12px -2px rgba(10, 28, 61, 0.08);
  --sh-lg: 0 28px 60px -16px rgba(10, 28, 61, 0.28), 0 8px 20px -4px rgba(10, 28, 61, 0.10);
  --sh-glow: 0 0 0 6px rgba(46, 115, 232, 0.10), 0 20px 40px -10px rgba(30, 91, 198, 0.40);
  --sh-blue: 0 16px 40px -12px rgba(30, 91, 198, 0.55);
  --sh-deep: 0 30px 60px -20px rgba(6, 18, 42, 0.60);

  /* ---- Layout ------------------------------------------------- */
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* === Typography ================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500);
}
.eyebrow.on-deep { color: var(--on-deep-mute); }
.eyebrow.on-deep .dot { background: var(--brand-300); box-shadow: 0 0 0 4px rgba(94,151,244,0.18); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; margin: 0; color: var(--ink-strong); }
h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; }
h4 { font-size: 17px; line-height: 1.3; }

.serif { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -0.02em; }

p, .body { color: var(--ink-mute); }
.body-lg { font-size: 18px; line-height: 1.55; color: var(--ink-mute); }
.body { font-size: 15.5px; line-height: 1.62; }
.body-sm { font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* === Layout helpers =========================================== */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.rule { height: 1px; background: var(--line); border: 0; }

/* === Buttons ================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px;
  border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .2s ease;
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover { box-shadow: 0 18px 44px -10px rgba(30, 91, 198, 0.70); }
.btn-dark { background: var(--ink-strong); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--bg-card); color: var(--ink-strong); box-shadow: var(--sh-sm); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--ink-strong); }
.btn-ghost-on-deep {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}
.btn-ghost-on-deep:hover { background: rgba(255,255,255,0.06); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 28px; font-size: 16px; }

/* === Cards ==================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-xs);
}
.card-soft { background: var(--bg-soft); border-radius: var(--r-lg); padding: 28px; }

/* === Chips & tags ============================================= */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink);
}
.hairline-tag {
  display: inline-flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 14px;
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--ink-mute);
  box-shadow: var(--sh-xs);
}
.hairline-tag.on-deep {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: var(--on-deep-mute);
  backdrop-filter: blur(6px);
}
.gold-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--gold-050); color: var(--gold-600);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--gold-300);
}

/* === Dots ===================================================== */
.dot-good { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.dot-bad  { width: 7px; height: 7px; border-radius: 50%; background: var(--bad);  }
.dot-acc  { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); }
.dot-gold { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }

/* === Hero specifics ========================================== */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--on-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* subtle starfield-like dotted texture */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px, 22px 22px;
  background-position: 0 0, 11px 11px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at 30% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  /* soft glow on right */
  content: '';
  position: absolute; right: -15%; top: -15%;
  width: 65%; height: 110%;
  background: radial-gradient(closest-side, rgba(94,151,244,0.30), transparent 70%);
  pointer-events: none;
}

/* === Phone mock =============================================== */
.phone {
  width: 320px; height: 660px;
  background: #000;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 30px 80px -10px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0b1a36 0%, #050b1d 100%);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  color: var(--on-deep);
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; background: #000; border-radius: 999px; z-index: 2;
}

/* === Nav ====================================================== */
.nav-link {
  position: relative; font-size: 14.5px; color: var(--ink); font-weight: 500;
  padding: 8px 4px;
}
.nav-link:hover { color: var(--brand-500); }
.nav-link.on-deep { color: rgba(255,255,255,0.85); }
.nav-link.on-deep:hover { color: #fff; }

/* === Comparison table ========================================= */
.cmp { display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr; }
.cmp > * { padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.cmp .cmp-h {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); font-family: 'JetBrains Mono', monospace;
}
.cmp .cmp-ts { background: var(--brand-050); }

/* === Footer =================================================== */
.footer { background: var(--bg-deep); color: var(--on-deep); }
.footer a { color: var(--on-deep-mute); font-size: 14px; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer h5 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-deep-mute); font-family: 'JetBrains Mono', monospace;
  font-weight: 500; margin: 0 0 18px 0;
}

/* === Animations =============================================== */
@keyframes pulseRing {
  0%   { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes shimmer {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* === Booking widget =========================================== */
.booking {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  padding: 10px;
  box-shadow: var(--sh-deep);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 4px;
  align-items: stretch;
}
.booking-field {
  padding: 14px 18px;
  border-radius: var(--r);
  background: transparent;
  transition: background .15s;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.booking-field:hover { background: rgba(255,255,255,0.06); }
.booking-field .lbl {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-deep-mute);
}
.booking-field .val {
  font-size: 15px; color: #fff; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booking-field + .booking-field { border-left: 1px solid rgba(255,255,255,0.08); }
.booking-cta {
  display: flex; align-items: center;
  padding: 6px;
}
.booking-cta .btn {
  height: 100%; min-height: 60px; padding: 0 26px;
}

/* === Logo cluster ============================================= */
.logo-wall {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px 48px;
  opacity: 0.7;
}
.logo-wall > div {
  font-family: 'Newsreader', serif;
  font-size: 22px; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* === Mobile responsiveness ==================================== */
@media (max-width: 1100px) {
  :root { --section-y: clamp(64px, 8vw, 96px); }
  .cmp { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .booking {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .booking-field + .booking-field { border-left: 0; }
  .booking-cta {
    grid-column: 1 / -1;
    padding: 8px;
  }
  .booking-cta .btn { width: 100%; justify-content: center; min-height: 54px; }
}
@media (max-width: 768px) {
  :root { --pad: 20px; --section-y: 64px; }
  .hide-mobile { display: none !important; }
  .grid-2-mobile { grid-template-columns: 1fr !important; }
  .grid-3-mobile { grid-template-columns: 1fr !important; }
  .grid-4-mobile { grid-template-columns: 1fr 1fr !important; }
  .stack-mobile { flex-direction: column !important; align-items: stretch !important; }
  .reverse-mobile { flex-direction: column-reverse !important; }
  .text-center-mobile { text-align: center !important; }
  h1 { font-size: clamp(36px, 9vw, 52px); }
  h2 { font-size: clamp(28px, 6vw, 36px); }
  .btn-lg { height: 54px; font-size: 15px; }
  .cmp { grid-template-columns: 1fr; }
  .cmp > * { border-left: 0 !important; border-right: 0 !important; }
}
