@font-face { font-family: "Inter"; src: url("/fonts/Inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #151a1f; --bg-deep: #0f1317; --panel: #1d2329; --panel-2: #222931; --line: #313a43;
  --text: #e7e7e7; --dim: #a3adb7; --faint: #8b96a1;
  --accent: #e10e14; --accent-hi: #ff3b40;  /* Flamengo red; the -hi shade is for text on dark */
  --hair: rgba(225, 14, 20, .26); --tick: rgba(255, 59, 64, .8); --grid: rgba(225, 14, 20, .05); --glow: rgba(225, 14, 20, .17);
  --display: "Space Grotesk", system-ui, sans-serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 1240px; --radius: 3px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 22px; height: 22px; color: var(--accent-hi); margin-top: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* utility bar + nav */
.util { background: var(--bg-deep); border-bottom: 1px solid var(--line); color: var(--faint); }
.util-in { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.util .mono { font-size: .7rem; }
.util-links { display: flex; gap: 1.4rem; }
.util a { text-decoration: none; color: var(--accent-hi); }
.util a:hover { color: #fff; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #3ddc84; margin-right: .4rem; box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(21, 26, 31, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.brand img { border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; }
.brand-text small { color: var(--accent-hi); font-size: .62rem; }
.menu { display: flex; gap: 1.7rem; margin-left: auto; margin-right: .6rem; }
.menu a { text-decoration: none; color: var(--dim); font-size: .72rem; }
.menu a:hover { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; text-decoration: none; padding: .95rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-weight: 500; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.btn:hover { border-color: var(--accent-hi); background: rgba(225, 14, 20, .08); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); transform: translateY(-1px); }
.btn-small { padding: .55rem 1rem; }
.btn .ic { width: 1.2em; height: 1.2em; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* hero */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); background:
  radial-gradient(60% 55% at 78% 30%, var(--glow), transparent 70%),
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 44px 44px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 44px 44px, var(--bg); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; color: var(--accent-hi); }
.rule { display: inline-block; width: 28px; height: 1px; background: var(--accent-hi); flex: none; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.hi { color: var(--accent-hi); }
.lead { color: var(--dim); font-size: 1.12rem; max-width: 36rem; margin: 1.3rem 0 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .7rem; color: var(--dim); background: rgba(15, 19, 23, .5); font-size: .7rem; }
.chips .chip-hi { background: var(--accent); border-color: var(--accent); color: #fff; }

/* bracketed panels and cards */
.brackets { position: relative; }
.brackets::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--tick), var(--tick)) 0 0 / 13px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) 0 0 / 1px 13px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 100% 0 / 13px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) 100% 0 / 1px 13px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 0 100% / 13px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) 0 100% / 1px 13px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 100% 100% / 13px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) 100% 100% / 1px 13px no-repeat; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-label { margin: 0; padding: 1rem 1.3rem .2rem; color: var(--faint); font-size: .68rem; }
.panel-title { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0; padding: 0 1.3rem .9rem; border-bottom: 1px solid var(--line); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: .9rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows strong { display: block; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.rows span { display: block; color: var(--dim); font-size: .9rem; line-height: 1.45; margin-top: .15rem; }

/* stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-in > div { padding: 1.4rem 1.5rem; border-left: 1px solid var(--line); }
.stats-in > div:first-child { border-left: 0; padding-left: 0; }
.num { display: block; font-family: var(--mono); font-weight: 500; font-size: 2.1rem; color: var(--accent-hi); line-height: 1.1; }
.stats-in .mono { display: block; margin-top: .45rem; color: var(--faint); font-size: .68rem; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .8rem; max-width: 40rem; }
.sub { color: var(--dim); max-width: 40rem; margin: 0 0 1.8rem; }

.tablist { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.tablist[hidden] { display: none; }
.tablist button { font: inherit; text-transform: uppercase; letter-spacing: .1em; background: transparent; color: var(--dim); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .9rem; cursor: pointer; }
.tablist button:hover { color: #fff; border-color: #4a545e; }
.tablist button[aria-selected="true"] { color: var(--accent-hi); border-color: var(--accent); background: rgba(225, 14, 20, .09); }
.tabpanel { display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.tabpanel[hidden] { display: none; }
.tp-left { padding: 1.8rem; border-right: 1px solid var(--line); }
.tp-label { margin: 0 0 .6rem; color: var(--accent-hi); font-size: .68rem; }
.tp-left h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin: 0 0 .7rem; }
.tp-left p:last-child { color: var(--dim); margin: 0; }
.checks { list-style: none; margin: 0; padding: 1.2rem 1.8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .97rem; line-height: 1.45; }
.checks li:last-child { border-bottom: 0; }
.checks .ic { color: var(--accent-hi); margin-top: .22em; }
.rules .checks { padding: 1rem 1.6rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-top: 1.8rem; }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.idx { margin: 0 0 1rem; color: var(--accent-hi); font-size: .7rem; }
.icbox { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(225, 14, 20, .08); color: var(--accent-hi); margin-bottom: 1rem; }
.icbox .ic { width: 20px; height: 20px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: 0 0 .5rem; }
.card p { color: var(--dim); margin: 0 0 1.1rem; font-size: .95rem; }
.card .idx { color: var(--accent-hi); margin-bottom: 1rem; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; color: var(--accent-hi); text-decoration: none; font-size: .7rem; }
.more:hover { color: #fff; }

.band { background: radial-gradient(50% 80% at 85% 50%, var(--glow), transparent 70%), var(--bg-deep); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0; }
.band-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.band-art { width: 100%; max-width: 300px; justify-self: center; border-radius: 18px; border: 1px solid var(--hair); box-shadow: 0 0 60px var(--glow); }

.foot { border-top: 1px solid var(--line); background: var(--bg-deep); color: var(--dim); padding: 2.2rem 0 3rem; font-size: .92rem; }
.foot-in { display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 1.5rem 2rem; }
.foot p { margin: 0; }
.foot .fine { grid-column: 1 / -1; color: var(--faint); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.foot strong { color: var(--text); font-family: var(--display); letter-spacing: .04em; }
.foot .mono { font-size: .7rem; }
.foot a { text-decoration: none; color: var(--accent-hi); }
.foot a:hover { color: #fff; }

@media (max-width: 960px) {
  .menu { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stats-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tabpanel { grid-template-columns: 1fr; }
  .tp-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .band-in, .foot-in { grid-template-columns: 1fr; }
  .band-art { max-width: 220px; justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .util-links { display: none; }
  .cta .btn { width: 100%; }
  .btn-small { width: auto; }
  }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn-primary:hover { transform: none; } }
