/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cascadia+Code:wght@400;500;600&display=swap');

:root {
    /* =========================================
       1. CORE BRAND COLORS (OKLCH)
       ========================================= */
    --brand-primary: oklch(90% 0.15 270);      /* Electric Indigo */
    --brand-hover:   oklch(78% 0.15 270);      
    --brand-surface: oklch(96% 0.03 270);      

    /* =========================================
       2. SEMANTIC STATUS COLORS (OKLCH)
       (Essential for Error/Success/Warning states)
       ========================================= */
    --color-success: oklch(75% 0.18 145);     /* Neon Green */
    --color-warning: oklch(85% 0.18 85);      /* Electric Amber */
    --color-error:   oklch(65% 0.20 25);      /* Neon Red */
    --color-info:    oklch(70% 0.18 240);     /* Cyan */

    /* =========================================
       3. THE VOID BACKGROUND (Deep & Modern)
       ========================================= */
    --primary-bg:    oklch(18% 0.02 265);      /* Deep Dark Navy */
    
    /* Layered Surfaces for Glassmorphism */
    --surface-1:     rgba(255, 255, 255, 0.03); /* Very subtle */
    --surface-2:     rgba(255, 255, 255, 0.05); /* Standard Card (Your old secondary-bg) */
    --surface-3:     rgba(255, 255, 255, 0.08); /* Hover State */
    --surface-input: rgba(0, 0, 0, 0.2);       /* Input Fields */
    
    /* Gradient Background (Reusable) */
    --bg-void-gradient: radial-gradient(circle at center, oklch(22% 0.04 270) 0%, var(--primary-bg) 80%);
    
    /* =========================================
       4. TYPOGRAPHY & TEXT
       ========================================= */
    --text-main:     oklch(98% 0.01 265);      /* White */
    --text-muted:    oklch(75% 0.03 265);      /* Slate Gray */
    --text-dim:      oklch(55% 0.02 265);      /* Very Faint Text */

    /* Font Families */
    --font-display:  'Space Grotesk', sans-serif;
    --font-body:     'Manrope', sans-serif;
    --font-code:     'Cascadia Code', monospace;

    /* Font Scale (Rem based) - Makes resizing globally easier */
    --text-xs:       0.75rem;
    --text-sm:       0.875rem;
    --text-base:     1rem;
    --text-lg:       1.125rem;
    --text-xl:       1.25rem;
    --text-2xl:      1.5rem;
    --text-3xl:      2rem;
    --text-4xl:      3rem;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* =========================================
       5. BORDERS & SHADOWS
       ========================================= */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus:  var(--brand-primary);
    --border-strong: rgba(255, 255, 255, 0.2);

    --shadow-sm:     0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg:     0 12px 32px -8px rgba(0, 0, 0, 0.5);
    --shadow-glow:   0 0 20px rgba(139, 92, 246, 0.2); /* Indigo Glow */

    /* =========================================
       6. SPACING & LAYOUT
       ========================================= */
    --radius-sm:     1rem;
    --radius-md:     1.5rem;
    --radius-lg:     2rem;
    --radius-pill:   9rem;
    --radius-card:   3rem;

    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 1rem;     /* 16px */
    --space-4: 1.5rem;   /* 24px */
    --space-5: 2rem;     /* 32px */
    --space-6: 4rem;     /* 64px */

    /* Container Widths */
    --container-sm: 600px;  /* Navbar/Small Content */
    --container-md: 900px;  /* Standard Content */
    --container-lg: 1100px; /* Feeds/Full Width */

    /* =========================================
       7. ANIMATION & EFFECTS
       ========================================= */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --glass-blur: 16px;     /* Standard backdrop blur amount */
}

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

/* REPLACE EXISTING body CSS WITH THIS */
body {
    background-color: var(--primary-bg);
    /* Subtle radial gradient for depth */
    background-image: radial-gradient(circle at center, oklch(25% 0.04 270) 0%, var(--primary-bg) 80%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased; 
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
    display: block; /* Changed from 'flex' to allow normal scrolling for Feeds/Blog */
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Space Grotesk', sans-serif; 
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}

body, p { 
    font-family: 'Manrope', sans-serif; 
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

code, pre { font-family: 'Cascadia Code', monospace; }
button, a { font-family: 'Space Grotesk', sans-serif; font-weight: 600; text-decoration: none; }

/* LAYOUT & CENTERING */
/* ENSURE THIS EXISTS (Preserves centering for Login/Index) */
.main-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh; /* Takes full viewport height */
    padding: 2rem;
}

.hero-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Better spacing than margin-top */
}

