*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0B0F1C;
    --surface:   #131826;
    --raised:    #1A2035;
    --border:    #252D44;
    --border2:   #2E3A57;
    --cyan:      #00CFFF;
    --cyan-glow: rgba(0,207,255,0.15);
    --lime:      #6EF083;
    --lime-glow: rgba(110,240,131,0.12);
    --text:      #D8E0F0;
    --muted:     #7A8BAD;
    --white:     #EEF2FF;
    --yellow:    #F5C542;
    --red:       #FF6B72;
    --r:         10px;
    --r-lg:      16px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.65; overflow-x: hidden; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── NAV ── */
nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(11,15,28,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 6%; height: 60px; gap: 24px;
}
.nav-logo img { height: 175px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.84rem; font-weight: 500; transition: color 0.18s; }
.nav-links a:hover { color: var(--cyan); }
.nav-pill { font-family: 'Fira Code', monospace; font-size: 0.7rem; color: var(--lime); border: 1px solid var(--lime); background: var(--lime-glow); padding: 3px 11px; border-radius: 20px; flex-shrink: 0; white-space: nowrap; }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 90px 6% 70px; position: relative; overflow: hidden; }
.hero-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; opacity: 0.18; pointer-events: none; }
.hero-bg-glow { position: absolute; width: 700px; height: 700px; background: radial-gradient(circle, rgba(0,207,255,0.09) 0%, transparent 65%); top: 50%; left: 40%; transform: translate(-50%,-50%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1200px; width: 100%; margin: 0 auto; position: relative; z-index: 1; }
.hero-kicker { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--lime); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.hero-kicker::before { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--lime); }
h1 { font-family: 'Fira Code', monospace; font-size: clamp(2.6rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.05; color: var(--white); margin-bottom: 22px; }
h1 .c { color: var(--cyan); }
.hero-desc { font-size: 1rem; color: var(--muted); line-height: 1.78; max-width: 460px; margin-bottom: 36px; }
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 24px; border-radius: var(--r); font-weight: 600; font-size: 0.88rem; text-decoration: none; border: none; cursor: pointer; transition: all 0.18s; }
.btn-cyan { background: var(--cyan); color: #0B0F1C; }
.btn-cyan:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,207,255,0.28); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ── HERO IDE MOCKUP ── */
.hero-ide { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border2); box-shadow: 0 28px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03), 0 0 60px rgba(0,207,255,0.06); }
.ide-bar { background: #0D1120; display: flex; align-items: center; padding: 9px 14px; gap: 7px; border-bottom: 1px solid var(--border); }
.d { width: 11px; height: 11px; border-radius: 50%; }
.d-r { background: #FF5F56; } .d-y { background: #FFBD2E; } .d-g { background: #27C93F; }
.ide-tabs { display: flex; gap: 2px; margin-left: 14px; font-family: 'Fira Code', monospace; font-size: 0.72rem; }
.ide-tab { padding: 3px 12px; border-radius: 4px 4px 0 0; color: var(--muted); }
.ide-tab.active { background: var(--surface); color: var(--text); border-top: 1px solid var(--cyan); }
.ide-body { display: flex; background: var(--surface); }
.ide-gutter { padding: 18px 10px 18px 14px; font-family: 'Fira Code', monospace; font-size: 0.78rem; color: var(--border2); text-align: right; line-height: 1.85; user-select: none; min-width: 40px; border-right: 1px solid var(--border); }
.ide-code { padding: 18px 18px; font-family: 'Fira Code', monospace; font-size: 0.78rem; line-height: 1.85; flex: 1; overflow: hidden; }
.k  { color: #B69EFF; }
.f  { color: var(--cyan); }
.s  { color: var(--yellow); }
.n  { color: #FF9580; }
.v  { color: var(--lime); }
.cm { color: #3E4F72; font-style: italic; }
.cur { display: inline-block; width: 2px; height: 13px; background: var(--cyan); vertical-align: middle; margin-left: 1px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ide-status { background: #0D1120; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 5px 14px; font-family: 'Fira Code', monospace; font-size: 0.68rem; }
.ok { color: var(--lime); }
.ide-status span { color: var(--muted); }

/* ── PILL BAR ── */
.pill-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 6%; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1100px; margin: 0 auto; justify-content: center; }
.pill { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border2); border-radius: 100px; padding: 7px 16px; font-size: 0.83rem; color: var(--text); transition: border-color 0.18s, color 0.18s; }
.pill:hover { border-color: var(--cyan); color: var(--white); }
.pill .icon { font-size: 1rem; line-height: 1; }

/* ── SECTION SHARED ── */
section { padding: 88px 6%; }
.sec-label { font-family: 'Fira Code', monospace; font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.sec-title { font-family: 'Fira Code', monospace; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.sec-title .hl { color: var(--cyan); }
.sec-desc { color: var(--muted); max-width: 580px; line-height: 1.8; }
.center { text-align: center; }
.center .sec-desc { margin: 0 auto; }

/* ── FEATURE SHOWCASE ── */
.showcase { background: var(--bg); }
.showcase-inner { max-width: 1100px; margin: 0 auto; }
.showcase-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 40px 0 0; }
.stab { font-family: 'Fira Code', monospace; font-size: 0.78rem; padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border2); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.18s; }
.stab:hover { border-color: var(--cyan); color: var(--text); }
.stab.active { background: var(--cyan); color: #0B0F1C; border-color: var(--cyan); font-weight: 600; }
.showcase-panels { margin-top: 24px; }
.spanel { display: none; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.spanel.active { display: grid; }
.spanel-text h3 { font-family: 'Fira Code', monospace; font-size: 1.2rem; color: var(--white); margin-bottom: 14px; }
.spanel-text p { color: var(--muted); line-height: 1.8; font-size: 0.92rem; margin-bottom: 18px; }
.spanel-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.spanel-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text); line-height: 1.5; }
.spanel-list li::before { content: '▸'; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.spanel-visual { border-radius: var(--r-lg); border: 1px solid var(--border2); overflow: hidden; background: #0D1120; }
.mini-bar { background: #0A0D18; padding: 7px 12px; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--border); }
.md { width: 9px; height: 9px; border-radius: 50%; }
.md-r { background: #FF5F56; } .md-y { background: #FFBD2E; } .md-g { background: #27C93F; }
.mini-label { font-size: 0.68rem; color: var(--muted); margin-left: auto; margin-right: auto; }
.mini-body { display: flex; }
.mini-gutter { padding: 14px 10px; color: var(--border2); border-right: 1px solid var(--border); text-align: right; min-width: 36px; font-size: 0.72rem; line-height: 1.8; }
.mini-code { padding: 14px 14px; flex: 1; font-family: 'Fira Code', monospace; font-size: 0.74rem; line-height: 1.8; }
.mini-term { background: #080B14; padding: 14px 16px; font-family: 'Fira Code', monospace; font-size: 0.76rem; line-height: 1.9; }
.t-out { color: var(--text); } .t-in { color: var(--cyan); } .t-err { color: var(--red); } .t-dim { color: var(--muted); }
.mf-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.mf-tab { font-family: 'Fira Code', monospace; font-size: 0.7rem; padding: 4px 11px; border-radius: 6px 6px 0 0; border: 1px solid var(--border); border-bottom: none; color: var(--muted); }
.mf-tab.mf-active { background: var(--surface); color: var(--text); border-top: 1px solid var(--cyan); }
.mf-tab.mf-dirty::after { content: ' ●'; color: var(--yellow); font-size: 0.65rem; }
.mf-body { background: var(--surface); border-radius: 0 6px 6px 6px; border: 1px solid var(--border); padding: 10px 12px; font-family: 'Fira Code', monospace; font-size: 0.72rem; line-height: 1.8; }
.shortcut-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border); color: var(--text); font-family: 'Fira Code', monospace; font-size: 0.76rem; }
.shortcut-row:last-child { border-bottom: none; }
.kbd { color: var(--cyan); background: var(--cyan-glow); border: 1px solid rgba(0,207,255,0.22); padding: 2px 10px; border-radius: 5px; }

/* ── VIDEO ── */
.video-section { background: var(--surface); padding: 88px 6%; }
.video-wrap { max-width: 820px; margin: 44px auto 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border2); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.video-wrap iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.video-note { max-width: 820px; margin: 16px auto 0; font-family: 'Fira Code', monospace; font-size: 0.74rem; color: var(--muted); }

/* ── CHECKLIST ── */
.checklist-section { background: var(--bg); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 48px auto 0; }
.check-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px 20px; }
.check-col-head { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--cyan); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cklist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cklist li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; color: var(--text); line-height: 1.45; }
.cklist li .ck { flex-shrink: 0; font-size: 0.85rem; margin-top: 1px; }
.cklist code { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--lime); background: var(--lime-glow); padding: 0 5px; border-radius: 4px; }

/* ── FOOTER ── */
footer { background: rgba(11,15,28,0.92); border-top: 1px solid var(--border); padding: 44px 6%; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo img { height: 175px; width: auto; display: block; }
.f-text { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.f-text strong { color: var(--text); }
.f-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.f-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.18s; display: flex; align-items: center; gap: 6px; }
.f-links a:hover { color: var(--cyan); }
.gh-icon { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-ide { display: none; }
    .spanel.active { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    nav { padding: 0 4%; }
    section, .video-section { padding: 64px 4%; }
    .pill-bar { padding: 28px 4%; }
    .nav-links { display: none; }
    .check-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cur { animation: none; opacity: 1; } }