:root {
    --bg: #131209;
    --surface: #1f1f1f;
    --surface-2: #272727;
    --surface-3: #313131;
    --border: #313131;
    --border-gold: rgba(212, 175, 55, 0.35);
    --gold: #d4af37;
    --gold-soft: #e8c874;
    --gold-deep: #b8860b;
    --gold-gradient: linear-gradient(135deg, #f4d67a 0%, #d4af37 45%, #b8860b 100%);
    --text: #f5f5f4;
    --muted: #a1a1aa;
    --danger: #f87171;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--gold-soft); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold); }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--gold);
    color: #131209;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 100;
    font-weight: 600;
}
.skip-link:focus { left: 16px; color: #131209; }

.container { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-header { position: sticky; top: 0; z-index: 20; padding: 16px 0; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: rgba(19, 18, 9, 0.72);
    backdrop-filter: blur(16px);
}

.brand { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; color: var(--text); }
.brand .brand-mark { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--muted); font-size: 14px; transition: color 0.3s var(--ease); }
.nav-link:hover { color: var(--gold); }

main { padding: 48px 0; flex: 1 0 auto; }

.eyebrow, .kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 600;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.muted { color: var(--muted); }
.center { text-align: center; }

.price { font-size: 36px; font-weight: 700; margin: 24px 0 4px; color: var(--gold-soft); }

.field { margin-top: 16px; }
label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--border-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 12px 24px;
    border: 0;
    border-radius: 12px;
    background: var(--gold-gradient);
    color: #131209;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(212, 175, 55, 0.32); color: #131209; }
.btn-gold:active { transform: scale(0.98); }

.btn-gold-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 0;
    border-radius: 12px;
    background: var(--gold-gradient);
    color: #131209;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.2);
    transition: transform 0.3s var(--ease);
}
.btn-gold-sm:hover { transform: translateY(-2px); color: #131209; }
.btn-gold-sm:active { transform: scale(0.98); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { border-color: var(--border-gold); color: var(--gold-soft); }
.btn:active { transform: scale(0.98); }
.btn.small { padding: 8px 12px; font-size: 14px; }

.btn-danger { border-color: rgba(248, 113, 113, 0.4); color: var(--danger); background: transparent; }
.btn-danger:hover { background: rgba(248, 113, 113, 0.1); color: var(--danger); }

.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; }

.flash {
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    background: var(--surface-2);
    color: var(--gold-soft);
    font-size: 14px;
}

.error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: var(--surface-2);
    color: var(--danger);
    font-size: 14px;
}

.trust { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--gold); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 30px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

.course-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.course-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.course-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }

.progress { height: 8px; border-radius: 9999px; background: var(--surface-2); overflow: hidden; margin: 12px 0; }
.progress > span { display: block; height: 100%; background: var(--gold-gradient); border-radius: 9999px; }