/* NEW: Badge Styling */
.badge {
    background: rgba(255, 255, 255, 0.07);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-primary);
}

.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.hero p { margin-bottom: 2rem; max-width: 450px; line-height: 1.5; }

/* GLASSMORPHISM CONTAINERS */
.box, .hero-btns-container {
    background: var(--secondary-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 3rem;
    width: 21rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.hero-btns-container button {
    width: 19rem;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-footer {
    margin-top: 1rem;
    padding-bottom: 1rem;
}

.hero-footer p { font-size: 0.8rem; opacity: 0.8; }

/* BUTTONS (Preserving your Logic) */
button {
    width: 18rem;
    height: 4rem;
    border-radius: 2rem;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: #000;
    transition: all 0.3s ease;
    cursor: pointer;
}

button:hover {
    background: var(--brand-hover);
}

/* Index Page Specific Button Radius */
.rg-btn {
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    margin-top: 0.5rem;
}

.lg-btn {
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-top: 4px;
}

/* FORM ELEMENTS (Register/Login Pages) */
.box { padding: 1.5rem; } /* Extra padding for the register box */
.box h2 { margin-bottom: 1.5rem; }

/* Fix for Header Alignment */
.header {
    display: flex;
    align-items: center;      /* Vertically centers the button and text */
    justify-content: space-between; /* Aligns them to the left */
    gap: 1.5rem;              /* Space between button and "Register" text */
    margin-bottom: 1rem;
    width: 100%;
}

.header h2 {
    margin: 0;                /* Removes default top/bottom spacing */
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.header a {
    display: flex;            /* Ensures the link doesn't add extra line-height */
    align-items: center;
    text-decoration: none;
}

.header button {
    margin: 0;                /* CRITICAL: Overrides the global 0.5rem margin */
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    min-width: 3rem;          /* Prevents the button from shrinking */
    padding: 0;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.fp-btn {
    background: transparent;
    color: white;
}

.fp-btn:hover {
    text-decoration: underline;
    background: none;
}


input {
    width: 18rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 0 1.2rem;
    margin: 0.25rem 0;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border: 1px solid var(--border-focus);
}

/* Preserving your split-radius logic */
.un-input { border-radius: 1.5rem 1.5rem 0.4rem 0.4rem; }
.cps-input { border-radius: 0.4rem 0.4rem 1.5rem 1.5rem; }

.inputs, .btns {
    display: grid;
    justify-content: center;
}

.btns button {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

/* =========================================
   NEW: NAVIGATION & LAYOUT EXTENSIONS
   ========================================= */

/* UPDATE/REPLACE THESE SECTIONS */

/* =========================================
   UPDATED NAVBAR STYLES (FULLY UPDATED)
   ========================================= */

.navbar {
    position: sticky;
    top: var(--space-5);
    z-index: 100;
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    width: 90%;
    max-width: var(--container-lg);
    margin: 0 auto var(--space-6) auto;
    
    box-shadow: var(--shadow-lg);
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-size: var(--text-lg);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 102; 
}

/* Desktop Nav Container */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: color 0.3s var(--ease-out);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-primary);
}

.sign-in-btn {
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease-out);
}

.sign-in-btn:hover {
    background: var(--brand-primary);
    color: #000;
}

/* Dropdown Logic (Desktop) */
.nav-dropdown {
    position: relative;
    height: 100%; 
    display: flex;
    align-items: center;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: color 0.3s;
}

.chevron {
    font-size: 0.7em;
    transition: transform 0.3s var(--ease-out);
}

.nav-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.nav-dropdown:hover .dropdown-btn,
.nav-dropdown:hover .nav-link {
    color: var(--brand-primary);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 140%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    transition: all 0.2s;
    font-family: var(--font-body);
}

.dropdown-item i {
    color: var(--brand-primary);
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--surface-2);
    color: var(--text-main);
    transform: translateX(4px);
}

/* =========================================
   MOBILE NAVIGATION (Hamburger & Sidebar)
   ========================================= */

.hamburger {
    display: none; 
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: var(--text-xl);
    cursor: pointer;
    z-index: 102;
    padding: var(--space-2);
}

.hamburger:hover {
    background: var(--surface-2);
    border-radius: var(--radius-sm);
}

/* Sidebar Container */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 300px;
    height: 100vh;
    background: var(--primary-bg);
    border-left: 1px solid var(--border-subtle);
    z-index: 200;
    transition: right 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}

.mobile-sidebar.open {
    right: 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-subtle); /* Kept only here */
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-xl);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
}

