:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --panel: #161616;
  --panel2: #1e1e1e;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --acc: #ffffff;
  --acc2: #a3a3a3;
  --ok: #e5e5e5;
  --bad: #cf8f98;
  --warn: #ffffff;
  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, 'Courier New', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(1200px 600px at 80% -10%, #161616 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #101010 0%, transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font: 12px var(--mono); background: #262626; border: 1px solid #3a3a3a; border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
code { font-family: var(--mono); font-size: .9em; background: #222222; padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.grow { flex: 1; }

/* topo */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 12px 28px; background: rgba(10, 10, 10, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.logo b { color: #fff; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 700 13px var(--mono); background: #fff; color: #0a0a0a; box-shadow: 0 6px 20px -8px rgba(255,255,255,.5); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; transition: .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.on { color: var(--text); background: rgba(255, 255, 255, .1); }
.xp { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.xp b { color: var(--text); }
.xp-ring { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--p) * 1%), #2a2a2a 0); -webkit-mask: radial-gradient(circle 7px, transparent 98%, #000); mask: radial-gradient(circle 7px, transparent 98%, #000); }

#app { flex: 1; width: 100%; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .06); color: var(--muted); font-size: 13px; }
body.is-ide .footer { display: none; }

/* botões */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 10px 18px; border-radius: 10px; font-weight: 600; background: #f5f5f5; color: #0a0a0a; box-shadow: 0 8px 22px -12px rgba(255,255,255,.6); transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 12px 28px -12px rgba(255,255,255,.7); }
.btn.big { padding: 14px 24px; font-size: 16px; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.ghost { background: rgba(255, 255, 255, .05); color: #f5f5f5; box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.ghost.vs { border-color: #444; }
.btn.ok { background: #1c1c1c; color: #fff; border: 1px solid #fff; box-shadow: none; }
.linkbtn { background: none; border: 0; color: var(--acc2); text-decoration: underline; padding: 0; }

/* herói */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 72px 28px 40px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.hero-bg i { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(80px); opacity: .35; animation: blob 14s ease-in-out infinite alternate; }
.hero-bg i:nth-child(1) { background: var(--acc); left: 10%; top: 10%; }
.hero-bg i:nth-child(2) { background: var(--acc2); right: 5%; top: 30%; animation-delay: -5s; }
.hero-bg i:nth-child(3) { background: #9a9a9a; left: 40%; bottom: -20%; animation-delay: -9s; opacity: .2; }
@keyframes blob { to { transform: translate(60px, -40px) scale(1.2); } }
.pill { display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -2px; margin: 18px 0; font-weight: 900; }
.grad { background: linear-gradient(90deg, #ffffff, #8a8a8a, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200%; animation: gradmove 6s linear infinite; }
@keyframes gradmove { to { background-position: 200% 0; } }
.hero p { color: #cfcfcf; font-size: 17px; max-width: 560px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 28px; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 13px; }
.hero-win { background: #0f0f0f; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .5s; }
.hero-win:hover { transform: none; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #171717; font: 12px var(--mono); color: var(--muted); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #5a5a5a; }
.win-bar i:nth-child(2) { background: #3d3d3d; }
.win-bar i:nth-child(3) { background: #2c2c2c; }
.win-bar span { margin-left: 8px; }
.hero-code { margin: 0; padding: 22px; font: 15px/1.7 var(--mono); min-height: 260px; white-space: pre-wrap; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: text-bottom; background: var(--acc2); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* seções */
.sec { max-width: 1240px; margin: 0 auto; padding: 40px 28px; }
.sec.center { text-align: center; }
.sec-h { font-size: 32px; letter-spacing: -1px; margin: 0 0 6px; font-weight: 800; }
.sec-h.big { font-size: 42px; }
.sec-p { color: var(--muted); margin: 0 0 26px; }
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.track { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.track::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 160px at 0 0, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); opacity: .7; pointer-events: none; }
.track:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 18px 40px -20px var(--c); }
.track h3 { margin: 6px 0 0; font-size: 20px; }
.track p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.track-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.track-n { font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .05); padding: 3px 10px; border-radius: 99px; }
.lvls { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.pbar { height: 6px; background: #222222; border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, #9a9a9a, #fff); border-radius: 99px; transition: width .5s; }
.track-f { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.track-f b { color: var(--c); }
.ctile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font: 800 15px var(--mono); color: #0a0a0a; background: var(--c); box-shadow: 0 8px 20px -8px var(--c); letter-spacing: -.5px; flex: none; }
.ctile.sm { width: 34px; height: 34px; font-size: 11px; border-radius: 9px; }
.ctile.lg { width: 56px; height: 56px; font-size: 17px; }

.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.fcard { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.fcard h3 { margin: 10px 0 6px; }
.fcard p { margin: 0; color: var(--muted); font-size: 14px; }
.fic { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .07); }

.ide-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .2s; }
.promo:hover { transform: translateY(-3px); }
.promo h3 { margin: 0 0 8px; font-size: 22px; }
.promo p { color: #cfcfcf; font-size: 14px; margin: 0 0 16px; }
.vsc-p, .vs-p { background: linear-gradient(135deg, #1a1a1a, #0d0d0d); }
.promo-shot { position: relative; border-radius: 10px; background: #1e1e1e; border: 1px solid #333; min-height: 140px; }
.promo-shot span { position: absolute; background: #2d2d30; border-radius: 3px; }
.promo-shot span:nth-child(1) { left: 0; top: 0; bottom: 0; width: 14%; background: #333; }
.promo-shot span:nth-child(2) { left: 18%; top: 14%; width: 60%; height: 8px; background: #569cd6; }
.promo-shot span:nth-child(3) { left: 18%; top: 30%; width: 45%; height: 8px; background: #ce9178; }
.promo-shot span:nth-child(4) { left: 18%; top: 46%; width: 70%; height: 8px; background: #4ec9b0; }
.vs-p .promo-shot span:nth-child(1) { left: auto; right: 0; width: 24%; background: #252526; }

.roadmap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rm-step { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 14px; }
.rm-step:hover { background: rgba(255, 255, 255, .08); }
.rm-arr { color: var(--muted); font-style: normal; }

/* curso */
.course { display: grid; grid-template-columns: 310px 1fr; max-width: 1400px; margin: 0 auto; gap: 0; }
.c-side { position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); overflow: auto; padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(16, 16, 16, .6); }
.back { color: var(--muted); font-size: 13px; }
.back:hover { color: var(--text); }
.c-head { display: flex; gap: 12px; align-items: center; margin: 16px 0 12px; }
.c-head h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.c-head small { color: var(--muted); }
.lv-h { margin: 22px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.lv-h.lv1, .lvtag.lv1 { color: #e5e5e5; }
.lv-h.lv2, .lvtag.lv2 { color: #b5b5b5; }
.lv-h.lv3, .lvtag.lv3 { color: #8a8a8a; }
.les { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: #cfcfcf; transition: background .15s; }
.les:hover { background: rgba(255, 255, 255, .05); }
.les.on { background: rgba(255,255,255,.1); color: #fff; }
.les-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #262626; }
.les.on .les-n { background: var(--c); color: #0a0a0a; }
.les.done .les-n { background: var(--ok); color: #0a0a0a; }
.c-main { padding: 26px 40px 60px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.l-title { font-size: 32px; letter-spacing: -1px; margin: 8px 0 8px; }
.l-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.lvtag { font-weight: 700; }
.video-host { max-width: 1100px; }
.l-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.tip { font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.l-body, .quiz { max-width: 900px; }
.l-body h2, .quiz h2 { font-size: 24px; margin: 0 0 14px; }
.l-body h3 { margin: 26px 0 8px; font-size: 18px; color: var(--c); }
.l-body p { color: #d4d4d4; }
.l-body ul { color: #d4d4d4; padding-left: 20px; }
.cwrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 12px 0 18px; background: #0f0f0f; }
.cbar { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: #171717; font: 12px var(--mono); color: var(--muted); }
.copy { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; font-size: 12px; color: var(--muted); }
.copy:hover { color: var(--text); }
.cblock { margin: 0; padding: 14px 16px; font: 13.5px/1.65 var(--mono); overflow: auto; white-space: pre; }
.term-b { border: 1px solid var(--line); border-radius: 12px; background: #070707; margin: 12px 0 18px; }
.cout { border-top: 1px solid var(--line); background: #070707; }
.cout span { display: block; padding: 6px 14px 0; font-size: 11px; color: var(--ok); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cout pre { margin: 0; padding: 4px 16px 12px; font: 13px/1.6 var(--mono); color: #e6e6e6; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz { margin-top: 40px; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.qq { font-size: 17px; font-weight: 600; }
.qopts { display: grid; gap: 10px; }
.qopt { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); transition: .15s; }
.qopt span { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #2a2a2a; font-weight: 700; font-size: 13px; }
.qopt:hover { border-color: var(--c); }
.quiz.answered .qopt { cursor: default; opacity: .6; }
.qopt.right { opacity: 1 !important; border-color: var(--ok); background: rgba(255, 255, 255, .12); }
.qopt.right span { background: var(--ok); color: #0a0a0a; }
.qopt.wrong { opacity: 1 !important; border-color: var(--bad); background: rgba(255, 92, 122, .12); }
.qfb > div { margin-top: 14px; padding: 12px 14px; border-radius: 10px; }
.fb-ok { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .4); }
.fb-no { background: rgba(255, 92, 122, .1); border: 1px solid rgba(255, 92, 122, .4); }
.l-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; max-width: 900px; flex-wrap: wrap; }

/* cores da sintaxe (páginas) */
.t-kw { color: #ffffff; font-weight: 600; } .t-str { color: #a8a8a8; } .t-num { color: #d6d6d6; } .t-com { color: #5c5c5c; font-style: italic; }
.t-fn { color: #e8e8e8; } .t-type { color: #cfcfcf; font-style: italic; } .t-pre { color: #bdbdbd; } .t-reg { color: #ffffff; }
.t-tag { color: #ffffff; font-weight: 600; } .t-attr { color: #9d9d9d; } .t-prop { color: #e0e0e0; } .t-sel { color: #ffffff; font-weight: 600; }
.t-ps { color: var(--ok); }

/* cores de apoio (transcrição) */
:root { --k-blue: #8fa3c7; --k-purple: #a99bc9; --k-green: #e5e5e5; --k-orange: #cfae8a; --k-red: #cf8f98; --k-yellow: #d4c58a; --k-gray: #8a8a8a; --k-cyan: #8fc3c9; --k-pink: #c99bb5; }

/* Kernel Learns: banner e anéis */
.kl-banner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: 34px; border-radius: 20px; border: 1px solid #2e2e2e; background: radial-gradient(600px 300px at 90% 50%, rgba(34,211,238,.18), transparent 70%), linear-gradient(135deg, #141414, #0d0d0d); overflow: hidden; transition: transform .2s, border-color .2s; }
.kl-banner:hover { transform: translateY(-3px); border-color: #8fc3c9; }
.kl-txt h2 { font-size: 40px; letter-spacing: -1.5px; margin: 12px 0 8px; background: linear-gradient(90deg, #fff, #8fc3c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kl-txt p { color: #cfcfcf; margin: 0 0 16px; max-width: 620px; }
.kl-pill { background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.45); }
.kl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.kl-tags span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.kl-rings { position: relative; aspect-ratio: 1; max-width: 320px; width: 100%; justify-self: center; }
.kl-rings.big { max-width: 300px; }
.ring { position: absolute; border-radius: 50%; display: flex; justify-content: center; align-items: flex-start; border: 2px solid; }
.ring span { font: 700 12px var(--mono); margin-top: 8%; padding: 2px 8px; border-radius: 6px; background: #0d0d0d; white-space: nowrap; }
.ring.r3 { inset: 0; border-color: #8fa3c7; color: #d4d4d4; animation: spin 40s linear infinite; background: radial-gradient(circle, transparent 60%, rgba(91,141,239,.08)); }
.ring.r0 { inset: 22%; border-color: #cf8f98; color: #e6c8cc; background: rgba(255,92,122,.06); }
.ring.hw { inset: 41%; border-color: #e5e5e5; color: #d7e6dc; background: rgba(255,255,255,.12); align-items: center; box-shadow: 0 0 40px -6px #e5e5e5; }
.ring.hw span { margin: 0; font-size: 10.5px; }
.ring.r3 span { animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.cat-sec { margin-top: 34px; }
.cat-h { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.cat-h:hover { border-color: var(--acc); }
.cat-h > span { font-size: 30px; }
.cat-h h2 { margin: 0; font-size: 22px; }
.cat-h p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cat-h b { margin-left: auto; white-space: nowrap; color: var(--acc2); font-size: 14px; }
.cat-hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 34px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--panel), var(--bg2)); }
.cat-hero h1 { font-size: 44px; letter-spacing: -1.5px; margin: 12px 0 6px; }
.cat-hero p { color: #cfcfcf; max-width: 640px; margin: 0 0 20px; }
.cat-hero.cat-kernel { background: radial-gradient(600px 300px at 90% 50%, rgba(34,211,238,.16), transparent 70%), linear-gradient(135deg, #141414, #0d0d0d); border-color: #2e2e2e; }
.cat-hero.cat-kernel .kl-rings { flex: none; width: 280px; }
.kl-note { margin-top: 26px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.35); color: #e8dcc0; font-size: 14px; }

.lab-p { background: linear-gradient(135deg, #1a1a1a, #0d0d0d); }
.ig-shot { background: #2e4a66; border-color: #4f6f8f; }
.ig-shot span:nth-child(1) { left: 12%; top: 12%; bottom: auto; width: 60%; height: 12px; background: #294a7a; }
.ig-shot span:nth-child(2) { left: 12%; top: 22%; width: 60%; height: 60%; background: rgba(15,15,15,.94); }
.ig-shot span:nth-child(3) { left: 17%; top: 32%; width: 22%; height: 10px; background: rgba(66,150,250,.6); }
.ig-shot span:nth-child(4) { left: 17%; top: 48%; width: 45%; height: 10px; background: rgba(41,74,122,.8); }

/* quiz com várias perguntas */
.qitem + .qitem { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.qn { display: inline-block; font: 700 12px var(--mono); padding: 2px 8px; border-radius: 6px; background: #2a2a2a; color: var(--muted); margin-right: 10px; vertical-align: 2px; }
.qitem.answered .qopt { cursor: default; opacity: .6; }

/* transcrição: camadas, sequência e tabelas */
.t-layers { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 16px; }
.t-ly { position: relative; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--lc); background: color-mix(in srgb, var(--lc) 8%, var(--bg2)); }
.t-ly b { font-family: var(--mono); color: color-mix(in srgb, var(--lc) 55%, #fff); }
.t-ly small { display: block; color: var(--muted); }
.t-ly code { float: right; background: none; color: var(--muted); }
.t-line { text-align: center; font: 700 12px var(--mono); color: var(--warn); letter-spacing: 1px; text-transform: uppercase; border-top: 1px dashed var(--warn); padding-top: 4px; }
.t-seq { color: #d4d4d4; }
.t-seq li { margin-bottom: 4px; }
.t-tab { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14px; }
.t-tab th, .t-tab td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t-tab th { color: var(--c, var(--acc2)); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.t-tab td { color: #d4d4d4; }

@media (max-width: 1000px) {
  .kl-banner { grid-template-columns: 1fr; }
  .kl-rings { max-width: 240px; }
  .cat-hero { flex-direction: column; align-items: flex-start; }
}

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 999; padding: 12px 20px; border-radius: 12px; background: #222222; border: 1px solid #3a3a3a; box-shadow: 0 20px 50px -20px #000; font-weight: 500; transition: .3s; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* página de IDE */
.ide-page { padding: 14px 20px 20px; }
.ide-top { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.ide-switch { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ide-switch a { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ide-switch a.on { background: #f5f5f5; color: #0a0a0a; }
.ide-note { font-size: 13px; color: var(--muted); flex: 1; }
.ide-host { height: calc(100vh - 130px); min-height: 520px; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -30px #000; border: 1px solid #333; }
.ide-host:fullscreen { height: 100vh; border-radius: 0; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-win { transform: none; }
  .course { grid-template-columns: 1fr; }
  .c-side { position: static; height: auto; max-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .c-main { padding: 20px 16px 40px; }
  .ide-promo, .promo { grid-template-columns: 1fr; }
  .split2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
  .sec, .hero { padding-left: 16px; padding-right: 16px; }
  .ide-page { padding: 10px 8px; }
  .l-title { font-size: 25px; }
}

/* ===== novo layout (categorias) ===== */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; background: linear-gradient(180deg, #151515, #0d0d0d); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.09), transparent 70%); }
.cat-card:hover { transform: translateY(-4px); border-color: #5a5a5a; box-shadow: 0 20px 40px -24px rgba(255,255,255,.35); }
.cc-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #f5f5f5; color: #0a0a0a; font: 800 17px var(--mono); }
.cat-card h3 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.5px; }
.cat-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.cc-f { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.cc-f b { color: #fff; }
.sec-ic { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 11px; background: #f5f5f5; color: #0a0a0a; font: 800 15px var(--mono); vertical-align: 4px; margin-right: 4px; }
.lvd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.lvd.l1 { background: #f5f5f5; } .lvd.l2 { background: #9a9a9a; } .lvd.l3 { background: #4a4a4a; border: 1px solid #9a9a9a; }
.ctile { color: #0a0a0a; }
.cat-art { flex: none; width: 300px; }
.cat-art.bots { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: #313338; border: 1px solid #1e1f22; font-family: Inter, sans-serif; transform: rotate(2deg); box-shadow: 0 30px 60px -30px #000; }
.ca-msg { display: flex; gap: 10px; }
.ca-msg > span { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f2f3f5; }
.ca-msg b { color: #f2f3f5; font-size: 14px; } .ca-msg em { font-style: normal; font-size: 10px; background: #5865f2; color: #fff; padding: 1px 4px; border-radius: 3px; margin-left: 4px; }
.ca-msg p { margin: 2px 0 0; color: #dbdee1; font-size: 13px; }
.ca-btns { display: flex; gap: 8px; margin-left: 46px; }
.ca-btns i { font-style: normal; font-size: 12px; padding: 6px 12px; border-radius: 4px; background: #248046; color: #fff; }
.ca-btns i + i { background: #4e5058; }
.cat-art.web { border-radius: 12px; overflow: hidden; border: 1px solid #333; transform: rotate(-2deg); box-shadow: 0 30px 60px -30px #000; }
.ca-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #1d1d1d; font: 11px var(--mono); color: #888; }
.ca-bar i { width: 9px; height: 9px; border-radius: 50%; background: #444; }
.ca-bar span { margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: #111; }
.ca-page { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #f4f4f4; min-height: 140px; }
.ca-page b { height: 22px; width: 60%; border-radius: 4px; background: #111; }
.ca-page i { height: 8px; border-radius: 4px; background: #c9c9c9; } .ca-page i:nth-child(3) { width: 80%; } .ca-page i:nth-child(4) { width: 50%; }
.kl-rings .ring.r3 { border-color: #d4d4d4; } .kl-rings .ring.r0 { border-color: #8a8a8a; color: #d4d4d4; background: rgba(255,255,255,.04); } .kl-rings .ring.hw { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); box-shadow: 0 0 40px -6px rgba(255,255,255,.4); }
.cat-hero.cat-pc { background: radial-gradient(600px 300px at 90% 50%, rgba(255,255,255,.07), transparent 70%), linear-gradient(135deg, #141414, #0b0b0b); }
@media (max-width: 1000px) { .cat-art { width: 100%; max-width: 320px; } }
