/* ===========================================================
   Starpath — creator coaching
   Professional, TikTok-ad-safe coaching site styles
   =========================================================== */

:root {
  --bg-deep:      #0a0a1f;
  --bg-panel:     #12122e;
  --bg-panel-2:   #1a1a3e;
  --violet:       #7c5cff;
  --violet-soft:  #a78bfa;
  --gold:         #ffd27d;
  --star:         #fff4d6;
  --text:         #ececff;
  --text-dim:     #b3b3d4;
  --line:         rgba(167, 139, 250, 0.18);
  --ok:           #4ade80;
  --radius:       16px;
  --shadow:       0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw:         1140px;
  --font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(255, 210, 125, 0.10), transparent 55%),
    var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--violet-soft); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 88px 0; position: relative; }
.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.section .lead { color: var(--text-dim); max-width: 620px; margin-bottom: 48px; font-size: 1.05rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ----------  Animated starfield background  ---------- */
.stars, .stars2, .stars3 {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.stars  { background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 90% 20%, #fff, transparent); background-size: 600px 600px; opacity: .5; animation: drift 120s linear infinite; }
.stars2 { background-image: radial-gradient(1px 1px at 10% 50%, var(--gold), transparent), radial-gradient(1px 1px at 60% 10%, #fff, transparent), radial-gradient(1px 1px at 85% 75%, var(--violet-soft), transparent); background-size: 800px 800px; opacity: .4; animation: drift 200s linear infinite reverse; }
.stars3 { background-image: radial-gradient(2px 2px at 50% 40%, var(--star), transparent), radial-gradient(1.5px 1.5px at 30% 70%, #fff, transparent); background-size: 1000px 1000px; opacity: .25; animation: drift 300s linear infinite; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-600px); } }

/* ----------  Header / Nav  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 31, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .logo-mark { width: 30px; height: 30px; }
.brand b { background: linear-gradient(90deg, var(--gold), var(--violet-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  text-align: center;
}
.btn-primary { background: linear-gradient(90deg, var(--violet), #b06bff); color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 38px rgba(124, 92, 255, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.btn-block { display: block; width: 100%; }

/* ----------  Hero  ---------- */
.hero { position: relative; z-index: 1; padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.badge-18 { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 210, 125, 0.12); color: var(--gold); border: 1px solid rgba(255, 210, 125, 0.3); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--gold), var(--violet-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { font-size: 1.15rem; color: var(--text-dim); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; color: var(--text-dim); font-size: .9rem; }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--ok); }

/* hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::before { content: ""; position: absolute; top: -40%; right: -20%; width: 240px; height: 240px; background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 70%); }
.match-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); margin-bottom: 12px; position: relative; }
.match-row:last-child { margin-bottom: 0; }
.avatar { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; color: #1a1a3e; }
.a1 { background: linear-gradient(135deg, #ffd27d, #ff9ec7); }
.a2 { background: linear-gradient(135deg, #a78bfa, #7c5cff); color: #fff; }
.a3 { background: linear-gradient(135deg, #6ee7b7, #3b82f6); color: #fff; }
.match-meta b { display: block; font-size: 1rem; }
.match-meta small { color: var(--text-dim); }
.match-score { margin-left: auto; text-align: right; }
.match-score b { color: var(--gold); font-size: 1.1rem; }
.match-score small { color: var(--text-dim); display: block; font-size: .72rem; }

/* ----------  Logos / stats  ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px; }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); background: linear-gradient(90deg, var(--gold), var(--violet-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--text-dim); font-size: .9rem; }

/* ----------  Feature cards  ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.4); }
.card .ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 92, 255, 0.15); margin-bottom: 18px; color: var(--violet-soft); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .96rem; }

/* ----------  How it works  ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 26px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--violet), var(--gold)); color: #1a1a3e; }
.step h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* ----------  Safety band  ---------- */
.safety-band { background: linear-gradient(160deg, rgba(124, 92, 255, 0.12), rgba(255, 210, 125, 0.06)); border: 1px solid var(--line); border-radius: 24px; padding: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.safety-list { list-style: none; display: grid; gap: 14px; }
.safety-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.safety-list svg { color: var(--ok); flex: 0 0 auto; margin-top: 3px; }
.safety-list b { color: var(--text); }

/* ----------  Stories  ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story { background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.story p { font-style: italic; margin-bottom: 18px; color: var(--text); }
.story .who { display: flex; align-items: center; gap: 12px; }
.story .who .avatar { width: 44px; height: 44px; font-size: 1rem; }
.story .who b { font-size: .95rem; }
.story .who small { color: var(--text-dim); display: block; }
.illus-note { text-align: center; color: var(--text-dim); font-size: .82rem; margin-top: 22px; }

/* ----------  CTA  ---------- */
.cta-final { text-align: center; background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel)); border: 1px solid var(--line); border-radius: 24px; padding: 64px 30px; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }

/* ----------  Footer  ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; position: relative; z-index: 1; background: rgba(10, 10, 31, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-dim); font-size: .92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-dim); font-size: .92rem; max-width: 280px; margin: 14px 0; }
.footer-about .company { font-size: .82rem; color: var(--text-dim); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: .85rem; }

/* ----------  Legal pages  ---------- */
.legal { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 60px 22px 90px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; letter-spacing: -0.02em; }
.legal .updated { color: var(--text-dim); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 12px; }
.legal a { text-decoration: underline; }
.legal .note { background: rgba(124, 92, 255, 0.1); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }

/* ----------  Forms / contact  ---------- */
.form-card { background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font-family: inherit; font-size: .98rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--violet); border-color: transparent; }
.field textarea { min-height: 130px; resize: vertical; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-dim); margin-bottom: 18px; }
.checkrow input { margin-top: 4px; }
.form-msg { padding: 12px 15px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: rgba(74, 222, 128, 0.12); color: var(--ok); border: 1px solid rgba(74, 222, 128, 0.3); }

/* ----------  Age gate modal  ---------- */
.agegate { position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 18, 0.92); backdrop-filter: blur(8px); display: none; place-items: center; padding: 22px; }
.agegate.show { display: grid; }
.agegate-card { background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel)); border: 1px solid var(--line); border-radius: 20px; padding: 40px; max-width: 440px; text-align: center; box-shadow: var(--shadow); }
.agegate-card .logo-mark { width: 48px; height: 48px; margin: 0 auto 18px; }
.agegate-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.agegate-card p { color: var(--text-dim); margin-bottom: 26px; font-size: .96rem; }
.agegate-actions { display: flex; gap: 12px; }
.agegate-actions .btn { flex: 1; }
.agegate small { display: block; margin-top: 20px; color: var(--text-dim); font-size: .8rem; }

/* ----------  Cookie banner  ---------- */
.cookie { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 150; background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); display: none; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 760px; margin: 0 auto; }
.cookie.show { display: flex; }
.cookie p { color: var(--text-dim); font-size: .88rem; flex: 1; min-width: 240px; }
.cookie .cookie-actions { display: flex; gap: 10px; }
.cookie .btn { padding: 10px 20px; font-size: .9rem; }

/* ----------  Responsive  ---------- */
@media (max-width: 900px) {
  .hero-grid, .safety-band { grid-template-columns: 1fr; }
  .cards, .steps, .stories { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--bg-panel); padding: 24px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .stats, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .agegate-actions { flex-direction: column; }
}