.close-btn:hover { color: var(--color-error); }

/* Sidebar Content Links */
.sidebar-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2); /* Tighter gap without borders */
    overflow-y: auto;
}


.sidebar-link {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: var(--text-md);
    font-weight: 600;
    padding: var(--space-1) 0; /* Padding only vertical */
    transition: color 0.3s;
    text-align: left; /* FIX: Force Left Align */
    border-bottom: none; /* FIX: Removed Dividers */
}

.sidebar-link:hover { color: var(--brand-primary); }

/* Mobile Accordion */
.sidebar-accordion {
    width: 100%;
    border-bottom: none; /* FIX: Removed Dividers */
}

/* Mobile Accordion Button */
.accordion-btn {
    width: 100%; /* Takes full width of the sidebar container */
    display: flex;
    justify-content: space-between; /* FIX: Pushes Text to Left Edge & Icon to Right Edge */
    align-items: center; /* Vertically centers them */
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    padding: var(--space-3) 0; /* Vertical spacing only */
    cursor: pointer;
    text-align: left;
    margin: 0; /* Reset margins */
}

/* Specific fix for the Icon to ensure it stays at the right edge */
.accordion-btn i {
    flex-shrink: 0; /* Prevents the icon from shrinking or moving */
}

/* Accordion Content (Sub-links) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    
    /* FIX: Remove padding so sub-links align exactly with the parent text (Left Side) */
    padding-left: 0; 
    
    /* Remove gaps if you want them tighter, or use --space-1 for spacing */
    gap: var(--space-1); 
    
    margin-top: 0; /* Removes top spacing to keep it tight */
    margin-bottom: var(--space-2); /* Spacing below the accordion group */
}

.accordion-content a {
    color: var(--text-main);
    text-decoration: none;
    padding: var(--space-2) var(--space-2); /* Vertical spacing for touch targets */
    font-size: var(--text-base);
    transition: color 0.2s;
    display: block;
    text-align: left; /* FIX: Ensure sub-link text is on the left */
}

.accordion-content a:hover { color: var(--brand-primary); }

/* Mobile Sign In Button */
.mobile-signin {
    margin-top: var(--space-4);
    display: block; /* Ensure block for full width */
    background: var(--brand-primary);
    color: #000;
    text-align: center;
    padding: var(--space-3);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s;
}

.mobile-signin:hover { opacity: 0.9; }

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 992px) {
    .desktop-nav {
        display: none; 
    }

    .hamburger {
        display: block; 
    }
}

/* =========================================
   FIX: NAVBAR BUTTON OVERRIDES
   ========================================= */

/* 1. Global Reset for Buttons inside Navbar & Sidebar */
.navbar button, 
.mobile-sidebar button {
    width: auto;           
    height: auto;          
    padding: 0;            
    background: transparent; 
    border: none;          
    color: inherit;        
    font-size: inherit;    
    box-shadow: none;      
}

/* 2. Specific Styling: Hamburger Icon */
.hamburger {
    padding: var(--space-2); 
    color: var(--text-main);
    font-size: var(--text-xl);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.hamburger:hover {
    background: var(--surface-2);
}

/* 3. Specific Styling: Close Button (Sidebar) */
.close-btn {
    padding: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--color-error);
}

/* 4. Specific Styling: Dropdown Buttons (Desktop) */
.dropdown-btn {
    color: var(--text-muted);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-dropdown:hover .dropdown-btn {
    color: var(--brand-primary);
}

/* 5. Specific Styling: Accordion Buttons (Sidebar) */
.accordion-btn {
    width: 100%; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    color: var(--text-main);
    font-size: var(--text-lg); 
    padding: var(--space-2) 0; 
    font-weight: 600;
    text-align: left;
}

/* 6. Specific Styling: Sign In Button (Desktop) */
.navbar .sign-in-btn {
    padding: 0.6rem 1.5rem; 
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-pill);
    color: var(--brand-primary);
    font-weight: 700;
    transition: all 0.3s var(--ease-out);
}

