:root {
    --bg-dark: #080c14;
    --bg-card: rgba(17, 24, 39, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(249, 115, 22, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* Brand Gradients */
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    
    --gradient-fire: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --gradient-glow: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    --gradient-border: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    --font-mono: 'JetBrains Mono', monospace;
    --nav-height: 80px;
}

/* Light Theme Variables */
html[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-focus: rgba(249, 115, 22, 0.6);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --gradient-border: linear-gradient(135deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.02) 100%);
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: var(--nav-height);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient background glows */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}
html[data-theme="light"] body::before {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
}

body::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}
html[data-theme="light"] body::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Glass Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(8, 12, 20, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s;
}
html[data-theme="light"] header {
    background: rgba(248, 250, 252, 0.8);
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-fire {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s, text-shadow 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--text-primary);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.05);
}

/* Icon Swap Logic */
.sun-icon {
    display: block;
}
.moon-icon {
    display: none;
}
html[data-theme="light"] .sun-icon {
    display: none;
}
html[data-theme="light"] .moon-icon {
    display: block;
}

/* Hero Section */
.hero-section {
    min-height: calc(55vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 2rem 2rem;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    backdrop-filter: blur(4px);
    transition: border-color 0.3s;
}
html[data-theme="light"] .hero-pill {
    background: rgba(15, 23, 42, 0.03);
}

.hero-pill:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.hero-pill .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-orange);
    animation: pulse 1.8s infinite;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-info { min-width: 0; max-width: 100%; }
.product-note, .setup-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.65;
    margin: 1.25rem 0;
}
.setup-note { margin-top: 0; }
.assessment-journey {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.assessment-journey article {
    border-top: 2px solid var(--accent-orange);
    padding-top: 1.25rem;
}
.assessment-journey h2, #example h3 {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.assessment-journey p, #example .coverage-card p { color: var(--text-secondary); }
@media (max-width: 768px) {
    .assessment-journey { grid-template-columns: 1fr; }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    max-width: 900px;
}

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

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

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-fire);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
}
html[data-theme="light"] .btn-secondary {
    background: rgba(15, 23, 42, 0.02);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
html[data-theme="light"] .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
}

/* Section Header */
section {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
    padding: 3.5rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-orange);
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 868px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-focus);
    box-shadow: 0 12px 30px -10px rgba(249, 115, 22, 0.1);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* Test Coverage Section Styles */
.coverage-layout {
    margin-top: 1rem;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 868px) {
    .coverage-grid {
        grid-template-columns: 1fr;
    }
}

.coverage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.coverage-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-focus);
}

.coverage-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.coverage-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coverage-card li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.coverage-card strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

/* Reports Section Layout styling */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 868px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

