:root {
  color-scheme: light dark;
  --bg: #f4f6f5;
  --panel: #ffffff;
  --panel-soft: #f8faf9;
  --text: #14201f;
  --muted: #5d6b69;
  --line: #dbe3e0;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #dff4f0;
  --shadow: 0 24px 70px rgba(20, 45, 42, 0.13);
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1312;
    --panel: #131c1a;
    --panel-soft: #101816;
    --text: #e7efed;
    --muted: #93a5a1;
    --line: #263431;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #12352f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  }

  .button.primary { color: #06201d; }
  .badge.academic { color: #a7f3d0; }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(1100px 600px at 8% -12%, var(--accent-soft), transparent 62%),
    radial-gradient(900px 500px at 96% 8%, rgba(45, 212, 191, 0.09), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

img { max-width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand img { border-radius: 9px; }

.nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--text); }

main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.download-panel {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: background 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.button:active { transform: translateY(1px); }

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover { background: var(--accent-strong); }

.button.secondary {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--text);
}

.button.secondary:hover { border-color: var(--accent); }

#primary-download, #cta-download {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
}

.download-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.platform-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.platform small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.platform:hover, .platform.current { border-color: var(--accent); }
.platform.current { background: var(--accent-soft); }

.meta-line {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.hero-shot { margin: 0; }

.hero-shot img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.hero-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.section {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.features article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.features p, .source-card p, .cta p {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 9px 0 9px 40px;
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 9px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.steps strong { color: var(--text); }

.source-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 18px;
}

.badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.badge.academic { color: var(--accent); }
.badge.institution { color: #2563eb; }
.badge.news { color: #b45309; }
.badge.media { color: #9d174d; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cta-actions .button { min-width: 150px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px clamp(20px, 5vw, 64px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img { border-radius: 7px; }

footer nav {
  display: flex;
  gap: 16px;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot img { max-height: 520px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav nav { gap: 12px; }
  .nav nav a:nth-child(1), .nav nav a:nth-child(2) { display: none; }
  .features { grid-template-columns: 1fr; }
  .platform-links { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; }
}