.navbar .sign-in-btn:hover {
    background: var(--brand-primary);
    color: #000;
    box-shadow: var(--shadow-glow);
}

/* 7. Specific Styling: Mobile Sign In Button (Sidebar) */
.mobile-signin {
    width: 100%;
    padding: var(--space-3);
    background: var(--brand-primary);
    color: #000;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-align: center;
    margin-top: var(--space-3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Wider Container for Blog Content */
.content-wrapper {
    /* MATCHING WIDTH FIX */
    width: 90%; 
    max-width: 1100px;
    
    margin: 0 auto; /* Centered horizontally */
    padding: 0 0 4rem 0; /* Removed horizontal padding to match Navbar */
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Page Header for Feeds */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   NEW: FEEDS PAGE (Grid)
   ========================================= */

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

.feed-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feed-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Pushes button to bottom */
}

.read-more-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: fit-content;
}

.read-more-btn:hover {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
}

/* =========================================
   NEW: SINGLE BLOG POST
   ========================================= */

.back-nav {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-btn:hover { color: var(--brand-primary); }

.article-header {
    text-align: left;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 2rem;
}

.article-header h1 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-card);
    margin-bottom: 3rem;
    border: 1px solid var(--border-subtle);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db; /* Slightly lighter than text-muted for reading */
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--text-main);
}

.article-body p {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Code Blocks in Blog */
.article-body pre {
    background: #0d0d12;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    margin: 2rem 0;
}

.article-body code {
    font-size: 0.9rem;
    color: var(--brand-primary);
}

/* Inline Code */
.article-body p code {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .article-header h1 { font-size: 2rem; }
    .article-cover { height: 250px; }
    .navbar { width: 95%; padding: 0.75rem 1rem; }
    .nav-link span { display: none; } /* Hide text on mobile nav, keep icons if added */
    .nav-link { font-size: 0.8rem; }
}

/* =========================================
   EXTENDED INDEX STYLES
   ========================================= */

/* Container for new content (Matches width of Navbar/Feeds) */
.extended-wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.feature-card p {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* STATS BAR */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 2rem;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* BOTTOM CTA CARD */
.bottom-cta-card {
    background: linear-gradient(135deg, var(--brand-surface) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect for CTA */
.bottom-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 60%);
    opacity: 0.1;
    pointer-events: none;
}

.bottom-cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative; /* Keeps text above the glow */
}

.bottom-cta-card p {
    margin-bottom: 2rem;
    position: relative;
}

.cta-btn {
    background: var(--brand-primary);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.cta-btn:hover {
    background: var(--brand-hover);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-number { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-container { flex-direction: column; gap: 1.5rem; }
}

/* =========================================
   PRODUCT SHOWCASE (INDEX.HTML)
   ========================================= */

.products-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 3rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.3);
}

.product-icon-lg {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.status-badge.beta { color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-badge.live { color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

/* =========================================
   SPECIFIC PRODUCT PAGE STYLES
   ========================================= */

.product-hero {
    text-align: center;
    padding: 4rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 3rem;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.product-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.action-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--brand-primary);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 0 15px var(--brand-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

/* Split Layout for Product Info */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.info-block h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.info-block p {
    text-align: left;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li i {
    color: var(--brand-primary);
}

/* Mockup Container (Code/Editor) */
.mockup-container {
    background: #0d0d12;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

/* Code Editor Look */
.code-window-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.window-dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.mockup-content {
    font-family: 'Cascadia Code', monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
    line-height: 1.6;
}

.kw { color: #c586c0; } /* Keyword */
.fn { color: #dcdcaa; } /* Function */
.str { color: #ce9178; } /* String */
.var { color: #9cdcfe; } /* Variable */

/* Responsive */
@media (max-width: 768px) {
    .split-layout { grid-template-columns: 1fr; }
    .product-hero h1 { font-size: 2.5rem; }
}