/**
 * Final DeFi - Landing Page Styles
 */

:root {
    /* Brand Colors */
    --brand-purple: #7c3aed;
    --brand-purple-light: #8b5cf6;
    --brand-purple-dark: #6d28d9;
    --brand-blue: #2563eb;
    --brand-blue-light: #3b82f6;
    --brand-cyan: #06b6d4;
    --brand-cyan-light: #22d3ee;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 50%, var(--brand-cyan) 100%);
    
    /* Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-elevated: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(124, 58, 237, 0.5);
    
    /* Effects */
    --transition-base: all 0.3s ease;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --brand-purple-glow: rgba(124, 58, 237, 0.4);
    
    /* Status Colors */
    --success: #10b981;
    --danger: #ef4444;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

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

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.landing-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

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

.nav-logo {
    width: 40px;
    height: 40px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.nav-link:active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.nav-link:hover svg {
    transform: scale(1.1);
}

.nav-link:active svg {
    transform: scale(1.1);
}

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

.btn-nav {
    min-width: 120px;
    height: 48px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 1rem;
}

.btn-nav .btn-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: currentColor;
}

/* CSS-based button icons */
.btn-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: all 0.3s ease;
}

/* Document icon (for whitepaper) */
.btn-icon-doc {
    background: currentColor;
    border-radius: 2px;
    width: 16px;
    height: 20px;
}
.btn-icon-doc::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 2px;
    right: 2px;
    height: 1px;
    background: var(--bg-primary);
    box-shadow: 0 3px 0 var(--bg-primary), 0 6px 0 var(--bg-primary);
}

/* Rocket icon (for launch) */
.btn-icon-rocket {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 20px solid currentColor;
    position: relative;
    margin: 2px 6px;
}
.btn-icon-rocket::before {
    content: '';
    position: absolute;
    bottom: -22px;
    left: -3px;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}
.btn-icon-rocket::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid currentColor;
}

/* App icon (simple square with border) */
.btn-icon-app {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 3px;
    position: relative;
}
.btn-icon-app::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 1px;
    background: currentColor;
}
.btn-icon-app::after {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: 1px;
    background: currentColor;
}

/* Play icon (triangle) */
.btn-icon-play {
    width: 0;
    height: 0;
    border-left: 12px solid currentColor;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 4px;
}

.btn-nav.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-nav.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
}

.btn-nav.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
}

.btn-nav.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-nav.btn-secondary:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    background: rgba(124, 58, 237, 0.1);
}

/* Wider Secure Gateway button */
.btn-nav.btn-gateway-wide {
    min-width: 150px; /* 25% wider than 120px */
    padding: 0 1.5rem; /* Slightly more padding to accommodate wider text */
    white-space: nowrap; /* Prevent text from wrapping to multiple lines */
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* Graphic Buttons */
.btn-graphic {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-graphic svg {
    display: block;
    width: 100%;
    height: 100%;
}

.btn-graphic:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-graphic:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 0;
    overflow: visible;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/images/particles.png') repeat;
    opacity: 0.1;
    animation: float 20s linear infinite;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.btn-hero {
    min-width: 140px;
    height: 60px;
    border-radius: 30px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0 1.5rem;
}

.btn-hero .btn-text {
    font-size: 1rem;
    font-weight: 600;
    color: currentColor;
}

/* Hero button content styling moved to .btn-icon */

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.6);
}

.btn-hero-primary:hover .btn-icon {
    transform: scale(1.1);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    transform: translateY(-3px) scale(1.05);
}

.btn-hero-secondary:hover .btn-icon {
    transform: scale(1.1);
}

.btn-hero-secondary:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.btn-hero-secondary:disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.05);
    transform: none;
}

.btn-hero-secondary:disabled .btn-icon {
    opacity: 0.5;
    transform: none;
}

.btn-hero:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-hero-primary, .btn-hero-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-purple);
}

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

.hero-chains p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.chain-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.chain-logo-wrapper {
    position: relative;
    display: inline-block;
}

.chain-logos img,
.chain-logos svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    transition: all 0.3s ease;
}

