:root {
    --bg-color: #0B0E14;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --primary-color: #00F2FF;
    --secondary-color: #7000FF;
    --text-main: #FFFFFF;
    --text-dim: #B0B0B0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(0, 242, 255, 0.3);
    --success-color: #00FF88;
    --error-color: #FF4D4D;
    --font-family: 'Outfit', sans-serif;
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- THEME TRANSITIONS --- */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                fill 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--surface-hover);
    border-radius: 5px;
}

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    width: 80px;
    height: auto;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--accent-glow));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px var(--primary-color));
    }
}

.mesh-loader {
    position: relative;
    width: 60px;
    height: 60px;
    animation: spinMesh 4s linear infinite;
}

.mesh-loader .circle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.mesh-loader .circle:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.mesh-loader .circle:nth-child(2) {
    bottom: 0;
    left: 0;
}

.mesh-loader .circle:nth-child(3) {
    bottom: 0;
    right: 0;
}

.mesh-loader .line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spinLine 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinLine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Glassmorphism Utility - Enhanced with Spotlight & Edge Glow */
.glass {
    position: relative;
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: border-color, box-shadow;
}

/* The Spotlight Overlay */
.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 242, 255, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* The Edge Lighting / Border Glow */
.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px; /* The border width */
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 242, 255, 0.4),
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.glass:hover::before,
.glass:hover::after {
    opacity: 1;
}

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

section {
    padding: 80px 0;
}

/* Navbar - Premium Floating Pill Design */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background: rgba(11, 14, 20, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, background, width, top;
}

nav.scrolled {
    top: 10px;
    width: 90%;
    background: rgba(11, 14, 20, 0.7);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.2);
}

.nav-content {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    z-index: 10;
}

.logo img {
    height: 32px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(10deg) scale(1.1);
}

.nav-links-wrapper {
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

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

.nav-indicator {
    position: absolute;
    height: calc(100% - 12px);
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
    border-radius: 50px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: var(--bg-color) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    margin-left: 0.5rem;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.4);
    filter: brightness(1.1);
}

/* Scroll Progress Bar - Enhanced Premium Version */
/* Circular Border Progress - Ultimate Version */
.nav-border-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Behind nav content but above background */
    overflow: visible;
}

#nav-border-track {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2px;
}

#nav-border-path {
    stroke: var(--primary-color);
    stroke-width: 2px;
    stroke-linecap: round;
    transition: stroke 0.3s ease;
    opacity: 0; /* Hidden by default when no progress */
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

nav.scrolled #nav-border-path {
    opacity: 1;
}

/* Hide the old static border when progress is active to avoid overlap */
nav.scrolled {
    border-color: rgba(0, 242, 255, 0.05); /* Dimmer base border */
}

/* Mobile Toggle Adjustment */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 992px) {
    nav {
        padding: 0.75rem 1.25rem;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: calc(100% - 40px);
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-radius: 24px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        border: 1px solid var(--glass-border);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-indicator {
        display: none;
    }
}

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

.hero .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 700px;
    will-change: transform;
    /* padding top removed to allow center alignment */
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-3px);
}

/* --- 3D Parallax Background Layers --- */
.parallax-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh; /* Taller to allow extensive scrolling */
    will-change: transform;
}

.parallax-shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatShape 20s infinite alternate ease-in-out;
}

/* Orbs */
.orb {
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary-color), transparent 70%);
}

.orb-1 { width: 400px; height: 400px; top: 10%; left: -5%; }
.orb-2 { width: 600px; height: 600px; top: 40%; right: -10%; opacity: 0.1; background: radial-gradient(circle at 70% 70%, var(--secondary-color), transparent 70%); }
.orb-3 { width: 300px; height: 300px; top: 70%; left: 15%; animation-duration: 25s; }
.orb-4 { width: 500px; height: 500px; top: 85%; right: 20%; animation-duration: 15s; background: radial-gradient(circle at 50% 50%, var(--primary-color), var(--secondary-color), transparent 70%); opacity: 0.2; filter: blur(60px); }

/* Glass Cubes (with 3D rotation) */
.cube {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    filter: none;
    border-radius: 20px;
    opacity: 0.3;
    animation: rotateShape 30s infinite linear;
}

.cube-1 { width: 100px; height: 100px; top: 25%; left: 20%; }
.cube-2 { width: 150px; height: 150px; top: 60%; right: 15%; animation-duration: 40s; animation-direction: reverse; }
.cube-3 { width: 80px; height: 80px; top: 90%; left: 40%; animation-duration: 20s; }

@keyframes floatShape {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-50px) translateX(30px); }
}

@keyframes rotateShape {
    0% { transform: rotate3d(1, 1, 1, 0deg); }
    100% { transform: rotate3d(1, 1, 1, 360deg); }
}

/* Background Animation Placeholder */
#canvas-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* Mesh Ecosystem - Non-Card Layout */
.mesh-ecosystem {
    position: relative;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.mesh-hub {
    position: relative;
    z-index: 10;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hub-core {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px var(--accent-glow);
}

.hub-core img {
    width: 60px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.hub-rings .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: hubPulse 4s infinite linear;
    will-change: transform, opacity;
}

.hub-rings .ring:nth-child(1) { width: 180px; height: 180px; animation-delay: 0s; }
.hub-rings .ring:nth-child(2) { width: 260px; height: 260px; animation-delay: 1s; }
.hub-rings .ring:nth-child(3) { width: 340px; height: 340px; animation-delay: 2s; }

@keyframes hubPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.features-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.mesh-node {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, background, border-color;
    height: 100%;
}

.mesh-node:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.node-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.node-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.node-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Position Nodes in an organic orbit */
/* Removed Orbital Positioning */

.mesh-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Signal Path Styles */
.signal-path-container {
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.main-path-svg {
    width: 100%;
    height: 400px;
}

.path-steps {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.path-step {
    width: 220px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.step-blob {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.path-step:hover .step-blob {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.1);
}

.step-blob::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border: 1px dashed var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: spin 10s linear infinite;
}

.step-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

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

@media (max-width: 992px) {
    .mesh-ecosystem {
        gap: 3rem;
    }
    .features-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .mesh-hub {
        order: -1;
    }
    .mesh-connections {
        display: none;
    }
    .main-path-svg {
        display: none;
    }
    .path-steps {
        position: static;
        flex-direction: column;
        gap: 3rem;
        padding: 0;
    }
    .path-step {
        width: 100%;
    }
}



/* Scenario Simulator - High-End Simulation Layout */
.scenario-simulator {
    display: flex;
    gap: 2rem;
    height: 600px;
    margin-top: 2rem;
}

.scenario-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 250px;
}

.scenario-btn {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.scenario-btn i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.scenario-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

.scenario-btn:hover {
    background: var(--surface-hover);
    color: var(--text-main);
    transform: translateX(10px);
}

.scenario-btn.active {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.scenario-btn.active i {
    transform: scale(1.2);
}

.scenario-viewport {
    flex: 1;
    position: relative;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

#scenario-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.scenario-atm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: all 1.2s ease-in-out;
    opacity: 0.4;
    z-index: 2;
}

/* Atmospheric States */
.atm-wilderness {
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.1) 0%, rgba(0, 60, 60, 0.8) 100%);
    box-shadow: inset 0 0 100px rgba(0, 255, 150, 0.2);
}

.atm-emergency {
    background: radial-gradient(circle at center, rgba(255, 77, 77, 0.15) 0%, rgba(60, 0, 0, 0.9) 100%);
    box-shadow: inset 0 0 100px rgba(255, 0, 0, 0.3);
}

.atm-festival {
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.15) 0%, rgba(30, 0, 60, 0.9) 100%);
    box-shadow: inset 0 0 100px rgba(112, 0, 255, 0.3);
}

.atm-privacy {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(5, 5, 20, 1) 100%);
}

