:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary: #1e293b;
    --bg-dark: #05070a;
    --bg-surface: #0d1117;
    --text-white: #e2e8f0;
    /* Softened from #ffffff */
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Extra stability for fonts on scroll */
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
.brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Navbar */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 0.75rem 0;
    /* Stable background with fallback */
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border-bottom: 1px solid var(--border);
    /* Prevent flickering on scroll */
    backface-visibility: hidden;
    contain: paint;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Increased gap slightly */
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-white);
    letter-spacing: -0.5px;
    z-index: 1001;
    /* Above mobile menu overlay */
    position: relative;
}

.brand img {
    width: 32px;
    height: 32px;
}

/* Desktop nav links */
.nav-desktop-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-desktop-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.85rem;
    transition: 0.3s;
    font-weight: 500;
}

.nav-desktop-links a:not(.btn-cta):hover {
    color: var(--primary);
}

/* Legacy selector kept for docs sidebar link targeting in JS */
.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

/* ==============================================
   MOBILE MENU BUTTON
   ============================================== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    z-index: 9999;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==============================================
   MOBILE NAV PANEL
   ============================================== */
.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.mobile-nav-panel.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin: 1.25rem 0;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.5px;
}

.mobile-nav-panel.active a {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mobile-nav-panel.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-panel.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-panel.active a:nth-child(3) { transition-delay: 0.2s; }

.mobile-nav-panel a:not(.btn-cta):hover {
    color: var(--primary);
    transform: scale(1.1);
}

.mobile-nav-panel .btn-cta {
    margin-top: 3rem;
    font-size: 1.4rem;
    padding: 1.25rem 3rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-radius: 50px;
}

/* Hero */
.hero {
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 100;
    overflow: visible;
    /* NOTE: NO transform here — transform on a parent
       would contain any position:fixed children,
       breaking the mobile menu panel's viewport-wide coverage. */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-dl-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dl-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-white);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    /* Primary glow */
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-label::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dl-btns-row {
    display: flex;
    gap: 1rem;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    /* Bright text for better visibility on dark */
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.dl-mini-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #000000;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: 0.3s;
}

.dl-mini-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}



.dl-mini-btn:hover {
    transform: translateY(-2px);
}



.hero-image-container {
    position: relative;
}

.main-app-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    /* Optimized transform */
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateZ(0);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.main-app-img:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Intelligence Section */
.intelligence-section {
    padding: 6rem 0;
    background: #0a0c12;
}

.intel-content-centered {
    text-align: center;
}

.intel-text-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    display: block;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.intel-text-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.intel-image-large {
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-inline: auto;
}

.intel-img-centered {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.intel-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.i-detail-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.i-detail-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.i-detail-item span {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
    line-height: 1.4;
}

/* Ensemble Grid */
.ensemble-section {
    padding: 6rem 0;
}

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

.section-header h2 {
    font-size: 2.8rem;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1rem;
}

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

.ensemble-card {
    background: var(--bg-surface);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.ensemble-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* .e-number removed */

.ensemble-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.ensemble-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Fusion Visualization */
.fusion-wrapper {
    position: relative;
    padding: 2rem 0;
}

.fusion-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snake-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.fusion-core-card {
    grid-column: span 2;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
    transition: 0.3s;
}

.core-visual {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.core-center {
    position: absolute;
    inset: 25%;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    z-index: 3;
}

.core-orbit {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    opacity: 0.5;
}

.core-glow {
    position: absolute;
    inset: -10px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.2;
    animation: core-pulse 2s ease-in-out infinite;
}

.core-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fusion-canal {
    stroke: rgba(34, 197, 94, 0.12);
    stroke-width: 12;
    stroke-linecap: round;
    fill: none;
    /* Soft neon tube glow */
    filter: blur(3px);
}

.fusion-stream {
    fill: none;
    stroke: #22c55e;
    stroke-linecap: round;
    /* Intense photon glow: White core + green aura */
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #22c55e);
}

.flow-1 {
    stroke-width: 4;
    /* Many small dots with varying gaps */
    stroke-dasharray: 2 40 1 60 2 80 1 50;
    animation: data-river 7s linear infinite;
}

.flow-2 {
    stroke-width: 3;
    stroke-dasharray: 1 30 2 50 1 40;
    animation: data-river 10s linear infinite;
    opacity: 0.7;
}

.flow-3 {
    stroke-width: 5;
    stroke-dasharray: 2 100 3 120 1 80;
    animation: data-river 15s linear infinite;
    opacity: 0.4;
}

@keyframes data-river {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -1000;
    }
}

.core-center {
    position: absolute;
    inset: 25%;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 30px #22c55e, inset 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.core-orbit,
.core-orbit-inner {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(34, 197, 94, 0.4);
}

.core-orbit {
    inset: 0;
    animation: rotate 15s linear infinite;
}

.core-orbit-inner {
    inset: -10px;
    border-color: rgba(34, 197, 94, 0.2);
    animation: rotate-reverse 10s linear infinite;
}

@keyframes rotate-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.core-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, #22c55e 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.15;
    animation: core-pulse 2s ease-in-out infinite;
}

.fusion-core-card {
    grid-column: span 2;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08) 0%, var(--bg-surface) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fusion-core-card:hover {
    transform: scale(1.02);
    border-color: #22c55e;
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.2);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes core-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

/* Snake Desktop Order (1-3 R:L, 4-6 L:R, 7-9 R:L) */
@media (min-width: 1025px) {
    .ensemble-card[data-step="1"] {
        order: 3;
    }

    .ensemble-card[data-step="2"] {
        order: 2;
    }

    .ensemble-card[data-step="3"] {
        order: 1;
    }

    .ensemble-card[data-step="4"] {
        order: 4;
    }

    .ensemble-card[data-step="5"] {
        order: 5;
    }

    .ensemble-card[data-step="6"] {
        order: 6;
    }

    .ensemble-card[data-step="7"] {
        order: 9;
    }

    .ensemble-card[data-step="8"] {
        order: 8;
    }

    .ensemble-card[data-step="9"] {
        order: 7;
    }

    .ensemble-card[data-step="10"] {
        order: 10;
    }

    .fusion-core-card {
        order: 11;
    }
}

/* Mobile adjustments - Sequential Flow */
@media (max-width: 1024px) {
    .snake-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .ensemble-card,
    .fusion-core-card {
        order: unset !important;
        width: 100%;
    }

    .fusion-svg {
        opacity: 0.6;
        top: 0;
    }

    .fusion-core-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
}

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

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

.footer-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    /* Prevent too wide lines on large screens */
}

.footer-text a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.2s;
    border-bottom: 1px dotted var(--text-dim);
    /* Subtle hint it's a link */
}

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

