/* =========================================================================
   CORE DESIGN TOKENS (CSS Variables)
   ========================================================================= */
:root {
    /* Color Palette - Cyber/Data Aesthetic */
    --bg-dark: #070B14;
    /* Deep tech-space blue-black */
    --bg-surface: #0B111D;
    /* Slightly lighter for cards */
    --text-main: #FFFFFF;
    /* Crisp white */
    --text-muted: #94A3B8;
    /* Slate for secondary text */

    --accent-primary: #00F0FF;
    /* Neon Cyan */
    --accent-primary-glow: rgba(0, 240, 255, 0.4);
    --accent-secondary: #7000FF;
    /* Deep Neon Purple */

    /* Glassmorphism Variables */
    --glass-bg: rgba(11, 17, 29, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Layout */
    --max-width: 1200px;
}

/* =========================================================================
   RESET & 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-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--accent-primary);
    color: #000;
}

/* Ambient Background Blobs for depth */
.blob {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    border-radius: 50%;
    animation: float 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.blob-1 {
    top: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: var(--accent-secondary);
}

.blob-2 {
    top: 40%;
    right: -200px;
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -100px;
    left: 20%;
    width: 400px;
    height: 400px;
    background: #0044ff;
    animation-delay: -8s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.1);
    }
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--text-muted);
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #A0B0C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-primary) 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0088ff 100%);
    color: #000;
    border: none;
    box-shadow: 0 0 20px var(--accent-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-highlight);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-primary-glow);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* Micro-interactions */
.interactive {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.interactive:hover {
    transform: translateY(-8px);
}

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: flex-start; /* Changed from space-between */
    gap: 5rem; /* Large gap between logo and nav */
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.logo {
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.logo-stacked {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-atmos {
    color: #FFFFFF;
    /* Pure white for clarity */
    font-size: 0.8em;
    opacity: 0.9;
}

.logo-data {
    color: var(--accent-primary);
    /* Cyan for the main "Data" keyword */
    font-size: 1.2em;
    letter-spacing: 1px;
}

.logo-design {
    color: #A0B0C0;
    /* Soft silver for "Design" */
    font-size: 0.7em;
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 1.75rem; /* Reduced from 2.5rem to fit more */
    align-items: center;
}

/* Hamburger button: hidden on desktop, shown on mobile via media query */
.hamburger-btn {
    display: none;
}

/* Mobile nav drawer: hidden by default, shown on mobile via media query */
.mobile-nav {
    display: none;
}

nav a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap; /* Prevent two-line wrapping */
}

nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

nav a:not(.btn):hover {
    color: var(--accent-primary);
}

.nav-link-simple {
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-link-simple:hover {
    opacity: 1;
}


nav a:not(.btn):hover::after {
    width: 100%;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    position: relative;
    overflow: hidden;
}

.hero-shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.hero-text-panel {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    border-radius: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-primary);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.hero p {
    font-size: 1.35rem;
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Services / Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-surface), rgba(112, 0, 255, 0.2));
    border: 1px solid var(--glass-highlight);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-primary);
}

/* Utility Classes */
.glass-panel {
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Philosophy */
.philosophy .glass-panel {
    border-radius: 40px;
    padding: 6rem;
}

/* Decorative top border for glass panel */
.philosophy .glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.6;
}

.philosophy p.lead {
    font-size: 1.7rem;
    color: var(--text-main);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.philosophy p.highlight {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 1.3rem;
    margin-top: 3rem;
    margin-bottom: 0;
    border-left: 2px solid var(--accent-primary);
    padding-left: 1.5rem;
}

/* Scenarios */
.scenario-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 950px;
    margin: 0 auto;
}

.scenario-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 4rem;
}

.scenario-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.scenario-header .scenario-number {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    display: block;
    margin-bottom: 1.5rem;
    transition: -webkit-text-stroke 0.3s ease;
}

.scenario-card:hover .scenario-header .scenario-number {
    -webkit-text-stroke: 1px var(--accent-primary);
}

.scenario-body h4 {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scenario-body h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
}

.scenario-body p {
    margin-bottom: 2.5rem;
}