.scenario-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    padding: 2rem;
    border-radius: 24px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.scenario-info h3 {
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
}

.scenario-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 400px;
}

.scenario-stats {
    display: flex;
    gap: 2rem;
}

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

.stat .label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat span:not(.label) {
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 992px) {
    .scenario-simulator {
        flex-direction: column;
        height: auto;
    }
    .scenario-controls {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    .scenario-btn {
        flex: 1;
        min-width: 120px;
    }
    .scenario-viewport {
        height: 500px;
    }
    .scenario-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    .scenario-info p {
        max-width: 100%;
    }
}


/* Testimonials Section */
.testimonials-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonials-grid {
    display: flex;
    overflow-x: auto;
    gap: 2.5rem;
    padding: 2rem calc(50vw - 600px + 2rem);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
}

.testimonials-grid:active {
    cursor: grabbing;
}

.testimonial-card {
    min-width: 380px;
    flex: 0 0 auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scroll-snap-align: center;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.rating {
    display: flex;
    gap: 5px;
    margin-bottom: 1.5rem;
    color: #FFD700;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.user-avatar-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--bg-color);
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--accent-glow);
    overflow: hidden;
}

.user-avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-meta strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.user-meta small {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Navigation */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.nav-btn:active {
    transform: scale(0.95);
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transform: scale(1.3);
}

/* Infographic Steps */
.infographic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.info-step {
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 10px;
}


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

.tech-card {
    padding: 3rem;
}

/* 3D Perspective Tilt - Enhanced */
.feature-card,
.tech-card,
.use-case-card,
.link-item {
    transition: transform 0.15s ease-out, border-color 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card *,
.tech-card *,
.use-case-card *,
.link-item * {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card h3,
.tech-card h4,
.use-case-card h3,
.link-item strong {
    transform: translateZ(40px);
}

.feature-card p,
.tech-card p,
.use-case-card p,
.link-item small {
    transform: translateZ(20px);
}

.feature-icon,
.tech-card > div:first-child,
.use-case-icon,
.link-item i {
    transform: translateZ(60px);
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.3));
}

.click-hint {
    transform: translateZ(10px);
    transition: transform 0.4s ease;
}

.tech-card:hover .click-hint {
    transform: translateZ(25px);
    opacity: 1 !important;
}

/* X-Ray Scanner Effect */
.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.1), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.tech-card:hover::before {
    top: 100%;
    animation: scan 1.5s infinite;
}

@keyframes scan {
    from {
        top: -100%;
    }

    to {
        top: 100%;
    }
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
    cursor: pointer;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 2rem;
    color: var(--text-dim);
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.info-visual::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.2;
}

/* Research & Download Links */
.links-section {
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
}

/* Shape Buttons */
.shape-btn {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(0, 242, 255, 0.1) !important;
    background: var(--surface-color);
    color: var(--text-main);
}

.shape-btn:hover {
    background: rgba(0, 242, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.shape-btn i {
    font-size: 0.9rem;
}

.link-item {
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.link-item i {
    font-size: 2rem;
}

.link-item:hover {
    background: var(--surface-hover);
    border-color: var(--secondary-color);
}



/* Newsletter Section */
#newsletter {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#newsletter .container {
    max-width: 1400px;
}

.newsletter-wrapper {
    padding: 4rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(112, 0, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.newsletter-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.newsletter-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 450px;
}

.newsletter-form {
    position: relative;
}

.input-form-group {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.input-form-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-form .input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    flex: 1;
}

.newsletter-form .input-group i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    width: 100%;
    outline: none;
    font-family: var(--font-family);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    padding: 1rem 2.5rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.newsletter-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    min-height: 1.2rem;
}

.newsletter-status.success {
    color: var(--success-color);
}

.newsletter-status.error {
    color: var(--error-color);
}

@media (max-width: 1024px) {
    .newsletter-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem;
        text-align: center;
    }
    
    .newsletter-content p {
        margin: 0 auto;
    }
    
    .input-form-group {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .input-form-group {
        flex-direction: column;
        border-radius: 24px;
        padding: 1rem;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: linear-gradient(to bottom, transparent, rgba(11, 14, 20, 0.8));
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 20px var(--primary-color);
}

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

.footer-brand .footer-logo {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
    border-color: var(--primary-color);
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
}

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

.footer-legal-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

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

    .footer-brand p {
        margin: 0 auto 2rem;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

/* Legal Content Page Styling */
.legal-page {
    padding-top: 150px;
    padding-bottom: 100px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-dim);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content section {
    padding: 0;
}

/* --- SUPPORTERS SECTION HEADER --- */
.supporters-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.supporters-header h2.section-title {
    font-size: 2.75rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.supporters-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.stat-pill {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    border-color: rgba(0, 242, 255, 0.2);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.stat-pill i {
    font-size: 1rem;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.3));
}

.stat-pill .label {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-pill .value {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

#total-money-container i {
    color: #FFD700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

#total-supporters-container i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.3));
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Goal Progress Bar */
.goal-progress-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 1.5rem auto 0.5rem;
}

.goal-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    position: relative;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00F2FF, #7000FF);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

#goal-percent {
    color: var(--primary-color);
    font-weight: 700;
}

.supporters-cta {
    margin-top: 0.5rem;
}

/* Supporters Section - 4-Track Horizontal Mesh */
.supporters-scroll-container.horizontal {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    /* Tighter gap for multiple rows to ensure they fit in view */
    overflow: hidden;
    padding: 1rem 0 2rem 0;
}

/* Horizontal Fade Masks */
.supporters-scroll-container.horizontal::before,
.supporters-scroll-container.horizontal::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    /* Wider fade for mesh look */
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.supporters-scroll-container.horizontal::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.supporters-scroll-container.horizontal::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.scroll-track {
    width: 100%;
    display: flex;
}

.scroll-content.horizontal {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding-right: 2rem;
    animation: scrollHorizontal 40s linear infinite;
    transform: translateX(var(--scroll-offset, 0px));
    white-space: nowrap;
    will-change: transform;
    cursor: grab;
}

.scroll-content.horizontal:hover {
    animation-play-state: paused;
}

.scroll-content.horizontal:active {
    cursor: grabbing;
}

/* Varying speeds and directions for each track (Inverse to Contribution) */
.track-1 .scroll-content.horizontal {
    animation-duration: 60s;
    animation-delay: -5s;
}

/* Slowest (₹50+) */
.track-2 .scroll-content.horizontal {
    animation-duration: 50s;
    animation-direction: reverse;
    animation-delay: -15s;
}

.track-3 .scroll-content.horizontal {
    animation-duration: 40s;
    animation-delay: -8s;
}

.track-4 .scroll-content.horizontal {
    animation-duration: 30s;
    animation-direction: reverse;
    animation-delay: -25s;
}

/* Fastest (₹1-10) */
.track-5 .scroll-content.horizontal {
    animation-duration: 45s;
    animation-delay: -12s;
}

/* Custom Tier */

@keyframes scrollHorizontal {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.supporter-card {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    flex-shrink: 0;
    height: 70px;
    /* Slightly shorter for 4 rows */
}

/* --- TIERED SIZING (₹-BASED) --- */

/* Track 1: ₹50+ (Platinum) */
.supporter-card.tier-platinum {
    min-width: 300px;
    padding: 0 2.5rem;
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.05);
}

.supporter-card.tier-platinum .supporter-avatar {
    width: 48px;
    height: 48px;
}

/* Track 2: ₹26-50 (Gold) */
.supporter-card.tier-gold {
    min-width: 260px;
    padding: 0 2rem;
    border-color: rgba(255, 215, 0, 0.2);
}

.supporter-card.tier-gold .supporter-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

/* Track 3: ₹11-25 (Silver) */
.supporter-card.tier-silver {
    min-width: 220px;
    padding: 0 1.5rem;
    border-color: rgba(255, 255, 255, 0.1);
}

.supporter-card.tier-silver .supporter-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #bdc3c7, #2c3e50);
}

/* Track 4: ₹1-10 (Community) */
.supporter-card.tier-community {
    min-width: 180px;
    padding: 0 1rem;
    opacity: 0.8;
}

.supporter-card.tier-community .supporter-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

/* Track 5: Custom (Special Tier) */
.supporter-card.tier-custom {
    min-width: 240px;
    padding: 0 1.8rem;
    border-color: rgba(155, 89, 182, 0.3);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.1);
}

.supporter-card.tier-custom .supporter-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.supporter-card:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    transform: scale(1.05);
    opacity: 1;
    z-index: 20;
}

/* Tooltip for donation amount on hover - Only for Custom Tier */
.supporter-card.tier-custom::after {
    content: attr(data-amount);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.supporter-card.tier-custom:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.supporter-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--accent-glow);
    flex-shrink: 0;
}

.supporter-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Pulse Animation for Live Badge (Shared) */
/* Responsive */
@media (max-width: 768px) {
    .supporters-scroll-container.horizontal {
        gap: 1rem;
    }

    .supporter-card {
        height: 60px;
        min-width: 160px;
    }

    .supporter-card.tier-platinum {
        min-width: 240px;
    }
}

/* --- RESPONSIVE DESIGN --- */

/* Menu Toggle Styling (Desktop Default) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero .container {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

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

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

    .cta-group {
        justify-content: center;
    }

    .info-row {
        flex-direction: column !important;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .info-visual {
        width: 100%;
        height: 350px;
    }

    .carousel-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .carousel-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        padding: 1rem;
    }

    .hero-image {
        display: none;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    /* Supporters Header Responsive */
    .supporters-header h2.section-title {
        font-size: 2.25rem !important;
    }

    .supporters-stats {
        gap: 0.8rem;
    }

    .stat-pill {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .stat-pill .value {
        font-size: 1.1rem;
    }

    .features-grid,
    .infographic-grid,
    .tech-grid,
    .use-cases-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #mesh-lab-container {
        height: 450px !important;
    }

    .mesh-stats {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    .mesh-controls {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .links-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Mobile Mockup Optimization */
    .mockup-container {
        transform: scale(0.65);
        height: 500px;
    }

    .phone-frame.side {
        display: none;
        /* Hide side phones on small mobile screens */
    }

    .phone-frame.center {
        transform: translateZ(0);
        /* Flatten for performance */
    }

    .hero-image {
        min-height: 450px;
    }

    .feature-card,
    .tech-card,
    .info-step {
        padding: 2rem 1.5rem;
    }

    #mesh-lab-container {
        height: 400px !important;
    }

    #mesh-text-input {
        width: 80px;
    }
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus Zone Scaling */
.focus-reveal {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
    transform: scale(0.95);
    opacity: 0.7;
}

.focus-reveal.in-focus {
    transform: scale(1);
    opacity: 1;
}

/* Scroll-linked Glow */
.scroll-glow {
    transition: text-shadow 0.5s ease, color 0.5s ease;
}

.scroll-glow.active {
    color: #fff;
    text-shadow: 0 0 15px var(--primary-color);
}

/* Specific Hero Entrance Animations */
body.intro-revealed .hero-content h1 {
    animation: heroTextReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.2s;
}

body.intro-revealed .hero-content p {
    animation: heroFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.5s;
}

body.intro-revealed .cta-group {
    animation: heroFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.8s;
}

body.intro-revealed .hero-image {
    animation: heroImageReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.4s;
}

@keyframes heroTextReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
        filter: brightness(0) blur(20px);
    }

    50% {
        filter: brightness(1.5) blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
        filter: brightness(1) blur(0);
    }
}

