:root {
    /* Harmonized green color scheme */
    --bg-primary: #0a0b0d;
    --bg-secondary: #0d1117;
    --bg-tertiary: #161b22;
    
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Green-based accent colors */
    --accent-primary: #00ff41;
    --accent-secondary: #39ff14;
    --accent-dark: #00cc33;
    --accent-hover: #66ff99;
    --accent-glow: rgba(0, 255, 65, 0.5);
    
    /* Matrix green colors */
    --matrix-green: #00ff00;
    --matrix-dark: #00cc00;
    --matrix-glow: rgba(0, 255, 0, 0.6);
    
    /* Blue as secondary accent */
    --blue-accent: #0284c7;
    --blue-light: #38bdf8;
    
    --border-color: rgba(0, 255, 65, 0.2);
    --border-hover: rgba(0, 255, 65, 0.4);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Core Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 12px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 24px var(--accent-glow);
    }
}

@keyframes greenPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--matrix-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--matrix-glow);
    }
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 3px var(--accent-glow);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 10px var(--accent-glow);
    }
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Base Styles */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Background with green tint */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(57, 255, 20, 0.05) 0%, transparent 50%);
    z-index: -3;
}

/* Grid Overlay with green lines */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Canvas for circuit board */
#circuit-board {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 11, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
    z-index: 1001;
}

.logo::before {
    content: '>';
    color: var(--accent-primary);
    font-weight: 400;
    animation: pulse 2s infinite;
}

.logo:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation */
.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition);
}

.nav a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav a:hover::after {
    width: 100%;
}

/* Prominent Docs Link */
.nav-docs {
    color: var(--matrix-green) !important;
    text-shadow: 0 0 8px var(--matrix-glow);
    font-weight: 600;
}

.nav-docs::after {
    background: var(--matrix-green) !important;
}

.nav-docs:hover {
    color: var(--matrix-green) !important;
    text-shadow: 0 0 15px var(--matrix-glow);
}

/* Hero Section - Reduced spacing */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Matrix Terminal Styles - Larger size */
.matrix-terminal {
    margin: 2rem auto 4rem;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.matrix-container {
    width: 500px;
    height: 250px;
    margin: 0 auto;
    background: #000;
    border: 2px solid var(--matrix-green);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 30px var(--matrix-glow), inset 0 0 30px rgba(0, 255, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: greenPulse 3s ease-in-out infinite;
}

.matrix-container:hover {
    box-shadow: 0 0 50px var(--matrix-glow), inset 0 0 40px rgba(0, 255, 0, 0.15);
    transform: scale(1.02);
}

.matrix-container.porcine-mode {
    width: 320px;
    height: 200px;
    border-radius: 50% 50% 45% 45%;
    background: #ffb3ba;
    border: 3px solid #ff6b6b;
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.4);
    animation: none;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

.matrix-container.porcine-mode #matrix-canvas {
    opacity: 0;
}

/* Pig Snout Elements */
.snout-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
}

.matrix-container.porcine-mode .snout-content {
    opacity: 1;
}

.nostrils {
    display: flex;
    gap: 50px;
}

.nostril {
    width: 45px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 50%;
    transform: rotate(15deg);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nostril:last-child {
    transform: rotate(-15deg);
}

.porki-text {
    text-align: center;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b6b;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease 0.5s;
}

.matrix-terminal.porcine-active .porki-text {
    opacity: 1;
    transform: translateY(0);
}

/* Tooltip */
.terminal-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.terminal-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--bg-tertiary);
}

.matrix-container:hover + .terminal-tooltip {
    opacity: 1;
}

/* Download Button Styles */
.download-section {
    text-align: center;
    padding: 3rem 0;
    animation: fadeInUp 1.4s ease-out 0.8s both;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-primary));
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
    position: relative;
    overflow: hidden;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.download-button:hover::before {
    left: 100%;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.5);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.download-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

.download-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.download-info {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.platform-badge {
    display: inline-block;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-top: 0.5rem;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

#version-info {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bg-primary);
    background-color: var(--accent-primary);
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    animation: flash 1.5s ease-in-out infinite;
}

/* NEW: Styles for all-downloads section */
.all-downloads-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.download-link-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    text-align: left;
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
}

.download-link-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.download-link-card a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.download-link-card span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.show-all-downloads-link {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-primary);
    margin-top: 1rem;
    display: inline-block;
    cursor: pointer;
    transition: all var(--transition);
}

.show-all-downloads-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.hidden {
    display: none;
}

/* Styles for the new visual features section */
.visual-features {
    padding: 100px 0;
    border-bottom: 1px solid #1a1c20;
}

.feature-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-showcase:last-child {
    margin-bottom: 0;
}

.feature-showcase.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2.25rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #9ca3af;
}

.feature-media {
    flex: 1.5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    background-color: #0d0e10;
}

.feature-media img,
.feature-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Icon styles */
.icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon::before,
.icon::after {
    content: '';
    position: absolute;
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-sm);
}

/* Custom SVG-like icons using CSS */
.icon-zero::before {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
}

.icon-zero::after {
    width: 3px;
    height: 40px;
    background: var(--accent-primary);
    border: none;
    transform: rotate(45deg);
}

.icon-brain::before {
    width: 36px;
    height: 30px;
    border-radius: 50% 50% 40% 40%;
    border: 3px solid var(--accent-primary);
}

.icon-brain::after {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    top: 8px;
    left: 22px;
}

.icon-rocket::before {
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 36px solid var(--accent-primary);
    border-radius: 0;
}

.icon-rocket::after {
    width: 8px;
    height: 20px;
    background: var(--accent-primary);
    border: none;
    bottom: -10px;
}

.icon-control::before {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
}

.icon-control::after {
    width: 15px;
    height: 15px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: none;
}

