/* 
=========================================
VISCOSE - Generative AI Computational Protocol
Design System & Stylesheet
=========================================
*/

:root {
    /* Color Palette */
    --clr-bg: #06080b;
    --clr-bg-card: rgba(10, 14, 20, 0.65);
    --clr-bg-card-hover: rgba(12, 18, 26, 0.85);
    --clr-primary: #00ff66;
    --clr-primary-glow: rgba(0, 255, 102, 0.15);
    --clr-primary-border: rgba(0, 255, 102, 0.12);
    --clr-primary-border-hover: rgba(0, 255, 102, 0.3);
    --clr-text: #f3f4f6;
    --clr-text-muted: #9ca3af;
    --clr-text-dark: #4b5563;

    /* Font Families */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transition Defaults */
    --transition-speed: 0.3s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-sans);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    position: relative;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 102, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary);
}

/* Grid & Ambient Glows */
.ambient-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 102, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background-color: var(--clr-primary);
}

.orb-2 {
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: var(--clr-primary);
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background-color: var(--clr-primary);
    opacity: 0.05;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.02em;
}

p {
    color: var(--clr-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

.font-mono {
    font-family: var(--font-mono);
}

.text-success {
    color: var(--clr-primary) !important;
}

.text-muted {
    color: var(--clr-text-dark) !important;
}

.text-glow {
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-curve);
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #000;
    border: 1px solid var(--clr-primary);
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-primary);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(6, 8, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 102, 0.25);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
    transition: transform 0.3s var(--transition-curve);
}

.logo:hover .logo-img {
    transform: rotate(15deg) scale(1.05);
}

.logo-img-sm {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
}

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

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: color 0.2s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--clr-primary);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.protocol-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary-border);
    background-color: rgba(0, 255, 102, 0.03);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.canvas-container {
    position: relative;
    width: 420px;
    height: 420px;
    background: rgba(0, 255, 102, 0.01);
    border: 1px solid rgba(0, 255, 102, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fluid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 2;
}

.hero-visual-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
    transition: transform var(--transition-speed) var(--transition-curve);
}

.canvas-container:hover .hero-visual-image {
    transform: scale(1.03);
}

.canvas-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background-color: var(--clr-primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Pillars Section */
.pillars-section {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(6, 8, 11, 0.4);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 1.75rem;
    transition: all 0.3s;
}

.pillar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: rgba(0, 255, 102, 0.03);
    border: 1px solid var(--clr-primary-border);
    margin-bottom: 1.25rem;
    box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.05);
}

.pillar-title {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.pillar-desc {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Main Split Layout */
.main-content-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    padding: 4rem 2rem;
}

/* Sidebar Capabilities */
.capabilities-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--clr-text-dark);
    margin-bottom: 1.5rem;
}

.capability-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capability-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s var(--transition-curve);
}

.capability-tab:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 255, 102, 0.15);
}

.capability-tab.active {
    background-color: rgba(0, 255, 102, 0.03);
    border-color: var(--clr-primary);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.08);
}

.tab-graphic {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.capability-tab.active .tab-graphic {
    border-color: var(--clr-primary);
}

.glow-svg {
    width: 100%;
    height: 100%;
    padding: 6px;
}

.tab-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tab-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.capability-tab.active .tab-label {
    color: var(--clr-primary);
}

.tab-sub {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    line-height: 1.3;
}

/* Dashboard Modules - Cards */
.dashboard-modules {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-card {
    position: relative;
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-primary-border);
    border-radius: 8px;
    padding: 2.25rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color var(--transition-speed) var(--transition-curve),
        box-shadow var(--transition-speed) var(--transition-curve);
}

/* Card Mouse Spotlight Effect Support */
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(0, 255, 102, 0.06),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.dashboard-card:hover {
    border-color: var(--clr-primary-border-hover);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.03);
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #fff;
    position: relative;
    z-index: 2;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary-border);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background-color: rgba(0, 255, 102, 0.02);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.card-body {
    position: relative;
    z-index: 2;
}

.card-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.secondary-text {
    color: var(--clr-text-muted);
}

/* Console/Visualizer Card */
.visualizer-card {
    border-color: var(--clr-primary-border-hover);
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 102, 0.1);
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary-border);
    border-radius: 3px;
}

.console-body {
    padding: 0 !important;
}

.console-screen {
    position: relative;
    background-color: #020304;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1.5rem;
    min-height: 160px;
    overflow: hidden;
}