.chain-logos svg:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chain-tooltip {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.chain-logo-wrapper:hover .chain-tooltip {
    visibility: visible;
    opacity: 1;
}

.more-chains {
    color: var(--brand-purple);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Algorithms (moved to hero section) */
.hero-algorithms {
    margin-top: 3rem;
    text-align: center;
}

.hero-algorithms .algorithms-header {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem; /* Increased spacing between header and algorithms */
}

/* Ensure algorithms display in exactly two rows */
.hero-algorithms .algorithms-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Spacing between rows */
    align-items: center;
}

.hero-algorithms .algorithms-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap; /* Prevent wrapping within rows */
}

/* Chains Section (moved from hero) */
.chains-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.supported-chains-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.chains-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Keep existing algorithms section styling for potential future use */
.algorithms-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

/* Algorithms Showcase */
.algorithms-showcase {
    text-align: center;
}

.algorithms-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.algorithms-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.algorithms-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.algorithm-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.algorithm-badge:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--brand-purple);
    transform: translateY(-2px);
}

.algorithm-badge-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-purple);
    flex-shrink: 0;
}

.algorithm-badge-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.algorithm-badge-type {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Quantum Bubbles */
.quantum-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(124, 58, 237, 0.3) 0%, 
        rgba(124, 58, 237, 0.1) 40%,
        transparent 70%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: opacity 0.5s ease;
    z-index: 5;
}

@keyframes bubble-float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% { 
        transform: translate(50px, -100px) scale(1.2);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
}

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

.vasset-morph-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vasset-content, .phi-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    pointer-events: none;
    width: 100%;
    height: 100%;
    transition: opacity 2s ease-in-out;
}

.vasset-state {
    opacity: 1;
}

.phi-state {
    opacity: 0;
}

.vasset-icon, .phi-icon {
    width: 40%;
    height: 40%;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.vasset-symbol, .phi-symbol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.phi-symbol {
    color: #c084fc;
    font-size: 0.85rem;
}

/* Floating Cards */
.hero-visual {
    position: absolute !important;
    right: 50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.floating-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    width: 280px;
    transition: all 0.3s ease;
    text-align: center;
}

.floating-card:hover {
    transform: translateX(-10px);
    border-color: var(--brand-purple);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
}

.floating-card i {
    font-size: 2rem;
    color: var(--brand-purple);
    margin-bottom: 1rem;
    display: block;
}

.floating-card svg.icon {
    margin: 0 auto 1rem auto;
    display: block;
    fill: var(--brand-purple);
}

.floating-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--brand-purple);
    text-align: center !important;
}

.floating-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center !important;
}

.card-1 { animation: float-card 20s ease-in-out infinite; }
.card-2 { animation: float-card 20s ease-in-out infinite 2s; }
.card-3 { animation: float-card 20s ease-in-out infinite 4s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 4px 20px rgba(124, 58, 237, 0.3); }
    50% { text-shadow: 0 4px 30px rgba(124, 58, 237, 0.5); }
}

.enhanced-header {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem;
    animation: titleGlow 4s ease-in-out infinite;
}

.enhanced-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7c3aed, transparent);
    animation: expandLine 3s ease-in-out infinite;
}

@keyframes expandLine {
    0%, 100% { width: 100px; opacity: 0.5; }
    50% { width: 200px; opacity: 1; }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Wider subtitle for investor section to fit in one line */
.investor-subtitle {
    max-width: 900px !important;
    white-space: nowrap;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.image-modal-close:hover {
    color: var(--brand-purple);
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Technology Section */
.technology-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    padding-bottom: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 380px;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-purple);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.tech-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1.5rem auto;
}

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

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-link {
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
    position: absolute;
    bottom: 30px;
    left: 2.5rem;
}

.tech-link:hover {
    gap: 0.5rem;
}

/* Architecture Visualization */
.architecture-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.architecture-visual h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arch-layer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.arch-layer:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--brand-purple);
}

.arch-layer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--brand-purple);
}

.layer-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.layer-items span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    position: relative;
}

.features-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--brand-purple);
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Investors Section */
.investors-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.investors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.investor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.investor-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-purple);
}

