:root {
  --bg: #05070a;
  --panel: #0a0d12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(80, 187, 255, 0.32);
  --text: #f5f8fb;
  --muted: #8994a3;
  --muted-2: #596272;
  --blue: #348cff;
  --cyan: #34ddff;
  --glow: rgba(52, 140, 255, 0.28);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-feature-settings: "cv01", "ss03";
  min-height: 100vh;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.ambient { position: fixed; pointer-events: none; filter: blur(90px); opacity: .18; z-index: -1; border-radius: 50%; }
.ambient-one { width: 520px; height: 520px; background: #006dff; top: -260px; right: -160px; }
.ambient-two { width: 400px; height: 400px; background: #00dcff; top: 62vh; left: -280px; opacity: .08; }

.site-header {
  height: 72px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; letter-spacing: -.04em; }
.brand-accent { color: var(--cyan); }
.brand-mark { width: 26px; height: 26px; border: 1px solid var(--line-strong); display: grid; place-items: center; transform: rotate(45deg); box-shadow: 0 0 22px var(--glow); }
.brand-mark span { width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.site-header nav { display: flex; gap: 34px; color: var(--muted); font-size: 13px; }
.site-header nav a:hover { color: var(--text); }
.status { font: 11px "JetBrains Mono", monospace; color: #a6b1bf; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.025); }
.status i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #44f3a6; box-shadow: 0 0 9px #44f3a6; }

main { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.hero { min-height: 710px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; }
.hero::before { content: ""; position: absolute; width: 1px; height: 100%; background: var(--line); left: 57%; }
.kicker, .section-index { color: var(--cyan); font: 10px "JetBrains Mono", monospace; letter-spacing: .15em; text-transform: uppercase; }
.kicker span { font-size: 8px; margin-right: 8px; text-shadow: 0 0 10px var(--cyan); }
.hero h1 { font-size: clamp(48px, 5.3vw, 74px); line-height: .98; letter-spacing: -.065em; font-weight: 500; margin: 25px 0 27px; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(108, 199, 255, .75); text-shadow: 0 0 35px rgba(52, 140, 255, .18); }
.hero-text { max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.7; font-weight: 300; }
.hero-actions { display: flex; gap: 12px; margin-top: 35px; }
.button { border-radius: 6px; padding: 13px 18px; font-size: 13px; font-weight: 500; transition: .2s ease; }
.button-primary { background: linear-gradient(135deg, #2479ff, #39c9ff); color: #03101e; box-shadow: 0 8px 35px rgba(52, 140, 255, .22); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 45px rgba(52, 140, 255, .36); }
.button-ghost { border: 1px solid var(--line); color: #bdc5d0; background: var(--surface); }
.button-ghost:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.hero-metrics { display: flex; margin: 57px 0 0; padding: 0; }
.hero-metrics div { min-width: 115px; padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.hero-metrics div:last-child { border: 0; }
.hero-metrics dt { font: 500 22px "JetBrains Mono", monospace; color: #dff8ff; }
.hero-metrics dd { margin: 7px 0 0; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

.hero-visual { height: 560px; position: relative; display: grid; place-items: center; }
.hero-visual::before { content: ""; width: 76%; aspect-ratio: 1; border-radius: 50%; position: absolute; background: radial-gradient(circle, rgba(52,140,255,.16), transparent 67%); filter: blur(8px); }
.orbital { position: absolute; border-radius: 50%; border: 1px solid rgba(92,186,255,.2); }
.orbital-a { width: 345px; height: 345px; animation: spin 22s linear infinite; border-style: dashed; }
.orbital-b { width: 235px; height: 235px; animation: spin 16s linear infinite reverse; }
.orbital-a::before, .orbital-b::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); top: -4px; left: 50%; }
.core { width: 145px; height: 145px; display: grid; place-items: center; position: relative; border: 1px solid rgba(67,184,255,.43); background: radial-gradient(circle at 40% 35%, rgba(46,170,255,.25), rgba(5,9,14,.96) 68%); transform: rotate(45deg); box-shadow: 0 0 60px rgba(52,140,255,.23), inset 0 0 28px rgba(52,221,255,.1); }
.core-label { transform: rotate(-45deg); font: 9px/1.6 "JetBrains Mono", monospace; letter-spacing: .15em; color: #aeeeff; text-align: center; }
.core-pulse { position: absolute; width: 12px; height: 12px; background: white; box-shadow: 0 0 24px var(--cyan); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.signal { position: absolute; padding: 10px 13px; min-width: 92px; border-left: 2px solid var(--blue); background: rgba(9,14,21,.82); backdrop-filter: blur(12px); box-shadow: 0 9px 30px rgba(0,0,0,.35); }
.signal b { display: block; font: 500 14px "JetBrains Mono", monospace; color: #dff8ff; }
.signal small { color: var(--muted-2); font: 8px "JetBrains Mono", monospace; letter-spacing: .1em; }
.signal-a { top: 17%; right: 9%; }
.signal-b { bottom: 17%; right: 12%; }
.signal-c { bottom: 24%; left: 10%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .42; transform: scale(.65); } }

.courses-section, .about-section { padding: 112px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 48px; }
.section-heading h2, .about-section h2 { margin: 13px 0 0; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.05em; font-weight: 500; }
.section-heading > p { color: var(--muted); line-height: 1.65; max-width: 500px; margin: 0; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.course-card { min-height: 430px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); border-radius: 12px; padding: 30px; position: relative; overflow: hidden; cursor: pointer; transition: .28s ease; display: flex; flex-direction: column; }
.course-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, var(--card-glow), transparent 43%); opacity: .4; transition: .28s ease; }
.course-card::after { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; top: 60px; border: 1px solid var(--card-line); transform: rotate(45deg); box-shadow: 0 0 70px var(--card-glow); }
.course-card:hover { transform: translateY(-5px); border-color: var(--card-line); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.course-card:hover::before { opacity: .72; }
.course-card[data-accent="cyan"] { --card-glow: rgba(52,221,255,.2); --card-line: rgba(52,221,255,.4); }
.course-card[data-accent="blue"] { --card-glow: rgba(52,140,255,.26); --card-line: rgba(76,146,255,.46); }
.card-top, .card-body, .card-footer { position: relative; z-index: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.course-number { font: 11px "JetBrains Mono", monospace; color: var(--muted-2); }
.card-badge { font: 9px "JetBrains Mono", monospace; color: #b9edff; border: 1px solid var(--card-line); padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.25); }
.card-body { margin-top: auto; max-width: 76%; }
.card-eyebrow { color: var(--cyan); font: 9px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.card-body h3 { font-size: 34px; line-height: 1.05; letter-spacing: -.045em; margin: 13px 0 16px; font-weight: 500; }
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.card-footer { display: flex; gap: 24px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); color: #a6b1bf; font: 10px "JetBrains Mono", monospace; }
.card-footer span b { color: white; font-weight: 500; }
.card-arrow { margin-left: auto; color: var(--cyan); font-size: 16px; }
.skeleton-card { min-height: 540px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.055), rgba(255,255,255,.02)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.header-actions { display: flex; align-items: center; gap: 10px; }
.auth-button { border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(52,140,255,.1); color: #dff8ff; padding: 9px 13px; font: 500 11px "JetBrains Mono", monospace; cursor: pointer; transition: .2s; }
.auth-button:hover { background: rgba(52,140,255,.2); box-shadow: 0 0 24px var(--glow); }
.hero-text strong { color: #dff8ff; font-weight: 600; }
.button { border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.button[disabled] { opacity: .6; cursor: wait; }
.button-whatsapp { background: linear-gradient(135deg, #18b96c, #37e692); color: #02180d; font-weight: 600; box-shadow: 0 8px 28px rgba(37,211,102,.16); }
.button-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(37,211,102,.28); }
.course-card { min-height: 540px; cursor: default; }
.card-body { margin-top: 58px; }
.card-preview { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.card-preview li { color: #a9b5c3; font-size: 11px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-preview li span { color: var(--cyan); flex: 0 0 auto; }
.card-purchase { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 26px; }
.card-purchase small { display: block; color: var(--muted-2); font: 8px "JetBrains Mono", monospace; letter-spacing: .12em; margin-bottom: 7px; }
.card-purchase strong { display: block; color: #eaf9ff; font: 600 24px "JetBrains Mono", monospace; }
.card-purchase strong span { color: var(--cyan); font-size: 9px; }
.card-buy { padding: 11px 14px; font-size: 11px; }
.preview-button { margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--cyan); font: 500 10px "JetBrains Mono", monospace; cursor: pointer; }
.preview-button:hover { color: white; }
.preview-button span { margin-left: 4px; }

.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.about-section h2 span { color: var(--muted-2); }
.feature-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-grid article { background: var(--bg); padding: 28px 30px; position: relative; }
.feature-grid article:hover { background: rgba(255,255,255,.025); }
.feature-grid article > span { position: absolute; right: 25px; top: 22px; color: var(--muted-2); font: 9px "JetBrains Mono", monospace; }
.feature-grid h3 { margin: 0 0 11px; font-size: 16px; font-weight: 500; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; max-width: 600px; }
footer { max-width: var(--max); margin: 0 auto; padding: 36px 28px 56px; display: flex; align-items: center; gap: 40px; color: var(--muted-2); font-size: 12px; }
footer p { margin-left: auto; }
.mono { font: 9px "JetBrains Mono", monospace; letter-spacing: .12em; }

.drawer-backdrop, .player-backdrop { position: fixed; inset: 0; background: rgba(0,3,8,.75); backdrop-filter: blur(8px); z-index: 30; }
.player-backdrop { z-index: 50; }
.course-drawer { position: fixed; z-index: 40; right: 0; top: 0; width: min(720px, 94vw); height: 100vh; background: #080b10; border-left: 1px solid var(--line-strong); transform: translateX(102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -30px 0 80px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.course-drawer.open { transform: translateX(0); }
.drawer-header, .player-modal header { padding: 26px 30px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-header h2, .player-modal h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.035em; font-weight: 500; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 25px; font-weight: 300; cursor: pointer; transition: .2s; }
.icon-button:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.drawer-tools { padding: 18px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.drawer-tools[hidden] { display: none; }
.search-box { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); display: flex; align-items: center; padding: 0 13px; gap: 9px; }
.search-box:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(52,140,255,.08); }
.search-box input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 13px; }
.drawer-count { color: var(--muted-2); font: 10px "JetBrains Mono", monospace; white-space: nowrap; }
.lesson-tree { overflow-y: auto; padding: 14px 22px 60px; }
.folder { margin: 5px 0; }
.folder-toggle, .lesson { width: 100%; border: 0; background: transparent; text-align: left; display: flex; align-items: center; gap: 11px; border-radius: 7px; cursor: pointer; }
.folder-toggle { padding: 12px; color: #d5dce5; font-size: 13px; font-weight: 500; }
.folder-toggle:hover, .lesson:hover { background: var(--surface-hover); }
.folder-toggle .chevron { color: var(--muted-2); transition: transform .18s; }
.folder.expanded > .folder-toggle .chevron { transform: rotate(90deg); }
.folder-children { display: none; margin-left: 19px; padding-left: 10px; border-left: 1px solid var(--line); }
.folder.expanded > .folder-children { display: block; }
.folder-count { margin-left: auto; color: var(--muted-2); font: 9px "JetBrains Mono", monospace; }
.lesson { padding: 10px 11px; color: var(--muted); font-size: 12px; }
.lesson.playable { color: #c5ced9; }
.lesson.playable:hover { color: white; }
.lesson-icon { width: 20px; color: var(--blue); font: 11px "JetBrains Mono", monospace; flex: 0 0 20px; }
.lesson-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-size { margin-left: auto; color: var(--muted-2); font: 9px "JetBrains Mono", monospace; }
.lesson[disabled] { cursor: default; opacity: .5; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.preview-intro { display: flex; gap: 16px; margin: 8px 4px 24px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: rgba(52,140,255,.05); }
.preview-intro .lock-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--cyan); }
.preview-intro h3 { margin: 0 0 7px; font-size: 16px; }
.preview-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.preview-modules { display: grid; gap: 7px; }
.preview-modules > div { min-height: 52px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.preview-modules > div > span { color: var(--muted-2); font: 9px "JetBrains Mono", monospace; }
.preview-modules strong { font-size: 12px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.preview-modules i { font-style: normal; font-size: 11px; opacity: .55; }
.course-gate { margin-top: auto; padding: 22px 30px 26px; border-top: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(52,140,255,.12), rgba(52,221,255,.035)); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.course-gate[hidden] { display: none; }
.gate-label { margin: 0 0 6px; color: var(--cyan); font: 8px "JetBrains Mono", monospace; letter-spacing: .15em; }
.course-gate strong { display: block; color: white; font: 600 25px "JetBrains Mono", monospace; }
.course-gate strong small { color: var(--cyan); font-size: 9px; }
.course-gate p:not(.gate-label) { max-width: 420px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.gate-actions { display: grid; gap: 8px; min-width: 205px; }

.login-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(0,3,8,.82); backdrop-filter: blur(10px); }
.login-backdrop[hidden] { display: none; }
.login-modal { width: min(470px, 96vw); border: 1px solid var(--line-strong); border-radius: 12px; background: #080b10; box-shadow: 0 35px 100px rgba(0,0,0,.75), 0 0 70px rgba(52,140,255,.12); overflow: hidden; }
.login-modal header { padding: 24px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.login-modal h2 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.035em; font-weight: 500; }
.login-modal form { display: grid; gap: 17px; padding: 26px; }
.login-intro, .login-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-modal label { display: grid; gap: 8px; color: #c8d2de; font-size: 11px; }
.login-modal input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: rgba(255,255,255,.03); color: white; padding: 0 13px; }
.login-modal input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(52,140,255,.09); }
.form-error { margin: 0; padding: 10px 12px; border: 1px solid rgba(255,91,110,.35); border-radius: 6px; color: #ff9eaa; background: rgba(255,91,110,.08); font-size: 11px; }
.login-submit { width: 100%; min-height: 46px; }
.login-help { text-align: center; font-size: 10px; }

.player-backdrop { display: grid; place-items: center; padding: 24px; }
.player-backdrop[hidden] { display: none; }
.player-modal { width: min(1120px, 96vw); max-height: 94vh; background: #080b10; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 35px 100px rgba(0,0,0,.7), 0 0 80px rgba(52,140,255,.1); overflow: hidden; }
.player-stage { height: min(67vh, 700px); background: #000; display: grid; place-items: center; }
.player-stage video, .player-stage img { width: 100%; height: 100%; object-fit: contain; }
.player-stage audio { width: min(760px, 85%); }
.player-stage iframe { width: 100%; height: 100%; border: 0; background: white; }
.player-meta { padding: 12px 24px; display: flex; justify-content: space-between; color: var(--muted-2); font: 9px "JetBrains Mono", monospace; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); z-index: 60; background: #111821; border: 1px solid var(--line-strong); border-radius: 7px; padding: 12px 18px; color: #dceaff; font-size: 12px; opacity: 0; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 95px 0 70px; }
  .hero::before { display: none; }
  .hero-visual { height: 440px; }
  .section-heading, .about-section { grid-template-columns: 1fr; gap: 35px; }
  .course-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header, main, footer { padding-left: 18px; padding-right: 18px; }
  .status { display: none; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 45px; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-metrics div { min-width: 0; flex: 1; margin-right: 13px; padding-right: 13px; }
  .hero-visual { height: 380px; transform: scale(.82); margin: -25px -40px; }
  .courses-section, .about-section { padding: 76px 0; }
  .course-card { min-height: 560px; padding: 23px; }
  .card-body { max-width: 100%; margin-top: 42px; }
  .card-purchase { align-items: flex-end; }
  .card-purchase strong { font-size: 20px; }
  .card-footer { flex-wrap: wrap; gap: 12px 18px; }
  .preview-button { width: 100%; margin: 5px 0 0; text-align: left; }
  .drawer-tools { padding: 15px; }
  .drawer-header { padding: 20px; }
  .lesson-tree { padding: 12px 10px 50px; }
  .course-gate { grid-template-columns: 1fr; padding: 20px; gap: 17px; }
  .gate-actions { min-width: 0; }
  .login-backdrop { padding: 0; }
  .login-modal { width: 100vw; min-height: 100vh; border-radius: 0; }
  .player-backdrop { padding: 0; }
  .player-modal { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .player-stage { height: calc(100vh - 145px); }
  footer { flex-wrap: wrap; }
  footer p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
