/* Extracted from index.html for Landing Page Consistency */

:root {
    --bg-primary: #08090d;
    --bg-secondary: #0d0f14;
    --bg-tertiary: #12151c;
    --bg-card: #16191f;
    --bg-card-hover: #1a1e26;

    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.4);

    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(139, 92, 246, 0.3);

    /* Typography */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px var(--accent-glow);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* BASE RESET & TYPOGRAPHY */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(8, 9, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.header.scrolled {
    background: rgba(8, 9, 13, 0.95);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s var(--ease-spring);
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* FOOTER */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 320px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer-link {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-column {
        align-items: center;
    }
}

/* LIGHT THEME OVERRIDES (For Blog) */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;

    background: var(--bg-primary);
    color: var(--text-primary);
}

.light-theme .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
}

.light-theme .footer {
    background: #111827;
    color: #f9fafb;
    border-top: none;
}

.light-theme .footer .footer-heading {
    color: #ffffff;
}

.light-theme .footer .footer-link {
    color: #9ca3af;
}

.light-theme .footer .footer-link:hover {
    color: #ffffff;
}

/* Blog Specific Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.blog-card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Article Page Styles */
.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

.article-hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.article-body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2 {
    font-family: var(--font-display);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.callout-box {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.stat-box {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-light);
    display: block;
}

.expert-quote {
    font-size: 1.25rem;
    font-style: italic;
    border-left: 4px solid var(--success);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.table-of-contents {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.breadcrumbs {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

.breadcrumbs span {
    color: var(--text-secondary);
}