.console-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0, 255, 102, 0.03) 1px, transparent 1px);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.console-overlay-details {
    position: relative;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--clr-text);
}

.console-code {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.c-line {
    display: block;
    line-height: 1.4;
    word-break: break-all;
}

.c-tag {
    color: var(--clr-primary);
}

.c-comment {
    color: var(--clr-text-dark);
}

.c-blink {
    display: inline-block;
    width: 6px;
    height: 14px;
    background-color: var(--clr-primary);
    margin-left: 2px;
    animation: caretBlink 1s step-end infinite;
}

/* Core Capabilities checklist */
.capabilities-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.capability-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bullet-square {
    width: 8px;
    height: 8px;
    background-color: var(--clr-primary);
    border-radius: 1px;
    box-shadow: 0 0 8px var(--clr-primary);
}

.capability-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.capability-item p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Stepper Flow */
.stepper-container {
    position: relative;
    padding: 1rem 0;
    margin-top: 1rem;
}

.step-line {
    position: absolute;
    top: 30px;
    left: 4%;
    right: 4%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step {
    width: 22%;
    text-align: center;
    cursor: pointer;
}

.step-num {
    width: 40px;
    height: 40px;
    background-color: #06080b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
}

.step.active .step-num {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.step-title {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--clr-text-muted);
}

.step.active .step-title {
    color: #fff;
}

.step-desc {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Why Viscose Grid */
.why-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.checkmark-icon {
    flex-shrink: 0;
}

/* Featured Split Box Grids */
.split-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.inner-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.small-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--clr-text-dark);
    margin-bottom: 0.5rem;
}

.card-sub-heading {
    font-size: 1.25rem;
    color: var(--clr-primary);
    margin-bottom: 0.75rem;
}

.card-text-sm {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.visual-box {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.card-visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 255, 102, 0.15));
    transition: transform var(--transition-speed) var(--transition-curve);
    pointer-events: none;
}

.inner-card:hover .card-visual-img {
    transform: scale(1.04);
}

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

/* Brain Network simulation CSS */
.brain-grid-graphic {
    width: 100%;
    height: 100%;
    position: relative;
}

.bg-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-primary);
}

.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Shield SVG Container */
.shield-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(0, 255, 102, 0.2));
}

.shield-ripple {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid var(--clr-primary-border);
    border-radius: 50%;
    animation: ripplePulse 2s infinite;
}

/* Use cases grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.uc-card {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.uc-card:hover {
    background-color: rgba(0, 255, 102, 0.02);
    border-color: var(--clr-primary-border);
}

.uc-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
    color: var(--clr-primary);
}

.uc-card h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.uc-card p {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Roadmap timeline */
.roadmap-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.05);
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #06080b;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.3s;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--clr-primary);
    box-shadow: 0 0 10px var(--clr-primary);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--clr-primary);
}

.timeline-title {
    font-size: 0.95rem;
}

.timeline-desc {
    font-size: 0.85rem;
}

/* Call to action */
.cta-card {
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.05) 0%, rgba(6, 8, 11, 0.6) 100%);
    border-color: var(--clr-primary-border-hover);
}

.cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-text h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.cta-text p {
    font-size: 0.95rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Footer styling */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 0;
    background-color: rgba(4, 6, 8, 0.8);
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--clr-primary);
    letter-spacing: 0.08em;
}

.copyright {
    font-size: 0.8rem;
    color: var(--clr-text-dark);
    text-align: center;
}

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

.social-link {
    color: var(--clr-text-muted);
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--clr-primary);
}

/* =========================================
   DASHBOARD / APP OVERLAY SCREEN
========================================= */

.dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 4, 6, 0.98);
    backdrop-filter: blur(16px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--transition-curve);
    overflow: hidden;
}

.dashboard-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Close Button overlay */
.overlay-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s;
}

.overlay-close-btn:hover {
    transform: rotate(90deg);
}

.overlay-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    width: 100%;
    height: 100%;
}

/* Overlay Sidebar */
.overlay-sidebar {
    background-color: #030507;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 3rem;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-menu-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.85rem 1.25rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--clr-text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.sidebar-menu-btn svg {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sidebar-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.sidebar-menu-btn.active {
    background-color: rgba(0, 255, 102, 0.03);
    border-color: var(--clr-primary-border);
    color: var(--clr-primary);
}

.sidebar-status-box {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 1rem;
}

.s-label {
    font-size: 0.65rem;
    color: var(--clr-text-dark);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.s-val {
    font-size: 0.8rem;
    font-weight: 700;
}

.s-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.03);
    margin: 0.75rem 0;
}

