:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #0e131d;
  --panel: #131a26;
  --panel-2: #192131;
  --line: rgba(148, 163, 184, 0.17);
  --text: #edf2f8;
  --muted: #96a3b5;
  --accent: #49d4c9;
  --accent-2: #4d82ff;
  --accent-dark: #071b1b;
  --danger: #ff7c87;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% 13%, rgba(77, 130, 255, 0.13), transparent 27rem),
    radial-gradient(circle at 13% 35%, rgba(73, 212, 201, 0.08), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.brand span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--text); }
.site-header .nav-access { color: var(--accent); }

.section-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.hero {
  min-height: 720px;
  padding: 94px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(510px, 1.18fr);
  align-items: center;
  gap: 64px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(73, 212, 201, 0.9);
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.045em; }
h1 { margin-bottom: 28px; font-size: clamp(3rem, 5.5vw, 5.65rem); font-weight: 850; }
h1 span { color: var(--accent); }
.lead { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 42px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, .download-card:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(73, 212, 201, 0.42);
  outline-offset: 3px;
}
.button-primary { background: var(--accent); color: #051313; }
.button-primary:hover { background: #61e3d8; }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,0.025); color: var(--text); }
.button-secondary:hover { border-color: rgba(73, 212, 201, 0.5); }
.button[disabled] { cursor: wait; opacity: 0.65; transform: none; }

.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; }
.hero-facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-facts dd { margin: 4px 0 0; font-size: 0.86rem; font-weight: 700; }

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.24);
  border-radius: 18px;
  background: #0b0f16;
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
}
.hero-media picture { position: relative; z-index: 1; }
.hero-media img { width: 100%; height: auto; }
.window-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #111722;
}
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #425067; }
.window-bar b { margin-left: auto; color: #8c9aae; font: 600 0.7rem ui-monospace, monospace; letter-spacing: 0.08em; }
.media-glow { position: absolute; inset: 20% -20% -50%; background: radial-gradient(circle, rgba(73,212,201,0.25), transparent 58%); filter: blur(30px); }

.project-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}
.project-strip div { min-height: 118px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; border-right: 1px solid var(--line); }
.project-strip div:last-child { border-right: 0; }
.project-strip strong { color: var(--accent); font: 700 0.75rem ui-monospace, monospace; }
.project-strip span { color: #c7d0dc; font-size: 0.86rem; font-weight: 650; }

.section-block { padding-block: 126px; }
.section-heading { max-width: 790px; margin-bottom: 50px; }
.section-heading.compact { margin-bottom: 38px; }
h2 { margin-bottom: 22px; font-size: clamp(2.15rem, 4.4vw, 4.15rem); }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-grid article {
  position: relative;
  min-height: 250px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25,33,49,0.72), rgba(14,19,29,0.72));
}
.feature-grid article::after { content: ""; position: absolute; width: 150px; height: 150px; right: -90px; bottom: -90px; border-radius: 50%; background: rgba(73,212,201,0.08); }
.feature-index { color: var(--accent); font: 700 0.72rem ui-monospace, monospace; }
.feature-grid h3 { margin: 46px 0 14px; font-size: 1.45rem; }
.feature-grid p { margin: 0; color: var(--muted); }
code { color: var(--accent); font: 500 0.88em ui-monospace, "SFMono-Regular", Consolas, monospace; }

.gallery { padding-top: 50px; }
.showcase {
  display: grid;
  gap: 44px;
  margin-bottom: 24px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14,19,29,0.82);
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}
.showcase-wide { grid-template-columns: 0.7fr 1.3fr; align-items: center; }
.showcase-small { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.showcase picture { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #090c12; }
.showcase img { width: 100%; height: auto; }
.showcase-copy { padding: 14px; }
.kicker { color: var(--accent); font: 700 0.72rem ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.showcase h3 { margin: 16px 0; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.showcase p, .showcase li { color: var(--muted); }
.showcase ul { margin: 24px 0 0; padding: 0; list-style: none; }
.showcase li { position: relative; margin: 9px 0; padding-left: 22px; }
.showcase li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--accent); }

.access-section { margin-top: 110px; padding: 110px 20px; border-block: 1px solid var(--line); background: linear-gradient(135deg, rgba(77,130,255,0.1), rgba(73,212,201,0.045)); }
.access-shell { width: min(100%, var(--max)); margin: 0 auto; display: grid; grid-template-columns: 0.84fr 1.16fr; gap: 72px; align-items: center; }
.access-intro > p:not(.eyebrow) { color: var(--muted); }
.security-note { display: flex; gap: 14px; margin-top: 32px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,11,18,0.55); }
.security-note svg { flex: 0 0 24px; fill: var(--accent); }
.security-note p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.security-note strong { color: var(--text); }
.access-card { min-height: 370px; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(73,212,201,0.24); border-radius: var(--radius); background: rgba(8,11,18,0.88); box-shadow: var(--shadow); }
.access-card label { display: block; margin-bottom: 10px; color: #cfd8e5; font-size: 0.84rem; font-weight: 750; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-row input { min-width: 0; height: 52px; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; background: #0d121b; color: var(--text); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.code-row input::placeholder { color: #526075; }
.form-status { min-height: 26px; margin: 12px 0 0; color: var(--muted); font-size: 0.84rem; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--accent); }
.download-panel { animation: reveal 260ms ease both; }
.download-panel > p { color: var(--muted); font-size: 0.9rem; }
.unlocked-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.unlocked-heading > div { display: flex; align-items: center; }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.78rem; text-decoration: underline; text-underline-offset: 3px; }
.download-grid { display: grid; gap: 9px; margin: 22px 0 18px; }
.download-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; transition: border-color 160ms ease, background 160ms ease; }
.download-card:hover { border-color: rgba(73,212,201,0.46); background: var(--panel-2); }
.platform-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-dark); color: var(--accent); font: 800 0.64rem ui-monospace, monospace; }
.download-card span:nth-child(2) { display: flex; flex-direction: column; }
.download-card strong { font-size: 0.92rem; }
.download-card small { color: var(--muted); }
.download-card b { color: var(--accent); font-size: 0.76rem; }
.download-card.recommended { border-color: rgba(73,212,201,0.64); box-shadow: inset 3px 0 var(--accent); }
.checksum-link { color: var(--muted); font-size: 0.78rem; text-underline-offset: 3px; }

footer { width: min(calc(100% - 40px), var(--max)); min-height: 150px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
footer p { color: var(--muted); font-size: 0.82rem; }
footer div { display: flex; gap: 18px; }
footer div a { color: var(--muted); font-size: 0.78rem; }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 72px; }
  .hero-media { max-width: 820px; transform: none; }
  .project-strip { grid-template-columns: repeat(2, 1fr); }
  .project-strip div:nth-child(2) { border-right: 0; }
  .project-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .showcase-wide, .showcase-small, .access-shell { grid-template-columns: 1fr; }
  .showcase-small picture { order: 2; }
  .access-shell { gap: 42px; }
}

@media (max-width: 680px) {
  .site-header { width: min(calc(100% - 28px), var(--max)); height: 70px; }
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.nav-access) { display: none; }
  .section-shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 60px 0 70px; gap: 44px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .project-strip { grid-template-columns: 1fr; }
  .project-strip div { min-height: 76px; justify-content: flex-start; padding-left: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-strip div:last-child { border-bottom: 0; }
  .section-block { padding-block: 88px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 220px; padding: 28px; }
  .showcase { padding: 12px; gap: 18px; }
  .showcase-copy { padding: 20px 12px; }
  .access-section { margin-top: 70px; padding: 82px 14px; }
  .access-card { min-height: 0; }
  .code-row { grid-template-columns: 1fr; }
  .code-row .button { width: 100%; }
  .download-card { grid-template-columns: 42px 1fr; }
  .download-card b { display: none; }
  footer { min-height: 180px; grid-template-columns: 1fr; align-content: center; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
