/* =============================================================
   Moonlighting — design system
   Brand: part-time talent marketplace. Warm night: indigo dusk hero,
   violet + signal gold accents, warm paper below. UI copy is English.
   ============================================================= */

:root {
  /* palette — night sky (granat) over cool paper. Color = status only. */
  --bg:        #f7f7f2;   /* page: warm paper */
  --bg-2:      #ffffff;   /* panel / card */
  --bg-3:      #efeee8;   /* raised */
  --line:      #e7e6df;   /* hairline */
  --line-soft: #efeee8;
  --line-2:    #d9d7cd;

  --text:      #1b2036;   /* warm indigo ink */
  --muted:     #5d6076;   /* dim */
  --faint:     #8d90a4;

  --primary:   #6d4dff;   /* violet — buttons, links, accents */
  --primary-2: #8b6cff;
  --accent:    #f0a500;   /* signal gold */
  --good:      #18b277;   /* functional only: success */
  --bad:       #e5484d;   /* functional only: error */
  --warn:      #b45309;   /* functional only: caution */

  /* night palette — the brand is "Moonlighting", lean into it */
  --night-1:   #0a0f24;   /* deep indigo night */
  --night-2:   #151d40;   /* raised night */
  --moonlit:   #eef1ff;   /* silver ink on night */
  --moonlit-2: #b7bedd;   /* dim silver */
  --moon:      #f3efe2;   /* moon face / lantern gold-white */

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 18px 40px -24px rgba(30,25,80,.18);
  --glow:      0 0 0 1px rgba(109,77,255,.28), 0 10px 32px -14px rgba(109,77,255,.35);
  --maxw:      1140px;
  --font:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display:   "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,92,255,.09), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(240,165,0,.05), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--display); letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--text); opacity: .92; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.section.tight { padding: 60px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .76rem;
  font-weight: 700; color: var(--primary); margin-bottom: 14px;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: .98rem; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: #fff; box-shadow: var(--glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 0 0 1px rgba(124,92,255,.55), 0 16px 50px -10px rgba(124,92,255,.5); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(109,77,255,.06); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--text); font-size: 1.12rem; }
.ing { font-weight: 400; opacity: .55; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
/* the CTA in the nav is an <a> too — keep its label white over the ink button
   (otherwise `.nav-links a` muted color wins on specificity) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-ghost { color: var(--text); }
@media (max-width: 820px) { .nav-links .hide-sm { display: none; } }

/* ---------- hero (light warm paper, violet dawn tints, calm & airy) ---------- */
.hero { padding: 30px 0 64px; position: relative; }
.hero-night {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 64px 56px;
  background:
    radial-gradient(70% 90% at 88% 6%, rgba(204,120,92,.10), transparent 60%),
    radial-gradient(80% 90% at 96% 100%, rgba(124,92,255,.10), transparent 60%),
    linear-gradient(168deg, #ffffff, #faf8ff 70%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -44px rgba(60,50,110,.30);
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 36px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .lead { max-width: 560px; }
.hero-copy > p:not(.lead) { color: var(--text); }
.hero-copy > p:not(.lead) span { color: var(--muted); }
/* warm highlight — violet into clay, gradient text */
.hero h1 .hl { background: linear-gradient(110deg, var(--primary), #cc785c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(124,92,255,.10); border: 1px solid var(--line-2); color: var(--primary);
  margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* moon visual — delicate crescent, soft halo */
.hero-visual { position: relative; z-index: 2; display: grid; place-items: center; min-height: 260px; }
.moon { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 16px 34px rgba(124,92,255,.18)); }

/* proof row — light chips */
.hero-proof { grid-column: 1 / -1; position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.hero-proof .stat { flex: 1 1 150px; padding: 16px 18px; border-radius: 14px;
  background: rgba(124,92,255,.04); border: 1px solid var(--line); }
.hero-proof .stat strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--text); }
.hero-proof .stat span { font-size: .85rem; color: var(--muted); }

@media (max-width: 820px) {
  .hero-night { grid-template-columns: 1fr; padding: 40px 26px; }
  .hero-visual { min-height: 180px; order: -1; }
  .moon { max-width: 170px; }
}

/* ---------- grid + cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(180deg, var(--line-2), transparent) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(124,92,255,.16), rgba(124,92,255,.06));
  border: 1px solid var(--line-2); margin-bottom: 16px; }
.card .ic svg { width: 23px; height: 23px; fill: none; stroke: var(--primary);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

/* split rows (problem/solution) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { counter-increment: step; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: #fff; }
.step .n::before { content: counter(step); }

/* step flow — soft dotted path (light, no heavy arrows) */
.flow { counter-reset: step; display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.flow-step { flex: 1 1 0; position: relative; text-align: center; padding: 0 16px; }
.flow-step .n { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 18px;
  background: radial-gradient(circle at 32% 30%, var(--night-2), var(--night-1));
  border: 1px solid rgba(139,108,255,.45);
  box-shadow: 0 0 0 7px rgba(109,77,255,.08), 0 6px 18px -8px rgba(10,15,36,.55); }
.flow-step .n svg { width: 28px; height: 28px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 50%; width: 100%; height: 0;
  border-top: 2px dotted var(--line-2); z-index: 0; }
.flow-step h3 { margin-bottom: 6px; font-size: 1.05rem; }
.flow-step p { margin: 0; font-size: .92rem; }
@media (max-width: 780px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-step { padding: 0 0 30px; }
  .flow-step:not(:last-child)::after { top: 54px; left: 27px; width: 0; height: 100%; border-top: 0; border-left: 2px dotted var(--line-2); }
}

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price { position: relative; }
.price.featured { border-color: var(--primary); box-shadow: var(--glow); }
.price .tag { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #1a1300;
  font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.price .amount { font-size: 2.1rem; font-weight: 800; margin: 6px 0; }
.price .amount small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; font-size: .94rem; color: var(--text); }
.price li::before { content: "✓"; color: var(--good); font-weight: 800; }

/* report ship/no-ship verdict pill (shared with app) */
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.verdict.ship    { background: rgba(61,220,151,.14); color: var(--good); border: 1px solid rgba(61,220,151,.4); }
.verdict.noship  { background: rgba(255,107,107,.14); color: var(--bad); border: 1px solid rgba(255,107,107,.4); }
.verdict.caution { background: rgba(255,180,84,.14); color: var(--warn); border: 1px solid rgba(255,180,84,.4); }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; background: var(--bg-2); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

/* waitlist / CTA band */
.cta-band { background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(255,209,102,.10));
  border: 1px solid var(--line-2); border-radius: 24px; padding: 48px; text-align: center; }
.form-row { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; }
@media (max-width: 520px) { .form-row { flex-direction: column; } }
.input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font-size: .98rem; font-family: var(--font); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.form-note { font-size: .82rem; color: var(--faint); margin-top: 12px; }

/* registration form grid */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) {
  .reg-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 20px; }
}

/* registration side toggle */
.reg-side { border: 0; background: transparent; color: var(--muted); font-weight: 650; font-size: .9rem;
  padding: 10px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font); transition: background .15s, color .15s; }
.reg-side.on { background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: #fff; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.1em, calc(100% - 13px) 1.1em; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer a { color: var(--muted); font-size: .9rem; }

/* utilities */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 36px; }
.mb-2 { margin-bottom: 22px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
