:root {
    /* Core Colors */
    --bg-obsidian: #050505;
    --bg-dark: #0a0a0a;
    --bg-panel: rgba(15, 15, 20, 0.6);
    --neon-blue: #00f3ff;
    --neon-blue-glow: rgba(0, 243, 255, 0.4);
    --neon-blue-dim: rgba(0, 243, 255, 0.1);
    --text-silver: #e0e6ed;
    --text-dim: #8b9bb4;
    --text-white: #ffffff;

    /* Accents */
    --accent-purple: #b026ff;
    --accent-green: #00ff66;

    /* Borders and Glass */
    --border-thin: 1px solid rgba(0, 243, 255, 0.2);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-obsidian);
    color: var(--text-silver);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, var(--neon-blue-dim) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(176, 38, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 8px var(--neon-blue-glow);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--border-thin);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--neon-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-silver);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-blue-glow);
}

.nav-links a:hover {
    color: var(--text-white);
    text-shadow: none;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, var(--bg-obsidian) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(var(--bg-obsidian) 1px, transparent 1px) 0 0 / 50px 50px;
    background-color: transparent;
    background-image: linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--neon-blue);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-blue-dim);
    border-radius: 4px;
    background: rgba(0, 243, 255, 0.05);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-white), var(--text-dim));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-dim);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-blue);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-obsidian);
    box-shadow: 0 0 20px var(--neon-blue-glow);
    text-shadow: none;
}

.btn-primary:hover::before {
    left: 0;
}

/* Components - Glass Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--border-thin);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.4);
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

section {
    padding: 6rem 0;
}

/* Footer */
footer {
    background: var(--bg-dark);
    border-top: var(--border-thin);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-family: var(--font-mono);
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--neon-blue);
}

.contact-info {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Forms & Inputs */
input,
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-silver);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue-dim);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--neon-blue-glow);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 243, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}

.animate-glow {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* In a real app, implement hamburger menu */
    }
}

/* --- LOGIC LAB COMPONENTS --- */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tool-header h3 {
    font-family: var(--font-mono);
    color: var(--neon-blue);
    font-size: 1.1rem;
}

.result-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed var(--neon-blue-dim);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    min-height: 60px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-green);
    word-break: break-word;
}

/* Score Dashboard Component */
.score-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-color: var(--accent-purple);
    border-right-color: var(--neon-blue);
    animation: spin 3s linear infinite;
    margin-bottom: 1.5rem;
}

.score-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-white);
    animation: spin-reverse 3s linear infinite;
    /* Counter spin to keep text straight */
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

/* --- INTEL HUB ARTICLES --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-obsidian);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue-dim);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-image {
    height: 160px;
    background: linear-gradient(45deg, var(--bg-dark), rgba(0, 243, 255, 0.05));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image::after {
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    font-weight: 700;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-read-time {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.article-link {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: var(--border-thin);
    box-shadow: 0 -10px 30px rgba(0, 243, 255, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
}