:root {
  color-scheme: dark;
  --bg: #0b1114;
  --panel: #111a1e;
  --line: #2a3a40;
  --text: #edf4f2;
  --muted: #9dabad;
  --mint: #72dfba;
  --amber: #f3b84b;
  --red: #ff7d79;
  --max: 1280px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--mint); color: #07110e; }
.skip-link:focus { top: 16px; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 20; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(8,14,16,.84); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 21px; width: max-content; }
.brand img { display: block; }
.brand small { color: var(--amber); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; border: 1px solid rgba(243,184,75,.5); padding: 3px 6px; }
.topbar nav { display: flex; align-items: center; gap: 30px; color: #c7d2d2; font-size: 14px; }
.topbar nav a:hover, footer a:hover, .text-link:hover { color: var(--mint); }
.topbar-download { justify-self: end; color: var(--mint); border-bottom: 1px solid var(--mint); padding: 8px 0; font-weight: 700; }

.hero { position: relative; min-height: min(700px, 82vh); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url('/assets/millo-hero.jpg') 68% 50% / cover no-repeat; transform: scale(1.01); }
.hero-shade { background: linear-gradient(90deg, rgba(5,10,12,.95) 0%, rgba(5,10,12,.85) 40%, rgba(5,10,12,.28) 72%, rgba(5,10,12,.18) 100%), linear-gradient(0deg, rgba(5,10,12,.72), transparent 38%); }
.hero-content { position: relative; z-index: 2; width: min(680px, calc(100% - 48px)); margin: 92px max(24px, calc((100vw - var(--max)) / 2)) 36px; }
.eyebrow, .section-index { margin: 0 0 18px; color: var(--mint); font: 650 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .14em; }
.hero h1 { margin: 0; font-size: clamp(60px, 7vw, 96px); line-height: .92; font-weight: 750; }
.hero-lead { margin: 28px 0 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.16; font-weight: 650; max-width: 650px; }
.hero-copy { max-width: 610px; color: #c3cdcc; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-weight: 720; }
.button.primary { background: var(--mint); color: #07110e; border-color: var(--mint); }
.button.primary:hover { background: #8aebc9; }
.button.ghost { background: rgba(8,14,16,.55); color: var(--text); border-color: rgba(255,255,255,.35); }
.hero-facts { display: flex; gap: 42px; margin: 44px 0 0; }
.hero-facts div { display: grid; gap: 5px; }
.hero-facts dt { color: #8f9c9e; font-size: 11px; text-transform: uppercase; }
.hero-facts dd { margin: 0; font: 650 14px ui-monospace, SFMono-Regular, Menlo, monospace; }

.alpha-warning { display: grid; grid-template-columns: 180px 1fr; gap: 36px; max-width: var(--max); margin: 0 auto; padding: 28px 24px; border-inline: 1px solid rgba(243,184,75,.4); border-bottom: 1px solid rgba(243,184,75,.4); background: #171914; }
.alpha-warning strong { color: var(--amber); font-size: 20px; }
.alpha-warning p { margin: 0; color: #d8d6c8; line-height: 1.6; max-width: 920px; }

.statement { max-width: var(--max); margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: .65fr 1.4fr; column-gap: 80px; }
.statement .section-index { grid-column: 1; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; font-weight: 700; }
.statement h2 { grid-column: 1 / -1; max-width: 930px; }
.statement > p:last-child { grid-column: 2; margin: 38px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }

.product-scene { border-block: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 1.15fr); min-height: 720px; }
.product-copy { padding: 84px max(48px, calc((100vw - var(--max)) / 2)); padding-right: 70px; }
.product-copy h2 { font-size: clamp(32px, 3.6vw, 48px); }
.product-copy > p:not(.section-index) { color: var(--muted); line-height: 1.7; font-size: 17px; }
.product-scene figure { margin: 0; position: relative; min-height: 560px; background: #151e21; overflow: hidden; }
.product-scene figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-scene figcaption { position: absolute; inset: auto 24px 24px; padding: 11px 14px; color: #d8e0df; background: rgba(5,10,12,.76); font-size: 12px; }
.feature-list { list-style: none; margin: 50px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-list strong { color: var(--text); }
.feature-list span { color: var(--muted); line-height: 1.45; }

.architecture { max-width: var(--max); margin: 0 auto; padding: 110px 24px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px 90px; }
.architecture h2 { font-size: clamp(32px, 3.6vw, 46px); }
.architecture-flow { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; min-height: 100px; padding: 22px 28px; border-block: 1px solid var(--line); font: 650 clamp(13px, 2vw, 18px) ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mint); }
.architecture-flow b { color: #526168; }
.architecture > p { grid-column: 2; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.text-link { grid-column: 2; color: var(--mint); font-weight: 700; }

.downloads { background: #e8efec; color: #0c1518; padding: 104px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.downloads .section-index { color: #177f65; }
.downloads-heading p:last-child { color: #536264; line-height: 1.6; font-size: 17px; }
.download-options { border-top: 1px solid #a8b6b5; }
.download-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px; min-height: 96px; border-bottom: 1px solid #a8b6b5; }
.download-row:hover { background: rgba(255,255,255,.55); }
.download-row > span:nth-child(2) { display: grid; gap: 5px; }
.download-row small { color: #607072; }
.download-row b { color: #156f59; }
.platform-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #819394; font: 700 12px ui-monospace, monospace; text-transform: uppercase; }
.install-note { grid-column: 2; margin: -58px 0 0; color: #637273; font-size: 12px; }

.community { max-width: var(--max); margin: 0 auto; padding: 112px 24px 64px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.community-intro > p:not(.section-index) { color: var(--muted); font-size: 17px; line-height: 1.7; }
.feedback-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.feedback-kinds span { border: 1px solid var(--line); padding: 7px 10px; color: #bfc9c9; font-size: 12px; }
.feedback-form { padding: 30px; border: 1px solid var(--line); background: var(--panel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feedback-form label { display: grid; gap: 8px; margin-bottom: 17px; color: #aebabb; font-size: 12px; text-transform: uppercase; }
.feedback-form input, .feedback-form select, .feedback-form textarea { width: 100%; color: var(--text); background: #0b1316; border: 1px solid #34454b; border-radius: 3px; outline: none; padding: 13px 14px; text-transform: none; }
.feedback-form textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 2px rgba(114,223,186,.14); }
.form-footer { display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.form-footer p { margin: 0; max-width: 370px; color: #78878a; font-size: 12px; line-height: 1.45; }
.form-footer .button { flex: 0 0 auto; }
.honeypot { position: absolute; left: -10000px; }
#form-status { display: block; min-height: 24px; margin-top: 16px; color: var(--mint); font-size: 13px; }
#form-status.error { color: var(--red); }

.comments { max-width: var(--max); margin: 0 auto; padding: 40px 24px 112px; }
.comments-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.comments h2 { font-size: 27px; }
.quiet-button { color: var(--mint); background: transparent; border: 1px solid #405157; border-radius: 3px; padding: 9px 12px; cursor: pointer; }
.quiet-button:hover { border-color: var(--mint); }
.comments-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.comment { min-height: 190px; padding: 24px; background: var(--bg); }
.comment-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.comment-head strong { color: var(--text); font-size: 14px; }
.comment-kind { color: var(--amber); }
.comment p { margin: 30px 0 0; color: #c4cecd; line-height: 1.6; overflow-wrap: anywhere; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 44px 0; color: var(--muted); background: var(--bg); }

.support { border-block: 1px solid var(--line); padding: 86px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; background: #10181b; }
.support h2 { font-size: clamp(32px, 4vw, 52px); }
.support p:last-child { color: var(--muted); }
.donation { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; padding: 28px; border: 1px solid #405157; background: #0b1316; }
.donation > span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.donation strong { font: 700 clamp(20px, 3vw, 30px) ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }

footer { max-width: var(--max); min-height: 150px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 30px; color: var(--muted); font-size: 12px; }
footer p { text-align: center; }
footer > div:last-child { display: flex; justify-content: flex-end; gap: 18px; }

@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .statement, .product-scene, .architecture, .downloads, .community, .support { grid-template-columns: 1fr; }
  .statement > p:last-child, .architecture > p, .text-link, .install-note { grid-column: 1; }
  .statement > p:last-child { margin-left: 12%; }
  .product-scene figure { min-height: 520px; }
  .product-copy { padding: 76px 24px; }
  .downloads, .community, .support { gap: 50px; }
  .install-note { margin: 0; }
  .comments-list { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand, footer > div:last-child { justify-self: center; justify-content: center; }
}

@media (max-width: 620px) {
  .topbar { height: 64px; padding-inline: 16px; }
  .topbar-download { font-size: 13px; }
  .hero { min-height: 760px; align-items: end; }
  .hero-image { background-position: 62% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,10,12,.98) 12%, rgba(5,10,12,.74) 70%, rgba(5,10,12,.28)); }
  .hero-content { margin: 100px 20px 36px; width: calc(100% - 40px); }
  .hero h1 { font-size: 76px; }
  .hero-lead { font-size: 32px; }
  .hero-copy { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-facts { gap: 20px; justify-content: space-between; }
  .alpha-warning { grid-template-columns: 1fr; gap: 12px; margin-inline: 12px; padding: 22px; }
  .statement { padding-block: 80px; }
  .statement > p:last-child { margin-left: 0; }
  h2 { font-size: 36px; }
  .product-scene { min-height: 0; }
  .product-scene figure { min-height: 440px; }
  .feature-list li { grid-template-columns: 1fr; gap: 8px; }
  .architecture { padding-block: 78px; }
  .architecture-flow { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .architecture-flow b:last-of-type { display: none; }
  .downloads { padding-block: 76px; }
  .download-row { grid-template-columns: 52px 1fr; padding-block: 14px; }
  .download-row > b { grid-column: 2; }
  .community { padding-top: 78px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .feedback-form { padding: 20px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .comments-list { grid-template-columns: 1fr; }
  .support { padding-block: 70px; }
  .donation { grid-template-columns: 1fr; }
  .donation strong { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