/* Interactive Tech Deep-Dive Styles */
#tech-deep-dive {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
}

#tech-deep-dive.active {
    display: block !important;
    transform: translateY(0);
    opacity: 1;
}

.click-hint {
    animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
    0% {
        opacity: 0.4;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(5px);
    }

    100% {
        opacity: 0.4;
        transform: translateX(0);
    }
}

/* Visualization Components */
.viz-container {
    width: 100%;
    max-width: 600px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Mockup System moved to Hero Section */

/* 3D Mockup System */
.mockup-container {
    position: relative;
    width: 292px;
    /* Precisely matched 1080x2400 screenshot ratio to eliminate black bars */
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    transform: scale(0.88);
    /* Slightly larger for better visual presence */
    margin-top: 0px;
    /* Shifted further down per user request */
}

.phone-frame {
    position: absolute;
    width: 292px;
    /* Match container */
    height: 650px;
    background: #05070a;
    border: 8px solid #1a1e26;
    border-radius: 54px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 30px 60px -30px rgba(0, 0, 0, 0.6),
        inset 0 -2px 20px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 46px;
    overflow: hidden;
    background: #000;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Perspective Stacking */
.phone-frame.side {
    filter: blur(2px) brightness(0.7);
    /* Increased brightness */
    z-index: 1;
}

.phone-frame.left {
    transform: translateX(-160px) translateZ(-50px) rotateY(-20deg) rotateX(5deg) scale(0.85);
    /* Tighter spread & pushed back */
}

.phone-frame.right {
    transform: translateX(160px) translateZ(-50px) rotateY(20deg) rotateX(5deg) scale(0.85);
    /* Tighter spread & pushed back */
}

.phone-frame.center {
    z-index: 5;
    transform: translateZ(100px);
    border-color: rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.1);
}

/* Hover Interactivity */
.mockup-container:hover .phone-frame.left {
    transform: translateX(-220px) rotateY(-35deg) scale(0.8);
    filter: blur(4px) brightness(0.3);
}

.mockup-container:hover .phone-frame.right {
    transform: translateX(220px) rotateY(35deg) scale(0.8);
    filter: blur(4px) brightness(0.3);
}

.mockup-container:hover .phone-frame.center {
    transform: translateZ(150px) translateY(-20px);
    border-color: var(--primary-color);
    box-shadow: 0 0 80px rgba(0, 242, 255, 0.2);
}



/* Parallax Class */
.parallax-mockup {
    will-change: transform;
}

.viz-node {
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.viz-packet {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    z-index: 3;
    box-shadow: 0 0 15px white;
}

.viz-line {
    position: absolute;
    background: var(--glass-border);
    height: 2px;
    transform-origin: left center;
    z-index: 1;
}

.rotating-key {
    font-size: 3rem;
    color: #FFD700;
    animation: rotateKey 4s linear infinite;
}

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

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

.signal-pulse {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulseSignal 3s infinite;
    opacity: 0;
}

@keyframes pulseSignal {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

.encryption-text {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    height: 24px;
    overflow: hidden;
}

/* Responsive Deep Dive */
@media (max-width: 768px) {
    #tech-deep-dive {
        padding: 1.5rem;
    }

    .viz-container {
        height: 200px;
    }
}

/* =============================================
   PAYMENT MODAL & CTA STYLES
   ============================================= */

/* --- Become a Supporter Button --- */
.btn-become-supporter {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-family);
    color: #fff;
    background: linear-gradient(135deg, #FF6B8A 0%, #FF3D6B 50%, #C0002E 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 25px rgba(255, 61, 107, 0.4), 0 4px 20px rgba(255, 61, 107, 0.3);
    letter-spacing: 0.03em;
}

.btn-become-supporter:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 45px rgba(255, 61, 107, 0.7), 0 8px 30px rgba(255, 61, 107, 0.5);
}

.btn-become-supporter i {
    font-size: 1rem;
}

.btn-glow-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF6B8A, transparent, #FF3D6B);
    opacity: 0;
    animation: glowRingPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowRingPulse {

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

    50% {
        opacity: 0.6;
        transform: scale(1.04);
    }
}

/* --- Modal Overlay --- */
.payment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.payment-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Modal Box --- */
.payment-modal-box {
    width: 100%;
    max-width: 480px;
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 138, 0.25);
    box-shadow: 0 0 60px rgba(255, 61, 107, 0.15), 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal-overlay.active .payment-modal-box {
    transform: translateY(0) scale(1);
}

/* --- Modal Header --- */
.payment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.payment-modal-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close-btn {
    background: var(--surface-hover);
    border: none;
    color: var(--text-dim);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: var(--error-color);
    color: #fff;
}

/* --- Step Indicator --- */
.payment-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-hover);
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-dot.active {
    background: #FF6B8A;
    border-color: #FF6B8A;
    box-shadow: 0 0 10px rgba(255, 107, 138, 0.6);
}

