@font-face { font-family: Manrope; src: url("manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("dm-sans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }

/* UnderHost ecosystem palette (underhost.com): navy bands, cyan accent, blue gradient actions */
:root {
  color-scheme: dark;
  --navy: #071426;
  --navy-mid: #0d1b30;
  --navy-panel: #0f2040;
  --ink: #e8f0fb;
  --muted: #b8c7d9;
  --line: rgba(0, 212, 255, .14);
  --cyan: #00d4ff;
  --blue: #0091d6;
  --light-bg: #f4f7fc;
  --light-ink: #0a1628;
  --light-muted: #4a5b74;
  --light-line: rgba(0, 100, 200, .14);
  font-family: "DM Sans", system-ui, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--navy); color: var(--ink); }

a { color: var(--cyan); text-underline-offset: .2em; }
a:hover { color: #fff; }
a:focus-visible, .btn:focus-visible { outline: 3px solid rgba(46, 168, 255, .45); outline-offset: 4px; }

h1, h2, h3, .btn { font-family: Manrope, "DM Sans", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.03em; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 5.6vw, 4.9rem); }
h1 em { font-style: normal; color: var(--cyan); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.band-dark { background: var(--navy); color: var(--ink); }
.hero-band { background: radial-gradient(ellipse at 82% 20%, #0f2a52 0, transparent 52%), linear-gradient(180deg, var(--navy), var(--navy-mid)); }
.band-light { background: var(--light-bg); color: var(--light-ink); color-scheme: light; }
.band-light a { color: #0077ff; }
.band-light a:hover { color: #005fcc; }

.nav, .footer { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; }
.top { border-bottom: 1px solid var(--line); }
.nav img, .footer img { display: block; height: auto; }
.nav nav, .foot-links { display: flex; gap: 26px; }
.nav nav a, .footer a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:hover, .footer a:hover { color: #fff; }
.foot { border-top: 1px solid var(--line); }
.footer { padding-block: 28px; }

.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-block: 76px; }
.platform { color: var(--cyan); font-size: .8rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 14px; }
.intro { max-width: 34rem; color: var(--muted); font-size: 1.15rem; margin: 22px 0 30px; }

/* UnderHost standard CTA: white pill, blue text, gradient on hover */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 11px 22px;
  border-radius: 50px;
  background: #fff;
  color: #0077ff;
  border: 1px solid rgba(46, 168, 255, .2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .3px;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}
.btn span { transition: transform .3s; }
.btn:hover {
  background: linear-gradient(90deg, #0077ff, #2ea8ff, #18d5ff);
  color: #fff !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 86, 194, .18);
}
.btn:hover span { transform: translateX(5px); }
.band-light .btn-solid { background: linear-gradient(90deg, #0077ff, #2ea8ff); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(0, 119, 255, .25); }
.band-light .btn-solid:hover { background: linear-gradient(90deg, #0077ff, #2ea8ff, #18d5ff); }

.shot { margin: 0; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(0, 212, 255, .28); border-radius: 13px; box-shadow: 0 22px 62px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 145, 214, .12); }

.section { padding: 56px 0 60px; }
.section-head, .update { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.section p { color: var(--muted); margin: 10px 0; }
.band-light .section p { color: var(--light-muted); }

.version {
  background: rgba(0, 145, 214, .12);
  border: 1px solid rgba(0, 145, 214, .35);
  border-radius: 100px;
  padding: 4px 14px;
  white-space: nowrap;
  color: #0077b8;
  font-size: .875rem;
  font-weight: 700;
}

.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.downloads article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--light-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(10, 22, 40, .06);
}
.downloads article p { margin: 0 0 4px; }
.fine { max-width: 78ch; font-size: .95rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 52px; }
  .shot { max-width: 620px; }
}

@media (max-width: 550px) {
  .wrap { width: calc(100% - 32px); }
  .nav nav { gap: 14px; font-size: .92rem; }
  .nav img { width: 126px; }
  .downloads { grid-template-columns: 1fr; }
  .update { align-items: flex-start; flex-direction: column; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

/* Downloads paused until the next release (2026-11-28) */
.btn.btn-off, .band-light .btn-solid.btn-off { background: #e2e8f0; color: #94a3b8 !important; border-color: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }
.band-dark .btn.btn-off { background: rgba(255, 255, 255, .08); color: rgba(232, 240, 251, .55) !important; border-color: rgba(255, 255, 255, .14); }
.btn.btn-off:hover { background: #e2e8f0; color: #94a3b8 !important; transform: none; box-shadow: none; }
.band-dark .btn.btn-off:hover { background: rgba(255, 255, 255, .08); color: rgba(232, 240, 251, .55) !important; }
.dl-off { color: #94a3b8; font-weight: 500; cursor: not-allowed; }
.paused { display: inline-block; margin: 18px 0 0 !important; padding: 10px 16px; border-left: 4px solid #f59e0b; border-radius: 0 10px 10px 0; background: #fff7e6; color: #8a5a00 !important; font-weight: 600; }

/* Phones: menu and footer links wrap under the logo instead of widening the page (2026-11-28) */
@media (max-width: 700px) {
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav nav { flex-wrap: wrap; gap: 6px 18px; width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-links { flex-wrap: wrap; gap: 8px 20px; }
  .actions .btn { justify-content: center; }
}

/* Phones: hamburger menu (CSS only, CSP has no inline scripts) + structured footer, same as the hub (2026-11-28) */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.burger { display: none; }
.copy { margin: 0; color: rgba(184, 199, 217, .6); font-size: .8rem; }
@media (max-width: 700px) {
  .nav { flex-wrap: wrap; row-gap: 0; padding-block: 14px; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 40px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; cursor: pointer; }
  .burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .nav-toggle:focus-visible + .burger { outline: 3px solid rgba(46, 168, 255, .5); outline-offset: 2px; }
  .nav-toggle:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav nav { display: none; flex-direction: column; gap: 2px; width: 100%; margin: 12px 0 4px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #0b1d37; font-size: 1rem; }
  .nav-toggle:checked ~ nav { display: flex; }
  .nav nav a { padding: 11px 12px; border-radius: 10px; color: #fff; }
  .nav nav a:hover { background: rgba(255, 255, 255, .06); }
  .footer { flex-direction: column; align-items: stretch; gap: 16px; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}
.downloads-one { grid-template-columns: minmax(0, 620px); }
.downloads-one code { font-size: .9em; }
