*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-0:        #030408;
    --bg-1:        #080c14;
    --bg-2:        #0d1220;
    --bg-3:        #111828;
    --bg-4:        #161e30;
    --bg-5:        #1c2638;
    --border:      #1a2236;
    --border-light:#222e44;
    --accent:      #3d6fff;
    --accent-2:    #5c8aff;
    --accent-glow: rgba(61,111,255,0.14);
    --accent-ring: rgba(61,111,255,0.32);
    --green:       #3ba55d;
    --red:         #ed4245;
    --yellow:      #faa61a;
    --text-0:      #e3e8f4;
    --text-1:      #7a8aaa;
    --text-2:      #3e4d6a;
    --font:        'Inter', sans-serif;
    --mono:        'JetBrains Mono', monospace;
    --radius:      6px;
    --radius-lg:   10px;
    --sidebar-w:   260px;
    --ease:        cubic-bezier(0.16,1,0.3,1);
}

html, body {
    height: 100%;
    background: var(--bg-0);
    color: var(--text-0);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.landing-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.noise { position: absolute; inset: 0; opacity: 0.02; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; animation: orbFloat 10s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(61,111,255,0.13) 0%, transparent 70%); top: -200px; right: 4%; }
.orb-2 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(92,138,255,0.08) 0%, transparent 70%); bottom: 12%; left: 1%; animation-delay: -4s; }
.orb-3 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(61,111,255,0.09) 0%, transparent 70%); top: 42%; left: 30%; animation-delay: -7s; }

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-22px) scale(1.04); }
}

/* Animations */
.hidden-anim { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.show-anim { opacity: 1; transform: translateY(0); }

.glow-text { text-shadow: 0 0 24px rgba(92,138,255,0.4); }

.glass-hover { transition: all 0.4s var(--ease); position: relative; overflow: hidden; }
.glass-hover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--accent-glow), transparent 60%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.glass-hover:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-ring); border-color: rgba(61,111,255,0.4); background: rgba(8,12,20,0.8); }
.glass-hover:hover::after { opacity: 1; }

.layout { display: flex; height: 100vh; position: relative; z-index: 1; }

.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: rgba(4,5,10,0.85);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    backdrop-filter: blur(12px);
    z-index: 100;
    transition: transform 0.3s var(--ease);
}

.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(61,111,255,0.18), rgba(92,138,255,0.1)); border: 1px solid rgba(61,111,255,0.28); border-radius: var(--radius-lg); padding: 5px; color: var(--accent-2); box-shadow: 0 0 15px var(--accent-glow); }
.logo-dot { color: var(--accent-2); }

.sidebar-nav { flex: 1; padding: 20px 0; overflow-y: auto; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--text-2); padding: 10px 20px; text-transform: uppercase; }
.nav-item { display: block; padding: 8px 20px; color: var(--text-1); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; border-left: 2px solid transparent; }
.nav-item:hover { color: var(--text-0); background: rgba(255,255,255,0.02); }
.nav-item.active { color: var(--accent-2); border-left-color: var(--accent-2); background: var(--accent-glow); text-shadow: 0 0 10px rgba(92,138,255,0.5); }

.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); }