.step-dot.completed {
    background: var(--success-color);
    border-color: var(--success-color);
}

.step-line {
    height: 2px;
    flex: 1;
    background: var(--glass-border);
    margin: 0 4px;
}

/* --- Payment Steps --- */
.payment-step {
    animation: stepFadeIn 0.3s ease;
}

.payment-step.hidden {
    display: none;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.step-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* --- Form Groups --- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.form-group label i {
    margin-right: 0.4rem;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #FF6B8A;
    box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* --- Tier Chips --- */
.tier-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tier-chip {
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--glass-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-family: var(--font-family);
}

.tier-chip:hover {
    border-color: rgba(255, 107, 138, 0.5);
    background: rgba(255, 107, 138, 0.08);
    transform: translateY(-2px);
}

.tier-chip.selected {
    border-color: #FF6B8A;
    background: rgba(255, 107, 138, 0.15);
    box-shadow: 0 0 15px rgba(255, 107, 138, 0.3);
}

.tier-chip-platinum {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.05);
}

.tier-chip-platinum:hover,
.tier-chip-platinum.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.12);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.tier-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.tier-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- QR Display --- */
.qr-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.qr-frame {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 107, 138, 0.2);
    border: 3px solid rgba(255, 107, 138, 0.4);
}

.qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-amount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 107, 138, 0.15);
    border: 1px solid rgba(255, 107, 138, 0.4);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #FF6B8A;
}

#otp-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.btn-edit-email {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 2px 5px;
    border-bottom: 1px dashed transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-edit-email:hover {
    color: var(--text-main);
    border-bottom-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-edit-email.hidden {
    display: none;
}

.btn-upi-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #00c472, #00875a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 196, 114, 0.3);
}

.btn-upi-app:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.upi-id-display {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 0.6rem;
}

.upi-id-display strong {
    color: var(--text-main);
}

/* --- Step Buttons --- */
.btn-step-next {
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #FF6B8A, #FF3D6B);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 61, 107, 0.35);
    width: 100%;
}

.btn-step-next:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-step-back {
    padding: 0.85rem 1.2rem;
    background: var(--surface-hover);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-dim);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-step-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-submit-payment {
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #FF6B8A, #FF3D6B);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 61, 107, 0.35);
    width: 100%;
}

.btn-submit-payment:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

/* --- Submission Status --- */
.submission-status {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 0;
    min-height: 2rem;
}

.submission-status.error {
    color: var(--error-color);
}

.submission-status.loading {
    color: var(--primary-color);
}

/* --- Success State --- */
.success-state {
    text-align: center;
    padding: 1.5rem 0;
    animation: stepFadeIn 0.4s ease;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
}

.success-state h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.success-state p {
    color: var(--text-dim);
    line-height: 1.7;
}

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

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

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
    .payment-modal-box {
        padding: 1.5rem 1.2rem;
    }

    .tier-chips {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .tier-amount {
        font-size: 1.1rem;
    }
}

/* --- Enhanced OTP Verification UI --- */
.otp-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: otpSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.otp-section.hidden {
    display: none;
}

@keyframes otpSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.otp-section.verifying::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.05), transparent);
    animation: verifying-sweep 1.5s infinite;
}

@keyframes verifying-sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.2rem 0;
    transition: filter 0.3s ease;
}

.otp-section.verifying .otp-inputs {
    filter: blur(1px);
}

.otp-input {
    width: 45px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: var(--text-main) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    outline: none !important;
}

.otp-input:not(:placeholder-shown) {
    animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

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

.otp-input:focus {
    border-color: #FF6B8A !important;
    background: rgba(255, 107, 138, 0.1) !important;
    box-shadow: 0 0 20px rgba(255, 107, 138, 0.4) !important;
    transform: translateY(-4px) scale(1.08);
    z-index: 1;
}

.otp-input.verified {
    border-color: var(--success-color) !important;
    color: var(--success-color) !important;
    background: rgba(0, 255, 136, 0.1) !important;
    animation: otp-success-pulse 0.6s ease-out forwards;
}

.otp-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.otp-section .submission-status {
    margin-top: 0.5rem;
    font-weight: 700;
}

/* Circular Resend Timer */
.resend-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.resend-timer-svg {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: rotate(-90deg);
}

.resend-timer-svg circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.resend-timer-svg .bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.resend-timer-svg .progress {
    stroke: #FF6B8A;
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
    transition: stroke-dashoffset 1s linear;
}

.btn-resend-otp {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-dim);
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.btn-resend-otp:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: var(--primary-color);
}

