/* ============================================================
   GoChinaBudget — Landing Page Styles
   Brand tokens: black bg, neon-green primary, electric-blue secondary
   ============================================================ */

:root {
  --bg-page:        #000000;
  --bg-card:        #111111;
  --bg-elev:        #1a1a1a;
  --text-primary:   #ffffff;
  --text-secondary: #9ca3af;
  --text-muted:     #6b7280;
  --accent:         #00ff88;   /* neon green — primary CTA */
  --accent-ink:     #000000;
  --accent-2:       #0070f3;   /* electric blue — links / hover */
  --border:         rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.16);
  --radius:         8px;
  --radius-lg:      14px;
  --shadow-glow:    0 0 0 0 rgba(0, 255, 136, 0.0);
  --maxw:           1180px;
  --gutter:         24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}
.brand-name { font-size: 16px; }
.beta-badge {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- HERO ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(0, 255, 136, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-title {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 980px;
}
.hero-title .accent { color: var(--accent); }

.hero-sub {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 0 40px;
}

/* ---------- WAITLIST FORM ---------- */
.waitlist {
  display: flex;
  gap: 12px;
  max-width: 640px;
  flex-wrap: wrap;
}
.waitlist-input {
  flex: 1 1 280px;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 16px 18px;
  font: inherit;
  font-size: 16px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 16px 22px;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: #33ff9f;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.18);
}
.btn-primary:active { transform: translateY(0); }
.btn-arrow { display: inline-block; transition: transform 120ms ease; }
.btn-primary:hover .btn-arrow { transform: translateX(2px); }

/* ---------- TRUST MICRO-COPY ---------- */
.trust {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-bolt { color: var(--accent); }

/* ---------- FEATURES ---------- */
.features { padding: 48px 0 96px; }

/* ---- Browse itineraries CTA (landing) ---- */
.browse-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}
.browse-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
  max-width: 600px;
}
.browse-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
  max-width: 560px;
}
.browse-btn { font-size: 15px; padding: 14px 22px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-elev);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  filter: grayscale(0.1);
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.feature-body {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ---------- TOAST ---------- */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .hero { padding: 64px 0 48px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-card { padding: 22px 20px; }
  .features { padding: 32px 0 64px; }
  .waitlist { flex-direction: column; align-items: stretch; }
  .waitlist-input { flex: 1 1 auto; }
  .waitlist-btn { width: 100%; }
  .beta-badge { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .browse-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .browse-btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
