/* DupVid site: same palette as the app (ios/DupVid/DesignSystem/Theme.swift). */
:root {
  --bg: #070708;
  --surface: #111113;
  --surface-2: #19191c;
  --border: #29292e;
  --text: #f7f7f8;
  --text-2: #a3a3aa;
  --muted: #66666e;
  --lime: #d7ff18;
  --on-lime: #070708;
  --violet: #a63cff;
  --blue: #3977ff;
  --radius: 20px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 7, 8, 0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: auto; }
.wordmark { font-weight: 900; font-size: 22px; letter-spacing: -0.3px; }
.wordmark span { color: var(--lime); }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px;
  background: var(--lime); color: var(--on-lime);
}
.btn:hover { text-decoration: none; filter: brightness(0.93); }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }

/* Hero */
.hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 20% auto; height: 520px;
  background: radial-gradient(closest-side, rgba(215, 255, 24, 0.18), transparent);
  pointer-events: none;
}
.hero .logo { width: 120px; margin: 0 auto 28px; position: relative; }
.eyebrow { color: var(--lime); font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px, 8vw, 84px); line-height: 1.02; letter-spacing: -1.5px;
  margin: 14px 0 20px; position: relative;
}
.hero h1 span { color: var(--lime); }
.hero p.lead { color: var(--text-2); font-size: clamp(18px, 2.4vw, 22px); max-width: 620px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin: 10px 0 12px; letter-spacing: -0.5px; }
.section-head p { color: var(--text-2); margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(215, 255, 24, 0.1); color: var(--lime);
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--on-lime); font-weight: 800;
}
.card.highlight { border-color: var(--lime); }

.callout {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 8px;
}
.callout h3 { margin: 0; }
.callout p { margin: 0; color: var(--text-2); }

/* Legal / text pages */
.doc { padding: 56px 0 80px; }
.doc .container { max-width: 760px; }
.doc h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 8px 0 6px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #d6d6db; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text-2); font-weight: 600; }
.doc .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.doc .toc li { margin: 4px 0; }
.placeholder { background: rgba(255, 176, 32, 0.16); color: #ffb020; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.summary { border-left: 3px solid var(--lime); padding: 4px 0 4px 18px; color: var(--text); }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-2); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 14px; }
  .hero { padding: 64px 0 48px; }
  section { padding: 52px 0; }
  .doc .toc ol { columns: 1; }
}