.btn-resend-otp:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Animations */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    50% {
        transform: translateX(8px);
    }

    75% {
        transform: translateX(-8px);
    }
}

.shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes otp-success-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 25px var(--success-color);
    }

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

.email-otp-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

/* --- Email Ghost Autocomplete --- */
.email-suggestion-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.email-suggestion-wrapper input {
    position: relative;
    z-index: 2;
    background: transparent !important;
    width: 100%;
}

#email-ghost {
    position: absolute;
    left: 1.5rem;
    /* Match input padding-left */
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-family);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
    white-space: pre;
    font-weight: 400;
}

.btn-send-otp {
    padding: 0 1.2rem;
    background: linear-gradient(135deg, #FF6B8A, #FF3D6B);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 61, 107, 0.3);
}

.btn-send-otp.sent {
    background: linear-gradient(135deg, #00c472, #00875a);
    box-shadow: 0 4px 15px rgba(0, 196, 114, 0.3);
}

@media (max-width: 480px) {
    .otp-input {
        width: 38px;
        height: 48px;
        font-size: 1.2rem !important;
    }

    .otp-inputs {
        gap: 0.5rem;
    }
}





/* ============================================
   DISASTER MODE SIMULATOR — ENHANCED
   ============================================ */

/* 1. Global Variable Overrides */
body.disaster-mode {
    --primary-color: #FF3131;
    --secondary-color: #8B0000;
    --accent-glow: rgba(255, 49, 49, 0.4);
    --bg-color: #0F0202;
}

/* 2. Floating Action Button */
.disaster-fab {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid #00F2FF;
    border-radius: 50%;
    color: #00F2FF;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 3000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.disaster-fab:hover {
    transform: scale(1.15) rotate(15deg);
    background: #00F2FF;
    color: #0B0E14;
    box-shadow: 0 0 35px rgba(0, 242, 255, 0.6);
}

.disaster-mode .disaster-fab {
    bottom: 140px;
    background: #FF3131;
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.7);
    animation: fab-alarm 0.8s infinite alternate ease-in-out;
}

.disaster-mode .nyra-container {
    bottom: 60px;
}

.disaster-mode .disaster-fab:hover {
    background: #cc0000;
    color: #FFF;
}

@keyframes fab-alarm {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px #FF3131, 0 0 30px rgba(255, 49, 49, 0.3);
    }

    100% {
        transform: scale(1.12);
        box-shadow: 0 0 40px #FF3131, 0 0 80px rgba(255, 49, 49, 0.5);
    }
}

/* 3. Red Vignette Overlay */
.disaster-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 0, 0, 0.12) 100%);
    pointer-events: none;
    z-index: 998;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.disaster-mode .disaster-overlay {
    opacity: 1;
    animation: vignette-pulse 2.5s infinite ease-in-out;
}

@keyframes vignette-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* 4. CRT Scanlines */
.scanlines-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.07) 2px,
            rgba(0, 0, 0, 0.07) 4px);
}

.disaster-mode .scanlines-overlay {
    opacity: 1;
}

/* 5. Emergency HUD - Vertical Console Mode */
.emergency-hud {
    position: fixed;
    top: 85px;
    left: 20px;
    width: 300px;
    height: calc(100vh - 180px);
    z-index: 2500;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50px);
}

.disaster-mode .emergency-hud {
    opacity: 1;
    transform: translateX(0);
}

/* Page Layout Shift - Prevents HUD from hiding content (Desktop) */
body.disaster-mode #navbar,
body.disaster-mode header,
body.disaster-mode section,
body.disaster-mode footer {
    margin-left: 320px;
    width: calc(100% - 320px);
    transition: margin-left 0.5s ease, width 0.5s ease;
}

/* Ensure smooth transition back to normal */
#navbar,
header,
section,
footer {
    transition: margin-left 0.5s ease, width 0.5s ease;
}

/* REMOVE HUD COMPLETELY FOR MOBILE */
@media (max-width: 768px) {
    .emergency-hud {
        display: none !important;
    }

    body.disaster-mode #navbar,
    body.disaster-mode header,
    body.disaster-mode section,
    body.disaster-mode footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.hud-content {
    background: rgba(10, 1, 1, 0.96);
    border: 3px solid #FF3131;
    border-radius: 8px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 49, 49, 0.3), inset 0 0 100px rgba(0, 0, 0, 0.95);
    animation: border-glitch 5s infinite;
}

@keyframes border-glitch {

    0%,
    93%,
    100% {
        border-color: #FF3131;
        box-shadow: 0 0 50px rgba(255, 49, 49, 0.3);
    }

    94% {
        border-color: #00F2FF;
        box-shadow: 0 0 80px rgba(0, 242, 255, 0.4);
    }

    96% {
        border-color: #FF3131;
    }

    97% {
        border-color: #FFF;
    }
}

.hud-warning-bar {
    background: #FF3131;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

.hud-stats-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    justify-content: flex-start;
}

.hud-stat {
    text-align: left;
    border-left: 3px solid rgba(255, 49, 49, 0.4);
    padding: 0.8rem 1.2rem;
    background: rgba(255, 49, 49, 0.03);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s;
}

.hud-stat:hover {
    background: rgba(255, 49, 49, 0.08);
    border-left-color: #FF3131;
}

.hud-status {
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 49, 49, 0.2);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-stat-divider {
    display: none;
    /* Hidden in grid layout */
}

.hud-stat-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}

