/* DigitalRViewer site.
   Shape rule: buttons and inputs are full pills, cards and media are 18px, chips are pills.
   One accent (brand blue), cool zinc neutrals, auto light/dark. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --surface-2: #f2f3f6;
  --line: #e4e6ec;
  --text: #121419;
  --text-2: #4a505e;
  --text-3: #6b7181;
  --accent: #2f5bea;
  --accent-ink: #ffffff;
  --accent-hover: #2449c6;
  --accent-soft: #e8eefe;
  --accent-text: #2448c4;
  --shadow: 0 1px 2px rgb(18 24 48 / 0.05), 0 12px 32px -12px rgb(18 24 48 / 0.14);
  --radius: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d11;
    --surface: #14161c;
    --surface-2: #1a1d25;
    --line: #262a34;
    --text: #eceef3;
    --text-2: #aeb4c2;
    --text-3: #8b92a3;
    --accent: #4d74f5;
    --accent-ink: #ffffff;
    --accent-hover: #6386f7;
    --accent-soft: #18213d;
    --accent-text: #8ea8ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d11;
  --surface: #14161c;
  --surface-2: #1a1d25;
  --line: #262a34;
  --text: #eceef3;
  --text-2: #aeb4c2;
  --text-3: #8b92a3;
  --accent: #4d74f5;
  --accent-ink: #ffffff;
  --accent-hover: #6386f7;
  --accent-soft: #18213d;
  --accent-text: #8ea8ff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-3); }
.soft { color: var(--text-3); }
.small { font-size: 14px; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.i-lg { width: 28px; height: 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 "Geist", sans-serif; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn .i { width: 18px; height: 18px; }
.btn-ghost .i { transition: transform .25s var(--ease); }
.btn-ghost:hover .i { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-row { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff; font: 700 12px/1 "Geist", sans-serif; letter-spacing: 0;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
.hero h1 em { font-style: italic; white-space: nowrap; color: var(--accent-text); padding-bottom: 4px; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 34ch; }
.lead.narrow { max-width: 56ch; margin-top: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 46%; height: 46%; z-index: -1;
  border-radius: var(--radius); background: var(--accent-soft);
}

/* Platforms strip */
.platforms { border-block: 1px solid var(--line); }
.platforms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; min-height: 72px; padding-block: 16px; font-size: 15px; }
.plat { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; }
.plat .i { width: 20px; height: 20px; }

/* Sections */
.section { padding: 112px 0 0; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: 26px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.3; }
p + p { margin-top: 10px; }

/* Bento */
.bento {
  margin-top: 48px; display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas: "a a a a b b" "a a a a c c" "d d d e e e";
}
.cell {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 230px;
}
.cell h3 { margin-top: 6px; }
.cell p { color: var(--text-2); max-width: 46ch; }
.cell > .i, .cell-body > .i { color: var(--accent-text); }
.cell-a { grid-area: a; min-height: 476px; justify-content: flex-end; }
.cell-b { grid-area: b; }
.cell-c { grid-area: c; justify-content: flex-end; }
.cell-d { grid-area: d; }
.cell-e { grid-area: e; }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cell:hover img { transform: scale(1.04); }
.cell-a::after, .cell-c::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(8 11 22 / 0.05) 20%, rgb(8 11 22 / 0.55) 55%, rgb(8 11 22 / 0.92) 100%);
}
.cell-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.on-image, .on-image p { color: #f3f5fb; }
.on-image > .i { color: #ffffff; }
.tint { background: var(--accent); border-color: transparent; }
.tint, .tint p, .tint > .i { color: #ffffff; }
.tint p { opacity: .9; }
.dots {
  background-color: var(--surface);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
}
.chips { list-style: none; margin: auto 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font: 500 12.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--text-2);
  padding: 8px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--line) 100%);
}
.steps li { position: relative; }
.step-icon {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--accent-text); margin-bottom: 22px;
}
.steps li:first-child .step-icon { background: var(--accent); color: #fff; border-color: transparent; }
.step-icon .i { width: 22px; height: 22px; }
.steps p { margin-top: 8px; color: var(--text-2); max-width: 34ch; }

/* Security */
.security-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.security-media { margin: 0; }
.security-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.points { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; }
.point .i { width: 24px; height: 24px; color: var(--accent-text); margin-bottom: 12px; }
.point p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* Quick connect */
.connect {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: var(--radius); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.connect .muted { margin-top: 10px; color: var(--text-2); max-width: 44ch; }
.connect-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.connect-row { display: flex; gap: 10px; }
.connect-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 500 17px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.04em;
}
.connect-row input::placeholder { color: var(--text-3); }
.connect-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.connect-row .btn { height: 48px; }
.help { margin-top: 8px; font-size: 13.5px; color: var(--text-2); min-height: 1.4em; }
.help.error { color: #c4314b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .help.error { color: #ff8095; } }

/* Downloads */
.downloads { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.dl.is-yours { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--shadow); }
.dl header { display: flex; align-items: center; gap: 14px; }
.dl header .i { color: var(--text); }
.dl header p { font-size: 14px; }
.dl-list { display: grid; gap: 10px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 14px 14px 18px; border-radius: 14px; background: var(--surface-2);
}
.dl-item strong { display: block; font-weight: 500; font-size: 15px; }
.dl-item span { font: 400 12.5px/1.4 "Geist Mono", ui-monospace, monospace; color: var(--text-3); }
.dl-item .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.dl-empty { padding: 18px; border-radius: 14px; border: 1px dashed var(--line); color: var(--text-3); font-size: 14.5px; }
.note { font-size: 13.5px; color: var(--text-3); margin-top: auto; }
.skeleton {
  height: 66px; border-radius: 14px;
  background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.dl-web {
  margin-top: 16px; display: flex; align-items: center; gap: 18px; padding: 22px 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.dl-web > .i { color: var(--accent-text); }
.dl-web > div { flex: 1; }
.dl-web p { font-size: 15px; margin-top: 4px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--text-3); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 62ch; }

/* Footer */
.footer { margin-top: 128px; border-top: 1px solid var(--line); padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer .muted.small { margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--text-2); font-size: 15px; }
.footer-links a:hover, .legal a:hover { color: var(--text); }
.legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Motion: load-in for the hero, reveal on scroll for the rest */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 60ms); }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton { animation: none; }
  .cell img, .btn, .btn-ghost .i { transition: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .nav-links { gap: 20px; }
  .hero-grid { gap: 36px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d e"; }
  .cell-a { min-height: 380px; }
  .security-grid { gap: 40px; }
}

/* Mobile */
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .nav-row { gap: 12px; }
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  .hero { padding: 40px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .hero-media::after { display: none; }
  .platforms-row { gap: 10px 22px; }
  .section { padding-top: 80px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e"; }
  .cell { min-height: 0; padding: 24px; }
  .cell-a { min-height: 360px; }
  .cell-c { min-height: 280px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line)); }
  .steps li { padding-left: 72px; }
  .step-icon { position: absolute; left: 0; top: -4px; margin: 0; }
  .security-grid { grid-template-columns: 1fr; }
  .security-media img { aspect-ratio: 16 / 10; }
  .points { grid-template-columns: 1fr; gap: 24px; }
  .connect { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .connect-row { flex-direction: column; }
  .connect-row input { flex: none; }
  .connect-row .btn { justify-content: center; }
  .downloads { grid-template-columns: 1fr; }
  .dl { padding: 22px; }
  .dl-web { flex-direction: column; align-items: flex-start; padding: 22px; }
  .faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer { margin-top: 96px; }
  .footer-grid { grid-template-columns: 1fr; }
}
