/* Darkboard Prime site: dark glass over his gradient, orange accent, like the app. */
:root {
  --bg: #0e0c11;
  --glass: rgba(24, 21, 28, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --text: #ece9f0;
  --muted: #a39dab;
  --accent: #ff7a2f;
  --accent-ink: #1a0d05;
  --red: #ff5a5a;
  --green: #56d68a;
  --radius: 14px;
  --max: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
html, body { overflow-x: clip; }

.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background: url(img/gradient-bg.jpg) center / cover no-repeat;
  filter: blur(40px) saturate(1.1) brightness(0.55);
  transform: scale(1.1);
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(14, 12, 17, 0.6); border-bottom: 1px solid var(--glass-edge); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
nav.links { display: flex; gap: 18px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
nav.links a:hover, nav.links a[aria-current] { color: var(--text); }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650;
  padding: 12px 22px; border-radius: 10px;
}
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 14px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* sections */
.hero { padding: 88px 0 56px; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { color: var(--muted); font-size: 14px; }
section { padding: 48px 0; }
.hero + section { padding-top: 8px; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: 19px; }
.sub { color: var(--muted); max-width: 680px; margin: 0 0 28px; }

.glass { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.card { padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* screenshot slots: replaced by his recordings */
.shot {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px;
  background: linear-gradient(135deg, rgba(255,122,47,0.10), rgba(120,80,200,0.12)), var(--glass);
  border: 1px dashed rgba(255,255,255,0.18);
}
.feature { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: center; padding: 28px 0; }
.feature:nth-child(even) .shot { order: -1; }
.feature ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.feature li { margin: 4px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.onion { display: inline-flex; gap: 6px; vertical-align: middle; }
.onion i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
kbd { font: 13px ui-monospace, Menlo, monospace; background: rgba(255,255,255,0.08); border: 1px solid var(--glass-edge); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--text); }

.leaves-out { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.leaves-out div { padding: 16px 18px; }
.leaves-out b { display: block; }
.leaves-out span { color: var(--muted); font-size: 15px; }

/* forms */
form.panel { padding: 26px; max-width: 560px; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type=email], input[type=text], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: rgba(0,0,0,0.35);
  border: 1px solid var(--glass-edge); border-radius: 9px; padding: 11px 13px; margin: 0 0 18px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 160px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.seg { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.seg label { margin: 0; font-weight: 500; padding: 8px 14px; border-radius: 9px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-edge); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--accent); }
.seg label:has(input:checked) { border-color: var(--accent); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.6em; margin: 12px 0 0; font-size: 15px; }
.msg.ok { color: var(--green); }
.msg.err { color: var(--red); }
.fine { color: var(--muted); font-size: 14px; }

/* long text pages */
.prose { padding: 28px; max-width: 820px; }
.prose h1 { font-size: 32px; margin-top: 0; line-height: 1.2; }
.prose h2 { font-size: 22px; margin-top: 30px; }
.prose li { margin: 4px 0; }
.prose a { overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--glass-edge); vertical-align: top; }
.prose code { font-size: 14px; background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 4px; word-break: break-word; }
details { padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer.bottom { border-top: 1px solid var(--glass-edge); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer.bottom a { color: var(--muted); }
footer.bottom .copy { flex-basis: 100%; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  header.top .wrap { gap: 12px; }
  header.top .btn.small { display: none; }
  nav.links { gap: 14px; }
  .hero { padding: 56px 0 36px; }
  .feature { grid-template-columns: 1fr; gap: 16px; }
  .feature:nth-child(even) .shot { order: 0; }
  form.panel, .prose { padding: 20px; }
}
.shot-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--glass-edge); background: #000; }

/* Demo features: the screen movie with steps that light up as it plays. */
video.shot-media { aspect-ratio: auto; object-fit: contain; height: auto; }
.feature.demo { grid-template-columns: 3fr 2fr; align-items: start; }
.feature.demo .shot { order: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 10px 12px 10px 44px; margin: 0 0 6px; border-radius: 10px; color: var(--muted); font-size: 16px; line-height: 1.45; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.08); color: var(--muted); }
.steps li b { color: var(--text); font-weight: 600; }
.steps.live li { cursor: pointer; }
.steps.live li:hover { background: rgba(255,255,255,0.04); }
.steps li.active { background: rgba(255,122,47,0.10); border-color: rgba(255,122,47,0.35); color: var(--text); }
.steps li.active::before { background: var(--accent); color: var(--accent-ink); }
.steps li:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 760px) {
  .feature.demo { grid-template-columns: 1fr; }
}
