/* Brazilian Dev — umbrella one-pager (Slice 1)
   Plain hand-authored CSS, no build. Tokens extracted from the archived
   ecosystem style (docs/archive/visual-reference/style.css). */

/* ---------- Fonts (self-hosted Inter, variable) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #111827;
  --bg-elev: #1f2937;
  --border: #374151;
  --border-hover: #3b82f6;
  --accent: #3b82f6;
  --accent-strong: #2563eb; /* button bg — passes 4.5:1 with white */
  --accent-hover: #1d4ed8;
  --link: #60a5fa;
  --amber: #fbbf24;
  --teal: #2dd4bf;
  --text: #f9fafb;
  --text-dim: #9ca3af;
  --text-mut: #cbd5e1;
  --shadow-card: 0 4px 24px #0009, 0 2px 6px #00000059;
  --radius: 1.1rem;
  --maxw: min(1400px, 93vw); /* wide frame; text stays readable via --measure */
  --measure: 64ch; /* comfortable reading width for long text */
  --ease: 0.18s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-strong);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 0.6rem 0;
  z-index: 100;
}
.skip-link:focus { left: 0; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Aurora background (ecosystem signature) ---------- */
.aurora-wrap {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.aurora {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.14; mix-blend-mode: lighten;
}
.aurora.a1 { background: var(--accent); width: 42vw; height: 42vw; top: -12%; right: -8%; }
.aurora.a2 { background: var(--amber);  width: 34vw; height: 34vw; top: 34%; left: -12%; }
.aurora.a3 { background: var(--teal);   width: 30vw; height: 30vw; bottom: 4%; right: 16%; }

@media (prefers-reduced-motion: no-preference) {
  .aurora { animation: aurora-float 24s ease-in-out infinite alternate; }
  .aurora.a2 { animation-delay: -8s; }
  .aurora.a3 { animation-delay: -15s; }
}
@keyframes aurora-float {
  0%   { transform: scale(1)    translateY(0);     opacity: 0.12; }
  50%  { transform: scale(1.12) translateY(-24px); opacity: 0.16; }
  100% { transform: scale(1.06) translateY(-8px);  opacity: 0.13; }
}

/* ---------- Layout ---------- */
.page { position: relative; z-index: 1; }

main, .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
section + section { border-top: 1px solid #ffffff0d; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.lead { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 1.75rem; max-width: var(--measure); }

/* ---------- Top nav ---------- */
.topnav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; color: var(--text); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent) 0%, var(--amber) 120%);
  display: grid; place-items: center; color: #0b1220; font-weight: 900; font-size: 0.9rem;
}
.topnav a.channel { font-weight: 600; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 7vw, 4.5rem); text-align: left; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

/* Hero visual — decorative code window (desktop only) */
.hero-visual { display: none; position: relative; }
@media (min-width: 900px) { .hero-visual { display: block; } }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -8% -12% 4%; z-index: -1;
  background: radial-gradient(closest-side, #3b82f640, transparent 72%),
              radial-gradient(closest-side, #fbbf2422, transparent 70%);
  filter: blur(28px);
}
.code-card {
  background: #0d1424; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden;
}
.code-bar {
  display: flex; gap: 7px; padding: 12px 14px;
  background: #0b1220; border-bottom: 1px solid var(--border);
}
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #374151; }
.code-bar span:nth-child(1) { background: var(--accent); }
.code-bar span:nth-child(2) { background: var(--amber); }
.code-bar span:nth-child(3) { background: var(--teal); }
.code-body {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.95rem; line-height: 1.75; color: var(--text-mut);
}
.code-body .c { color: var(--text-dim); }
.code-body .k { color: var(--accent); }
.code-body .p { color: var(--teal); }
.code-body .s { color: var(--amber); }
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent) 10%, var(--amber) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .subhead {
  color: var(--text-mut);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 40ch;
  margin-bottom: 2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  border-radius: 0.75rem; font-weight: 600; font-size: 1.02rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-hover); text-decoration: none; }
.btn .ext { font-size: 0.9em; opacity: 0.8; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: 0.5rem;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.4rem;
  color: var(--text);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px #2563eb40;
  text-decoration: none;
}
.card h3 { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.card p { color: var(--text-dim); font-size: 0.98rem; }
.card .go { margin-top: 0.6rem; color: var(--link); font-weight: 600; font-size: 0.95rem; }
.card.solo { grid-column: 1 / -1; }

/* ---------- About ---------- */
.about p { color: var(--text-mut); max-width: 58ch; margin-bottom: 1rem; }
.about .xlink { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  margin-top: 1rem;
  background: #0c0e1cfa;
  padding: 2.2rem 1.25rem 2.6rem;
}
.site-footer::before {
  content: ""; display: block;
  width: 88px; height: 4px; margin: 0 auto 1.5rem;
  border-radius: 4px; opacity: 0.85;
  background: linear-gradient(90deg, var(--accent) 10%, var(--amber) 80%);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; justify-content: center; margin-bottom: 1.2rem; }
.footer-links a { color: var(--text-mut); font-weight: 500; }
.footer-contact { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.2rem; }
.badge { color: var(--text-dim); font-style: italic; font-size: 0.92rem; margin-bottom: 0.5rem; }
.legal { color: #6b7280; font-size: 0.85rem; line-height: 1.5; }

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
  .aurora.a1, .aurora.a2, .aurora.a3 { width: 80vw; height: 80vw; filter: blur(70px); }
}

/* ---------- Scrollbar (webkit) ---------- */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0d1220; }
::-webkit-scrollbar-thumb { background: #2b3648; border-radius: 5px; }
