/* DICOM Test Tool for macOS – project website. No external fonts, scripts or trackers. */
:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #13202e;
  --muted: #566575;
  --border: #dbe2e8;
  --accent: #16697a;
  --accent-strong: #0e5361;
  --accent-soft: #e3f2f4;
  --warn-bg: #fff6e8;
  --warn-border: #f0b45a;
  --warn-text: #6b4100;
  --hero-from: #16697a;
  --hero-to: #0b2545;
  --pulse: #99f6e4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d141b;
    --surface: #151f29;
    --text: #e8eef3;
    --muted: #9aaab8;
    --border: #253442;
    --accent: #5ad1c2;
    --accent-strong: #7fe0d4;
    --accent-soft: #15323a;
    --warn-bg: #2a2010;
    --warn-border: #8a6224;
    --warn-text: #f4d29c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav a { color: #fff; text-decoration: none; opacity: .9; font-weight: 500; }
.nav a:hover { opacity: 1; color: #fff; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nav .brand img { width: 28px; height: 28px; }
.nav .links { display: flex; gap: 22px; font-size: 15px; }

/* Hero */
.hero {
  background: linear-gradient(170deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding: 120px 0 84px;
  text-align: center;
}
.hero img.icon { width: 152px; height: 152px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.1; margin: 22px 0 12px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); max-width: 680px; margin: 0 auto; opacity: .92; }
.hero .protocols { margin-top: 14px; font-size: 15px; letter-spacing: .02em; color: var(--pulse); }
.cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: #0b2545; }
.btn-primary:hover { color: #0b2545; background: #eafcf9; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.hero .meta { margin-top: 16px; font-size: 14px; opacity: .8; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.01em; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 34px; max-width: 720px; }

.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text);
  border-radius: 14px; padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start;
}
.notice strong { display: block; margin-bottom: 2px; }
.notice .sym { font-size: 22px; line-height: 1.2; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
}
.card .emoji { font-size: 26px; }
.card h3 { margin: 8px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.extras { columns: 2 300px; column-gap: 40px; padding-left: 20px; margin: 30px 0 0; }
.extras li { margin-bottom: 8px; break-inside: avoid; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; padding: 16px 18px 16px 62px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 15px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--surface);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.req { margin-top: 18px; color: var(--muted); font-size: 15px; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.list { margin: 0; padding-left: 20px; }
.list li { margin-bottom: 10px; }
.list li:last-child { margin-bottom: 0; }

code { font: 15px ui-monospace, "SF Mono", Menlo, monospace; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { margin: 0 0 6px; max-width: 640px; }

/* Screenshots */
.shots { display: grid; gap: 34px; max-width: 960px; margin: 0 auto; }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(11, 37, 69, .18);
}
.shots figcaption { text-align: center; margin-top: 12px; color: var(--muted); font-size: 15px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav .links a.hide-sm { display: none; }
  .hero { padding: 100px 0 64px; }
  section { padding: 56px 0; }
}
