:root {
  color-scheme: dark;
  --bg: #080c0f;
  --surface: #0e1418;
  --surface-strong: #131b20;
  --text: #f3f6f7;
  --muted: #9ca9b0;
  --line: #29343a;
  --line-soft: #192328;
  --red: #ff3b38;
  --red-dark: #bd211f;
  --cyan: #5fd7e5;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 52px);
  --display: "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.015) 50%, transparent calc(50% + 1px)),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

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

.shell { width: min(100%, calc(var(--max) + var(--gutter) * 2)); margin: 0 auto; padding-inline: var(--gutter); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 12, 15, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav a, .footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.nav a:hover, .footer-links a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; }
.language-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 3px; }
.language-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 12px/1 var(--mono);
  padding: 9px 10px;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.01em;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--text); }
.button-primary { background: var(--red); border-color: var(--red); box-shadow: 4px 4px 0 var(--red-dark); }
.button-primary:hover { background: #ff514e; border-color: #ff514e; }
.header-cta { min-height: 42px; padding-inline: 16px; font-size: 14px; }

.section { position: relative; border-bottom: 1px solid var(--line); }
/* .section::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); width: 2px; background: var(--red); opacity: .82; } */
.section-inner { padding: clamp(64px, 9vw, 116px) 0 clamp(64px, 9vw, 116px) 50px; }
.section-index { font: 700 12px/1 var(--mono); color: var(--red); letter-spacing: .1em; margin-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(44px, 7vw, 94px); align-items: center; min-height: 670px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: .98; letter-spacing: -.045em; }
h1 { font-size: clamp(50px, 7.3vw, 94px); max-width: 760px; }
h2 { font-size: clamp(36px, 5vw, 62px); }
h3 { font-size: clamp(21px, 2.2vw, 30px); line-height: 1.1; }
.lede { color: #d0d8dc; max-width: 650px; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; margin: 28px 0 34px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.transfer-visual { min-height: 420px; position: relative; display: grid; place-items: center; }
.transfer-frame { width: min(100%, 500px); border: 1px solid var(--line); padding: 24px; background: var(--surface); position: relative; }
.transfer-frame::after { content: ""; position: absolute; inset: 9px -10px -10px 9px; border: 1px solid rgba(255,59,56,.35); z-index: -1; }
.transfer-title { font: 700 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.transfer-row { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 14px; margin-top: 30px; }
.drive-stack { display: grid; gap: 10px; }
.file-line { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface-strong); border-left: 3px solid var(--line); font: 700 13px/1 var(--mono); }
.file-line.selected { border-color: var(--red); }
.route-line { height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px); position: relative; }
.route-line::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--red); }
.console { aspect-ratio: 16/10; border: 2px solid #a9b7bd; border-radius: 14px; display: grid; place-items: center; background: #10181c; color: var(--cyan); font: 800 13px/1.2 var(--mono); text-align: center; }
.micro-sd { margin: 24px auto 0; width: max-content; color: var(--muted); font: 700 12px/1.4 var(--mono); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.section-note { max-width: 250px; color: var(--muted); font: 700 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; text-align: right; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 34px 34px 12px 0; min-height: 210px; }
.step + .step { border-left: 1px solid var(--line); padding-left: 34px; }
.step-number { color: var(--red); font: 800 22px/1 var(--mono); }
.step h3 { margin-top: 26px; }
.step p, .feature p, .split p { color: var(--muted); margin-bottom: 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 30px 24px 30px 0; }
.feature + .feature { border-left: 1px solid var(--line); padding-left: 24px; }
.feature-mark { width: 34px; height: 34px; border: 2px solid var(--text); display: grid; place-items: center; margin-bottom: 22px; color: var(--red); font: 900 16px/1 var(--mono); }
.feature h3 { font-size: 20px; letter-spacing: -.025em; }
.split-band { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { padding: 46px 46px 46px 0; }
.split + .split { border-left: 1px solid var(--red); padding-left: 46px; }
.split-label { color: var(--cyan); font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.split h3 { margin-top: 18px; }
.text-link { color: var(--red); font-weight: 800; text-underline-offset: 5px; }
.opensource { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.opensource p { color: var(--muted); max-width: 700px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; gap: 30px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.legal-meta { color: var(--muted); font: 600 12px/1.5 var(--mono); }

.legal-hero { padding: 92px 0 50px 50px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(46px, 7vw, 84px); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(40px, 7vw, 90px); padding: 54px 0 100px 50px; align-items: start; }
.legal-toc { position: sticky; top: 112px; border-right: 1px solid var(--line); padding-right: 28px; }
.legal-toc a { display: block; color: var(--muted); text-decoration: none; font: 600 13px/1.4 var(--mono); padding: 9px 0; }
.legal-toc a:hover { color: var(--red); }
.legal-copy section { scroll-margin-top: 110px; padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px solid var(--line); }
.legal-copy h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin-bottom: 18px; }
.legal-copy h3 { font-family: var(--body); font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin: 28px 0 8px; }
.legal-copy p, .legal-copy li { color: #c4cdd1; }
.legal-copy li + li { margin-top: 8px; }
.legal-copy strong { color: var(--text); }
.legal-copy a { color: var(--cyan); }

[data-language] { display: none; }
html[lang="pt-BR"] [data-language="pt-BR"], html[lang="en-US"] [data-language="en-US"] { display: block; }
span[data-language] { display: none; }
html[lang="pt-BR"] span[data-language="pt-BR"], html[lang="en-US"] span[data-language="en-US"] { display: inline; }

@media (max-width: 860px) {
  .header-inner { min-height: 68px; gap: 14px; }
  .nav a:not(.button) { display: none; }
  .header-cta { display: none; }
  .section::before { left: 20px; }
  .section-inner, .legal-hero, .legal-layout { padding-left: 32px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .transfer-visual { min-height: 360px; }
  .steps, .features, .split-band { grid-template-columns: 1fr; }
  .step + .step, .feature + .feature, .split + .split { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .feature, .split { padding-right: 0; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 26px; columns: 2; }
  .opensource { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 540px) {
  body { font-size: 15px; }
  .shell { padding-inline: 20px; }
  .brand span { display: none; }
  .nav { gap: 10px; }
  .section-heading { display: block; }
  .section-note { text-align: left; margin-top: 18px; }
  .transfer-row { grid-template-columns: 1fr; }
  .route-line { height: 54px; width: 2px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--red) 0 8px, transparent 8px 14px); }
  .route-line::after { right: -4px; top: auto; bottom: -2px; border-left-color: transparent; border-top-color: var(--red); }
  .actions .button { width: 100%; }
  .legal-toc { columns: 1; }
}

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