/* DviPresenter website. Brand: Night #0B0B0E, Graphite #2C2D35, Signal Red #E8141C,
   Laser Red #FF4A3D, Paper #F6F7F9; Poppins (SIL OFL, latin subset). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --night: #0b0b0e;
  --surface: #15161b;
  --surface-raised: #1d1e25;
  --line: #2c2d35;
  --line-strong: #3a3c45;
  --text: #f6f7f9;
  --muted: #b3b5bf;
  --quiet: #8e909b;
  --signal: #e8141c;
  --signal-hover: #ff2a2f;
  --laser: #ff4a3d;
  --ok: #34c46a;
  --radius: 18px;
  --page: min(1120px, 100% - 32px);
  --shadow-key: 0 4px 0 #050507, 0 10px 24px rgba(0, 0, 0, 0.45);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--laser); text-underline-offset: 3px; }
a:hover { color: #ff7066; }

:focus-visible { outline: 3px solid var(--laser); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--signal);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: var(--page); margin-inline: auto; }

.accent { color: var(--laser); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 36em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 11, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand .dvi { color: var(--signal); }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-download { color: #fff; background: var(--signal); }
.site-nav .nav-download:hover { background: var(--signal-hover); }
@media (max-width: 720px) {
  .site-nav .nav-optional { display: none; }
}

/* Buttons: raised keys, like the app */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #2a2b33, #1f2027);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-key);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.button:hover { color: var(--text); background: linear-gradient(180deg, #30313a, #24252d); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 #050507, 0 4px 12px rgba(0, 0, 0, 0.4); }
.button svg { flex: none; }
.button-primary {
  border-color: #ff5a52;
  background: linear-gradient(180deg, #f2242b, #c90f16);
  color: #fff;
  box-shadow: 0 4px 0 #6f050b, 0 12px 30px rgba(232, 20, 28, 0.35);
}
.button-primary:hover { color: #fff; background: linear-gradient(180deg, #ff3a40, #d8121a); }
.button-primary:active { box-shadow: 0 1px 0 #6f050b, 0 6px 16px rgba(232, 20, 28, 0.3); }
.button small { display: block; font-weight: 400; font-size: 0.8rem; opacity: 0.85; }
.button .label { text-align: left; line-height: 1.25; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(232, 20, 28, 0.22), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0 14px; }
.hero-meta { color: var(--quiet); font-size: 0.9rem; margin: 0; }
.android-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34em;
}
.android-note svg { flex: none; margin-top: 3px; color: var(--ok); }
.android-note p { margin: 0; }
.android-note strong { color: var(--text); font-weight: 600; }

.phone {
  width: min(330px, 82vw);
  margin-inline: auto;
  padding: 10px;
  border-radius: 40px;
  background: #16171c;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 60px rgba(232, 20, 28, 0.18), 0 30px 60px rgba(0, 0, 0, 0.6);
}
.phone img { border-radius: 31px; aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.feature {
  padding: 26px 24px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(232, 20, 28, 0.12);
  border: 1px solid rgba(255, 74, 61, 0.35);
  color: var(--laser);
}

.gallery { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: 20px; border: 1px solid var(--line); aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
}
.steps p { color: var(--muted); margin: 0; }

/* Downloads */
.downloads { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.download-card.recommended { border-color: rgba(255, 74, 61, 0.55); background: linear-gradient(180deg, #1f1416, var(--surface)); }
.download-card h3 { margin: 0; }
.download-card p { color: var(--muted); margin: 0; }
.badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232, 20, 28, 0.16);
  color: #ff8a82;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.file-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.9rem; }
.file-facts dt { color: var(--quiet); }
.file-facts dd { margin: 0; color: var(--text); min-width: 0; }
.hash { overflow-wrap: anywhere; font-size: 0.78rem; }
.download-card .button { margin-top: auto; align-self: flex-start; }

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid #f2b233;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}
.callout h3 { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }

.requirements { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 28px 0 0; }
.requirements li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 0.95rem; }
.requirements strong { display: block; color: var(--text); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--laser);
  border-bottom: 2px solid var(--laser);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Developer */
.developer {
  display: grid;
  gap: 24px 32px;
  align-items: start;
  padding: 32px 28px;
  background: linear-gradient(135deg, #1f1416, var(--surface) 55%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 720px) {
  .developer { grid-template-columns: auto 1fr; padding: 40px; }
}
.developer-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f2242b, #9e0710);
  box-shadow: 0 0 0 4px rgba(232, 20, 28, 0.18), 0 12px 30px rgba(232, 20, 28, 0.3);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.developer-body h2 { margin-bottom: 0.4em; }
.developer-body p { color: var(--muted); max-width: 40em; }
.developer-links { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 24px 0 0; padding: 0; }
.developer-links .button { min-height: 52px; padding: 10px 20px; }
.developer-links small { overflow-wrap: anywhere; }

/* Article pages (privacy, 404) */
.article { padding: 56px 0 80px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.article h2 { font-size: 1.45rem; margin-top: 2em; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { color: #d4d5dc; }
.article ul { padding-left: 1.3em; }
.article li { margin-bottom: 0.5em; }
.article .updated { color: var(--quiet); }
.summary-box { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 24px 0; }
.summary-box ul { margin: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 12px 0 8px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #d4d5dc; }
th { color: var(--text); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--quiet); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; max-width: 40em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
