/* Script Analysis — Midnight Premiere design system */

:root {
  --bg: #F5F7FA;
  --surface-1: #EFF2F6;
  --surface-2: #E8ECF2;
  --brand: #583BE2;
  --brand-container: #E5E0FF;
  --mint: #00BFA5;
  --mint-container: #C8F5E9;
  --pink: #FF4081;
  --text: #12161A;
  --text-muted: #4A5260;
  --border: rgba(18, 22, 26, 0.10);
  --shadow: rgba(18, 22, 26, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0C10;
    --surface-1: #111218;
    --surface-2: #181A22;
    --surface-3: #222530;
    --brand: #9C8CFF;
    --brand-container: #2E2270;
    --mint: #2EE59D;
    --mint-container: #00513C;
    --pink: #FF6097;
    --text: #F0F2F5;
    --text-muted: #A6ACB9;
    --border: rgba(240, 242, 245, 0.10);
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #0B0C10;
  --surface-1: #111218;
  --surface-2: #181A22;
  --surface-3: #222530;
  --brand: #9C8CFF;
  --brand-container: #2E2270;
  --mint: #2EE59D;
  --mint-container: #00513C;
  --pink: #FF6097;
  --text: #F0F2F5;
  --text-muted: #A6ACB9;
  --border: rgba(240, 242, 245, 0.10);
  --shadow: rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  --bg: #F5F7FA;
  --surface-1: #EFF2F6;
  --surface-2: #E8ECF2;
  --brand: #583BE2;
  --brand-container: #E5E0FF;
  --mint: #00BFA5;
  --mint-container: #C8F5E9;
  --pink: #FF4081;
  --text: #12161A;
  --text-muted: #4A5260;
  --border: rgba(18, 22, 26, 0.10);
  --shadow: rgba(18, 22, 26, 0.08);
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

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

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

.narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-mark .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--mint));
  box-shadow: 0 0 12px var(--mint);
}

nav.links {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.links a:hover { color: var(--text); text-decoration: none; }

.cta-pill {
  background: var(--mint);
  color: #04241A;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cta-pill:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--brand-container) 0%, transparent 65%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mint);
  background: var(--mint-container);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

h1.headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

h1.headline .accent {
  background: linear-gradient(120deg, var(--brand), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--mint);
  color: #04241A;
}
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-1); text-decoration: none; }

/* ---------- Feature cards ---------- */

.section {
  padding: 64px 0;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px var(--shadow);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.card .icon.brand { background: var(--brand-container); }
.card .icon.mint { background: var(--mint-container); }
.card .icon.pink { background: color-mix(in srgb, var(--pink) 22%, transparent); }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Strip / CTA band ---------- */

.band {
  background: linear-gradient(120deg, var(--brand-container), var(--mint-container));
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  margin: 24px 0 80px;
}

.band h2 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: #12161A;
}

.band p {
  color: #2b2f36;
  max-width: 520px;
  margin: 0 auto 28px;
}

@media (prefers-color-scheme: dark) {
  .band h2, .band p { color: #12161A; }
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  margin-top: 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */

.legal-header {
  padding: 56px 0 24px;
}

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-body {
  padding-bottom: 80px;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  color: var(--brand);
}

.legal-body h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal-body p, .legal-body li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body strong {
  color: var(--text);
}

.callout {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 20px 0;
}

code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- Support page ---------- */

.support-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 20px;
}

.support-card h3 {
  margin-top: 0;
}

.email-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--mint);
}

@media (max-width: 640px) {
  nav.links { gap: 16px; }
  nav.links .hide-mobile { display: none; }
  .hero { padding: 64px 0 48px; }
  .band { padding: 40px 24px; }
}
