/* ============================================================
   Creator Shout - shared theme
   Dark premium theme · purple → blue gradients · glass cards
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
  --bg: #07071a;
  --bg-2: #0c0c26;
  --bg-3: #121232;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-deep: #6d28d9;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #3b82f6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139,92,246,.16), rgba(59,130,246,.16));
  --text: #f2f1ff;
  --muted: #a7a4cf;
  --muted-2: #7c79a8;
  --card: rgba(255,255,255,.045);
  --card-border: rgba(139,92,246,.22);
  --glow: 0 0 24px rgba(139,92,246,.35), 0 8px 40px rgba(0,0,0,.5);
  --radius: 18px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-sig: 'Caveat', cursive;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Animated ambient background: drifting gradient blobs */
.bg-scene {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 15% -5%, rgba(109,40,217,.28), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(800px 700px at 50% 110%, rgba(139,92,246,.14), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { width: 520px; height: 520px; left: -140px; top: -120px;
  background: radial-gradient(circle, rgba(139,92,246,.55), transparent 70%); }
.blob.b2 { width: 460px; height: 460px; right: -120px; top: 22%;
  background: radial-gradient(circle, rgba(59,130,246,.5), transparent 70%);
  animation-delay: -8s; }
.blob.b3 { width: 420px; height: 420px; left: 30%; bottom: -160px;
  background: radial-gradient(circle, rgba(34,211,238,.28), transparent 70%);
  animation-delay: -14s; }
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

/* Starfield / particle canvas sits above blobs */
#stars { position: fixed; inset: 0; z-index: -1; opacity: .7; pointer-events: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-glow { text-shadow: 0 2px 18px rgba(0,0,0,.65), 0 0 42px rgba(139,92,246,.25); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font-family: var(--font-head); font-weight: 700; letter-spacing: .04em;
  border: none; cursor: pointer; text-decoration: none; color: #fff;
  padding: 16px 34px; font-size: 1.02rem; border-radius: 999px;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
  overflow: hidden; isolation: isolate;
}
.btn-primary {
  background: var(--gradient);
  box-shadow: 0 6px 28px rgba(124,58,237,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
/* shine sweep */
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); transition: left .6s ease; z-index: 1;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(124,58,237,.65), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-ghost {
  background: rgba(139,92,246,.08); color: var(--text);
  border: 1px solid rgba(139,92,246,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(139,92,246,.16);
  box-shadow: 0 8px 28px rgba(139,92,246,.3); }

.btn-sm { padding: 10px 22px; font-size: .88rem; }

/* Wobble CTA */
@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-2.5deg) scale(1.04); }
  40% { transform: rotate(2.5deg) scale(1.04); }
  60% { transform: rotate(-1.5deg) scale(1.02); }
  80% { transform: rotate(1.5deg) scale(1.02); }
}
.btn-wobble { animation: wobble 2.6s ease-in-out infinite; }
.btn-wobble:hover { animation-play-state: paused; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.card h3, .card h4 { text-shadow: 0 2px 12px rgba(0,0,0,.6); }

.section-label {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--purple-light);
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.35);
  padding: 8px 18px; border-radius: 999px; margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 640px;
  text-shadow: 0 1px 8px rgba(0,0,0,.55); }

/* 3D tilt helper */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Inputs */
.input, select.input, textarea.input {
  width: 100%; background: rgba(0,0,0,.35); border: 1px solid rgba(139,92,246,.3);
  color: var(--text); border-radius: 12px; padding: 13px 16px; font-size: .98rem;
  font-family: var(--font-body); outline: none; transition: border .2s, box-shadow .2s;
}
.input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.22); }
.input::placeholder { color: var(--muted-2); }
label.lbl { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* Badge */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,.4); }
.badge.soon { background: rgba(34,211,238,.14); color: var(--cyan);
  border: 1px solid rgba(34,211,238,.4); box-shadow: none; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(4,4,16,.72); backdrop-filter: blur(8px); }
.modal-backdrop.open { display: flex; }
.modal { width: 100%; max-width: 480px; animation: popIn .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes popIn { from { transform: scale(.9) translateY(20px); opacity: 0; } }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  z-index: 300; background: var(--bg-3); border: 1px solid var(--card-border);
  padding: 14px 26px; border-radius: 999px; font-weight: 600; opacity: 0;
  transition: all .35s ease; box-shadow: var(--glow); pointer-events: none;
  max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple-deep), var(--blue));
  border-radius: 8px; }
