/* =========================================================
   ZHUVA — Aurora Night
   ========================================================= */

:root {
  --bg: #050b1f;
  --bg-2: #070f29;
  --bg-3: #0a1535;
  --cyan: #00e5ff;
  --coral: #ff3d8a;
  --gold: #ffd166;
  --text: #f4f7ff;
  --muted: #9fb2d4;
  --border: rgba(159, 178, 212, 0.12);
  --border-strong: rgba(159, 178, 212, 0.22);
  --grad: linear-gradient(135deg, #00e5ff 0%, #ff3d8a 100%);
  --shadow-glow-cyan: 0 0 40px rgba(0, 229, 255, 0.25);
  --shadow-glow-coral: 0 0 40px rgba(255, 61, 138, 0.25);
  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.16,1,.3,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(0, 229, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(255, 61, 138, 0.04), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

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

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

/* =========================================================
   Typography
   ========================================================= */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow-gold { color: var(--gold); }

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
}
.section-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
}
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold-text { color: var(--gold); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #050b1f;
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.25), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 229, 255, 0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
}
.btn-outline:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
  background: rgba(0, 229, 255, 0.06);
}
.btn-outline:active { transform: scale(0.98); }

/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 11, 31, 0.55);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  background: rgba(5, 11, 31, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
}
.logo-mark { width: 32px; height: 32px; }
.logo-word {
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-sm .logo-mark { width: 26px; height: 26px; }
.logo-sm .logo-word { font-size: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 10px 18px; font-size: 13px; }
.nav-cta:hover { color: #050b1f; }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s var(--ease);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 120px;
}
.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.map-svg { width: 100%; height: 100%; display: block; }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 920px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 28px;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-fine {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
  animation: scrollDown 2.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { opacity: 0.4; transform: translateY(-6px); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* Map dot pulses are handled inline via SMIL/CSS in JS */

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   How it works
   ========================================================= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 40px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-3px);
}
.card-illo {
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
}
.card-illo svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.card-num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(159, 178, 212, 0.4);
}

/* =========================================================
   Features
   ========================================================= */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.feature:hover {
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.03);
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* =========================================================
   Privacy
   ========================================================= */

.privacy {
  background:
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(255, 209, 102, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.privacy-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.privacy-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  max-width: 50ch;
}
.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 16px;
}
.privacy-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

/* =========================================================
   Posts
   ========================================================= */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.3);
}
.post-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.post-card:hover .post-image img { transform: scale(1.04); }

.live-tag, .time-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(5,11,31,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}
.live-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.time-tag { color: var(--muted); }

.post-card figcaption {
  padding: 18px 20px 20px;
}
.post-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.post-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.price-card:hover { transform: translateY(-3px); }

.price-card--highlight {
  border-color: rgba(0, 229, 255, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.08), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 61, 138, 0.06), transparent 60%),
    rgba(255,255,255,0.02);
  box-shadow: 0 20px 60px rgba(0, 229, 255, 0.1);
}

.price-flag {
  position: absolute;
  top: -12px;
  left: 36px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad);
  color: #050b1f;
  border-radius: 999px;
}
.price-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.price-amount {
  font-family: var(--display);
  font-weight: 400;
  font-size: 68px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.price-mo {
  font-size: 22px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}
.price-period {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.price-desc {
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.price-list {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-list li {
  font-size: 14.5px;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}
.price-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}
.price-card:not(.price-card--highlight) .price-list li::before {
  background: rgba(159, 178, 212, 0.4);
  box-shadow: none;
}

/* =========================================================
   Access / Email
   ========================================================= */

.access {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.access-glow {
  position: absolute;
  width: 80%;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 229, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.access-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.access-sub {
  margin: 20px 0 36px;
  font-size: 18px;
  color: var(--muted);
}
.access-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(5, 11, 31, 0.6);
  backdrop-filter: blur(10px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.access-form:focus-within {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.08);
}
.access-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
}
.access-form input::placeholder { color: var(--muted); }
.access-form .btn { padding: 12px 22px; }
.btn-loader {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(5,11,31,0.3);
  border-top-color: #050b1f;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.access-form.is-loading .btn-label { opacity: 0; }
.access-form.is-loading .btn-loader { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }

.access-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  max-width: 520px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.05);
  animation: successIn .6s var(--ease) both;
}
.access-success svg { width: 22px; height: 22px; flex-shrink: 0; }
.access-success p { color: var(--text); font-size: 15px; }
@keyframes successIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.access-fine {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: #030817;
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
}
.footer-tag {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 28ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-cols ul li { margin-bottom: 12px; }
.footer-cols a {
  font-size: 14.5px;
  color: var(--text);
  transition: color .2s var(--ease);
}
.footer-cols a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* =========================================================
   Reveal animations
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger inside grids */
.grid-3 .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3) { transition-delay: .16s; }
.grid-4 .reveal:nth-child(2) { transition-delay: .06s; }
.grid-4 .reveal:nth-child(3) { transition-delay: .12s; }
.grid-4 .reveal:nth-child(4) { transition-delay: .18s; }
.posts-grid .reveal:nth-child(2) { transition-delay: .1s; }
.posts-grid .reveal:nth-child(3) { transition-delay: .2s; }
.privacy-list .reveal:nth-child(2) { transition-delay: .06s; }
.privacy-list .reveal:nth-child(3) { transition-delay: .12s; }
.privacy-list .reveal:nth-child(4) { transition-delay: .18s; }
.privacy-list .reveal:nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .privacy-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(5,11,31,0.96); backdrop-filter: blur(20px); padding: 16px 24px 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; margin-top: 12px; }
  .nav-cta { padding: 12px 18px; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }

  .hero { min-height: 92vh; padding: 60px 0 80px; }
  .hero-title { font-size: clamp(44px, 12vw, 72px); }

  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .section-head { margin-bottom: 40px; }

  .access-form { flex-direction: column; padding: 12px; border-radius: 20px; }
  .access-form input { padding: 12px 12px; text-align: center; }
  .access-form .btn { width: 100%; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px 24px; }
}
