:root {
    --bg-color: #0f172a;
    --bg-offset: #1e293b;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #10b981;
    --danger: #ef4444;
    --font-heading: 'Outfit', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

.btn-github {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    color: white !important;
    transition: background 0.3s;
}

.btn-github:hover {
    background: rgba(255,255,255,0.2);
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, white 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-offset);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Visual Animation */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.onion-layers {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layer {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.3;
}

.l1 { width: 100%; height: 100%; animation: pulse 4s infinite ease-in-out; }
.l2 { width: 75%; height: 75%; animation: pulse 4s infinite ease-in-out 0.5s; border-color: var(--secondary); }
.l3 { width: 50%; height: 50%; animation: pulse 4s infinite ease-in-out 1s; }
.l4 { width: 25%; height: 25%; animation: pulse 4s infinite ease-in-out 1.5s; border-color: var(--secondary); }

.core {
    position: relative;
    z-index: 10;
    font-family: var(--font-heading);
    font-weight: 700;
    background: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 30px var(--primary-glow);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    margin-top: -2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-offset);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Threats Section */
.threats {
    padding: 80px 0;
    background: var(--bg-offset);
}

.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.threat-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--primary);
}

.threat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.threat-header h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}
.tag {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}

.tag-high { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.tag-med { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

.threat-list {
    list-style: none;
}

.threat-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.threat-list li:before {
    content: "•";
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Code Section */
.code-section {
    padding: 100px 0;
}

.terminal-window {
    background: #0d1117;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #30363d;
}

.terminal-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.tab {
    margin-left: 10px;
    color: #8b949e;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    color: #c9d1d9;
    font-size: 0.9rem;
}

.mt-4 { margin-top: 2rem; }

.prompt { color: var(--secondary); margin-right: 8px; font-weight: bold; }

pre {
    margin: 0;
    white-space: pre-wrap;
}

code {
    font-family: var(--font-mono);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.socials a {
    color: white;
    display: inline-block;
    padding: 0.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    h1 { font-size: 2.5rem; }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        margin-bottom: 2rem;
    }
}

/* REF TABLE STYLES (NEW) */
.ref-card {
    grid-column: span 1;
}

@media (min-width: 900px) {
    .grid-table {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.ref-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ref-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.ref-table td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: top;
}

.ref-table code {
    background: rgba(0,0,0,0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--secondary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    margin-bottom: 0;
}

.card-header .icon-box {
    margin-bottom: 0;
}
