:root {
    --bg: #090b10;
    --surface: #11141b;
    --surface-2: #171b24;
    --text: #f5f7fb;
    --muted: #9ca4b3;
    --line: rgba(255,255,255,.1);
    --accent: #b7ff35;
    --accent-2: #74e7ff;
    --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(183,255,53,.08), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(9,11,16,.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { font: 700 20px "JetBrains Mono", monospace; }
.brand span, .accent { color: var(--accent); }
.nav nav { display: flex; gap: 24px; align-items: center; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav-button { border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; }

.hero { min-height: 760px; display: grid; align-items: center; padding: 100px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.eyebrow { color: var(--accent); font: 600 12px "JetBrains Mono", monospace; letter-spacing: .15em; margin: 0 0 22px; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1 { font-size: clamp(58px, 9vw, 120px); letter-spacing: -.065em; margin-bottom: 28px; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
h2 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.045em; }
.hero-copy { max-width: 700px; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { padding: 13px 19px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); }
.button.primary { background: var(--accent); color: #0b0d11; border-color: var(--accent); }
.button.secondary:hover { border-color: rgba(255,255,255,.35); }

.terminal { background: rgba(17,20,27,.9); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.terminal-bar { display: flex; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff6363; }
.terminal-bar span:nth-child(2) { background: #ffd45b; }
.terminal-bar span:nth-child(3) { background: #59d98e; }
.terminal-content { padding: 26px; font: 500 14px/1.8 "JetBrains Mono", monospace; }
.terminal-content p { margin: 0 0 7px; }
.terminal-content b { color: var(--accent); }
.output { color: var(--muted); padding-left: 18px; }

.about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-copy { color: var(--muted); font-size: 18px; }
.about-copy strong { color: var(--text); }
.chips, .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { margin-top: 30px; }
.chips span, .tag-row span { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 999px; padding: 7px 11px; font-size: 12px; color: #c6ccd6; }

.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin: 0; }
.search-box { min-width: 310px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; background: var(--surface); }
.search-box input { width: 100%; padding: 13px 0; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; }
.search-box input::placeholder { color: #697181; }

.reels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.reel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.reel-card:hover { transform: translateY(-4px); border-color: rgba(183,255,53,.35); }
.reel-card[hidden] { display: none; }
.reel-image { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.reel-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.reel-card:hover .reel-image img { transform: scale(1.03); }
.placeholder { height: 100%; display: grid; place-items: center; font: 700 24px "JetBrains Mono", monospace; background: linear-gradient(135deg, #151922, #0d0f14); }
.placeholder span { color: var(--accent); }
.play { position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #0a0c10; background: var(--accent); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.reel-body { padding: 22px; }
.reel-meta { font: 600 11px "JetBrains Mono", monospace; letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }
.reel-body h3 { font-size: 23px; margin-bottom: 12px; }
.reel-body p { color: var(--muted); margin: 0 0 18px; }
.tag-row { margin-bottom: 18px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.card-actions a { color: var(--accent); }
.card-actions .resource-link { color: var(--accent-2); }
.state-message { padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.state-message.error { color: #ff9b9b; }

footer { border-top: 1px solid var(--line); padding: 38px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; color: var(--muted); }

@media (max-width: 900px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-grid { gap: 48px; }
    .reels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-heading { align-items: stretch; flex-direction: column; }
    .search-box { min-width: 0; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 24px, 1160px); }
    .section { padding: 78px 0; }
    .nav nav a:not(.nav-button) { display: none; }
    .hero { padding-top: 72px; }
    h1 { font-size: 58px; }
    .reels-grid { grid-template-columns: 1fr; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}
