@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ── TOKENS ────────────────────────────────────────────────────────────────── */
:root {
  --bg: #07070d;
  --bg-2: #0d0d18;
  --bg-3: #12121f;
  --bg-card: #0f0f1a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(201,169,110,0.3);

  --gold: #c9a96e;
  --gold-dim: #8a6f42;
  --gold-glow: rgba(201,169,110,0.15);
  --cream: #e8e0d0;
  --muted: #6b6475;
  --muted-2: #9a9080;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE TEXTURE OVERLAY ─────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 500; }
p { color: var(--muted-2); }
a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

/* ── NAV ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(7,7,13,0.9) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-logo .kite-icon { font-size: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted-2);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--cream); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--gold) !important;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 13px !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold-glow) !important;
  color: var(--gold) !important;
  opacity: 1 !important;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  font-size: 22px;
  padding: 4px;
}

/* ── STARS BACKGROUND ──────────────────────────────────────────────────────── */
.stars-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ── AMBIENT GLOW ──────────────────────────────────────────────────────────── */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.ambient-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.ambient-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(80,60,120,0.08) 0%, transparent 70%);
  bottom: -100px; left: -150px;
}

/* ── PAGE WRAPPER ──────────────────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── CONTAINER ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── CARD ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition);
}
.card:hover { border-color: rgba(201,169,110,0.12); }

/* ── FORM ELEMENTS ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-label .required { color: var(--gold); margin-left: 3px; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── QUESTION CARD ─────────────────────────────────────────────────────────── */
.question-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}
.question-number {
  font-size: 11px;
  color: var(--gold-dim);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a07840 100%);
  color: #07070d;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--gold);
}
.btn-outline:hover:not(:disabled) {
  background: var(--gold-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--border-hover); color: var(--cream); }

.btn-danger {
  background: transparent;
  color: #d97777;
  border: 1px solid rgba(217,119,119,0.3);
}
.btn-danger:hover:not(:disabled) { border-color: rgba(217,119,119,0.6); background: rgba(217,119,119,0.08); }

.btn-lg { padding: 16px 36px; font-size: 14px; }
.btn-full { width: 100%; }

/* ── SECTION HEADER ────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid rgba(201,169,110,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: 15px; color: var(--muted-2); margin-top: 12px; max-width: 500px; }

/* ── DIVIDER ───────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 48px 0;
}

/* ── TOGGLE ────────────────────────────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 0;
}
.toggle-input { display: none; }
.toggle-track {
  width: 44px; height: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
}
.toggle-input:checked + .toggle-label .toggle-track { background: var(--gold-dim); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--muted);
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle-input:checked + .toggle-label .toggle-thumb {
  left: 23px;
  background: var(--bg);
}
.toggle-text { font-size: 13px; color: var(--muted-2); }

/* ── ALERT ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(180,60,60,0.1); border: 1px solid rgba(180,60,60,0.2); color: #e87070; }
.alert-success { background: rgba(70,160,90,0.1); border: 1px solid rgba(70,160,90,0.2); color: #70c880; }

/* ── KITE FLYING ANIMATION ─────────────────────────────────────────────────── */
.kite-float {
  animation: kiteFloat 4s ease-in-out infinite;
  display: inline-block;
}
@keyframes kiteFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* ── STATUS BADGE ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-flying {
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.25);
  color: var(--gold);
}
.badge-caught {
  background: rgba(70,160,90,0.1);
  border: 1px solid rgba(70,160,90,0.25);
  color: #70c880;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 260px; }
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.footer-col h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--muted-2); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-heart { color: var(--gold); }

/* ── PAGE HERO (inner pages) ───────────────────────────────────────────────── */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
}
.page-hero .section-title { font-size: clamp(32px, 5vw, 52px); }

/* ── LOADING SPINNER ───────────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(7,7,13,0.3);
  border-top-color: #07070d;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── FADE IN ANIMATION ─────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.25s; }
.fade-in-3 { animation-delay: 0.4s; }
.fade-in-4 { animation-delay: 0.55s; }

/* ── PROSE (for legal pages) ───────────────────────────────────────────────── */
.prose h2 { font-family: var(--font-display); font-size: 24px; color: var(--cream); margin: 40px 0 16px; font-weight: 400; }
.prose h3 { font-size: 16px; color: var(--cream); margin: 28px 0 10px; }
.prose p { color: var(--muted-2); margin-bottom: 16px; line-height: 1.8; font-size: 14px; }
.prose ul { color: var(--muted-2); margin-bottom: 16px; padding-left: 20px; font-size: 14px; }
.prose ul li { margin-bottom: 8px; line-height: 1.7; }
.prose strong { color: var(--cream); font-weight: 500; }

/* Hide nav-close on desktop by default */
.nav-close { display: none !important; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7,7,13,0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 200;
  }
  .nav-links.open a { font-size: 18px !important; }
  .nav-hamburger { display: block; z-index: 201; }
  .nav-close { display: none; }
  .nav-links.open ~ .nav-hamburger { display: none; }
  .nav-links.open .nav-close { display: block !important; position: fixed; top: 24px; right: 24px; font-size: 24px; color: var(--cream); background: none; border: none; cursor: pointer; z-index: 202; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .card { padding: 20px; }
  .container { padding: 0 16px; }
  .container-sm { padding: 0 16px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 24px; }
}