.report-card {
    min-width: 0;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.report-card.db-card {
    background: rgba(59, 130, 246, 0.04);
    border-color: rgba(59, 130, 246, 0.18);
}

html[data-theme="light"] .report-card {
    background: rgba(239, 68, 68, 0.02);
}
html[data-theme="light"] .report-card.db-card {
    background: rgba(59, 130, 246, 0.02);
}

.report-card-title {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.report-markdown {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}
html[data-theme="light"] .report-markdown {
    background: #0f172a;
    color: #e2e8f0;
}

/* Technical Architecture Info Panel */
.tech-architecture {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .tech-architecture {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.tech-details h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.tech-details p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tech-details ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tech-details li::before {
    content: "✓";
    color: var(--accent-orange);
    font-weight: 700;
}

.tech-code-container {
    background: #05070c;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}
html[data-theme="light"] .tech-code-container {
    background: #0f172a;
    color: #e2e8f0;
}

.tech-code-title {
    position: absolute;
    top: 0;
    right: 1.5rem;
    transform: translateY(-50%);
    background: var(--gradient-fire);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

pre, code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Terminal Container styling */
.terminal-container {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    max-width: 600px;
    margin: 2.5rem auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: left;
}

html[data-theme="light"] .terminal-container {
    background: #0f172a;
    border-color: rgba(15, 23, 42, 0.15);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html[data-theme="light"] .terminal-header {
    background: rgba(15, 23, 42, 0.05);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dot.red { background-color: #ff5f56; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green { background-color: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e2e8f0;
}

.terminal-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.terminal-command-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}

.terminal-command-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.terminal-prompt {
    color: var(--accent-orange);
    user-select: none;
    margin-right: 0.5rem;
}

.terminal-command {
    color: #cbd5e1;
    flex-grow: 1;
    white-space: nowrap;
}

.terminal-command .highlight {
    color: var(--accent-orange);
    font-weight: 600;
}

.btn-copy-command {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-command:hover {
    color: #ffffff;
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.1);
}

.btn-copy-command.copied {
    background: rgba(39, 201, 63, 0.15);
    border-color: #27c93f;
    color: #27c93f;
    width: auto;
    padding: 0 0.5rem;
    font-size: 0.75rem;
}

/* CTA Footer banner */
.cta-banner {
    margin: 2.5rem auto;
    text-align: center;
}

.cta-card {
    background: radial-gradient(100% 100% at 50% 0%, rgba(249, 115, 22, 0.08) 0%, rgba(17, 24, 39, 0.6) 100%);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
html[data-theme="light"] .cta-card {
    background: radial-gradient(100% 100% at 50% 0%, rgba(249, 115, 22, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Global Footer styling */
footer {
    background: #05070c;
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    color: var(--text-muted);
}
html[data-theme="light"] footer {
    background: #f1f5f9;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

@keyframes success-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Pipeline & Knowledge Graph Section styling */
.pipeline-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .pipeline-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Phases Timeline */
.phases-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.phases-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 7px;
    width: 2px;
    height: calc(100% - 30px);
    background: var(--border-color);
}

.timeline-step {
    position: relative;
    padding-bottom: 0.5rem;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-orange);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
    z-index: 1;
}

.timeline-step.active::before {
    background: var(--accent-orange);
    animation: pulse 1.8s infinite;
}

.timeline-step h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.timeline-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Knowledge Graph Visualizer Card */
.knowledge-graph-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.knowledge-graph-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

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

.graph-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.graph-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.graph-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.graph-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.graph-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.graph-item-content {
    flex-grow: 1;
}

.graph-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.graph-item-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: inline-block;
}

html[data-theme="light"] .graph-item-value {
    background: rgba(15, 23, 42, 0.03);
}

.graph-item-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.graph-item-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

html[data-theme="light"] .graph-item-pill {
    background: rgba(15, 23, 42, 0.03);
}

.graph-item-pill.danger {
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

/* Hero Dashboard Screenshot Showcase */
.hero-dashboard-preview {
    margin: 3.5rem auto 0;
    max-width: 960px;
    width: 100%;
    position: relative;
    padding: 0;
}

.dashboard-window {
    background: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                0 0 40px rgba(249, 115, 22, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s ease;
}

html[data-theme="light"] .dashboard-window {
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 
                0 0 30px rgba(249, 115, 22, 0.05);
}

.dashboard-window:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 
                0 0 50px rgba(249, 115, 22, 0.25);
}

.dashboard-window .window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html[data-theme="light"] .dashboard-window .window-header {
    background: rgba(15, 23, 42, 0.05);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.window-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.window-dot.red { background-color: #ff5f56; }
.window-dot.yellow { background-color: #ffbd2e; }
.window-dot.green { background-color: #27c93f; }

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

.window-body {
    background: #0a0e17;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Workflow Steps timeline styling */
.tech-steps-title {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 2rem 0 0.5rem;
    font-weight: 700;
}

.tech-steps-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    padding-left: 0.5rem;
}

/* Vertical line connecting the step badges */
.workflow-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 20px; /* aligns with center of 32px badge (4px padding-left + 16px) */
    width: 2px;
    height: calc(100% - 32px);
    background: linear-gradient(to bottom, var(--accent-orange), rgba(249, 115, 22, 0.1));
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-fire);
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    border: 2px solid var(--bg-dark);
    transition: all 0.3s ease;
}

html[data-theme="light"] .step-badge {
    border-color: #ffffff;
}

.workflow-step:hover .step-badge {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.step-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    flex-grow: 1;
    transition: all 0.25s ease;
}

html[data-theme="light"] .step-body {
    background: rgba(15, 23, 42, 0.01);
}

.workflow-step:hover .step-body {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(249, 115, 22, 0.25);
    transform: translateX(4px);
}

html[data-theme="light"] .workflow-step:hover .step-body {
    background: rgba(15, 23, 42, 0.025);
    border-color: rgba(249, 115, 22, 0.18);
}

.step-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.workflow-step .code-highlight {
    color: var(--accent-orange);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: rgba(249, 115, 22, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    border: 1px solid rgba(249, 115, 22, 0.12);
    word-break: break-all;
}

/* Side-by-Side Desktop Layout */
@media (min-width: 1024px) {
    .hero-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3.5rem;
        align-items: center;
        max-width: 1300px;
        text-align: left;
    }
    
    .hero-info {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        order: 1; /* Headline and text on the left */
    }
    
    .hero-dashboard-preview {
        order: 2; /* Dashboard preview on the right */
        margin-top: 0;
        max-width: 100%;
    }
    
    .hero-content h1 {
        text-align: left;
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-content .subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.75rem;
    }
    
    .terminal-container {
        margin: 0 0 1.75rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-info .hero-actions {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Responsive & Mobile Navigation Styles
   ========================================================================== */

/* Default hidden for mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Ensure code blocks have overflow scrolling by default on all screens */
pre, code {
    overflow-x: auto;
}

@media (max-width: 768px) {
    /* Section padding */
    section {
        padding: 2.5rem 1.25rem;
    }

    /* Mobile Header Layout */
    nav {
        padding: 0 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-menu-toggle:hover {
        color: var(--text-primary);
        border-color: var(--border-focus);
        background: rgba(255, 255, 255, 0.05);
    }
    
    html[data-theme="light"] .mobile-menu-toggle:hover {
        background: rgba(15, 23, 42, 0.05);
    }

    /* Hamburger to X Micro-animations */
    .mobile-menu-toggle svg line {
        transition: transform 0.25s ease, opacity 0.25s ease;
        transform-origin: center;
    }

    .mobile-menu-toggle.active .line-1 {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle.active .line-2 {
        opacity: 0;
    }

    .mobile-menu-toggle.active .line-3 {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Mobile Dropdown Menu */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(8, 12, 20, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        align-items: flex-start;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    html[data-theme="light"] .nav-links {
        background: rgba(248, 250, 252, 0.96);
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero Section Scaling */
    .hero-section {
        padding: 3rem 1.25rem 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.6rem;
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .hero-content .subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    /* Grid Layouts Stacked */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .coverage-card {
        padding: 1.25rem;
    }

    /* Technical Architecture */
    .tech-architecture {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-details h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* CTA Card */
    .cta-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
        margin: 0 1rem;
    }

    .cta-card h2 {
        font-size: 1.8rem;
    }

    .cta-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    /* Compact GitHub button in Header navigation */
    .nav-github-btn span {
        display: none;
    }
    
    .nav-github-btn {
        padding: 0.5rem !important;
        width: 38px;
        height: 38px;
        border-radius: 50% !important;
        justify-content: center;
    }
    
    .nav-github-btn svg {
        margin: 0;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Extra Small Screen Hero Tuning */
    .hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Command & Dashboard Mockup Adjustments */
    .terminal-container {
        margin: 1.5rem 0;
        width: 100%;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .knowledge-graph-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .graph-item {
        gap: 0.75rem;
    }

    .workflow-steps::before {
        left: 18px; /* Adj line center */
    }

    .step-body {
        padding: 0.75rem 1rem;
    }
    
    /* Code container padding */
    .tech-code-container {
        padding: 1rem;
    }
}
