/* Downloads do aylos, na mesma linguagem do site: uma matiz (--h, --s), Sora leve,
   Manrope, JetBrains Mono nos rótulos e cantos em L. O hipercubo gira ao lado do título. */
@font-face { font-family: 'Sora'; src: url('/static/fonts/sora-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/static/fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/static/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --h: 188;
  --s: 90%;
  --void: hsl(var(--h) 30% 1.4%);
  --ink: hsl(var(--h) 16% 93%);
  --ink-2: hsl(var(--h) 10% 78%);
  --ink-3: hsl(var(--h) 8% 60%);
  --acc: hsl(var(--h) var(--s) 66%);
  --acc-hi: hsl(var(--h) var(--s) 80%);
  --acc-ink: hsl(var(--h) 45% 7%);
  --acc-wash: hsl(var(--h) var(--s) 50% / 0.13);
  --line: hsl(var(--h) var(--s) 66% / 0.2);
  --line-strong: hsl(var(--h) var(--s) 66% / 0.48);
  --glass: hsl(var(--h) 30% 3.2% / 0.86);
  --panel: hsl(var(--h) 26% 7% / 0.7);
  --f-title: 'Sora', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 15.5px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 74% 18%, hsl(var(--h) var(--s) 30% / 0.16), transparent 55%),
    linear-gradient(hsl(var(--h) var(--s) 66% / 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, hsl(var(--h) var(--s) 66% / 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--void);
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
svg { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; font-family: var(--f-title); font-weight: 300; }
.wrap { max-width: 1192px; margin: auto; padding-left: 40px; padding-right: 40px; position: relative; z-index: 1; }

.skip-link { position: absolute; top: -80px; left: 20px; z-index: 5; background: var(--acc); color: var(--acc-ink); padding: 12px; border-radius: 3px; }
.skip-link:focus { top: 12px; }

/* Cabeçalho */
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 22px/1 var(--f-title); letter-spacing: -0.06em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.home-link { color: var(--ink-2); }
.nav-app { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink); }
.nav-app:hover { border-color: var(--acc); background: var(--acc-wash); text-decoration: none; }
.nav-app svg { width: 15px; height: 15px; }

/* Herói */
.hero { position: relative; padding: 76px 0 64px; min-height: 420px; }
.hero > :not(.cube) { max-width: 560px; position: relative; z-index: 1; }
.eyebrow { color: var(--acc); font: 500 11px/1.8 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.eyebrow-mark { width: 8px; height: 8px; background: var(--acc); border-radius: 1px; }
.hero h1 { margin-top: 20px; font-size: clamp(42px, 5.6vw, 76px); letter-spacing: -0.05em; line-height: 1.02; }
.hero h1 span { color: var(--acc); }
.hero-description { color: var(--ink-2); font-size: 17px; line-height: 1.7; margin-top: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 28px; }
.hero-meta a { margin-left: 6px; }
.dot { width: 4px; height: 4px; border-radius: 1px; background: var(--ink-3); }
.cube {
  position: absolute;
  z-index: 0;
  right: -20px;
  top: 10px;
  width: min(50vw, 600px);
  height: 480px;
  pointer-events: none;
}
.cube canvas { width: 100%; height: 100%; display: block; }

/* Plataformas */
.platform-section { margin-bottom: 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.section-heading p { font-size: 13.5px; color: var(--ink-3); }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.platform-card.is-current::before {
  --c: var(--acc);
  --l: 14px;
  --w: 1.5px;
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}
.platform-card.is-current { border-color: var(--line-strong); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.platform-icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 3px; }
.platform-icon img { width: 30px; height: 30px; object-fit: contain; }
.platform-icon.linux img { width: 34px; height: 34px; }
.platform-tag { font: 500 10px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-3); white-space: nowrap; }
.is-current .platform-tag { color: var(--acc); border-color: var(--line-strong); background: var(--acc-wash); }
.platform-card h3 { font: 300 30px/1.2 var(--f-title); letter-spacing: -0.035em; margin: 0 0 8px; }
.compatibility { font-size: 14px; color: var(--ink-3); line-height: 1.65; min-height: 46px; }
.file-meta { display: flex; align-items: center; gap: 9px; color: var(--ink-3); font: 500 11px/1.4 var(--f-mono); margin: 22px 0 16px; }
.file-type { color: var(--ink-2); font: 500 10px/1.2 var(--f-mono); letter-spacing: 0.06em; border: 1px solid var(--line-strong); border-radius: 2px; padding: 2px 5px; }
.download-button { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; padding: 12px 14px; border-radius: 3px; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 14px; text-align: center; transition: background 0.15s; }
.download-button:hover { background: var(--acc-hi); text-decoration: none; }
.download-button svg { width: 18px; height: 18px; stroke-width: 1.8; }
.download-button.is-disabled { background: var(--panel); border: 1px dashed var(--line); color: var(--ink-3); cursor: default; }
.card-help { font-size: 13px; align-self: center; color: var(--ink-2); margin-top: 14px; min-height: 25px; }
.card-help span { display: inline-block; font-size: 13px; margin-left: 5px; }
.access-note { display: flex; justify-content: center; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-3); padding: 20px 0 0; }
.access-note svg { width: 15px; height: 15px; margin-top: 3px; }
.access-note a { white-space: nowrap; margin-left: 4px; }

.browser-option { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 3px; background: var(--glass); }
.browser-copy { display: flex; align-items: center; gap: 18px; }
.browser-copy > svg { width: 30px; height: 30px; color: var(--acc); }
.browser-copy h2 { font: 400 19px/1.3 var(--f-title); letter-spacing: -0.02em; margin-bottom: 4px; }
.browser-copy p { color: var(--ink-3); font-size: 14px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink); font-size: 14px; white-space: nowrap; }
.secondary-button:hover { border-color: var(--acc); background: var(--acc-wash); text-decoration: none; }

/* Instalação */
.installation { display: grid; grid-template-columns: 1fr 1.25fr; gap: 90px; padding: 76px 0 56px; }
.installation .eyebrow, .release-notes .eyebrow { color: var(--acc); }
.installation-intro h2 { font-size: 40px; letter-spacing: -0.045em; line-height: 1.08; margin: 16px 0; }
.installation-intro > p:not(.eyebrow) { max-width: 340px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.support-link { display: inline-block; font-size: 14px; margin-top: 22px; }
.installation-guides details { border-bottom: 1px solid var(--line); }
.installation-guides details:first-child { border-top: 1px solid var(--line); }
.installation-guides summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 66px; font-size: 16px; }
.installation-guides summary::-webkit-details-marker { display: none; }
.installation-guides summary img { width: 20px; height: 20px; }
.installation-guides summary::after { content: '+'; margin-left: auto; font: 400 20px/1 var(--f-mono); color: var(--acc); }
.installation-guides details[open] > summary::after { content: '−'; }
.guide-content { padding: 0 0 24px 32px; font-size: 14.5px; color: var(--ink-2); }
.guide-content ol { margin: 0 0 18px; padding-left: 18px; line-height: 1.8; }
.guide-content li { padding-left: 4px; margin-bottom: 6px; }
.guide-content strong { color: var(--ink); }
.guide-note { border-left: 1px solid var(--line-strong); padding-left: 14px; font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.guide-content code { font: 500 12px/1.6 var(--f-mono); overflow-wrap: anywhere; white-space: pre-wrap; }
.terminal { display: block; margin: 10px 0; padding: 12px; background: hsl(var(--h) 30% 3% / 0.9); border: 1px solid var(--line); border-radius: 2px; color: var(--ink); }
.checksum { margin-top: 18px !important; border: 0 !important; }
.checksum summary { font-size: 12.5px !important; min-height: 36px !important; gap: 0 !important; color: var(--ink-3); }
.checksum summary::after { font-size: 16px !important; }
.checksum code { display: block; margin-top: 6px; color: var(--ink); }

.release-notes { border-top: 1px solid var(--line); padding: 34px 0 54px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 90px; }
.release-notes h2 { font-size: 26px; letter-spacing: -0.035em; margin-top: 10px; }
.release-notes pre { white-space: pre-wrap; font: inherit; font-size: 15px; line-height: 1.9; margin: 0; color: var(--ink-2); }

.site-footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 24px; }
.site-footer .brand { font-size: 18px; }
.site-footer p { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.footer-right { text-align: right; font-size: 13.5px; }

@media (max-width: 1000px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .platform-grid { gap: 12px; }
  .platform-card { padding: 22px 18px; }
  .compatibility { min-height: 66px; }
  .installation, .release-notes { gap: 44px; }
  .cube { opacity: 0.55; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .site-header { min-height: 70px; gap: 12px; }
  .site-header nav { gap: 0; }
  .home-link { display: none; }
  .nav-app { font-size: 13px; padding: 9px 11px; min-height: 44px; }
  .hero { padding: 250px 0 40px; min-height: 0; }
  .cube { top: 0; right: 0; left: 0; margin: auto; width: 100%; height: 260px; opacity: 1; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-description { font-size: 16px; }
  .desktop-break { display: none; }
  .section-heading { display: block; margin-bottom: 16px; }
  .section-heading p { margin-top: 4px; }
  .platform-grid { grid-template-columns: 1fr; gap: 14px; }
  .compatibility { min-height: 0; }
  .card-help { margin-top: 12px; min-height: 44px; display: flex; align-items: center; }
  .access-note { justify-content: flex-start; padding-top: 18px; }
  .access-note a { white-space: normal; margin-left: 0; }
  .browser-option { padding: 22px; align-items: stretch; flex-direction: column; gap: 18px; }
  .installation { grid-template-columns: 1fr; gap: 28px; padding: 52px 0 40px; }
  .installation-intro h2 { font-size: 32px; }
  .installation-intro h2 br { display: none; }
  .installation-intro > p:not(.eyebrow) { max-width: none; }
  .guide-content { padding-left: 0; }
  .release-notes { grid-template-columns: 1fr; gap: 18px; padding: 28px 0 36px; }
  .site-footer { flex-direction: column; gap: 20px; padding-top: 26px; }
  .footer-right { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-button { transition: none; }
}