.learn { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.learn-aside { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; position: sticky; top: 96px; }
.learn-aside h2 { font-size: 18px; margin-bottom: 4px; }
.learn-main { min-width: 0; }

.back-link { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.back-link:hover { color: var(--gold); }

.module-title { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin: 16px 0 8px; font-weight: 600; }

.lesson-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.lesson-link:hover { background: var(--surface-2); color: var(--text); }
.lesson-link.active { background: rgba(212, 175, 55, 0.1); color: var(--gold-soft); }
.lesson-link .check { width: 18px; height: 18px; border-radius: 9999px; border: 1px solid var(--border); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.lesson-link.done .check { background: var(--gold-gradient); border-color: transparent; color: #131209; }
.lesson-link .check .icon-sm { width: 12px; height: 12px; }

.player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-gold); background: #000; box-shadow: var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lesson-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 4px; }
.lesson-head h1 { font-size: 24px; margin-top: 4px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.table .actions { display: flex; gap: 8px; justify-content: flex-end; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); color: var(--muted); }
.badge.published { border-color: var(--border-gold); color: var(--gold-soft); background: var(--surface-2); }

.admin-tree { margin-top: 8px; }
.admin-module { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; background: var(--surface); }
.admin-module .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-lesson { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

.inline-form { display: inline; }
.help { color: var(--muted); font-size: 14px; margin-top: 8px; }

.share-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.link-row { display: flex; gap: 8px; }
.link-row input { font-size: 14px; }
.qr-col { text-align: center; }
.qr-box {
    width: 220px;
    height: 220px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; display: block; }

.pix-qr { display: inline-flex; background: #ffffff; padding: 12px; border-radius: 12px; margin-top: 16px; }
.pix-qr img { width: 220px; height: 220px; display: block; }

@media (max-width: 720px) {
    .share-grid { grid-template-columns: 1fr; }
    .qr-col { text-align: left; }
}

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 24px 0 48px; }
.hero-copy h1 {
    font-size: 48px;
    max-width: 680px;
    background: linear-gradient(120deg, #ffffff 0%, var(--gold-soft) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { color: var(--muted); font-size: 20px; margin: 24px 0 32px; max-width: 680px; }
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-cta .btn-gold { width: auto; margin-top: 0; padding: 12px 32px; }
.hero-price { display: flex; flex-direction: column; }
.hero-price strong { font-size: 24px; color: var(--text); }
.hero-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); display: block; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; }
.stat strong { display: block; font-size: 30px; margin-bottom: 4px; color: var(--gold-soft); }
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 80px 0; }
.section-title { font-size: 36px; margin-bottom: 32px; max-width: 680px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.feature-card .icon { color: var(--gold); margin-bottom: 12px; }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }
.feature-card ul { list-style: none; padding: 0; margin: 0; }
.feature-card li { color: var(--muted); font-size: 14px; padding: 8px 0 8px 24px; position: relative; }
.feature-card li .icon-sm { position: absolute; left: 0; top: 10px; color: var(--gold); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; background: var(--surface-2); border: 1px solid var(--border-gold); color: var(--gold); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

.marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.shot {
    flex: 0 0 auto;
    width: 232px;
    aspect-ratio: 4 / 5;
    margin: 0 16px 0 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%) brightness(0.9);
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.shot:hover img { transform: scale(1.06); filter: grayscale(0) brightness(1); }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tagline { padding: 96px 0; }
.tagline p { font-size: 36px; font-weight: 700; max-width: 680px; margin: 0; line-height: 1.15; }
.tagline .word { color: rgba(245, 245, 244, 0.28); transition: color 0.6s var(--ease); }
.tagline .word.on { color: var(--text); }

.offer { padding: 40px 0; }
.offer-card { max-width: 560px; margin: 0 auto; text-align: center; border-color: var(--border-gold); }
.offer-card .price { display: inline-block; }
.offer-card form { text-align: left; margin-top: 12px; }
.guarantees { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 14px; text-align: left; }
.guarantees span { display: inline-flex; align-items: center; gap: 8px; }
.guarantees .icon-sm { color: var(--gold); }

.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h4 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 14px; margin: 0; }

.final-cta { text-align: center; padding: 80px 0; }
.final-cta h2 { font-size: 36px; max-width: 680px; margin: 0 auto 16px; }
.final-cta p { color: var(--muted); font-size: 18px; margin: 0 auto 32px; max-width: 680px; }
.final-cta .btn-gold { width: auto; display: inline-flex; margin-top: 0; padding: 12px 40px; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0; flex-shrink: 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-inner .brand { font-size: 20px; }
.social { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.social a { color: var(--muted); display: inline-flex; align-items: center; transition: color 0.3s var(--ease); }
.social a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--gold); }
.site-footer .muted { font-size: 12px; }

.js .reveal { opacity: 0; transform: translateY(48px); filter: blur(8px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 36px; }
    .stats { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .section-title { font-size: 30px; }
    .tagline p { font-size: 30px; }
    .final-cta h2 { font-size: 30px; }
}

@media (max-width: 720px) {
    .learn { grid-template-columns: 1fr; }
    .learn-aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .js .reveal { opacity: 1; transform: none; filter: none; }
    .tagline .word { color: var(--text); }
    .marquee-track { animation: none !important; }
}
