/* Viral Competitions marketing site. Brand tokens match the design's Brand board. */
:root {
  --brand: #5b3df5;      /* Spark: primary */
  --brand-deep: #4529d9; /* violet text on lilac */
  --pop: #ffc93c;        /* prizes and winners only */
  --ink: #17142b;
  --paper: #fbf8f2;
  --lilac: #f1eeff;
  --muted: #5e5a73;
  --line: #e8e3f3;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 72px; }

/* type */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 17px; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -10px rgba(91, 61, 245, 0.7); }
.btn-outline { border-color: var(--ink); }
.btn-pop { background: var(--pop); color: var(--ink); min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn-outline-light { border-color: #fff; color: #fff; min-height: 56px; font-size: 18px; }

/* nav */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.menu { display: contents; }
.menu-toggle { display: none; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nav-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-weight: 700; font-size: 15px; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; }

/* hero */
.hero { overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--lilac); color: var(--brand-deep); font-weight: 700; font-size: 14px; }
.chip i { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.lead { max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fineprint { font-size: 15px; color: var(--muted); }

/* hero product mock */
.mock-wrap { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.mock { position: relative; width: 100%; max-width: 440px; }
.mock .blob-a { position: absolute; top: -28px; right: -28px; width: 200px; height: 200px; border-radius: 999px; background: var(--pop); }
.mock .blob-b { position: absolute; bottom: -24px; left: -24px; width: 120px; height: 120px; border-radius: 28px; background: #e4deff; transform: rotate(12deg); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 40px 70px -36px rgba(23, 20, 43, 0.45); display: flex; flex-direction: column; gap: 18px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--lilac); color: var(--brand-deep); font-weight: 700; font-size: 12px; }
.card-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.card-sub { font-size: 15px; color: var(--muted); }
.linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--lilac); }
.linkbox span { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox b { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 14px; }
.stats { display: flex; gap: 12px; }
.stat { flex: 1 1 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); }
.stat small { display: block; font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #d9d2ee; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; }
.board { border-top: 1px solid var(--line); padding-top: 8px; font-size: 15px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.row .n { width: 24px; font-weight: 700; color: var(--muted); }
.row .who { flex: 1 1 auto; }
.row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.row.me { padding: 8px 10px; margin: 0 -10px; border-radius: 12px; background: var(--lilac); }
.row.me .n { color: var(--brand-deep); }
.row.me .who { font-weight: 700; }
.prize-strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; }
.prize-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pop); color: var(--ink); }
.prize-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prize-text strong { font-size: 14px; font-weight: 700; }
.prize-text small { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* sections */
.band { padding: 96px 0; }
.band-lilac { background: var(--lilac); }
.band-white { background: #fff; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.grid > * { flex: 1 1 240px; min-width: 0; }
.grid.wide > * { flex-basis: 320px; }
.grid.three > * { flex-basis: 300px; }

.step { background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step .num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--brand); }
.step p, .feature p { font-size: 16px; line-height: 1.55; color: var(--muted); }

.feature { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--lilac); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* fair play (dark) */
.dark { background: var(--ink); color: #fff; }
.dark .eyebrow { color: var(--pop); }
.fair { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.fair-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fair-copy .lead { color: #c9c3e8; font-size: 18px; }
.ticks { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.5; }
.ticks li { display: flex; gap: 12px; }
.ticks i { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 999px; background: var(--pop); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.ticks svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.fair-card-wrap { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.dark-card { width: 100%; max-width: 480px; background: #241f44; border: 1px solid #3a3466; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dark-card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; }
.dark-card .head small { font-weight: 400; font-size: 13px; color: #b9b3d9; }
.dark-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #2e2858; }
.dark-row .n { width: 24px; font-weight: 700; color: var(--pop); }
.dark-row .who { flex: 1 1 auto; }
.dark-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.dark-row.tie { background: none; border: 1px dashed #4d457f; color: #c9c3e8; }
.dark-row.tie .n { color: #b9b3d9; }
.dark-card .note { font-size: 14px; line-height: 1.5; color: #b9b3d9; }

/* audience */
.who-card { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.who-card h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.who-card p { font-size: 16px; line-height: 1.55; color: #4a4560; }
.who-a { background: #fff4cf; }
.who-b { background: var(--lilac); }
.who-c { background: var(--paper); border: 1px solid var(--line); }

/* faq */
.narrow { max-width: 820px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; padding: 0 24px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* final cta */
.cta { background: var(--brand); color: #fff; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-top: 88px; padding-bottom: 88px; }
.cta h2 { max-width: 760px; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.cta p { max-width: 540px; font-size: 19px; line-height: 1.5; color: #e4deff; }
.cta .cta-row { justify-content: center; }

/* footer */
.site-footer { background: var(--ink); color: #c9c3e8; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 40px; padding-bottom: 40px; }
.site-footer .logo { color: #fff; font-size: 18px; }
.site-footer .logo svg { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
  .bars { position: relative; display: block; width: 20px; height: 14px; }
  .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease, top .18s ease; }
  .bars i:nth-child(1) { top: 0; }
  .bars i:nth-child(2) { top: 6px; }
  .bars i:nth-child(3) { top: 12px; }
  .open .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .open .bars i:nth-child(2) { opacity: 0; }
  .open .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .nav { position: relative; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 8px; padding: 8px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(23, 20, 43, 0.4); }
  .open .menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; font-size: 18px; }
  .nav-links a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; }
  .nav-login, .nav-cta { justify-content: center; min-height: 52px; font-size: 16px; }
  .nav-login { border: 2px solid var(--ink); border-radius: 999px; }
}
@media (max-width: 640px) {
  section[id] { scroll-margin-top: 80px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .mock-wrap { display: none; }
  h3 { font-size: 19px; }
  .section-head { gap: 10px; }
  .stack { gap: 32px; }
  .hero-inner { gap: 56px; }
  .hero-copy { gap: 20px; }
  .cta-row .btn { width: 100%; }
  .cta-row { width: 100%; }
  .mock { max-width: 100%; }
  .mock .blob-a { width: 120px; height: 120px; top: -16px; right: -10px; }
  .mock .blob-b { left: -10px; bottom: -14px; width: 84px; height: 84px; }
  .card { padding: 18px; border-radius: 22px; gap: 16px; }
  .card-title { font-size: 24px; }
  .stat strong { font-size: 30px; }
  .step, .feature, .who-card { padding: 22px; }
  .step .num { font-size: 38px; }
  .fair { gap: 36px; }
  .dark-card { padding: 18px; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 16px; min-height: 60px; }
  .cta-inner { padding-top: 64px; padding-bottom: 64px; gap: 22px; }
  .cta p { font-size: 17px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .band { padding: 64px 0; }
  .hero-inner { padding-top: 40px; padding-bottom: 64px; }
  .lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