.scenario-body p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding-bottom: 10rem;
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(112, 0, 255, 0.1) 100%);
    border: 1px solid rgba(112, 0, 255, 0.3);
    padding: 6rem 3rem;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    margin-bottom: 1.5rem;
}

.cta-box p {
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-content .logo {
    opacity: 0.8;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================================================
   ANIMATIONS (Scroll / Load)
   ========================================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 900px) {
    .scenario-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .scenario-header .scenario-number {
        font-size: 4rem;
    }

    .philosophy .glass-panel {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {

    /* --- Core Layout: Force containment on mobile --- */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* --- Navigation: hamburger menu --- */
    nav#desktop-nav {
        display: none;
    }

    /* Hamburger button — floating, fixed in top-right corner */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        top: 1.25rem;
        right: 5%;
        width: 44px;
        height: 44px;
        padding: 12px;
        background: rgba(11, 17, 29, 0.9);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 10px;
        cursor: pointer;
        z-index: 9999;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .hamburger-btn span {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--text-main);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-btn.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile nav drawer */
    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(7, 11, 20, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 1050;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
    }

    .mobile-nav.open {
        display: flex;
        animation: mobileFadeIn 0.3s ease;
    }

    @keyframes mobileFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-nav a {
        color: var(--text-main);
        text-decoration: none;
        font-size: 1.6rem;
        font-weight: 600;
        font-family: var(--font-mono);
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    .mobile-nav a:hover {
        color: var(--accent-primary);
    }

    /* --- Hero --- */
    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .badge {
        margin: 0 auto 2rem;
    }

    /* --- CTA --- */
    .cta-box {
        padding: 4rem 1.5rem;
    }

    /* --- Typography --- */
    /* --- Typography & Hero Panel --- */
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-text-panel {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* --- Boxes & Panes: Reduce shadows to prevent horizontal overflow --- */
    .glass-panel,
    .mockup-window,
    .cta-box,
    .spotlight-card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* --- Demo mockup constraints --- */
    .mockup-window {
        max-width: 100%;
        margin-inline: 0;
        border-radius: 8px;
    }

    .mockup-header {
        flex-direction: column;
        align-items: stretch;
    }

    .mockup-search {
        max-width: 100%;
    }

    .mockup-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Contact / Demo Modal: shrink to fit phone screen --- */
    .demo-modal-content {
        max-width: calc(100% - 2rem);
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Stack side-by-side form rows vertically */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .demo-modal-body {
        padding: 1.25rem;
    }

    .demo-modal-header {
        padding: 1rem 1.25rem;
    }

    .demo-modal-footer {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
    }

    .demo-modal-footer .btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
        justify-content: center;
    }
}

/* =========================================================================
   SPOTLIGHT GLOW EFFECT (Cards)
   ========================================================================= */

.spotlight-card {
    /* React component inline properties migrated to CSS */
    --base: 220;
    /* Default Hue (Blue), but we override in JS or CSS below if needed */
    --spread: 200;
    --radius: 24;
    /* Match our existing border-radius */
    --border: 1.5;
    --backdrop: var(--glass-bg);
    --backup-border: var(--glass-border);
    --size: 250;
    --outer: 1;
    --border-size: calc(var(--border) * 1px);
    --spotlight-size: calc(var(--size) * 1px);

    /* Using our Neon Cyan Hue for the glow: 180 deg */
    --hue: calc(180 + (var(--xp, 0) * 40));
    --saturation: 100;
    --lightness: 60;
    --bg-spot-opacity: 0.15;
    --border-spot-opacity: 1;
    --border-light-opacity: 1;

    background-image: radial-gradient(var(--spotlight-size) var(--spotlight-size) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue) calc(var(--saturation) * 1%) calc(var(--lightness) * 1%) / var(--bg-spot-opacity)),
            transparent);

    background-color: var(--backdrop);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-position: 50% 50%;
    background-attachment: fixed;
    border: var(--border-size) solid var(--backup-border);
    position: relative;
    touch-action: none;

    /* Structural additions */
    border-radius: calc(var(--radius) * 1px);
    box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spotlight-card::before,
.spotlight-card::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-attachment: fixed;
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask-clip: padding-box, border-box;
    -webkit-mask-clip: padding-box, border-box;
    mask-composite: intersect;
    -webkit-mask-composite: destination-in;
}

.spotlight-card::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue) calc(var(--saturation) * 1%) calc(var(--lightness) * 1%) / var(--border-spot-opacity)),
            transparent 100%);
    filter: brightness(2);
}