.hud-stat-value {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.hud-stat-value.offline {
    color: #FF3131;
    text-shadow: 0 0 10px rgba(255, 49, 49, 0.6);
    animation: offline-flicker 3s infinite;
}

.hud-stat-value.online {
    color: #00F2FF;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
}

.hud-stat-value.uptime {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Courier New', monospace;
}

@keyframes offline-flicker {

    0%,
    90%,
    100% {
        opacity: 1;
    }

    91% {
        opacity: 0.1;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.05;
    }

    94% {
        opacity: 1;
    }
}

.hud-stat-divider {
    width: 1px;
    background: rgba(255, 49, 49, 0.3);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* HUD Status Row */
.hud-status {
    border-top: 1px solid rgba(255, 49, 49, 0.25);
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: #00F2FF;
    border-radius: 50%;
    box-shadow: 0 0 8px #00F2FF;
    flex-shrink: 0;
    animation: status-pulse-anim 1s infinite alternate;
}

@keyframes status-pulse-anim {
    from {
        opacity: 0.4;
        transform: scale(0.85);
        box-shadow: 0 0 4px #00F2FF;
    }

    to {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 14px #00F2FF;
    }
}

.status-active {
    color: #00F2FF;
    font-weight: 700;
}

/* 6. Emergency Ticker Tape */
.emergency-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42px;
    background: #FF3131;
    z-index: 2500;
    overflow: hidden;
    display: none;
    align-items: center;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.disaster-mode .emergency-ticker {
    display: flex;
    animation: ticker-reveal 0.4s ease forwards;
}

@keyframes ticker-reveal {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.ticker-inner {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
}

.ticker-inner span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 1.5px;
    padding: 0 1rem;
    text-transform: uppercase;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 7. Page content flicker on activate (brief flash) */
body.disaster-flicker section,
body.disaster-flicker header,
body.disaster-flicker nav {
    animation: content-flicker 0.4s ease forwards;
}

@keyframes content-flicker {
    0% {
        filter: brightness(1);
    }

    15% {
        filter: brightness(0.2) saturate(0);
    }

    30% {
        filter: brightness(1.4);
    }

    50% {
        filter: brightness(0.1) saturate(0);
    }

    65% {
        filter: brightness(1.2);
    }

    80% {
        filter: brightness(0.6) saturate(0);
    }

    100% {
        filter: brightness(1);
    }
}


/* 8. Disaster Terminal (Bootup Sequence) */
.disaster-terminal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.disaster-terminal.active {
    opacity: 1;
    pointer-events: auto;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    margin-bottom: 1.5rem;
}

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

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.terminal-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
    line-height: 1.4;
    overflow-y: auto;
}

.terminal-line {
    display: flex;
    gap: 10px;
}

.terminal-line.system {
    color: #FFF;
}

.terminal-line.warning {
    color: #FFD700;
}

.terminal-line.error {
    color: #FF3131;
}

.terminal-line.success {
    color: #00FF41;
}

.terminal-line.airlink {
    color: #00F2FF;
}

.terminal-timestamp {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

/* CRT Effects for Terminal */
.terminal-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanline-scroll 10s linear infinite;
}

@keyframes scanline-scroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100%;
    }
}

.disaster-terminal::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 5001;
    pointer-events: none;
    animation: flicker-terminal 0.15s infinite;
}

@keyframes flicker-terminal {
    0% {
        opacity: 0.27861;
    }

    5% {
        opacity: 0.34769;
    }

    10% {
        opacity: 0.23604;
    }

    15% {
        opacity: 0.90626;
    }

    20% {
        opacity: 0.18128;
    }

    25% {
        opacity: 0.83891;
    }

    30% {
        opacity: 0.65583;
    }

    35% {
        opacity: 0.57807;
    }

    40% {
        opacity: 0.26559;
    }

    45% {
        opacity: 0.84693;
    }

    50% {
        opacity: 0.96019;
    }

    55% {
        opacity: 0.08594;
    }

    60% {
        opacity: 0.20313;
    }

    65% {
        opacity: 0.71988;
    }

    70% {
        opacity: 0.53455;
    }

    75% {
        opacity: 0.37288;
    }

    80% {
        opacity: 0.71428;
    }

    85% {
        opacity: 0.70419;
    }

    90% {
        opacity: 0.7003;
    }

    95% {
        opacity: 0.36108;
    }

    100% {
        opacity: 0.24387;
    }
}

/* 9. Section Glitches (Network Instability) */
.disaster-mode section:not(#mesh-lab),
.disaster-mode header,
.disaster-mode footer {
    animation: network-glitch 8s infinite;
    position: relative;
}

@keyframes network-glitch {

    0%,
    93%,
    100% {
        transform: none;
        filter: none;
    }

    94% {
        transform: skew(1deg);
        filter: brightness(1.3) contrast(1.2);
    }

    95% {
        transform: skew(-1deg) translateX(4px);
        filter: hue-rotate(90deg) brightness(0.8);
    }

    96% {
        transform: none;
        filter: none;
    }

    97% {
        transform: scale(1.01) translateY(-2px);
        filter: invert(0.05);
    }

    98% {
        transform: none;
        filter: brightness(1.5);
    }
}

/* Subtle "tear" effect on background images/containers */
.disaster-mode .glass-section,
.disaster-mode .hero-image {
    position: relative;
    overflow: hidden;
}

.disaster-mode .glass-section::before,
.disaster-mode .hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.disaster-mode .glass-section:nth-child(even) {
    animation-delay: 2s;
}

.disaster-mode header {
    animation-delay: 4.5s;
}


.disaster-mode footer {
    animation-delay: 1.2s;
}

/* 10. Offline Stamps (Visual Narrative) */
.disaster-mode .cta-group a[href*="github"],
.disaster-mode .btn-become-supporter,
.disaster-mode footer a[href*="discord"],
.disaster-mode .tier-chips button {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    filter: grayscale(0.5) contrast(0.8);
}

.disaster-mode .cta-group a[href*="github"]::after,
.disaster-mode .btn-become-supporter::after,
.disaster-mode footer a[href*="discord"]::after {
    content: "OFFLINE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: #FF3131;
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(255, 49, 49, 0.8);
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
    border-radius: 4px;
    animation: stamp-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stamp-pop {
    from {
        transform: translate(-50%, -50%) scale(2) rotate(-15deg);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1) rotate(-15deg);
        opacity: 1;
    }
}

/* 11. Morse Code LED */
.hud-led {
    width: 10px;
    height: 10px;
    background: #331111;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px;
    border: 1px solid rgba(255, 49, 49, 0.3);
    transition: background 0.2s;
}

.disaster-mode .hud-led {
    background: #FF3131;
    box-shadow: 0 0 8px #FF3131;
    animation: morse-airlink 12s infinite;
}

/* 
   A (.-) I (..) R (.-.) L (.-..) I (..) N (-.) K (-.-) 
   Simulated as a sequence of glows 
*/
@keyframes morse-airlink {

    0%,
    2%,
    4%,
    8%,
    10%,
    12%,
    14%,
    18%,
    20%,
    22%,
    26%,
    28%,
    30%,
    32%,
    36%,
    38%,
    40%,
    41%,
    46%,
    48%,
    52%,
    54%,
    56%,
    58%,
    100% {
        background: #440000;
        box-shadow: none;
    }

    1%,
    3%,
    5%,
    6%,
    7%,
    9%,
    11%,
    13%,
    15%,
    16%,
    17%,
    19%,
    21%,
    23%,
    24%,
    25%,
    27%,
    29%,
    31%,
    33%,
    34%,
    35%,
    37%,
    39%,
    42%,
    43%,
    44%,
    45%,
    47%,
    49%,
    50%,
    51%,
    53%,
    55%,
    57% {
        background: #FF3131;
        box-shadow: 0 0 8px #FF3131;
    }
}

/* ==========================================================================
   NYRA AI CHATBOT STYLES
   ========================================================================== */

.nyra-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 5000;
    font-family: var(--font-family);
}

/* FAB Styling */
.nyra-fab {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
}

.nyra-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.nyra-avatar {
    font-size: 1.8rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nyra-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: var(--success-color);
    border: 2px solid var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success-color);
}

.nyra-fab-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-color);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: white;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.nyra-fab:hover .nyra-fab-tooltip {
    opacity: 1;
    right: 75px;
}

/* Chat Window Styling */
.nyra-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.1);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
    z-index: 5001;
}

