/* DOS95 — getdos95.com. Plain CSS, system fonts, no build step. */

:root {
  --bg: #f6f7f9;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #0e1726;
  --muted: #4a5568;
  --border: #e1e5ec;
  --accent: #00777a;          /* a deeper Windows 95 teal; 5.3:1 on white */
  --accent-strong: #005c5f;
  --accent-soft: #e2f3f3;
  --navy: #12207a;            /* the floppy's navy */
  --dos: #a35a00;
  --win: #1d4ed8;
  --mac: #7a3fc4;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 28px rgba(15, 23, 42, .10);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .08), 0 22px 50px rgba(15, 23, 42, .18);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-alt: #0f1828;
    --surface: #131e31;
    --text: #e7edf5;
    --muted: #a3b0c2;
    --border: #23314a;
    --accent: #3cc6c4;
    --accent-strong: #6fd9d6;
    --accent-soft: #0f2d33;
    --navy: #8ea2ff;
    --dos: #f0a646;
    --win: #7aa6ff;
    --mac: #c39bff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .45), 0 22px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0f1828;
  --surface: #131e31;
  --text: #e7edf5;
  --muted: #a3b0c2;
  --border: #23314a;
  --accent: #3cc6c4;
  --accent-strong: #6fd9d6;
  --accent-soft: #0f2d33;
  --navy: #8ea2ff;
  --dos: #f0a646;
  --win: #7aa6ff;
  --mac: #c39bff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .45), 0 22px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 1.2rem; letter-spacing: .01em;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand.small { font-size: 1rem; margin: 0; }
.nav { margin-left: auto; position: relative; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550;
}
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a.nav-cta { color: #fff; background: var(--accent); margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--accent-strong); color: #fff; }
:root[data-theme="dark"] .nav a.nav-cta, :root[data-theme="dark"] .btn-primary { color: #04201f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a.nav-cta, :root:not([data-theme="light"]) .btn-primary { color: #04201f; }
}
.nav-toggle, .theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle { display: none; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn.is-disabled { opacity: .55; pointer-events: none; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(1100px 520px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(800px 420px at -10% 110%, color-mix(in srgb, var(--navy) 10%, transparent), transparent 70%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-facts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px 32px;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.15rem; }
.hero-facts span { font-size: .85rem; color: var(--muted); }

.hero-shots { position: relative; aspect-ratio: 4 / 3.35; }
.hero-shots .shot { position: absolute; width: 78%; margin: 0; }
.shot-back  { top: 0;   right: 0;  transform: rotate(1.5deg); }
.shot-mid   { top: 16%; left: 0;   transform: rotate(-1.5deg); }
.shot-front { top: 33%; right: 6%; }

/* Screenshots */
.shot {
  margin: 0; background: #000; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.shot figcaption {
  font-size: .85rem; color: var(--muted); background: var(--surface);
  padding: 8px 12px; border-top: 1px solid var(--border);
}

/* Sections */
.section { padding: 96px 0; }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 780; letter-spacing: -.02em; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; margin-bottom: 40px; }
.section-lead.center { margin-left: auto; margin-right: auto; }
.eyebrow.center { text-align: center; }
.note { font-size: .9rem; color: var(--muted); }

.what { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Trinity */
.world {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--border);
}
.world:first-of-type { border-top: 0; }
.world:nth-of-type(even) .world-text { order: 2; }
.world-tag {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
  border: 1px solid currentColor;
}
.world-dos .world-tag { color: var(--dos); }
.world-win .world-tag { color: var(--win); }
.world-mac .world-tag { color: var(--mac); }
.world h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 760; }
.world-text > p { color: var(--muted); }
.world-text > p strong { color: var(--text); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.proof { font-size: .95rem; font-weight: 600; color: var(--text); }
.world-shots { display: grid; grid-template-columns: 1fr; gap: 18px; }
.world-shots .shot:nth-child(2) { width: 70%; margin: -16% 0 0 auto; position: relative; }

/* Hardware */
.hardware { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 48px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tier { padding: 24px; border-left: 1px solid var(--border); position: relative; }
.tier:first-child { border-left: 0; }
.tier::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--accent); opacity: .25;
}
.tier:nth-child(2)::before { opacity: .45; }
.tier:nth-child(3)::before { opacity: .7; }
.tier-now::before { opacity: 1; }
.tier-name { font-weight: 780; font-size: 1.2rem; margin: 0; }
.tier-cpu { font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 10px; }
.tier p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }
.hw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.hw-grid h3 { font-size: 1.08rem; }
.hw-grid p { color: var(--muted); font-size: .97rem; }

/* Features */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 48px; }
.gallery .shot { box-shadow: var(--shadow); }
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 26px 26px 22px; }
.feature h3 { font-size: 1.08rem; }
.feature h3::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); margin-right: 10px; vertical-align: middle; translate: 0 -2px;
}
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }
.setup-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }

/* Measured */
.measured {
  background: linear-gradient(160deg, #0a4f52, #0d2b5c);
  color: #eef6f7;
}
.measured .section-lead, .measured .note { color: #c3dadd; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 20px; }
.stats div {
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius);
  padding: 24px; background: rgba(255, 255, 255, .05);
  display: flex; flex-direction: column-reverse; justify-content: flex-end; text-align: center;
}
.stats dd { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.stats dt { color: #c3dadd; font-size: .95rem; }

/* Store */
.store-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.store-counts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.store-counts li {
  display: flex; align-items: baseline; gap: 12px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.store-counts strong { font-size: 1.9rem; font-weight: 800; color: var(--accent); min-width: 2.4ch; }
.store-counts span { color: var(--muted); font-size: .92rem; }
.store-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.store-lists h3 { font-size: 1.05rem; }
.store-lists p { color: var(--muted); font-size: .97rem; margin: 0; }
.store-lists .shot { grid-column: 2; grid-row: 2 / span 2; align-self: start; }

/* Credits */
.credits { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.credit-list {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.credit-list li {
  display: flex; flex-direction: column; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.credit-list strong { font-size: .98rem; }
.credit-list span { font-size: .86rem; color: var(--muted); }

/* FAQ */
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 650; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Download */
.download {
  background:
    radial-gradient(640px 300px at 50% 260px, color-mix(in srgb, var(--accent) 12%, transparent), transparent 75%);
}
.dl-logo { margin: 0 auto 18px; }
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 24px; text-align: left; }
.dl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.dl-card h3 { font-size: 1.15rem; }
.dl-card p { color: var(--muted); flex: 1; }
.dl-card .btn { align-self: flex-start; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; font-size: .88rem; color: var(--muted); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; }
.footer-row p { margin: 0; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 94vh;
}
.lightbox::backdrop { background: rgba(5, 10, 20, .82); }
.lightbox img {
  width: auto; max-width: min(96vw, 1200px); max-height: 90vh; border-radius: var(--radius-sm);
  image-rendering: pixelated; box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-shots { max-width: 640px; width: 100%; margin: 0 auto; }
  .hw-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier:nth-child(3) { border-left: 0; }
  .tier:nth-child(n+3) { border-top: 1px solid var(--border); }
  .grid-features { grid-template-columns: 1fr 1fr; }
  .credit-list { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .store-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav ul {
    display: none; position: absolute; right: 0; top: calc(100% + 12px);
    flex-direction: column; align-items: stretch; min-width: 220px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  }
  .nav ul.open { display: flex; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .world { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .world:nth-of-type(even) .world-text { order: 0; }
  .cards.three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 56px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .tiers, .hw-grid, .grid-features, .dl-cards, .setup-strip, .store-lists { grid-template-columns: 1fr; }
  .tier { border-left: 0; }
  .tier + .tier { border-top: 1px solid var(--border); }
  .store-lists .shot { grid-column: auto; grid-row: auto; }
  .credit-list { grid-template-columns: 1fr 1fr; }
  .footer-row { grid-template-columns: 1fr; gap: 12px; }
  .stats div { padding: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