.spotlight-card::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(0 100% 100% / var(--border-light-opacity)),
            transparent 100%);
}

.spotlight-card .spotlight-glow-inner {
    position: absolute;
    inset: 0;
    will-change: filter;
    opacity: var(--outer);
    border-radius: calc(var(--radius) * 1px);
    border-width: calc(var(--border-size) * 20);
    filter: blur(calc(var(--border-size) * 10));
    background: none;
    pointer-events: none;
    border: none;
    z-index: -1;
}

.spotlight-card>.spotlight-glow-inner::before {
    inset: -10px;
    border-width: 10px;
}

/* Ensure our children sit above the glow */
.spotlight-card>*:not(.spotlight-glow-inner) {
    position: relative;
    z-index: 2;
}

/* =========================================================================
   DEMO MOCKUP (Interactive Dashboard)
   ========================================================================= */

.demo-section {
    padding: 6rem 1rem;
    position: relative;
    z-index: 2;
}

.mockup-window {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    background: rgba(10, 14, 23, 0.7);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    gap: 1rem;
    flex-wrap: wrap;
}

.mockup-search {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    flex-grow: 1;
    max-width: 400px;
    transition: border-color 0.3s ease;
}

.mockup-search:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.mockup-search svg {
    color: var(--text-muted);
    margin-right: 0.75rem;
}

.mockup-search input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    font-family: 'Space Grotesk', monospace;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    min-width: 800px;
    /* Force scroll on small screens */
}

.mockup-table th {
    padding: 1.2rem 2rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
}

.mockup-table td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.mockup-table tbody tr {
    transition: background 0.2s ease;
}

.mockup-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.muted-id {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.primary-col {
    font-weight: 600;
    color: #fff;
}

.metric-col {
    font-family: 'Space Grotesk', monospace;
    color: var(--text-muted);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.status-badge.pending {
    background: rgba(112, 0, 255, 0.1);
    /* Match our secondary/purple accent */
    color: #a866ff;
    border: 1px solid rgba(112, 0, 255, 0.4);
}

.status-badge.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
}

.action-btn:hover {
    background: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.4);
}

/* Modal Styles */
.demo-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.demo-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.demo-modal-content {
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    padding: 0;
    margin: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
    animation: modalSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.demo-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-main);
}

.demo-modal-body {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b0bec5%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.demo-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.01);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 0.8rem 1.75rem;
    border-radius: 5px;
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}



/* =========================================================================
   MARKDOWN MODAL & FOOTER LINKS
   ========================================================================= */
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.markdown-body {
    color: var(--text-main);
    line-height: 1.7;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: var(--text-main);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.markdown-body h1 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.markdown-body h2 {
    font-size: 1.5rem;
}

.markdown-body h3 {
    font-size: 1.2rem;
}

.markdown-body p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-muted);
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body strong {
    color: var(--text-main);
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-main);
    background: rgba(0, 240, 255, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

/* =========================================================================
   PRICING & FAQ SECTIONS
   ========================================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.pricing-card {
    padding: 3rem 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .pricing-card.full-width {
        grid-column: 1 / -1;
    }

    .pricing-card.full-width .pricing-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 4rem;
        row-gap: 1rem;
    }

    .pricing-card.full-width .pricing-list .pricing-divider {
        grid-column: 1 / -1;
    }
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pricing-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.highlight-card {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, rgba(11, 17, 29, 0.6) 100%);
}

.highlight-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--accent-primary);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-tier {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.tier-name {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.tier-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tier-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.pricing-list li span:first-child {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.pricing-list li span:last-child {
    font-weight: 700;
    color: var(--accent-primary);
}

.pricing-list .pricing-divider {
    border-bottom: 1px solid var(--glass-border);
    margin: 0.5rem 0;
    padding: 0;
}

.pricing-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.note-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.note-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.note-item strong {
    display: block;
    color: #fff;
    margin-bottom: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.note-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* FAQ Styles */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.4s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    margin: 0;
    font-size: 1.05rem;
}