/* ============================================================
   ZokiClub — style.css
   Theme: Deep night sky · Magical · Safe for kids
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --color-bg:          #08051a;
  --color-bg-mid:      #0f0a1e;
  --color-bg-surface:  #130d28;
  --color-bg-card:     #1a1235;
  --color-bg-card-hover: #201747;
  --color-accent:      #7c5cfc;   /* Purple — primary */
  --color-accent-2:    #3b9ff8;   /* Blue — secondary */
  --color-accent-glow: rgba(124, 92, 252, 0.35);
  --color-gold:        #f5c842;
  --color-text:        #e8e0ff;
  --color-text-muted:  #9b8ec4;
  --color-text-soft:   #c4bde8;
  --color-white:       #ffffff;
  --color-success:     #34d399;
  --color-border:      rgba(124, 92, 252, 0.2);

  --font-heading: 'Nunito', sans-serif;
  --font-body:    'Quicksand', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px 10px rgba(124, 92, 252, 0.25);

  --max-width: 1200px;
  --header-height: 72px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- UTILITIES ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(124,92,252,0.18), rgba(59,159,248,0.18));
  border: 1px solid var(--color-border);
  color: var(--color-accent-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 16px;
}
.section-tag-light { color: var(--color-gold); border-color: rgba(245,200,66,0.3); background: rgba(245,200,66,0.08); }
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--color-text-muted);
  font-size: 18px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #5b3fd8);
  color: var(--color-white);
  box-shadow: 0 4px 24px rgba(124,92,252,0.45);
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(124,92,252,0.6); }
.btn-ghost {
  background: transparent;
  color: var(--color-text-soft);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { background: rgba(124,92,252,0.1); color: var(--color-white); border-color: var(--color-accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(8, 5, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124,92,252,0.12);
  transition: background 0.3s;
}
.site-header.scrolled { background: rgba(8, 5, 26, 0.95); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: var(--color-white);
  letter-spacing: -0.5px;
}
.logo-icon { font-size: 26px; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--color-white); background: rgba(124,92,252,0.12); }
.nav-cta {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(135deg, var(--color-accent), #5b3fd8);
  color: #fff;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(124,92,252,0.35);
}
.nav-cta:hover { box-shadow: 0 4px 24px rgba(124,92,252,0.55); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(8,5,26,0.97);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-soft);
  padding: 10px 0;
  border-bottom: 1px solid rgba(124,92,252,0.08);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-cta {
  margin-top: 10px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-accent), #5b3fd8);
  color: white;
  padding: 12px;
  border-radius: var(--radius-pill);
  border-bottom: none !important;
}

/* ============================================================
   STARS (CSS animated)
   ============================================================ */
.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.star-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.65) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 70%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 85%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 90%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 50%, rgba(200, 190, 255, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 75%, rgba(180, 220, 255, 0.5) 0%, transparent 100%);
  background-size: 500px 500px;
}
.star-layer-1 { animation: twinkle 8s ease-in-out infinite alternate; opacity: 0.7; }
.star-layer-2 { animation: twinkle 12s ease-in-out 2s infinite alternate; opacity: 0.5; background-size: 700px 700px; }
.star-layer-3 { animation: twinkle 10s ease-in-out 1s infinite alternate; opacity: 0.4; background-size: 900px 900px; }
@keyframes twinkle {
  from { opacity: 0.3; }
  to   { opacity: 0.8; }
}

