/* --- DESIGN TOKENS & VARIABLES --- */
:root {
    --bg-dark: #0F1115;
    --bg-card: rgba(26, 28, 35, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(245, 158, 11, 0.2);

    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;

    --primary-color: #F59E0B;
    /* Gold */
    --primary-glow: rgba(245, 158, 11, 0.6);
    --secondary-color: #FCD34D;
    /* Light Gold */
    --secondary-glow: rgba(252, 211, 77, 0.6);

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- BACKGROUND GLOW EFFECTS --- */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    background: var(--primary-color);
    animation: pulse 10s infinite alternate;
}

.bg-glow-2 {
    top: 600px;
    left: -200px;
    background: var(--secondary-color);
    animation: pulse 12s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2) translate(50px, 50px);
        opacity: 0.2;
    }
}

/* --- LAYOUT CONTAINER --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- NAVIGATION HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.8rem 1.6rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #0F1115;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.8);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    padding: 9rem 0 4rem;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #FCD34D;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 650px;
}

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

/* --- TEXT GRADIENT --- */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ARTICLE CARD --- */
.article-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.article-content p.lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    color: var(--text-primary);
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px var(--border-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* --- DEMO SECTION --- */
.demo-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.demo-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.demo-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.demo-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.cookie-status h5,
.redirect-log h5 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.gclid-box {
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 6px;
    padding: 0.8rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--secondary-color);
    word-break: break-all;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
}

.logs-box {
    background: #05050A;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.8rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #4AF626;
    /* Terminal green */
    height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
}

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

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    background: rgba(10, 10, 18, 0.9);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero {
        padding-top: 11rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .article-card,
    .demo-section {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}