/* Overlay Main Content */
.overlay-main {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    height: 100%;
}

.main-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-overlay-header h2 {
    font-size: 1.5rem;
}

.user-node-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: var(--clr-text-muted);
}

/* Views panel switcher */
.view-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.view-panel.hidden {
    display: none !important;
}

/* Metrics Dashboard grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-card {
    background-color: rgba(10, 14, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.m-title {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--clr-text-dark);
}

.m-value {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.m-sub {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
}

/* Terminal & Controls split */
.terminal-layout-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
}

.terminal-controls-card {
    background-color: rgba(10, 14, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1.75rem;
}

.terminal-controls-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.controls-description {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.job-trigger-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-trigger {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: all 0.2s;
}

.btn-trigger:hover {
    background-color: rgba(0, 255, 102, 0.02);
    border-color: rgba(0, 255, 102, 0.2);
}

.btn-trigger.active {
    background-color: rgba(0, 255, 102, 0.04);
    border-color: var(--clr-primary);
}

.btn-job-name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.btn-trigger.active .btn-job-name {
    color: var(--clr-primary);
}

.btn-job-desc {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
}

/* Terminal Screen monitor */
.terminal-screen-card {
    background-color: #020305;
    border: 1px solid rgba(0, 255, 102, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.04);
    border-radius: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header-bar {
    background-color: #0c0e12;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dot-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.terminal-header-bar .dot-btn:nth-child(1) {
    background-color: #ef4444;
}

.terminal-header-bar .dot-btn:nth-child(2) {
    background-color: #eab308;
}

.terminal-header-bar .dot-btn:nth-child(3) {
    background-color: #22c55e;
}

.terminal-bar-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    margin-left: 0.5rem;
}

.terminal-log-content {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--clr-text);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 300px;
}

.log-line {
    word-break: break-all;
}

/* Lower live chart */
.dashboard-graph-card {
    background-color: rgba(10, 14, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1.75rem;
}

.dashboard-graph-card h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.svg-graph-container {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    overflow: hidden;
}

.live-wave-graph {
    width: 100%;
    height: 100%;
}

.graph-metrics-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 2rem;
}

.ov-item {
    display: flex;
    flex-direction: column;
}

.ov-label {
    font-size: 0.6rem;
    color: var(--clr-text-dark);
    letter-spacing: 0.05em;
}

.ov-val {
    font-size: 1.1rem;
    color: var(--clr-primary);
    font-weight: 700;
}

/* Explorer view elements */
.panel-section-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.panel-section-desc {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.table-container {
    background-color: rgba(10, 14, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    overflow: hidden;
}

.explorer-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.explorer-table th,
.explorer-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.explorer-table th {
    background-color: rgba(0, 0, 0, 0.2);
    font-family: var(--font-sans);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.explorer-table tbody tr {
    transition: background-color 0.2s;
}

.explorer-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.explorer-table td {
    font-family: var(--font-mono);
}

/* Nodes Grid elements */
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.node-status-card {
    background-color: rgba(10, 14, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.node-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.node-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.node-row-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.node-row-stat span:first-child {
    color: var(--clr-text-muted);
}

.node-row-stat span:last-child {
    font-family: var(--font-mono);
    color: #fff;
}


/* =========================================
   KEYFRAME ANIMATIONS
========================================= */

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.5);
    }

    70% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(0, 255, 102, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0);
    }
}

@keyframes caretBlink {

    from,
    to {
        background-color: transparent
    }

    50% {
        background-color: var(--clr-primary)
    }
}

@keyframes ripplePulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}


/* =========================================
   RESPONSIVE LAYOUT MEDIA QUERIES
========================================= */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content-layout {
        grid-template-columns: 1fr;
    }

    .capabilities-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .capability-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .capability-tab {
        flex-shrink: 0;
        width: 280px;
    }

    .overlay-content {
        grid-template-columns: 1fr;
    }

    .overlay-sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .sidebar-logo {
        margin-bottom: 1.5rem;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        margin-bottom: 1.5rem;
    }

    .sidebar-status-box {
        display: none;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .terminal-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        /* simple mobile nav override */
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-checklist {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stepper-steps {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        padding-left: 1.5rem;
    }

    .step-line {
        left: 35px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 80%;
    }

    .step {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }

    .step-num {
        margin: 0;
    }

    .split-cards-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .cta-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .nodes-grid {
        grid-template-columns: 1fr;
    }
}