/* ============================================================
   YouTunes — Global Stylesheet
   Palette inspired by "Colors of Vishnu" (used purely as a
   modern color guide — no religious imagery or symbolism).
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Core palette */
  --deep-blue: #101a4d;
  --deep-blue-2: #1b2a7a;
  --royal-purple: #6a2c8f;
  --royal-purple-2: #8a3fb0;
  --gold-amber: #f5a623;
  --gold-amber-2: #ffc247;
  --lotus-pink: #ff8fb1;
  --lotus-pink-2: #ffb3c9;

  /* Neutrals */
  --ink: #14162b;
  --ink-soft: #3a3d5c;
  --muted: #6b6f8d;
  --paper: #fdfbf7;
  --paper-2: #f6f2ec;
  --line: rgba(20, 22, 43, 0.10);

  /* Effects */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 6px 20px rgba(16, 26, 77, 0.08);
  --shadow: 0 18px 50px rgba(16, 26, 77, 0.14);
  --shadow-lg: 0 30px 80px rgba(16, 26, 77, 0.22);

  --grad-warm: linear-gradient(120deg, var(--gold-amber) 0%, var(--lotus-pink) 55%, var(--royal-purple-2) 100%);
  --grad-royal: linear-gradient(135deg, var(--deep-blue) 0%, var(--royal-purple) 60%, var(--deep-blue-2) 100%);
  --grad-text: linear-gradient(100deg, var(--gold-amber-2), var(--lotus-pink) 45%, var(--royal-purple-2));

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p { margin: 0 0 1.1em; }

::selection { background: var(--gold-amber); color: var(--deep-blue); }

/* ---------- Layout Helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal-purple);
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(253, 251, 247, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-warm);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
  position: relative;
  flex: none;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  mix-blend-mode: overlay;
}

.brand span { color: var(--deep-blue); }
.brand span b { color: var(--royal-purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--deep-blue);
  background: rgba(106, 44, 143, 0.09);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--deep-blue);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(255, 194, 71, 0.30), transparent 60%),
    radial-gradient(900px 520px at 92% 8%, rgba(255, 143, 177, 0.28), transparent 62%),
    radial-gradient(1000px 700px at 60% 120%, rgba(106, 44, 143, 0.22), transparent 60%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 22, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 43, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-badges li {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-badges li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 9px;
  background: var(--grad-warm);
  vertical-align: middle;
}

/* Floating decorative orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.orb.a { width: 120px; height: 120px; top: 14%; left: 6%; background: radial-gradient(circle at 30% 30%, var(--gold-amber-2), transparent 70%); }
.orb.b { width: 90px; height: 90px; top: 62%; left: 12%; background: radial-gradient(circle at 30% 30%, var(--lotus-pink), transparent 70%); animation-delay: -3s; }
.orb.c { width: 150px; height: 150px; top: 20%; right: 5%; background: radial-gradient(circle at 30% 30%, var(--royal-purple-2), transparent 70%); animation-delay: -5s; }
.orb.d { width: 70px; height: 70px; bottom: 12%; right: 14%; background: radial-gradient(circle at 30% 30%, var(--gold-amber), transparent 70%); animation-delay: -1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-22px) translateX(10px); }
}

/* ---------- Section headings ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-warm);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(106, 44, 143, 0.22);
}
.card:hover::before { opacity: 1; }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(106, 44, 143, 0.16));
  color: var(--royal-purple);
}

.card .icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Messenger / How it works band ---------- */
.band {
  background: var(--grad-royal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.band::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 194, 71, 0.55), transparent 65%);
  pointer-events: none;
}

.band::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -100px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 143, 177, 0.5), transparent 65%);
  pointer-events: none;
}

.band .band-inner { position: relative; z-index: 1; }

.band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.band p { color: rgba(255, 255, 255, 0.86); max-width: 640px; }

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 40px;
  counter-reset: step;
}

.step {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(6px);
}

.step .num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-amber-2);
  display: block;
  margin-bottom: 10px;
}
.step .num::before { content: "0" counter(step); }

.step h4 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; margin: 0; }

/* ---------- Policies overview ---------- */
.policy-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.policy-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.policy-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal-purple);
  background: rgba(106, 44, 143, 0.10);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.policy-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.policy-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--deep-blue);
  margin-top: 8px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.text-link:hover { gap: 13px; color: var(--royal-purple); }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Legal / Document pages ---------- */
.page-hero {
  padding: 84px 0 56px;
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(255, 194, 71, 0.22), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(106, 44, 143, 0.18), transparent 60%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }

.doc {
  max-width: 820px;
  margin-inline: auto;
}

.doc .updated {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 1.5rem;
  margin-top: 52px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: var(--grad-warm) 1;
  border-image-slice: 0 0 1 0;
}

.doc h3 {
  font-size: 1.12rem;
  margin-top: 30px;
  color: var(--deep-blue);
}

.doc p, .doc li { color: var(--ink-soft); }

.doc ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 1.2em;
}

.doc ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-warm);
}

.doc strong { color: var(--ink); }

.callout {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.10), rgba(106, 44, 143, 0.10));
  border: 1px solid rgba(106, 44, 143, 0.18);
  border-left: 4px solid var(--gold-amber);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.callout strong { color: var(--royal-purple); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 34px;
  margin-top: 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand { max-width: 340px; }
.footer-brand .brand span { color: #fff; }
.footer-brand .brand span b { color: var(--gold-amber-2); }
.footer-brand p { font-size: 0.92rem; margin-top: 16px; color: rgba(255, 255, 255, 0.6); }

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-amber-2); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
}

.footer-bottom p { margin: 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.55); }

.socials { display: flex; gap: 14px; align-items: center; }
.socials a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
}
.socials a:hover { color: var(--gold-amber-2); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 14px; }

  .section { padding: 72px 0; }
  .hero { padding: 84px 0 76px; }
  .band { padding: 48px 28px; }
  .footer-cols { gap: 36px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
