@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Inter:wght@400;500;700&display=swap');

/* ─── VARIABLES & BASE ─── */
:root {
    --bg-base: #020202;
    --accent: #00E5FF;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --border-color: #1a1a1a;
    --fg-main: #e2e8f0;
    --fg-muted: #64748b;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--fg-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Grids & Scans */
.cyber-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, var(--accent-glow), transparent);
    opacity: 0.1;
    z-index: 9999;
    pointer-events: none;
    animation: scan 6s linear infinite;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* ─── NAVBAR ─── */
.nav-cyber {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(2, 2, 2, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-brand::before {
    content: '>> ';
    opacity: 0.5;
}

.nav-btn {
    padding: 8px 24px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ─── HERO ─── */
.hero {
    padding: 180px 5% 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 6px 12px;
    background: rgba(74, 222, 128, 0.05);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge::before {
    content: '[ ';
    color: #fff;
}
.status-badge::after {
    content: ' ]';
    color: #fff;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 83px, 0); }
    20% { clip: rect(62px, 9999px, 20px, 0); }
    40% { clip: rect(14px, 9999px, 84px, 0); }
    60% { clip: rect(49px, 9999px, 34px, 0); }
    80% { clip: rect(78px, 9999px, 16px, 0); }
    100% { clip: rect(12px, 9999px, 89px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(14px, 9999px, 60px, 0); }
    40% { clip: rect(89px, 9999px, 34px, 0); }
    60% { clip: rect(11px, 9999px, 88px, 0); }
    80% { clip: rect(54px, 9999px, 12px, 0); }
    100% { clip: rect(32px, 9999px, 89px, 0); }
}

.hero-desc {
    font-size: 18px;
    color: var(--fg-muted);
    max-width: 700px;
    margin-bottom: 40px;
    font-family: var(--font-sans);
}

/* ─── TERMINAL PANELS ─── */
.panels-container {
    padding: 40px 5% 120px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.panel {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    position: relative;
    padding: 1px;
}

.panel::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    pointer-events: none;
}

.panel::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    pointer-events: none;
}

.panel-header {
    background: #000;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-muted);
    display: flex;
    justify-content: space-between;
}

.panel-body {
    padding: 24px;
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 20px;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.panel-desc {
    font-size: 14px;
    color: var(--fg-muted);
    margin-bottom: 24px;
}

.panel-code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    background: #000;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.panel-code span { color: var(--fg-muted); }

/* ─── FOOTER ─── */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px dashed var(--border-color);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-muted);
}
