/* Scribe landing — dark, editorial, one crimson signature. */
:root {
  --accent: #ff4d5e;
  --accent-2: #e11d48;
  --bg: #0c0d12;
  --bg-2: #101119;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f5f8;
  --text-2: #a7adba;
  --text-3: #6a7180;
  --maxw: 1120px;
  --r: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; }

/* aurora backdrop */
.aurora { position: fixed; inset: -20% -10% auto; height: 80vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 55% at 72% 18%, rgba(225, 29, 72, 0.28), transparent 70%),
    radial-gradient(45% 50% at 20% 8%, rgba(99, 102, 241, 0.18), transparent 70%);
  filter: blur(20px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 15px 24px;
  backdrop-filter: blur(14px); }
.nav::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 62%, transparent); border-bottom: 1px solid var(--line); z-index: -1; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 11px; font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.18s, background 0.18s, border-color 0.18s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 13px; }
.nav .btn, .btn.btn-lg[href*="download"], a.btn[data-dl], .hero-cta .btn:first-child, .cta-band .btn, .steps .btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff;
  box-shadow: 0 12px 28px -12px rgba(225, 29, 72, 0.65); }
a.btn[data-dl]:hover, .cta-band .btn:hover { box-shadow: 0 18px 36px -12px rgba(225, 29, 72, 0.8); }
.btn-ghost { background: var(--surface); }

/* hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 24px 60px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 6px 12px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; margin: 20px 0 18px; }
.grad { background: linear-gradient(120deg, var(--accent), #ff8a5b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.trust { font-size: 13px; color: var(--text-3); }

/* hero demo (signature) */
.hero-demo { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px;
  perspective: 1400px; }
.demo-video { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7); }
.demo-frame { position: relative; aspect-ratio: 16 / 9; background:
    radial-gradient(120% 120% at 30% 20%, #2a1420, #14151d 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px); }
.demo-play { position: absolute; left: 27%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px -8px rgba(225, 29, 72, 0.7); }
.demo-play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.demo-bar { height: 4px; background: rgba(255, 255, 255, 0.12); }
.demo-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.demo-panel { position: absolute; right: -14px; bottom: -26px; width: 74%; max-width: 340px;
  background: rgba(18, 19, 26, 0.86); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.75); overflow: hidden; }
.dp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; }
.dp-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.dp-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.dp-tools { display: flex; gap: 8px; padding: 0 13px 11px; }
.dp-lang, .dp-search { font-size: 11.5px; color: var(--text-2); padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.dp-search { flex: 1; }
.dp-list { padding: 6px; border-top: 1px solid var(--line); }
.dp-seg { display: flex; gap: 9px; padding: 8px 9px; border-radius: 9px; position: relative; }
.dp-seg span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; min-width: 26px; }
.dp-seg p { font-size: 13px; line-height: 1.5; color: var(--text); }
.dp-seg.active { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dp-seg.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-2)); }
.dp-seg.active span { color: var(--accent); font-weight: 600; }

/* sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 100px) 24px; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.03em; font-weight: 800; margin-top: 14px; }

/* features grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.22s, border-color 0.22s; }
.card:hover { transform: translateY(-4px); background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.card .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 20px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 17.5px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-2); }

/* install */
.install { }
.steps { list-style: none; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.steps .sn { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  font-weight: 800; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.steps li b { font-size: 16.5px; }
.steps li p { color: var(--text-2); font-size: 14.5px; margin: 6px 0 12px; }
.steps li .btn { margin-top: 2px; }
code.copy, .steps code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; font-size: 13.5px; color: var(--text); }
code.copy { cursor: pointer; color: var(--accent); }
code.copy:hover { background: var(--surface-2); }
.note { margin-top: 20px; color: var(--text-3); font-size: 14px; text-align: center; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--text-2); font-size: 14.5px; }

/* cta band */
.cta-band { max-width: var(--maxw); margin: 0 auto 40px; padding: clamp(40px, 6vw, 72px) 24px; text-align: center;
  background: radial-gradient(120% 160% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  border: 1px solid var(--line); border-radius: 24px; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -0.03em; margin-bottom: 24px; font-weight: 800; }

/* footer */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 44px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.foot .brand { font-size: 16px; }
.fmuted { color: var(--text-3); font-size: 13px; }

/* installed banner */
.banner { position: sticky; top: 0; z-index: 60; text-align: center; padding: 11px 20px; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.banner[hidden] { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 60px; }
  .hero-demo { max-width: 440px; }
  .demo-panel { position: relative; right: 0; bottom: 0; width: 100%; max-width: none; margin-top: -40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .foot { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