/* ============================================================
   NEBULA BLOBS
   ============================================================ */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.nebula-1 {
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,92,252,0.18) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: drift 20s ease-in-out infinite alternate;
}
.nebula-2 {
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(59,159,248,0.14) 0%, transparent 70%);
  bottom: 0; right: 10%;
  animation: drift 16s ease-in-out 4s infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0d0820 0%, #08051a 50%, #0a0d2a 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 120px;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245,200,66,0.15), rgba(124,92,252,0.15));
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #a98fff, #5bc8fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title-accent {
  background: linear-gradient(90deg, var(--color-gold), #fa9140);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-soft);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-trust {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* Mascot */
.hero-mascot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-glow {
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(ellipse, rgba(124,92,252,0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
}
.mascot-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: 50%;
  object-fit: cover;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 50px rgba(124,92,252,0.55));
}
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0px); }
}
.mascot-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.sparkle {
  position: absolute;
  font-size: 18px;
  color: var(--color-gold);
  animation: sparkle-anim 3s ease-in-out infinite;
}
.s1 { top: 10%; left: 5%;  animation-delay: 0s;    font-size: 14px; }
.s2 { top: 20%; right: 8%; animation-delay: 1s;    font-size: 22px; }
.s3 { bottom: 20%; left: 15%; animation-delay: 1.8s; font-size: 12px; }
@keyframes sparkle-anim {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

/* Wave */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-bg-mid);
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-soft);
  padding: 8px 32px;
}
.trust-icon { font-size: 22px; }
.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--color-bg-mid);
  padding: 100px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(124,92,252,0.3);
  border-color: rgba(124,92,252,0.35);
}
.step-number {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  color: rgba(124,92,252,0.08);
  line-height: 1;
  user-select: none;
}
.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 12px;
}
.step-desc {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}
/* Step 2 Zoki cameo */
.step-write { border-color: rgba(124,92,252,0.35); }
.step-zoki-cameo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.zoki-cameo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124,92,252,0.4);
  flex-shrink: 0;
}
.cameo-bubble {
  background: rgba(124,92,252,0.15);
  border: 1px solid rgba(124,92,252,0.3);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: #b8a0ff;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--color-bg);
  padding: 100px 0;
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: var(--color-bg-card-hover);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   SAFETY
   ============================================================ */
.safety {
  background: linear-gradient(160deg, #0a0820 0%, #06041a 100%);
  padding: 100px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.safety-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
}
.safety-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.safety-lead {
  font-size: 17px;
  color: var(--color-text-soft);
  margin-bottom: 36px;
  max-width: 540px;
}
.safety-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.safety-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.safety-check {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-success), #22c55e);
  color: #052e1c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}
.safety-item strong {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--color-white);
  display: block;
  margin-bottom: 4px;
}
.safety-item p {
  font-size: 14px;
  color: var(--color-text-muted);
}
/* Safety Zoki cameo */
.safety-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.safety-mascot-bubble {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(124,92,252,0.4);
  box-shadow: 0 0 40px rgba(124,92,252,0.3);
}
.safety-zoki-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.safety-quote {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ============================================================
   JOIN CTA
   ============================================================ */
.join-cta {
  position: relative;
  background: linear-gradient(160deg, #0d0820 0%, #08051a 100%);
  padding: 120px 0;
  overflow: hidden;
}
.join-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.join-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.join-subtitle {
  font-size: 18px;
  color: var(--color-text-soft);
  margin-bottom: 40px;
  line-height: 1.7;
}
.join-form { width: 100%; }
.join-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}
.join-input {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.join-input::placeholder { color: var(--color-text-muted); }
.join-input:focus {
  border-color: var(--color-accent);
  background: rgba(124,92,252,0.08);
}
.btn-join { flex-shrink: 0; }
.join-fine {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}
.footer-brand {
  max-width: 280px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  gap: 56px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.footer-nav-col a {
  font-size: 14px;
  color: var(--color-text-soft);
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--color-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-mascot { order: -1; }
  .mascot-img { max-width: 260px; margin: 0 auto; }
  .mascot-glow { width: 260px; height: 260px; }

  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .safety-inner { grid-template-columns: 1fr; }
  .safety-mascot { display: none; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; gap: 32px; }

  .nav { display: none; }
  .hamburger { display: flex; }

  .trust-divider { display: none; }
  .trust-item { padding: 8px 20px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(32px, 8vw, 48px); }
  .btn { font-size: 15px; padding: 12px 24px; }
  .join-form-row { flex-direction: column; }
  .join-input { min-width: 100%; }
}