.nyra-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* Header */
.nyra-header {
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(0, 242, 255, 0.05), rgba(112, 0, 255, 0.05));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nyra-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nyra-avatar.mini {
    width: 40px;
    height: 40px;
    background: var(--surface-hover);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.nyra-header h3 {
    font-size: 1.1rem;
    margin: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nyra-status {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.nyra-header-actions {
    display: flex;
    gap: 8px;
}

.nyra-header-actions button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nyra-header-actions button:hover {
    background: var(--surface-hover);
    color: white;
}

#nyra-close:hover {
    background: rgba(255, 77, 77, 0.1);
    color: var(--error-color);
}

/* Messages Area */
.nyra-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.nyra-messages::-webkit-scrollbar {
    width: 4px;
}

.nyra-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: msgIn 0.3s ease forwards;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.bot {
    align-self: flex-start;
    background: var(--surface-hover);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--secondary-color), #4e00b3);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.2);
}

.message-time {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 4px;
    display: block;
    text-align: right;
}

/* Input Area */
.nyra-input-area {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
}

.nyra-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 12px;
    transition: border-color 0.3s ease;
}

.nyra-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

#nyra-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    resize: none;
    max-height: 100px;
    padding: 8px 4px;
}

#nyra-send {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#nyra-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

#nyra-send:disabled {
    background: var(--text-dim);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nyra-footer {
    text-align: center;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
    opacity: 0.6;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .nyra-window {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 80px;
    }
    .disaster-fab {
        bottom: 110px;
        right: 30px;
        left: auto;
    }
}

/* Careers Page Specific Styles */
.careers-hero {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent);
}

.roles-container {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.role-card {
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    background: var(--surface-hover);
}

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

.role-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.role-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.role-card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.role-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.role-location {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
    .role-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .role-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .role-footer .btn {
        width: 100%;
        text-align: center;
    }
}
/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-chip {
    padding: 0.8rem 1.5rem;
    background: var(--surface-color, rgba(20, 25, 35, 0.6));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 50px;
    color: var(--text-dim, rgba(255, 255, 255, 0.7));
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-chip:hover {
    border-color: var(--primary-color, #00f2ff);
    color: var(--text-main, #ffffff);
    background: rgba(0, 242, 255, 0.05);
}

.category-chip.active {
    background: var(--primary-color, #00f2ff);
    color: var(--bg-color, #0b0e14);
    border-color: var(--primary-color, #00f2ff);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* ===== Pricing Page Styles ===== */
.pricing-hero {
    padding-top: 160px;
    padding-bottom: 60px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    padding-bottom: 80px;
}

.pricing-card {
    padding: 3.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: rgba(0, 242, 255, 0.02);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.1);
}

.pricing-card.featured::after {
    content: 'Recommended';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-header {
    margin-bottom: 2.5rem;
}

.price-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price span {
    font-size: 1rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.pricing-features li.disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

.pricing-features li.disabled i {
    color: var(--text-dim);
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card.featured .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

/* FAQ Section in Pricing */
.pricing-faq {
    margin-top: 6rem;
    padding-bottom: 100px;
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 3.2rem;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}


/* Live Visitor Footer Integration */
.footer-live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 1rem;
    width: fit-content;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--success-color);
}

.live-dot.pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--success-color);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
    opacity: 0;
}

@keyframes livePulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.footer-live-status strong {
    color: var(--text-main);
    font-weight: 700;
}

@media (max-width: 768px) {
    .footer-live-status {
        margin: 1rem auto 0;
    }
}

/* --- CUSTOM PREMIUM CURSOR --- */
/* --- CUSTOM PREMIUM CURSOR --- */
@media (min-width: 1025px) {
    html.custom-cursor-active,
    html.custom-cursor-active body {
        cursor: none !important;
    }
}

/* Ensure interactive elements also hide the cursor */
a, button, [role="button"], .glass, .glass-card, .blog-card, .supporter-card, .faq-question, .read-more, .nav-link, .btn-nav-cta, .social-link {
    cursor: none !important;
}

.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    z-index: 10000;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    mix-blend-mode: difference;
    box-shadow: 0 0 10px var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(0, 242, 255, 0.4);
    background-color: rgba(0, 242, 255, 0.02);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Cursor Ping (Mesh Ripple) */
.cursor-ping {
    position: fixed;
    pointer-events: none;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    animation: cursorPing 0.6s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes cursorPing {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* Hover States */
body.cursor-hovered .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: #fff;
    box-shadow: 0 0 15px #fff;
}

body.cursor-hovered .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
    background-color: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.3);
}

/* Active/Click State */
body.cursor-active .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

body.cursor-active .cursor-outline {
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgba(0, 242, 255, 0.15);
}

/* Magnetic Element Transitions */
.magnetic-target {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* Hide cursor on mobile/tablets for better UX */
@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    html, body, a, button, [role="button"], .glass, .glass-card, .blog-card, .supporter-card, .faq-question {
        cursor: auto !important;
    }
}

/* --- DYNAMIC THEME SWITCHER --- */
.theme-switcher-wrapper {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
}

.theme-switcher {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    background: var(--surface-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle:hover {
    transform: rotate(45deg) scale(1.1);
    background: var(--surface-hover);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Theme Adjustments for Responsive */
@media (max-width: 768px) {
    .theme-switcher-wrapper {
        top: auto;
        bottom: 100px;
        right: 20px;
    }
}

/* ==========================================================================
   STICKY SCROLL USE CASES
   ========================================================================== */

.sticky-scroll-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-color);
}

.sticky-scroll-wrapper {
    height: 400vh; /* Adjust based on number of cards */
    position: relative;
}

.sticky-view {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress Indicator */
.progress-indicator {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
}

.progress-bar-vertical {
    width: 3px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar-vertical .fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 15px var(--accent-glow);
    transition: height 0.1s ease-out;
}

.progress-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
}

.progress-labels .label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0.4;
    transform: translateX(-10px);
}

.progress-labels .label.active {
    color: var(--primary-color);
    opacity: 1;
    transform: translateX(0);
}

/* Scroll Cards */
.scroll-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.scroll-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.scroll-card.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.6);
}

/* Glassmorphic Box */
.card-glass-box {
    max-width: 600px;
    padding: 3rem;
    background: rgba(11, 14, 20, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: left;
    position: relative;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.card-glass-box h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.card-glass-box p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.card-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.card-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.card-stats .stat .val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.card-stats .stat span {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations (for GSAP to trigger) */
.scroll-card .card-glass-box {
    transform: translateY(50px);
    opacity: 0;
}

.scroll-card.active .card-glass-box {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-indicator {
        left: 1.5rem;
    }
    
    .progress-labels {
        display: none;
    }
    
    .card-glass-box {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .card-glass-box h2 {
        font-size: 2.2rem;
    }
    
    .card-stats {
        gap: 1.5rem;
    }
}

/* ===== Legal Pages (Privacy & Terms) ===== */
.legal-page {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-content {
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
}

.legal-content p {
    color: var(--text-dim);
    margin-bottom: 1.2rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-dim);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2.5rem 1.5rem;
    }
    .legal-content h1 {
        font-size: 2.2rem;
    }
}

/* ===== AIRLINK HANDSHAKE ===== */

/* --- FAB Button --- */
.handshake-fab {
    position: fixed;
    bottom: 5rem; /* above the disaster FAB */
    left: 2rem;
    z-index: 900;
    background: linear-gradient(135deg, rgba(11,14,20,0.9), rgba(11,14,20,0.7));
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.6rem 1.1rem 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2), 0 4px 20px rgba(0,0,0,0.4);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}
.handshake-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 35px rgba(0, 242, 255, 0.4), 0 8px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}
.handshake-icon-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
}
.handshake-fab-label {
    letter-spacing: 0.03em;
}
.handshake-signal-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    opacity: 0;
    animation: hsRingPulse 2.5s infinite ease-out;
}
.handshake-signal-ring.ring-1 { width: 30px; height: 30px; animation-delay: 0s; }
.handshake-signal-ring.ring-2 { width: 44px; height: 44px; animation-delay: 0.6s; }
.handshake-signal-ring.ring-3 { width: 58px; height: 58px; animation-delay: 1.2s; }

@keyframes hsRingPulse {
    0%   { transform: translate(-50%,-50%) scale(0.4); opacity: 0.7; }
    100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}

/* --- Modal Overlay --- */
.handshake-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.handshake-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Modal Box --- */
.handshake-modal-box {
    width: 100%;
    max-width: 400px;
    border-radius: 28px;
    border-color: rgba(0, 242, 255, 0.25);
    overflow: visible;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
}
.handshake-modal-overlay.active .handshake-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* --- Modal Header --- */
.handshake-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}
.handshake-modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}
.handshake-modal-header button {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.handshake-modal-header button:hover { background: var(--surface-hover); color: #fff; }

/* --- Modal Body & States --- */
.handshake-modal-body {
    padding: 2rem 1.5rem;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hs-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: center;
}
.hs-state.hidden { display: none !important; }

/* Spinner */
.hs-spinner {
    display: flex;
    gap: 6px;
    margin-bottom: 0.5rem;
}
.hs-spinner span {
    width: 10px; height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: hsBounceDot 1.2s infinite ease-in-out both;
}
.hs-spinner span:nth-child(1) { animation-delay: -0.32s; }
.hs-spinner span:nth-child(2) { animation-delay: -0.16s; }
@keyframes hsBounceDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40%            { transform: scale(1); opacity: 1; }
}

.hs-status-text { color: var(--text-dim); font-size: 0.9rem; }
.hs-instruction { color: var(--text-dim); font-size: 0.88rem; }

/* QR Frame */
.hs-qr-frame {
    position: relative;
    width: 180px;
    height: 180px;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}
.hs-qr-frame img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
}
.hs-qr-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary-color);
    border-style: solid;
}
.hs-qr-corner.tl { top: -4px; left: -4px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.hs-qr-corner.tr { top: -4px; right: -4px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.hs-qr-corner.bl { bottom: -4px; left: -4px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.hs-qr-corner.br { bottom: -4px; right: -4px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

/* Peer ID */
.hs-peer-id-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hs-peer-id-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.hs-peer-id-display code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(0,242,255,0.08);
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0,242,255,0.15);
    letter-spacing: 0.08em;
    word-break: break-all;
}
.hs-waiting-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

/* Connected State */
.hs-success-icon {
    position: relative;
    font-size: 3.5rem;
    color: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hs-success-ring {
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px solid var(--success-color);
    animation: hsSuccessRing 1s ease-out forwards;
    opacity: 0;
}
@keyframes hsSuccessRing {
    0%   { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.hs-connected-title { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }
.hs-connected-sub { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
.hs-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--success-color);
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
}
.hs-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: hsBlink 1.2s infinite;
}
@keyframes hsBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}
.hs-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}
.hs-disconnect-btn {
    margin-top: 0.5rem;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    color: #ff4d6d;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.82rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.25s ease;
}
.hs-disconnect-btn:hover {
    background: rgba(255, 77, 109, 0.2);
    transform: translateY(-1px);
}

/* --- Modal Footer --- */
.handshake-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .handshake-fab { bottom: 6rem; left: 1rem; }
    .handshake-modal-box { max-width: calc(100vw - 2rem); margin: 1rem; }
}

