/* Prolific Sites — dark purple/blue/black design system (matches PGI platform) */
:root {
  --black: #06060b;
  --surface: #0d0d14;
  --card: #12121c;
  --card-2: #16161f;
  --border: #1e1e2e;
  --border-light: #2a2a3d;
  --purple: #5b21b6;
  --purple-light: #7c3aed;
  --purple-dark: #3b0764;
  --blue: #1e3a8a;
  --blue-light: #2563eb;
  --blue-dark: #172554;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --text: #e2e8f0;
  --white: #f8fafc;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(91, 33, 182, 0.12), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--white); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--muted-2); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.center { text-align: center; }
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #a78bfa; margin-bottom: 14px;
}
.lead { font-size: 1.18rem; color: var(--muted-2); max-width: 640px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; font-size: .98rem; padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  color: #fff;
  box-shadow: 0 0 30px rgba(91, 33, 182, 0.35), 0 0 60px rgba(37, 99, 235, 0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(124, 58, 237, 0.5), 0 0 80px rgba(37, 99, 235, 0.25); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--border-light); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple-light); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(6, 6, 11, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  box-shadow: 0 0 20px rgba(124,58,237,.5); color: #fff; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted-2); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 18px; }
  .nav-links.open { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: block; }
}

/* Hero */
.hero { padding: 90px 0 70px; position: relative; }
.hero h1 { max-width: 820px; }
.hero .lead { margin: 18px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 54px; }
.hero-stats .stat .num { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stats .stat .lbl { font-size: .85rem; color: var(--muted); }

/* Cards / grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--card), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-light);
  box-shadow: 0 0 40px rgba(91, 33, 182, 0.12), 0 0 80px rgba(37, 99, 235, 0.06); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(37,99,235,.18));
  border: 1px solid var(--border-light); font-size: 1.3rem;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

/* Feature/section header */
.sec-head { max-width: 680px; margin: 0 auto 50px; }
.sec-head.center { text-align: center; }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
.step .n {
  counter-increment: step; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; background: linear-gradient(135deg, var(--purple), var(--blue-light)); color: #fff;
}
.step .n::before { content: counter(step); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--purple-light); box-shadow: 0 0 50px rgba(124,58,237,.18); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light)); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .05em;
}
.price { font-size: 2.4rem; font-weight: 800; color: #fff; margin: 8px 0 2px; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-feats { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.price-feats li { padding: 9px 0; color: var(--muted-2); font-size: .95rem; display: flex; gap: 10px; }
.price-feats li::before { content: "✓"; color: #a78bfa; font-weight: 800; }

/* Portfolio */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.work {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.work:hover { transform: translateY(-4px); border-color: var(--purple-light); box-shadow: 0 0 40px rgba(124,58,237,.15); }
.work .thumb { height: 190px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff;
  position: relative; overflow: hidden; }
.work .thumb span { position: relative; z-index: 1; opacity: .92; }
.work .body { padding: 22px 24px; }
.work .tag { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #a78bfa; font-weight: 700; }
.work h3 { margin: 8px 0 6px; }
.work .body p { font-size: .92rem; margin-bottom: 14px; }
.work .link { color: #60a5fa; font-weight: 600; font-size: .9rem; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted-2); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--border-light);
  background: var(--surface); color: #fff; font-family: inherit; font-size: .98rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--purple-light); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 14px 0; }
.consent input { margin-top: 3px; flex: 0 0 auto; }

/* CTA band */
.cta-band {
  border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
  background: linear-gradient(135deg, rgba(91,33,182,.18), rgba(30,58,138,.14));
  box-shadow: 0 0 60px rgba(91,33,182,.12);
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-grid h4 { color: #fff; font-size: .9rem; margin: 0 0 14px; letter-spacing: .03em; }
.footer-grid a { display: block; color: var(--muted); font-size: .92rem; padding: 5px 0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 38px; }
.legal p, .legal li { color: var(--muted-2); font-size: .98rem; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); font-size: .9rem; }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }
