/* ─────────────────────────────────────────────────────────────────
   MiTravel · Design System · Light + Dark
   Inspired by Apple's precision, restraint, and clarity.
───────────────────────────────────────────────────────────────── */

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

:root {
  /* Colour */
  --white:      #ffffff;
  --surface:    #f5f5f7;   /* Apple section background */
  --text:       #1d1d1f;   /* Apple primary text */
  --text-2:     #6e6e73;   /* Apple secondary text */
  --text-3:     #a1a1a6;   /* placeholder / tertiary */
  --border:     #d2d2d7;   /* Apple hairline */
  --green:      #34c759;   /* Apple system green */
  --green-dark: #248a3d;
  --green-pale: rgba(52, 199, 89, 0.10);

  /* Type */
  --font:       -apple-system, BlinkMacSystemFont, "SF Pro Display",
                "Helvetica Neue", Arial, sans-serif;

  /* Radii */
  --r-sm:  8px;
  --r-md:  20px;
  --r-lg:  20px;
  --r-pill: 100px;

  /* Shadow */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08), 0 12px 48px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.10), 0 24px 80px rgba(0,0,0,.10);
}

/* ── DARK MODE VARIABLES ──────────────────────────────────────── */
html[data-theme="dark"] {
  --white:      #000000;
  --surface:    #1c1c1e;
  --text:       #f5f5f7;
  --text-2:     #98989d;
  --text-3:     #636366;
  --border:     #3a3a3c;
  --green-dark: #30d158;
  --green-pale: rgba(52,199,89,0.15);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.5),  0 4px 16px rgba(0,0,0,.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,.6), 0 12px 48px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.7), 0 24px 80px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAV ──────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
nav.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
html[data-theme="dark"] nav.scrolled {
  background: rgba(0,0,0,0.85);
}

.nav-logo {
  display: flex; align-items: flex-end; gap: 8px; text-decoration: none;
}
.nav-logo svg { flex-shrink: 0; }
.nav-wordmark {
  font-size: 19px; font-weight: 600; color: var(--text);
  letter-spacing: -.3px; line-height: 1;
}
.nav-wordmark sup { font-size: 10px; vertical-align: super; font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 13px; color: var(--text-2); text-decoration: none;
  letter-spacing: -.1px; transition: color .2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 500; }

.nav-cta {
  display: inline-block; padding: 6px 16px;
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 500; text-decoration: none;
  border-radius: var(--r-pill); letter-spacing: -.1px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--green-dark); transform: scale(1.02); }

/* ── THEME TOGGLE ─────────────────────────────────────────────── */
.theme-toggle {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.theme-toggle:hover { background: var(--surface); color: var(--text); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links .nav-link { display: none; }
}

/* ── SHARED LAYOUT ────────────────────────────────────────────── */
.section {
  padding: 120px 24px;
}
.section-sm { padding: 80px 24px; }
.section-surface { background: var(--surface); }

.inner { max-width: 1080px; margin: 0 auto; }
.inner-narrow { max-width: 720px; margin: 0 auto; }
.inner-wide  { max-width: 1200px; margin: 0 auto; }

@media (max-width: 768px) {
  .section { padding: 80px 20px; }
  .section-sm { padding: 56px 20px; }
}

/* ── TYPOGRAPHY SCALE ─────────────────────────────────────────── */
.eyebrow {
  font-size: 13px; font-weight: 600; color: var(--green);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 12px;
}

.display {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700; line-height: 1.04; letter-spacing: -.035em;
  color: var(--text);
}

.headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.07; letter-spacing: -.03em;
  color: var(--text);
}

.title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
  color: var(--text);
}

.body-lg {
  font-size: 19px; line-height: 1.55; color: var(--text-2);
  letter-spacing: -.01em;
}

.body {
  font-size: 17px; line-height: 1.55; color: var(--text-2);
  letter-spacing: -.01em;
}

.caption {
  font-size: 13px; line-height: 1.4; color: var(--text-3);
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 28px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; text-decoration: none;
  letter-spacing: -.01em; cursor: pointer; border: none;
  transition: transform .15s, opacity .2s;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--text); color: #fff; }
.btn-secondary:hover { opacity: .85; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--surface); }
.btn-ghost { background: rgba(0,0,0,.05); color: var(--text); }
.btn-ghost:hover { background: rgba(0,0,0,.08); }
html[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.13); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ── DIVIDERS ─────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); }

/* ── REVEAL ANIMATIONS ────────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94),
              transform .7s cubic-bezier(.25,.46,.45,.94);
}
.rv.vis { opacity: 1; transform: none; }

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand {
  font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -.2px;
}
.footer-brand sup { font-size: 9px; vertical-align: super; font-weight: 400; }
.footer-tagline { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-label { font-size: 11px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-2); text-decoration: none; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-col .footer-social { display: flex; gap: 10px; align-items: center; margin: 0; }
.footer-col .footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; padding: 0; margin: 0;
  color: var(--text-2); background: none; border: 0;
  transition: color .2s;
}
.footer-col .footer-social a:hover { color: var(--text); }
.footer-col .footer-social svg {
  width: 20px; height: 20px; fill: currentColor; display: block;
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 12px; color: var(--text-3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: var(--text-3); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--text-2); }

@media (max-width: 640px) {
  .site-footer { padding: 40px 20px 24px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