/* ===== AIRLINK REMOTE CURSOR ===== */
#airlink-remote-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 999999;
    /* Use a standard cursor arrow SVG */
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 3.5L5.5 20.4L10.1 15.8L13.1 22.1L15.9 20.8L12.9 14.5L19.5 14.5L5.5 3.5Z' fill='white' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: left 0.05s linear, top 0.05s linear;
    display: none;
}
#airlink-remote-cursor.visible { display: block; }

#airlink-remote-cursor.clicking {
    transform: scale(0.85);
}


.airlink-click-ripple {
    position: fixed;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    animation: airlinkClickRipple 0.4s ease-out forwards;
}
@keyframes airlinkClickRipple {
    to { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* --- Mission Section --- */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    font-size: 1.1rem;
}

.mission-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.mission-orb-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.mission-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: missionOrbFloat 10s infinite alternate ease-in-out;
}

.mission-orb.primary {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 0;
    left: 0;
}

.mission-orb.secondary {
    width: 180px;
    height: 180px;
    background: var(--secondary-color);
    bottom: 0;
    right: 0;
    animation-delay: -3s;
}

.mission-orb.tertiary {
    width: 150px;
    height: 150px;
    background: #FFD700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

.mission-icon-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    z-index: 5;
}

@keyframes missionOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

/* --- FAQ Section --- */
.faq-grid-comprehensive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item-static {
    padding: 2rem;
    height: 100%;
}

.faq-item-static h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item-static p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mission-visual {
        min-height: 300px;
    }
    
    .mission-orb-container {
        width: 200px;
        height: 200px;
    }
    
    .mission-icon-core {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* --- About Page Specifics --- */
.subpage-hero {
    padding: 180px 0 80px;
    text-align: center;
}

.subpage-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-text h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dim);
}

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

.value-card {
    padding: 3rem 2rem;
    text-align: center;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.value-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.founder-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
    border-radius: 40px;
}

.founder-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--glass-border);
}

.founder-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.founder-info .title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.founder-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.founder-socials a {
    color: var(--text-dim);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.founder-socials a:hover {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
    }
    
    .founder-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .founder-socials {
        justify-content: center;
    }
}

/* --- Docs Page Specifics --- */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    padding-top: 150px;
}

.docs-sidebar {
    position: sticky;
    top: 150px;
    height: fit-content;
    padding: 2rem;
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-section h5 {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.sidebar-section a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.sidebar-section a:hover {
    color: var(--primary-color);
}

.docs-main {
    max-width: 800px;
}

.docs-header {
    margin-bottom: 4rem;
}

.docs-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.docs-section {
    margin-bottom: 5rem;
}

.docs-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.docs-section h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.docs-section p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.docs-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-dim);
}

.docs-section li {
    margin-bottom: 0.8rem;
}

.code-snippet {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin: 2rem 0;
}

.code-snippet pre {
    margin: 0;
}

.code-snippet code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.docs-faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.docs-faq-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .docs-layout {
        grid-template-columns: 1fr;
        padding-top: 120px;
    }
    
    .docs-sidebar {
        display: none; /* Hide sidebar on mobile for simplicity, could be a dropdown */
    }
}
