@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#FFFFFF, #000000);
  --fg: light-dark(#0A0A0A, #FFFFFF);
  --muted: light-dark(#525252, #A3A3A3);
  --accent-text: light-dark(#00796B, #00FFCC);
  --border: light-dark(#E5E5E5, #262626);
  --surface: light-dark(#FAFAFA, #0A0A0A);
  --brand-gradient: linear-gradient(90deg, #00FFFF, #00FF00);
  --btn-bg: light-dark(#0A0A0A, transparent);
  --btn-fg: light-dark(#FFFFFF, #000000);
  --radius: 16px;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Navegadores sem light-dark() (Safari < 17.5, Chrome < 123) */
@supports not (color: light-dark(#fff, #000)) {
  :root {
    --bg: #FFFFFF; --fg: #0A0A0A; --muted: #525252; --accent-text: #00796B;
    --border: #E5E5E5; --surface: #FAFAFA; --btn-bg: #0A0A0A; --btn-fg: #FFFFFF;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #000000; --fg: #FFFFFF; --muted: #A3A3A3; --accent-text: #00FFCC;
      --border: #262626; --surface: #0A0A0A; --btn-bg: transparent; --btn-fg: #000000;
    }
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand .logo { width: 36px; height: auto; }

/* Hero */
.hero { position: relative; padding: 48px 0 72px; text-align: center; }
.hero .logo { width: 132px; height: auto; margin: 0 auto 32px; display: block; }
.hero h1 {
  margin: 0 auto 16px;
  max-width: 16ch;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lead { margin: 0 auto 32px; max-width: 40ch; color: var(--muted); font-size: 1.15rem; }

@media (prefers-color-scheme: dark) {
  .hero::before {
    content: "";
    position: absolute;
    inset: -10% 10% auto;
    height: 420px;
    background: radial-gradient(closest-side, rgba(0, 255, 204, 0.18), transparent);
    filter: blur(20px);
    z-index: -1;
  }
  .hero h1 .grad {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--brand-gradient); }
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-link { color: var(--fg); padding: 0 8px; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.02em; }
.section > .wrap > p { max-width: 62ch; color: var(--muted); margin: 0; }

.cards { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-gradient) border-box;
}
.card h3 { margin: 16px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 32px; height: 32px; color: var(--fg); }

.cta { text-align: center; }
.cta h2 { margin-bottom: 24px; }

/* Footer */
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--fg); }

/* Prose (política) */
.prose { max-width: 72ch; padding: 24px 0 64px; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 8px; }
.prose h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--fg); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose .updated { color: var(--muted); margin: 0 0 24px; }
.notice {
  margin: 24px 0 8px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-text);
  background: var(--surface);
}
.notice p { margin: 0; }

/* 404 */
.center { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 48px 0; }
.center h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.8rem); }
.center p { margin: 0; color: var(--muted); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.16s; }
  .reveal:nth-child(4) { animation-delay: 0.24s; }
  @keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