.content-area { margin-left: var(--sidebar-w); flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.doc-container { max-width: 900px; margin: 0 auto; padding: 60px 40px; }

.doc-section { margin-bottom: 60px; scroll-margin-top: 80px; }
.doc-section h2 { font-size: 28px; color: var(--text-0); margin-bottom: 16px; letter-spacing: -0.5px; }
.doc-section p { color: var(--text-1); margin-bottom: 20px; font-size: 16px; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--accent-2); margin-bottom: 20px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.hero-title { font-size: 56px; font-weight: 800; letter-spacing: -2px; margin-bottom: 20px; }
.hero-title-gradient { background: linear-gradient(135deg, #3d6fff 0%, #a0bcff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 30px rgba(61,111,255,0.3)); }
.hero-sub { font-size: 18px; color: var(--text-1); max-width: 600px; }

.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); margin: 60px 0; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.card { background: rgba(6,8,16,0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(12px); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-icon-box { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); border: 1px solid var(--border-light); border-radius: var(--radius); }
.neon-icon svg { width: 22px; height: 22px; color: var(--accent-2); filter: drop-shadow(0 0 8px rgba(92,138,255,0.6)); transition: all 0.3s ease; }
.card:hover .neon-icon svg { transform: scale(1.15); filter: drop-shadow(0 0 12px var(--accent)); color: #fff; }
.card-title { font-size: 16px; font-weight: 600; color: var(--text-0); }
.card-desc { font-size: 14px; color: var(--text-1); line-height: 1.6; }

/* Dashboard Banner */
.dashboard-banner { background: linear-gradient(145deg, rgba(13,18,32,0.8) 0%, rgba(6,8,16,0.9) 100%); border: 1px solid rgba(61,111,255,0.2); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(16px); margin-top: 20px; }
.dash-title { font-size: 20px; color: var(--text-0); margin-bottom: 16px; }
.dash-btn { margin-top: 24px; }

/* Tables */
.table-responsive { overflow-x: auto; margin-top: 20px; border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); background: rgba(6,8,16,0.4); backdrop-filter: blur(8px); }
.doc-table { width: 100%; border-collapse: collapse; text-align: left; }
.doc-table th { padding: 16px 20px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.2); }
.doc-table td { padding: 16px 20px; font-size: 14px; color: var(--text-1); border-bottom: 1px solid rgba(255,255,255,0.03); transition: color 0.2s ease; }
.doc-table tr:last-child td { border-bottom: none; }
.table-row-hover:hover td { background: rgba(255,255,255,0.02); color: var(--text-0); }
.doc-table code { font-family: var(--mono); color: var(--accent-2); background: rgba(61,111,255,0.1); padding: 4px 8px; border-radius: 4px; font-size: 13px; box-shadow: 0 0 10px rgba(61,111,255,0.05); }

.level-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.level-dot.low { background: var(--green); }
.level-dot.medium { background: var(--yellow); }
.level-dot.high { background: #fb923c; }
.level-dot.ultra { background: var(--red); }
.glow-dot { box-shadow: 0 0 8px currentColor; }

.glass-container { background: rgba(6,8,16,0.5); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(10px); }
.doc-list { list-style: none; margin-top: 10px; }
.doc-list li { position: relative; padding-left: 24px; margin-bottom: 16px; color: var(--text-1); transition: color 0.2s ease; }
.doc-list li:hover { color: var(--text-0); }
.doc-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.doc-list strong { color: var(--text-0); }

.command-block { background: rgba(6,8,16,0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; backdrop-filter: blur(8px); }
.command-name code { font-family: var(--mono); font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); padding: 4px 10px; border-radius: var(--radius); box-shadow: 0 4px 15px rgba(61,111,255,0.3); }
.command-desc { margin-top: 12px; font-size: 15px; color: var(--text-1); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #2d5be3, #3d6fff); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s var(--ease); }
.glow-btn { box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 8px 25px rgba(61,111,255,0.4); position: relative; overflow: hidden; }
.glow-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.glow-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 12px 35px rgba(61,111,255,0.6); }
.glow-btn:hover::before { left: 100%; }
.glow-btn svg { transition: transform 0.3s var(--ease); }
.glow-btn:hover svg { transform: translateX(3px) scale(1.1); }

.mobile-toggle { display: none; position: fixed; top: 20px; right: 20px; z-index: 200; background: rgba(17,24,40,0.8); border: 1px solid var(--border-light); color: var(--text-0); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; backdrop-filter: blur(10px); }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,0.5); }
    .content-area { margin-left: 0; }
    .doc-container { padding: 80px 20px 40px; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .hero-title { font-size: 42px; }
}