/* ==========================================================================
   CSS Variables & Typography
   ========================================================================== */
   :root {
    /* Color Palette - Premium Dark Mode */
    --bg-dark: #0f1115;
    --bg-darker: #090a0c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    
    --text-primary: #f8f9fa;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --accent-primary: #6366f1; /* Indigo */
    --accent-primary-hover: #4f46e5;
    --accent-secondary: #ec4899; /* Pink */
    --accent-tertiary: #8b5cf6; /* Purple */
    --accent-success: #10b981; /* Emerald */
    --accent-warning: #f59e0b; /* Amber */
    --accent-danger: #ef4444; /* Red */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-tertiary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-secondary) 100%);
    --gradient-text: linear-gradient(to right, #c7d2fe, #fbcfe8, #e9d5ff);
    
    /* Layout */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Base selection color */
::selection {
    background-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 600; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* ==========================================================================
   Components (Buttons, Cards, Badges)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
    transform: translateY(-2px);
}

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

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glassmorphism panel base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--text-primary);
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Abstract Background Glows */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-primary);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--accent-tertiary);
    animation-delay: -5s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Editor Mockup Graphic */
.editor-mockup {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    box-shadow: -20px 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: transform 0.5s ease;
}

.editor-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.editor-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.close { background-color: #ff5f56; }
.dot.minimize { background-color: #ffbd2e; }
.dot.maximize { background-color: #27c93f; }

.window-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.editor-body {
    position: relative;
    height: calc(100% - 3rem);
    background: var(--bg-darker);
    overflow: hidden;
}

.graph-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Visual Nodes */
.node {
    position: absolute;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.node.glow {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.node-main i { color: var(--accent-success); }
.node-feature i { color: var(--accent-primary); }

.stroke-primary { stroke: rgba(99, 102, 241, 0.5); stroke-width: 2; }
.stroke-secondary { stroke: rgba(139, 92, 246, 0.5); stroke-width: 2; }
.animated-path {
    stroke-dasharray: 10;
    animation: dashLine 20s linear infinite;
}

/* Terminal Overlay */
.terminal-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 60%;
    height: 40%;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.glass-panel-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header {
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-content {
    padding: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--accent-success);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background-color: var(--accent-primary);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

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

.feature-card {
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
}

.hover-glow-effect {
    overflow: hidden;
}

.hover-glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.hover-glow-effect:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Icon Gradient Utilities */
.icon-gradient-1 { background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(99,102,241,0) 100%); color: var(--accent-primary); border: 1px solid rgba(99,102,241,0.3); }
.icon-gradient-2 { background: linear-gradient(135deg, rgba(236,72,153,0.2) 0%, rgba(236,72,153,0) 100%); color: var(--accent-secondary); border: 1px solid rgba(236,72,153,0.3); }
.icon-gradient-3 { background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, rgba(16,185,129,0) 100%); color: var(--accent-success); border: 1px solid rgba(16,185,129,0.3); }
.icon-gradient-4 { background: linear-gradient(135deg, rgba(245,158,11,0.2) 0%, rgba(245,158,11,0) 100%); color: var(--accent-warning); border: 1px solid rgba(245,158,11,0.3); }
.icon-gradient-5 { background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(139,92,246,0) 100%); color: var(--accent-tertiary); border: 1px solid rgba(139,92,246,0.3); }

.feature-card h3 {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 6rem 0;
}

.cta-banner {
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: linear-gradient(to right, rgba(255,255,255,0.03), rgba(99,102,241,0.05));
    border: 1px solid rgba(99,102,241,0.2);
}

.cta-content {
    max-width: 60%;
}

.cta-content h2 { margin-bottom: 0.5rem; }
.cta-content p { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 0 2rem;
    background: var(--bg-darker);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.link-group h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p { margin-bottom: 0; font-size: 0.9rem; }

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes dashLine {
    to { stroke-dashoffset: -100; }
}

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

/* Initial States for JS Reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-in {
    opacity: 0;
    transition: var(--transition-slow);
}

.fade-in-up.active, .fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        margin: 0 auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-content { max-width: 100%; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-outline {
        display: none;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding-top: 8rem;
    }
}


/* ==========================================================================
   Showcase Sections (How It Works)
   ========================================================================== */
.showcase-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-dark);
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.showcase-row:last-child {
    margin-bottom: 4rem;
}

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

.showcase-text {
    flex: 1;
}

.showcase-visual {
    flex: 1;
    position: relative;
}

.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.text-success { color: var(--accent-success); }
.text-warning { color: var(--accent-warning); }
.text-tertiary { color: var(--accent-tertiary); }

/* Mockup Panels */
.mockup-panel {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

.outline-primary { border: 1px solid rgba(99, 102, 241, 0.3); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1); }
.outline-warning { border: 1px solid rgba(245, 158, 11, 0.3); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1); }
.outline-tertiary { border: 1px solid rgba(139, 92, 246, 0.3); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1); }

.mockup-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-body {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: var(--bg-darker);
}

.align-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Showcase 1: Canvas BG & Nodes */
.canvas-bg {
    background-image: radial-gradient(rgba(255,255,255,0.05) 2px, transparent 2px);
    background-size: 30px 30px;
}

.mock-node {
    position: absolute;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.n-main {
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    border-color: var(--accent-success);
    color: var(--accent-success);
}

.n-feat {
    top: 20%;
    right: 30%;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    opacity: 0.5;
}

.n-drag {
    animation: dropHover 3s infinite alternate ease-in-out;
}

.mock-connector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mock-connector path {
    stroke-dashoffset: 1000;
    animation: dashDraw 4s infinite linear;
}

.mock-cursor {
    position: absolute;
    top: 60%;
    left: 40%;
    font-size: 1.5rem;
    color: white;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    animation: cursorMove 3s infinite alternate ease-in-out;
}

@keyframes dropHover {
    0% { transform: scale(1); opacity: 0.5; border-style: dashed; }
    100% { transform: scale(1.05); opacity: 1; border-style: solid; box-shadow: 0 0 15px rgba(99,102,241,0.4); }
}
@keyframes cursorMove {
    0% { top: 60%; left: 40%; }
    100% { top: 25%; left: 60%; }
}
@keyframes dashDraw {
    to { stroke-dashoffset: 0; }
}

/* Showcase 2: Execution Pipeline */
.exec-bg {
    background: linear-gradient(to bottom, var(--bg-darker), #151520);
}

.exec-pipeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
    position: relative;
    z-index: 2;
}

.exec-stage {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-mono);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.stage-done {
    border-left: 4px solid var(--accent-success);
    color: var(--accent-success);
}
.stage-done::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
}

.stage-running {
    border-left: 4px solid var(--accent-warning);
    color: var(--accent-warning);
}
.stage-running::after {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    animation: spin 2s linear infinite;
}

.stage-pending {
    border-left: 4px solid var(--text-muted);
    color: var(--text-muted);
}
.stage-pending::after {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
}

.pulse-glow {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
    animation: pulseBg 2s infinite alternate;
}

@keyframes pulseBg {
    from { background: rgba(245, 158, 11, 0.05); }
    to { background: rgba(245, 158, 11, 0.15); }
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Showcase 3: Terminal Logs */
.mock-terminal .terminal-body {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-y: auto;
    text-align: left;
    display: block; /* override align-center */
}

.log-line {
    margin-bottom: 0.25rem;
    opacity: 0;
    transform: translateY(5px);
    animation: logEntry 0.3s forwards ease-out;
}

@keyframes logEntry {
    to { opacity: 1; transform: translateY(0); }
}

.log-time { color: var(--text-muted); margin-right: 0.75rem; font-size: 0.75rem; }
.log-cmd { color: #f8f9fa; font-weight: bold; }
.log-info { color: var(--accent-primary); }
.log-success { color: var(--accent-success); }
.log-err { color: var(--accent-danger); }

/* Responsive adjustments for showcase */
@media (max-width: 992px) {
    .showcase-row, .showcase-row.reverse {
        flex-direction: column;
        gap: 3rem;
        align-items: stretch;
    }
}

/* Showcase 2: Preview BG */
.outline-secondary { border: 1px solid rgba(236, 72, 153, 0.3); box-shadow: 0 10px 30px rgba(236, 72, 153, 0.1); }
.text-primary { color: var(--accent-primary); }
.preview-bg {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-cmd-list {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    width: 80%;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.p-cmd {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.p-cmd i { color: var(--text-muted); font-size: 0.7rem; }
.p-cmd.warning { color: var(--accent-warning); }
.p-cmd.warning i { color: var(--accent-warning); }

.p-btn-row {
    margin-top: 1.5rem;
    text-align: right;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   Footer Redesign
   ========================================================================== */
.footer {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-darker);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-tertiary), transparent);
    box-shadow: 0 0 20px 2px rgba(99, 102, 241, 0.5);
}

.relative { position: relative; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Newsletter Box */
.footer-newsletter {
    margin: -4rem auto 4rem;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(99, 102, 241, 0.05) 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.newsletter-text h3 { margin-bottom: 0.5rem; font-size: 1.75rem; }
.newsletter-text p { margin-bottom: 0; }

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    width: 400px;
    max-width: 100%;
}

.form-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: white;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Footer Content */
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.social-links { display: flex; gap: 1rem; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}
.social-icon:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.link-grid {
    display: flex;
    justify-content: flex-end;
    gap: 5rem;
    flex: 1;
}

.link-group h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.link-group h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 1.5rem;
    height: 2px;
    background: var(--accent-primary);
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.badge-sm {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-left: 0.5rem;
    margin-bottom: 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
}

/* Responsive Footer Updates */
@media (max-width: 992px) {
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-form { width: 100%; }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .link-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
}