.investor-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.investor-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.investor-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.investor-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.investment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.invest-stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.invest-stat p {
    color: var(--text-secondary);
}

.investor-cta {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.investor-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.investor-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Roadmap Section */
.roadmap-section {
    padding: 100px 0;
    position: relative;
}

.roadmap-timeline {
    position: relative;
    padding-left: 3rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.timeline-item.completed .timeline-marker {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
}

.timeline-item.active .timeline-marker {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-member {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    padding-bottom: calc(50px + 36px + 1rem); /* 50px bottom padding + button height + gap */
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 420px;
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--brand-purple);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-primary);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--brand-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.member-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.member-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.member-socials a:hover {
    background: var(--brand-purple);
    color: white;
}

.join-team {
    text-align: center;
}

.join-team h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.join-team p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-cta-primary, .btn-cta-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.7);
    background: linear-gradient(135deg, #b16cff 0%, #4a8fff 100%);
}

.btn-cta-primary:hover::before {
    transform: translateX(100%);
}

.btn-cta-secondary {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-cta-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.7);
    background: linear-gradient(135deg, #b16cff 0%, #4a8fff 100%);
}

.btn-cta-secondary:hover::before {
    transform: translateX(100%);
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted rgba(124, 58, 237, 0.5);
    transition: all 0.3s ease;
}

.tooltip:hover {
    border-bottom-color: var(--brand-purple);
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 280px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -140px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgba(37, 99, 235, 0.95) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(-5px);
}

/* Footer */
.landing-footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

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

.footer-logo {
    width: 58px;
    height: 58px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--brand-purple);
    color: white;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

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

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

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Demo Video Modal */
.demo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demo-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90vw;
    height: 80vh;
    max-width: 1400px;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from { 
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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

.demo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.demo-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.demo-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

.demo-modal-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    flex: 1;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Fix mobile layout and prevent horizontal scroll */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* AGGRESSIVE FIX: Disable ALL scrolling on inner elements */
    * {
        -webkit-overflow-scrolling: auto !important;
        overflow: visible !important;
        touch-action: pan-y !important;
    }
    
    /* Only allow body to scroll */
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    /* Disable scrolling on ALL divs, sections, and containers */
    div, section, article, aside, main, nav, header, footer {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: auto !important;
        touch-action: inherit !important;
        pointer-events: auto !important;
        max-height: none !important;
        height: auto !important;
    }
    
    /* Fix ALL hero layers and backgrounds from capturing scroll */
    /* CRITICAL: Hide ALL background layers on mobile */
    .hero-background,
    .hero-background *,
    .security-animation,
    .security-animation *,
    .quantum-shield-grid,
    .security-shield,
    .zk-proof-layer,
    .zk-proof-node,
    .section-background {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        touch-action: none !important;
    }
    
    /* Disable touch on all hero content except buttons */
    .hero-content,
    .hero-content *,
    .hero-stats,
    .hero-stats *,
    .stat,
    .stat *,
    .stat-item,
    .stat-item *,
    img[alt="DeFi"],
    .hero-title,
    .hero-subtitle,
    .hero-algorithms,
    .algorithms-showcase,
    .algorithms-showcase *,
    .gradient-text,
    .quantum-bubble,
    .vasset-bubble {
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        overflow: visible !important;
        touch-action: none !important;
    }
    
    /* Hero section must not block scroll */
    .hero-section {
        pointer-events: none !important;
        touch-action: none !important;
        position: relative !important;
        z-index: 1 !important;
        overflow: visible !important;
        transform: none !important;
        will-change: auto !important;
    }
    
    /* Make sure body is the only scrollable element */
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Re-enable pointer events ONLY for interactive elements */
    .hero-actions,
    .hero-actions button,
    .hero-content .btn-primary,
    .hero-content .btn-secondary,
    .hero-actions a {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    /* Hide floating hero elements and complex visuals */
    .hero-visual,
    .floating-cards-container,
    .floating-card,
    .floating-cards,
    .architecture-visual {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Fix hero section */
    .hero-section {
        padding: 2rem 0 !important;
        min-height: auto !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .hero-content {
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        position: static !important;
        width: 100% !important;
    }
    
    /* Fix containers */
    .container {
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    /* Fix specific sections that might cause overflow */
    .chains-showcase,
    .tech-grid,
    .features-showcase,
    .footer-grid {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* CRITICAL: Fix chains section blocking scroll */
    .chains-section,
    .chains-section *,
    .chains-showcase,
    .chains-showcase *,
    .chain-logos,
    .chain-logos *,
    .supported-chains-text {
        pointer-events: none !important;
        touch-action: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        overflow: visible !important;
    }
    
    /* Disable hover effects on mobile */
    .chain-logos svg:hover {
        transform: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow: none !important;
    }
    
    /* Fix disabled buttons blocking scroll */
    button:disabled,
    .btn-hero:disabled,
    .btn-hero-secondary:disabled {
        pointer-events: none !important;
        touch-action: none !important;
    }
    
    /* Ensure container doesn't block scroll */
    .chains-section .container {
        pointer-events: none !important;
        touch-action: none !important;
        overflow: visible !important;
    }
    
    /* Fix algorithm tags to wrap properly */
    .algorithms-row {
        flex-wrap: wrap !important;
        justify-content: center !important;
        max-width: 100% !important;
    }
    
    .algorithm-tag {
        max-width: calc(50% - 0.5rem) !important;
        flex: 0 0 auto !important;
    }
    
    /* Prevent all containers from being individually scrollable on mobile */
    .container,
    .section,
    .card,
    .glass-card,
    .investor-card,
    .team-card,
    .feature-card,
    .tech-card,
    .roadmap-item,
    .investors-grid,
    .team-grid,
    .features-showcase,
    .tech-grid,
    .chains-showcase,
    .investor-cta,
    .investment-stats,
    div[class*="grid"],
    div[class*="showcase"],
    div[class*="container"] {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    /* Ensure all content flows naturally on mobile */
    .investors-section,
    .team-section,
    .features-section,
    .roadmap-section,
    .tech-section {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    /* Responsive modal */
    .demo-modal {
        padding: 0;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .demo-modal-content {
        width: 100vw;
        height: calc(100vh - 20px);
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-width: 100vw;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        animation: slideUp 0.3s ease-out;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .demo-modal-header {
        padding: 1rem 1.5rem;
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg-secondary);
    }
    
    .demo-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .demo-modal-close {
        font-size: 1.5rem;
        width: 32px;
        height: 32px;
    }
    
    /* Image modal on mobile */
    .image-modal {
        padding: 1rem;
        background: rgba(0, 0, 0, 0.95);
    }
    
    .image-modal-content {
        max-width: 100%;
        max-height: 70vh;
        width: auto;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.8);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }
    
    .features-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Make algorithms responsive on mobile */
    .hero-algorithms .algorithms-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .hero-algorithms .algorithms-header {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Hide docs elements globally on all platforms */
a[href="#docs"],
a[href="/docs"],
a[href*="docs"]:not([href*="whitepaper"]):not([href*="contact"]),
.btn-cta-secondary,
button[onclick*="docs"],
*[onclick*="/docs"] {
    display: none !important;
}

/* Desktop-specific styles for navigation */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
    
    .nav-menu .nav-link:hover {
        /* No transform on desktop hover */
    }
    
    .nav-menu .nav-link:active {
        /* No transform on desktop click */
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #0a0a0a !important;
        background-color: #0a0a0a !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 2px solid #7c3aed;
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 9999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        opacity: 1 !important;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-menu .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.2s ease;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(124, 58, 237, 0.2);
        border-color: rgba(124, 58, 237, 0.5);
        color: #ffffff;
        transform: translateX(5px);
    }
    
    .nav-menu .nav-link:active {
        background: rgba(124, 58, 237, 0.2);
        border-color: rgba(124, 58, 237, 0.5);
        color: #ffffff;
        /* No transform on active to prevent movement on click */
    }
    
    .nav-menu .nav-link span {
        color: inherit;
    }
    
    .nav-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hamburger animation when menu is open */
    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}