@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --background: #050608; --surface: #0b0d11; --surface-2: #10131a; --line: #252a34;
  --blue: #2e8bff; --blue-light: #74bcff; --text: #f7f9fc; --muted: #a5adba; --quiet: #737d8e;
  --display: "Chakra Petch", "Segoe UI", sans-serif; --body: "Inter", "Segoe UI", sans-serif;
  --page: 1040px; --gutter: clamp(20px, 4vw, 40px); color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0; color: var(--muted); font-family: var(--body); font-size: 16px; line-height: 1.7;
  background: var(--background); -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }
a { color: var(--blue-light); }
button, a { -webkit-tap-highlight-color: transparent; }
.hero, .section { width: min(100%, var(--page)); margin-inline: auto; padding-inline: var(--gutter); }

.hero { min-height: min(780px, 92vh); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 64px; padding-bottom: 96px; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(60px, 10vh, 96px); color: var(--text); font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .18em; text-decoration: none; }
.brand-mark { display: inline-flex; }
.eyebrow, .kicker { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
h1, h2 { color: var(--text); font-family: var(--display); font-weight: 700; }
h1 { margin: 0; font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -.025em; line-height: .94; }
h1 span { display: block; }
.accent { color: var(--blue); }
.hero-copy { max-width: 690px; margin: 30px auto 0; font-size: clamp(1rem, 2vw, 1.16rem); }

.section { padding-top: clamp(72px, 10vw, 112px); padding-bottom: clamp(72px, 10vw, 112px); border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.08; }
.about-copy { max-width: 790px; margin: 28px 0 0; color: #c3c9d2; font-size: clamp(1rem, 1.7vw, 1.12rem); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; max-width: 820px; margin: 38px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.feature-list li span { color: var(--blue); font-size: 25px; line-height: 0; }

.download { display: grid; grid-template-columns: minmax(0, .8fr) minmax(380px, 1.2fr); gap: clamp(44px, 8vw, 92px); align-items: center; }
.download-copy p:last-child { max-width: 470px; margin: 22px 0 0; }
.download-card { padding: clamp(24px, 4vw, 38px); background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 18px; }
.download-button { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 15px 22px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 500; letter-spacing: .04em; text-decoration: none; }
.download-button:hover { background: var(--blue-light); color: #00152c; }
.release-line, .other-builds { margin: 14px 0 0; color: var(--quiet); font-size: 13px; text-align: center; }
.release-line span + span, .other-builds span { margin-left: 7px; }
.requirements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.requirements div { padding: 15px 12px; background: #080a0e; text-align: center; }
.requirements div + div { border-left: 1px solid var(--line); }
.requirements dt { color: var(--quiet); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.requirements dd { margin: 4px 0 0; color: var(--text); font-size: 14px; }

.site-footer { margin-top: clamp(60px, 9vh, 110px); padding: clamp(48px, 6vw, 76px) var(--gutter) 30px; overflow: hidden; border-top: 1px solid var(--line); background: var(--background); }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; max-width: var(--page); margin: 0 auto; }
.footer-brand { color: var(--text); font-family: var(--display); font-size: 17px; letter-spacing: .16em; text-decoration: none; }
.footer-brand sup { font-size: .55em; letter-spacing: 0; }
.footer-brand:hover { color: var(--blue-light); }
.footer-nav { display: flex; align-items: flex-start; gap: 18px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.footer-nav .bracket { color: var(--quiet); }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--blue-light); }
.footer-cta { justify-self: end; width: 100%; max-width: 320px; }
.footer-cta-head { margin: 0 0 14px; color: var(--text); font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: .04em; text-align: right; text-transform: uppercase; }
.footer-pill { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 24px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; }
.footer-pill:hover { background: var(--blue-light); color: #00152c; }
.footer-pill-arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #000; color: #fff; }
.footer-wordmark { margin: clamp(56px, 9vw, 120px) 0 clamp(28px, 4vw, 56px); color: #f2f4f7; font-family: var(--display); font-size: clamp(4.5rem, 26vw, 22rem); font-weight: 700; letter-spacing: -.045em; line-height: .78; text-align: center; white-space: nowrap; transform: skewX(-11deg) scaleY(1.22); transform-origin: 50% 100%; user-select: none; }
.footer-base { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: center; max-width: var(--page); margin: 0 auto; padding-top: 26px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12.5px; }
.footer-base p { margin: 0; }
.footer-legal { display: flex; justify-content: center; gap: 18px; }
.footer-legal button, .dialog-close { border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.footer-legal button { padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal button:hover, .dialog-close:hover { color: var(--text); }
.footer-note { text-align: right; }

.legal-dialog { width: min(680px, calc(100% - 32px)); max-height: min(78vh, 720px); margin: auto; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid #343b48; border-radius: 18px; box-shadow: 0 32px 100px rgba(0,0,0,.72); color: var(--muted); }
.legal-dialog::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(9px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 2rem; }
.dialog-head .kicker { margin-bottom: 7px; }
.dialog-close { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 50%; font-size: 25px; line-height: 1; }
.legal-copy { max-height: calc(min(78vh, 720px) - 116px); padding: 24px 30px 30px; overflow-y: auto; }
.legal-copy p { margin: 0; }
.legal-copy p + p { margin-top: 18px; }
.legal-date { color: var(--quiet); font-size: 13px; }

.guide-header, .guide-main, .guide-footer { width: min(100%, 860px); margin-inline: auto; padding-inline: var(--gutter); }
.guide-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.guide-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.guide-header nav { display: flex; gap: 20px; font-size: 13px; }
.guide-header nav a { color: var(--muted); text-decoration: none; }
.guide-header nav a:hover { color: var(--blue-light); }
.guide-main { padding-top: clamp(62px, 9vw, 100px); padding-bottom: clamp(72px, 10vw, 120px); }
.breadcrumbs { margin: 0 0 28px; color: var(--quiet); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.guide-main h1 { max-width: 800px; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1; }
.guide-lead { max-width: 720px; margin: 28px 0 0; color: #c3c9d2; font-size: clamp(1.08rem, 2vw, 1.25rem); }
.guide-content { margin-top: clamp(56px, 8vw, 84px); }
.guide-content h2 { margin-top: 58px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.guide-content h2:first-child { margin-top: 0; }
.guide-content h3 { margin: 34px 0 0; color: var(--text); font-family: var(--display); font-size: 1.25rem; }
.guide-content p, .guide-content ol, .guide-content ul { max-width: 720px; margin-top: 18px; }
.guide-content li + li { margin-top: 10px; }
.guide-content strong { color: var(--text); font-weight: 500; }
.guide-note { padding: 22px 24px; background: var(--surface); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.guide-card { display: block; min-height: 180px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.guide-card:hover { border-color: var(--blue); }
.guide-card h2, .guide-card h3 { margin: 0; color: var(--text); font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.guide-card p { margin: 12px 0 0; color: var(--muted); }
.guide-cta { margin-top: 64px; padding: clamp(26px, 5vw, 42px); background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; }
.guide-cta h2 { margin-top: 0; }
.guide-cta .download-button { width: fit-content; margin-top: 24px; }
.guide-footer { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 34px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 13px; }
.guide-footer p { margin: 0; }

@media (max-width: 760px) {
  .hero { min-height: 720px; }
  .feature-list, .download, .footer-top, .footer-base { grid-template-columns: 1fr; }
  .download { gap: 36px; }
  .footer-top { gap: 32px; }
  .footer-cta { justify-self: stretch; max-width: none; }
  .footer-cta-head, .footer-note { text-align: left; }
  .footer-legal { justify-content: flex-start; }
  .guide-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { min-height: 650px; }
  .brand { margin-bottom: 58px; }
  .feature-list { gap: 14px; }
  .requirements { grid-template-columns: 1fr; }
  .requirements div + div { border-top: 1px solid var(--line); border-left: 0; }
  .dialog-head, .legal-copy { padding-left: 22px; padding-right: 22px; }
  .guide-header { align-items: flex-start; }
  .guide-header nav { flex-direction: column; gap: 4px; text-align: right; }
  .guide-footer { flex-direction: column; }
}
