:root {
    --bg: #1a1a1a;
    --bg-2: #232323;
    --bg-3: #2b2b2b;
    --line: #3a3a3a;
    --text: #ececec;
    --muted: #9a9a9a;
    --yellow: #ffcc00;
    --yellow-2: #ffb800;
    --red: #c72a2a;
    --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
    font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: 'Anton', 'Oswald', sans-serif; font-weight: 400; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }

.kicker {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .4em;
    color: var(--yellow);
    font-size: 13px;
    margin-bottom: 18px;
}
.accent { color: var(--yellow); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 3px solid var(--yellow);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(1200px 600px at 80% 20%, rgba(255, 204, 0, .08), transparent 60%),
        radial-gradient(800px 400px at 10% 90%, rgba(199, 42, 42, .06), transparent 60%),
        repeating-linear-gradient(45deg, transparent 0 40px, rgba(255,255,255,.015) 40px 41px),
        linear-gradient(180deg, #161616 0%, #1a1a1a 50%, #141414 100%);
    z-index: 0;
}
.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(transparent 95%, rgba(255,255,255,.04) 95%),
        linear-gradient(90deg, transparent 95%, rgba(255,255,255,.04) 95%);
    background-size: 48px 48px;
    opacity: .6;
}

.nav {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 40px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: var(--yellow);
    color: #111;
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    border-radius: 4px;
    box-shadow: 0 0 0 3px #111 inset, 0 4px 0 #b58800;
}
.brand-name { font-family: 'Anton', sans-serif; letter-spacing: .22em; font-size: 20px; }
.nav-cta {
    font-family: 'Bebas Neue', sans-serif; letter-spacing: .3em; font-size: 15px;
    color: var(--yellow);
    border: 2px solid var(--yellow);
    padding: 8px 18px;
    transition: all .18s;
}
.nav-cta:hover { background: var(--yellow); color: #111; }

.hero-content {
    position: relative; z-index: 2;
    margin: auto;
    padding: 40px 40px 80px;
    max-width: 1100px;
    text-align: center;
}
.hero-content h1 {
    font-size: clamp(48px, 8vw, 108px);
    margin-bottom: 22px;
    text-shadow: 6px 6px 0 rgba(0,0,0,.35);
}
.hero-content .tagline {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 18px;
    color: var(--muted);
    line-height: 1.55;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    font-family: 'Anton', sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 18px;
    padding: 16px 36px;
    border: none;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .18s;
    font-weight: 400;
}
.btn-primary {
    background: var(--yellow);
    color: #111;
    box-shadow: 0 6px 0 #b58800, 0 10px 30px rgba(255, 204, 0, .2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b58800, 0 14px 36px rgba(255, 204, 0, .3); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #b58800; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ============ SECTIONS ============ */
.section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .round-number {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .5em;
    font-size: 14px;
    color: var(--yellow);
    display: block;
    margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 16px; }

/* ============ COURSES GRID ============ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.course-card {
    position: relative;
    background: var(--bg-2);
    border: 2px solid var(--line);
    padding: 28px 26px 26px;
    cursor: pointer;
    transition: transform .15s, border-color .15s, box-shadow .2s;
    overflow: hidden;
}
.course-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: var(--yellow);
    transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.course-card:hover {
    transform: translateY(-3px);
    border-color: var(--yellow);
    box-shadow: var(--shadow);
}
.course-card:hover::before { transform: scaleY(1); }
.course-number {
    font-family: 'Anton', sans-serif;
    font-size: 44px;
    color: #3a3a3a;
    line-height: 1;
    margin-bottom: 14px;
    transition: color .18s;
}
.course-card:hover .course-number { color: var(--yellow); }
.course-title { font-size: 26px; margin-bottom: 6px; }
.course-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .2em;
    color: var(--yellow);
    font-size: 13px;
    margin-bottom: 14px;
}
.course-desc { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.course-lock {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .2em;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 14px;
    width: 100%;
    transition: color .15s;
}
.course-card:hover .course-lock { color: var(--yellow); }
.course-lock svg { width: 14px; height: 14px; }
.course-card.unlocked .course-lock { color: var(--yellow); }

/* ============ BELT (quote) ============ */
.belt {
    background: var(--yellow);
    color: #111;
    padding: 70px 40px;
    max-width: none;
    border-top: 4px solid #111;
    border-bottom: 4px solid #111;
    position: relative;
    overflow: hidden;
}
.belt::before, .belt::after {
    content: ""; position: absolute; left: 0; right: 0; height: 12px;
    background: repeating-linear-gradient(90deg, #111 0 20px, var(--yellow) 20px 40px);
}
.belt::before { top: 0; }
.belt::after { bottom: 0; }
.belt-content { max-width: 860px; margin: 0 auto; text-align: center; padding: 20px 0; }
.belt .kicker { color: #111; }
.belt h3 { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2; margin-bottom: 16px; }
.belt p { font-family: 'Bebas Neue', sans-serif; letter-spacing: .3em; font-size: 15px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer p { color: var(--muted); font-size: 14px; }

/* ============ MODALS ============ */
.modal {
    position: fixed; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    z-index: 100;
    padding: 20px;
}
.modal.open { display: flex; }
.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(4px);
}
.modal-card {
    position: relative;
    background: var(--bg-2);
    border: 2px solid var(--yellow);
    padding: 44px 36px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    animation: pop .2s ease-out;
}
.modal-card-video { max-width: 900px; padding: 28px; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
    position: absolute; top: 10px; right: 14px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    transition: color .15s;
}
.modal-close:hover { color: var(--yellow); }
.modal-card h3 { font-size: 30px; margin-bottom: 8px; }
.modal-card p { color: var(--muted); margin-bottom: 22px; font-size: 15px; }

.modal-card input[type="password"],
.modal-card input[type="text"],
.modal-card input[type="url"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-3);
    border: 2px solid var(--line);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 16px;
    transition: border-color .15s;
}
.modal-card input:focus { outline: none; border-color: var(--yellow); }
.modal-card form .btn { width: 100%; }

.modal-error {
    margin-top: 12px;
    color: var(--red);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .2em;
    font-size: 14px;
    min-height: 20px;
}

.video-header { margin-bottom: 20px; }
.video-header h3 { font-size: 32px; margin-top: 4px; }
.video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border: 2px solid var(--line);
}
.video-wrap iframe, .video-wrap #videoContainer {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: var(--muted);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .3em;
    text-align: center;
    padding: 20px;
}

/* ============ ADMIN ============ */
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 60px 40px; }
.admin-head { border-bottom: 2px solid var(--yellow); padding-bottom: 20px; margin-bottom: 30px; }
.admin-head h1 { font-size: 44px; }
.admin-head p { color: var(--muted); margin-top: 6px; }
.admin-item {
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 20px 22px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 18px;
    align-items: center;
}
.admin-item-num { font-family: 'Anton', sans-serif; font-size: 32px; color: var(--yellow); }
.admin-item-body h4 { font-family: 'Anton', sans-serif; font-size: 20px; margin-bottom: 4px; letter-spacing: .03em; text-transform: uppercase; }
.admin-item-body .sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; font-family: 'Bebas Neue', sans-serif; letter-spacing: .2em; }
.admin-item-body input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: monospace;
    font-size: 14px;
}
.admin-item-body input:focus { outline: none; border-color: var(--yellow); }
.admin-actions { position: sticky; bottom: 0; background: var(--bg); padding: 20px 0; border-top: 1px solid var(--line); text-align: right; margin-top: 20px; }
.admin-status { font-family: 'Bebas Neue', sans-serif; letter-spacing: .2em; font-size: 14px; margin-right: 20px; }
.admin-status.ok { color: var(--yellow); }
.admin-status.err { color: var(--red); }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .nav { padding: 18px 20px; }
    .section { padding: 70px 20px; }
    .courses-grid { grid-template-columns: 1fr; }
    .modal-card { padding: 36px 24px 24px; }
    .belt { padding: 50px 24px; }
    .footer { padding: 30px 20px; }
}