.footer-separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}


/* Menu overlay backdrop
   z-index: 8000 — below mobile panel (9000) and btn (9999) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 8000;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    max-width: 800px;
    width: 90%;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.modal-close:hover {
    opacity: 1;
}

.privacy-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.privacy-text h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.privacy-text p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.privacy-text ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

/* Pricing Modal */
.pricing-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    max-width: 800px;
    width: 90%;
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent), var(--bg-surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pricing-card h3 small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dim);
}

.price-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.pro-card .price-badge {
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.pricing-card:hover .price-badge {
    transform: translateY(-3px) scale(1.05);
}

.pro-card:hover .price-badge {
    box-shadow: 0 12px 35px var(--primary-glow);
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.features-list li {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.features-list li strong {
    color: var(--text-white);
}

/* Responsive */
@media (max-width: 1024px) {

    .hero-grid {
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 2rem;
    }

    .main-app-img {
        transform: none !important;
        /* Disable 3D on mobile for performance */
        transition: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .main-app-img:hover {
        transform: none !important;
    }

    .nav {
        backdrop-filter: none;
        /* Disable blur on mobile nav for scroll performance */
        -webkit-backdrop-filter: none;
        background: rgba(5, 7, 10, 0.95);
    }

    .intel-details-grid,
    .ensemble-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-modal-content {
        padding: 2rem 1.5rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .dl-btns-row {
        justify-content: center;
    }

    .main-app-img {
        transform: none;
        margin-top: 3rem;
    }

    .intel-details-grid {
        text-align: center;
    }

    .i-detail-item {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-desktop-links {
        display: none;
    }

    .mobile-nav-panel {
        display: flex;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }

    .brand {
        font-size: 0.75rem;
        max-width: 70%;
        line-height: 1.2;
    }

    @media (max-width: 360px) {
        .brand span {
            display: none;
        }
    }
}

/* Password Toggle Styles */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--text-white);
}

.eye-icon {
    pointer-events: none;
}

/* --- Password Reset Modal --- */
.reset-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.reset-modal.active {
    display: flex;
}

.reset-card {
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
    position: relative;
}

.reset-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.reset-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.btn-reset {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.reset-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: none;
    text-align: center;
}

.reset-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.reset-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Technical Documentation Section Styles */
.docs-section {
    padding: 8rem 0;
    background: #05070a;
    border-top: 1px solid var(--border);
}

.docs-article {
    max-width: 900px;
    margin: 0 auto;
}

.docs-header-centered {
    text-align: center;
    margin-bottom: 5rem;
}

.docs-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    margin-top: 1rem;
}

.section-block {
    margin-bottom: 6rem;
    scroll-margin-top: 100px;
}

.section-block h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-white);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.section-block h3 {
    font-size: 1.4rem;
    margin: 3rem 0 1.5rem;
    color: var(--primary);
}

.section-block p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.section-block ul {
    list-style: none;
    margin-bottom: 2rem;
}

.section-block li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dim);
}

.section-block li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
}

.info-card h3,
.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.info-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

code {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

pre {
    background: #0d1117;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* Hard Limits Section */
.limits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.limit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 8px;
    font-size: 0.88rem;
    color: #a0aec0;
    line-height: 1.5;
}

.limit-x {
    color: #ef4444;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

@media (max-width: 768px) {
    .section-block h2 {
        font-size: 1.8rem;
    }

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

    .docs-section {
        padding: 5rem 0;
    }

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