.icon-plug::before {
    width: 24px;
    height: 32px;
    border: 3px solid var(--accent-primary);
    border-radius: var(--radius-sm);
}

.icon-plug::after {
    width: 36px;
    height: 3px;
    background: var(--accent-primary);
    border: none;
    top: 50%;
    transform: translateY(-50%);
}

.icon-shield::before {
    width: 32px;
    height: 36px;
    border: 3px solid var(--accent-primary);
    border-radius: 0 0 16px 16px;
}

.icon-shield::after {
    content: '✓';
    color: var(--accent-primary);
    font-size: 20px;
    font-weight: bold;
    border: none;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Primary Features */
.primary-features {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.primary-feature-card {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(0, 255, 65, 0.05));
    border: 2px solid var(--accent-dark);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.primary-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 255, 65, 0.15);
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(0, 255, 65, 0.08));
}

.primary-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.primary-feature-card:hover::before {
    transform: translateX(100%);
}

/* New numbering system for primary features */
.primary-feature-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-primary);
    opacity: 0.6;
    font-weight: 600;
}

.primary-feature-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: all var(--transition);
}

.primary-feature-card:hover .primary-feature-icon {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: scale(1.05);
}

.primary-feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.primary-feature-description {
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* New highlight styles - more professional */
.highlight-primary {
    color: var(--accent-primary);
    font-weight: 700;
    position: relative;
    padding: 0 0.2rem;
}

.highlight-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.highlight-secondary {
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid var(--accent-primary);
    padding: 0.1rem 0.4rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: inline-block;
    margin: 0 0.2rem;
    transition: all var(--transition);
}

.highlight-secondary:hover {
    background: rgba(0, 255, 65, 0.15);
    border-bottom-width: 2px;
}

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

.feature-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: rgba(22, 25, 34, 0.8);
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-code {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: all var(--transition);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.feature-code:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: rgba(0, 255, 65, 0.5);
}

/* Divider */
.features-divider {
    text-align: center;
    margin: 3rem 0;
    color: var(--accent-dark);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.features-divider::before,
.features-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 100px);
    height: 1px;
    background: var(--border-color);
}

.features-divider::before {
    left: 0;
}

.features-divider::after {
    right: 0;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .feature-showcase {
        gap: 40px;
    }
    .feature-text h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide and transform nav for mobile */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        border-left: 1px solid var(--border-color);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 1.25rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav a::after {
        bottom: 0;
    }

    .hero {
        padding: 7rem 0 0;
    }

    .hero-description {
        margin-bottom: 1.5rem;
    }

    .visual-features {
        padding: 60px 0;
    }

    .feature-showcase,
    .feature-showcase.reverse {
        flex-direction: column;
        text-align: center;
        margin-bottom: 60px;
    }

    .feature-text {
        margin-bottom: 2rem;
    }

    .primary-feature-card {
        padding: 2.5rem 1.5rem;
    }

    .secondary-features-grid {
        grid-template-columns: 1fr;
    }

    .primary-feature-title {
        font-size: 1.5rem;
    }
    
    .primary-feature-description {
        font-size: 1rem;
    }

    .matrix-container {
        width: 350px;
        height: 180px;
    }

    .matrix-container.porcine-mode {
        width: 250px;
        height: 150px;
    }

    .nostrils {
        gap: 35px;
    }

    .nostril {
        width: 35px;
        height: 45px;
    }

    .download-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }

    .nav {
        width: 100%;
        right: -100%;
        padding: 5rem 1.5rem 2rem;
    }

    .matrix-container {
        width: 280px;
        height: 140px;
    }

    .matrix-container.porcine-mode {
        width: 200px;
        height: 120px;
    }

    h1 {
        font-size: 2rem;
    }

    .download-button {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ==========================================================================
   Blog Feature Section (Homepage)
   ========================================================================== */

.blog-feature-section {
    padding: 100px 0;
    position: relative;
    background-color: #0A0B0D;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-feature-card {
    background: rgba(21, 23, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(236, 72, 153, 0.1);
}

.blog-feature-content .blog-feature-date {
    font-family: 'JetBrains Mono', monospace;
    color: #9CA3AF;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.blog-feature-content .blog-feature-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #F9FAFB;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-feature-content .blog-feature-excerpt {
    font-size: 1.125rem;
    color: #D1D5DB;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-feature-link {
    display: inline-block;
    font-weight: 500;
    color: #EC4899;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-feature-link:hover {
    color: #F9A8D4;
}

/* ==========================================================================
   Blog Article Page
   ========================================================================== */

.blog-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 0;
}

.blog-article-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #F9FAFB;
    margin-bottom: 1rem;
}

.blog-article-header .article-meta {
    font-family: 'JetBrains Mono', monospace;
    color: #9CA3AF;
}

.blog-article-content {
    color: #D1D5DB;
    font-size: 1.125rem;
    line-height: 1.7;
}

.blog-article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #F9FAFB;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.blog-article-content p,
.blog-article-content ul,
.blog-article-content table {
    margin-bottom: 1.5rem;
}

.blog-article-content a {
    color: #EC4899;
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 72, 153, 0.4);
    transition: all 0.2s ease-in-out;
}

.blog-article-content a:hover {
    background-color: rgba(236, 72, 153, 0.1);
    border-bottom-color: #EC4899;
}

.blog-article-content strong {
    color: #F3F4F6;
    font-weight: 600;
}

.blog-article-content em {
    font-style: italic;
    color: #E5E7EB;
}

.blog-article-content ul {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.blog-article-content ul li::marker {
    color: #EC4899;
}

.blog-article-content hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-article-content th,
.blog-article-content td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-article-content th {
    background-color: rgba(255, 255, 255, 0.05);
    color: #F9FAFB;
    font-weight: 500;
}
