*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #E8500A;
  --salmon: #F0956A;
  --radius: 12px;
  --transition: 0.2s ease;
}

body.dark {
  --bg: #141414;
  --surface: #1E1E1E;
  --surface2: #252525;
  --border: rgba(255,255,255,0.07);
  --text: #F0F0EF;
  --muted: rgba(240,240,239,0.45);
  --btn-bg: rgba(232,80,10,0.12);
  --btn-hover: rgba(232,80,10,0.2);
}

body.light {
  --bg: #F0F0EF;
  --surface: #FFFFFF;
  --surface2: #EBEBEA;
  --border: rgba(0,0,0,0.08);
  --text: #141414;
  --muted: rgba(20,20,20,0.45);
  --btn-bg: rgba(232,80,10,0.08);
  --btn-hover: rgba(232,80,10,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

/* ── Header ─────────────────────────────────────── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo .vmark { width: 32px; height: auto; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-text .product {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-text .brand {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition);
}

.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

.theme-toggle svg { width: 18px; height: 18px; }

body.dark #iconMoon { display: none; }
body.light #iconSun { display: none; }

/* ── Hero ────────────────────────────────────────── */

main { max-width: 900px; margin: 0 auto; padding: 0 40px 80px; }

.hero {
  text-align: center;
  padding: 80px 0 64px;
}

.hero-mark {
  display: inline-block;
  margin-bottom: 28px;
}

.hero-mark svg {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 0 32px rgba(232,80,10,0.35));
}

.hero h1 {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 16px;
}

.hero h1 span { color: var(--accent); }

.tagline {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 24px;
}

.description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Downloads ───────────────────────────────────── */

.downloads {
  padding: 48px 0;
}

.downloads h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.loading-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition);
}

.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.download-card.unavailable { opacity: 0.4; pointer-events: none; }

.dc-platform {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dc-platform svg { width: 28px; height: 28px; flex-shrink: 0; }

.dc-platform-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dc-arch {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1px;
}

.dc-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dc-version { color: var(--accent); font-weight: 600; }

.dc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg);
  border: 1px solid rgba(232,80,10,0.25);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  margin-top: auto;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.dc-btn:hover {
  background: var(--btn-hover);
  border-color: var(--accent);
}

.dc-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.no-builds {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.download-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.download-os-section { display: flex; flex-direction: column; gap: 14px; }

.download-os-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-os-title svg { width: 18px; height: 18px; stroke: var(--accent); }

.old-versions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.old-versions-link:hover { color: var(--accent); }

/* ── Versões antigas (página secundária) ─────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
}

.back-link:hover { color: var(--accent); }

.version-list { display: flex; flex-direction: column; gap: 10px; }

.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color var(--transition);
}

.version-row:hover { border-color: var(--accent); }

.version-row-info { display: flex; align-items: center; gap: 12px; min-width: 0; }

.version-row-info svg { width: 22px; height: 22px; flex-shrink: 0; }

.version-row-name { font-size: 13px; font-weight: 600; }

.version-row-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

.version-row .dc-btn { flex-shrink: 0; margin-top: 0; padding: 8px 14px; }

/* ── Features ────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 32px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--btn-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.vmark-sm { width: 20px; height: auto; }

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 600px) {
  header { padding: 16px 20px; }
  main { padding: 0 20px 60px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 40px; }
  footer { padding: 24px 20px; }
}

/* ── Reset de senha ──────────────────────────────── */

.reset-section {
  max-width: 380px;
  margin: 60px auto;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.reset-section h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.reset-form { display: flex; flex-direction: column; gap: 6px; }

.reset-form label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.reset-form input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.reset-form input:focus { border-color: var(--accent); }

.reset-form button {
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition);
}

.reset-form button:disabled { opacity: 0.6; cursor: default; }

.reset-msg {
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.5;
}

.reset-msg-error { color: #e05252; }
.reset-msg-success { color: #4caf7d; }
