:root {
    --primary-color: #2AFEB7;
    --secondary-color: #08C4E5;
    --dark-bg: #83D8C8; /* calm teal */
    --dark-bg-alt: #83D8C8;
    --text-color: #FFFFFF;
    --text-color-muted: #A0A0A0;
    --accent-color: #2AFEB7;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --transition: all 0.3s ease;
    --card-bg: rgba(20, 20, 20, 0.7);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --font-primary: 'Exo', sans-serif;
    --font-secondary: 'Exo', sans-serif;
    --bg-gradient: linear-gradient(135deg, #83D8C8 0%, #69C0B1 100%);
    /* iOS Safari background fallbacks */
    --bg-solid: #83D8C8;
    /* Surface (header/footer) */
    /* Lighten the frosted header so it blends with the teal hero while keeping readability */
    --surface-color: rgba(5, 20, 22, 0.28);
    --surface-border: rgba(255, 255, 255, 0.12);
    /* CTA theme */
    --cta-bg: #ffffff;
    --cta-text: #134E4A; /* deep teal for contrast */
}

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

/* PERFORMANCE OPTIMIZATIONS + iOS Safari Fixes */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Enable hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* iOS Safari fixes */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    /* Ensure dark background */
    background-color: var(--dark-bg);
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg); /* Solid fallback FIRST */
    background: var(--bg-gradient); /* Gradient on top */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Enable hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Optimize scrolling performance */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    /* iOS Safari fixes - ensure background is always visible */
    min-height: 100vh;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* iOS Safari background fixes */
@supports (-webkit-appearance: none) {
    body {
        background-attachment: scroll; /* Fixed backgrounds can cause issues on iOS */
        background-color: #95F2DC !important; /* Force solid background */
        background-image: none; /* Remove gradient on iOS Safari if needed */
    }
    
    html {
        background-color: #95F2DC !important; /* Ensure HTML also has background */
    }
}

/* Enhanced iOS Safari fixes for white background issues */
@supports (-webkit-touch-callout: none) {
    /* iOS specific styles */
    html, body {
        background-color: #95F2DC !important;
        background: #95F2DC !important;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* Ensure all containers have dark background */
    .main-content, .wrapper, section {
        background-color: transparent !important;
        background: transparent !important;
    }
    
    /* Force hide particles on iOS */
    .particles-container {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Force hide loading screen on iOS */
    .loading-screen {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Ensure main content is visible */
    .main-content {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Additional mobile-specific fixes */
@media (hover: none) and (pointer: coarse) {
    /* Touch device styles */
    body {
        background-color: #95F2DC !important;
        -webkit-tap-highlight-color: transparent;
    }
    
    .particles-container {
        display: none !important;
    }
    
    .loading-screen {
        display: none !important;
    }
}

/* PERFORMANCE: Enable hardware acceleration for animated elements */
.hero-blob-animation,
.bubble,
.floating-particle,
.animated-button,
.cube,
.strategy-visual,
.network-node,
.network-center {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* PERFORMANCE: Optimize will-change for better rendering */
.bubble {
    will-change: transform;
}

.floating-particle {
    will-change: transform;
}

.animated-button {
    will-change: transform, box-shadow;
}

.cube {
    will-change: transform;
}

/* PERFORMANCE: Prevent layout thrashing on scroll */
header {
    contain: layout style;
    will-change: background-color, padding;
}

/* Ensure nav arranges internal lists side-by-side on desktop */
nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABBpJREFUaEPtmttx2zAQRQ8qiBzBLsHpwO7A6cDpQKnAcgVyB3YHSgdyB04HdgdSCbRnwIUoEgQBkKBI2TOZyYytj8XlxX3uLjzRxOPpxHjoADk2Jp0jx8bHydB6Pp/frtfrm8Vi8XQ+n/8MBoM/b29vf25vb39dXV39nM1mL6fg6SQgT09P76+urr6ORqNvAPCFbXw+n9+fn5+/z2azP7Vhqg5kPp/fDYfDH4PB4D4HgGBZll/n8/m32jBVBTKfz+/H4/GPw+HwkAPBe5vN5ms1mKoCWSwWj6PR6GcJBIKpBlMNyHK5vN/v94/D4fDLfr9/ORwOz/P5/LnkOr3e3d3d/W61Wj3UgKkC5HQ6jfb7/a/RaPSt5Eifz+cPy+Xye+nzJc9XATIYDJbj8fihBOT19fVhtVo9ljxf+mwVIIvF4mk0Gn0v2fx2u/26Xq8fSp8vfb4KkNPp9LDf7x9LNr/b7R42m81j6fOlz1cDMhwOH0s2v91uH9br9UPp86XPVwNSeuR3u93DZrN5LN186fNVgJQeebcWq9XqvnTzpc9XAaI0f3t7+7Tb7Z6Gw+GX3W73UmtAqAKkVPPr9fphs9k8lW6+9PkqQEo1v9lsvm02m6fSzZc+XwVIqeZtLdbr9X3p5kufP3kgy+XyYb/fl+YJpfnS56sAKdX8drt92Gw2T6WbL32+CpBSzdu0u16v70s3X/r8yQMp1fxms/m22WyeSjdf+nwVIKWat7XQmi/dfBUgpZpXmi/dfOnzJw+kVPO2FqXFXunzVYCUat7WQmu+dPNVgJRqXmm+dPOlz588kFLN21qUFnulz1cBUqp5Wwut+dLNVwFSqnml+dLNlz5/8kBKNW9rUVrslT5fBUip5m0ttOZLN18FSKnmleZLN1/6/MkDKdW8rUVpsVf6fBUgpZq3tdCaL918FSClmleaL9186fMnD6RU87YWpcVe6fNVgJRq3tZCa7508+pAptPpb3sMkHu8wPtK86Wb1wZi/+HxeDzabDZf5GbsM0rzpZvXBmKJ/n6/f1oul/fSRgDDHgMozZduXhtIlehrzZduXhuIJfqn0+kVEJboc0l/Op3+0povfUYbiCX6ZKKPDSjNl25eG4gl+iT6JPoXzWsDsUS/SvS15ks3rw3EEn0SfRL9i+a1gViiXyX6WvOlm9cGYok+iT6J/kXz6kBKon+t+dLNqwMpif615ks3rw3EEv0q0deaL928NhBL9En0SfQvmtcGYol+lehrzZduXhuIJfok+iT6F81rA7FEv0r0teZLN68NxBJ9En0S/YvmtYFYol8l+lrzpZvXBmKJPok+if5F89pALNGvEn2t+dLNawOxRJ9En0T/onltIJboV4m+1nzp5rWBWKJPok+if9G8NhBL9KtEX2u+dPP/AYgwT7QvdQvfAAAAAElFTkSuQmCC');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
    width: 100%;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--surface-color);
    /* Increase blur just a touch for better separation on light hero */
    backdrop-filter: saturate(120%) blur(12px);
    transition: var(--transition);
    max-width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid var(--surface-border);
    min-height: 70px; /* Ensure consistent header height */
    contain: layout paint style; /* reduce reflow flicker on rotate */
}

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

.logo h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    background: none;
    margin: 0;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Social Navigation */
.social-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: 'Exo', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #d1d5db;
}
.bottom-social {
    display: none;
    width: 100%;
    margin: 0 auto;
    padding: 8px 20px 0;
}

@media (max-width: 768px) {
    .bottom-social { display: flex; justify-content: center; }
    .bottom-social .social-nav { gap: 18px; }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 44px; /* Better touch target */
    min-height: 44px;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icon svg {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(42, 254, 183, 0.2);
    color: #fff;
}

.social-icon:hover::before {
    opacity: 0.1;
}

.social-icon:hover svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-link {
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-button {
    background: var(--cta-bg);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--cta-text);
    transition: var(--transition);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    color: var(--cta-text);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px; /* Better touch target */
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 110; /* ensure above drawer */
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 1px;
}

/* Mobile header optimizations */
@media (max-width: 1024px) {
    header {
        padding: 18px 30px;
        min-height: 68px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 30px;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        min-width: 42px;
        min-height: 42px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        min-height: 65px;
    }
    /* Hide primary nav list on mobile; items are merged into drawer */
    .primary-nav { display: none; }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(5, 10, 16, 0.98);
        backdrop-filter: blur(15px);
        padding: 25px 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        opacity: 0;
        height: 0;
        overflow: hidden;
        border-radius: 0 0 12px 12px;
        z-index: 100; /* ensure above content */
    }
    
    nav ul.active {
        display: flex;
        opacity: 1;
        height: auto;
        padding: 25px 20px;
    }

    /* Mobile social icons */
    .social-nav {
        gap: 18px;
        justify-content: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
        min-width: 48px; /* Larger touch targets */
        min-height: 48px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .mobile-menu-toggle {
        display: flex;
        min-width: 48px;
        min-height: 48px;
        gap: 4px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 15px;
        min-height: 60px;
    }
    
    .logo h1 {
        font-size: 1.6rem;
        letter-spacing: -0.3px;
    }
    
    nav ul {
        padding: 20px 15px;
        gap: 18px;
    }
    
    .social-nav {
        gap: 16px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        min-width: 46px;
        min-height: 46px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .mobile-menu-toggle {
        min-width: 46px;
        min-height: 46px;
        padding: 10px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 390px) {
    header {
        padding: 10px 12px;
        min-height: 58px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        right: 12px;
    }
    
    nav ul {
        padding: 18px 12px;
        gap: 16px;
    }
    
    .social-nav {
        gap: 14px;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
}

/* Improve mobile menu animation and accessibility */
@media (max-width: 768px) {
    nav ul {
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    nav ul.active {
        transform: translateY(0);
    }
    
    /* Disable hover effects on touch devices for navigation */
    @media (hover: none) and (pointer: coarse) {
        .social-icon:hover {
            transform: none;
            box-shadow: none;
            border-color: rgba(255, 255, 255, 0.1);
        }
        
        .social-icon:hover::before {
            opacity: 0;
        }
        
        .social-icon:hover svg {
            transform: none;
            color: #d1d5db;
        }
        
        .social-icon:active {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            transform: scale(0.95);
        }
        
        .social-icon:active svg {
            color: var(--dark-bg);
        }
        
        .mobile-menu-toggle:hover {
            background-color: transparent;
        }
        
        .mobile-menu-toggle:active {
            background-color: rgba(255, 255, 255, 0.1);
            transform: scale(0.95);
        }
    }
}

/* Hero Section */
.hero {
    min-height: 72vh; /* move prices slightly lower */
    min-height: 72dvh; /* Dynamic viewport height for modern browsers */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 8px; /* tighter bottom spacing */
    position: relative;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 12px; /* less gap under hero content */
    gap: 48px; /* tighter blob-to-title spacing */
    padding: 0 20px;
}

.hero-text {
    flex: 0 1 auto;
    max-width: 600px; /* Increased width to prevent unwanted breaks */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.tagline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    display: block; /* Ensure block display */
}

.tagline .line1,
.tagline .line2 {
    display: inline-block;
    white-space: nowrap; /* Prevent text from breaking within each line */
}

.tagline br {
    display: block !important; /* Force line break between spans */
}

.hero-blob-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 auto;
    transform: translateY(-80px);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

#hero-blob {
    width: 100%;
    max-width: 420px; /* revert desktop size */
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.10)) drop-shadow(0 12px 50px rgba(0, 0, 0, 0.06));
    transform-origin: center center;
}

.blob-path, .blob-path-inner, .tagline {
    transform-origin: center center center;
}

/* Media queries for hero section */
@media (max-width: 1024px) {
    .hero {
        min-height: 68vh; /* tablet adjustment */
        padding: 56px 0 28px; /* tighter spacing */
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px; /* Reduced gap */
        margin-bottom: 30px;
    }

    .hero-text {
        padding-right: 0;
        align-items: center;
        max-width: 100%;
    }

    .tagline {
        font-size: 3.2rem; /* Slightly smaller */
        line-height: 1.1;
    }
    
    .tagline .line1,
    .tagline .line2 {
        display: inline-block;
        white-space: nowrap;
    }
    
    .tagline br {
        display: block !important;
    }

    .hero-blob-animation {
        margin-top: 0;
        width: 90%;
        max-width: 560px; /* increased size */
        transform: translateY(-60px); /* Raised higher */
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 64vh; /* mobile adjustment */
        padding: 48px 0 20px; /* tighter spacing */
    }
    
    .hero-content {
        gap: 30px;
        padding: 0 15px; /* Adjusted padding */
        margin-bottom: 20px;
    }
    
    .tagline {
        font-size: 2rem; /* smaller on mobile */
        line-height: 1.15; /* Better mobile line height */
        text-align: center;
        letter-spacing: 0.03em; /* subtle stretch */
        word-spacing: 0.08em; /* subtle spacing */
    }
    
    .tagline .line1,
    .tagline .line2 {
        display: inline-block;
        white-space: nowrap;
    }
    
    .tagline br {
        display: block !important; /* Force line breaks on mobile */
    }

    .hero-blob-animation {
        width: 98%;
        max-width: 560px; /* larger */
        transform: translateY(-90px); /* higher */
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: center;
    }
    
    #hero-blob g {
        transform: translate(-30, -12) scale(1.3) !important; /* bigger and slightly left */
    }
    
    #hero-blob {
        transform: scale(1.15) !important; /* slightly larger */
    }

    nav ul {
        background-color: rgba(5, 10, 16, 0.98);
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 58vh; /* small screens adjustment */
        padding: 44px 0 16px; /* tighter spacing */
    }
    
    .hero-content {
        gap: 25px;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .tagline {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 10px;
        letter-spacing: 0.02em;
        word-spacing: 0.06em;
    }
    
    .tagline .line1,
    .tagline .line2 {
        display: inline-block;
        white-space: nowrap;
    }
    
    .tagline br {
        display: block !important;
    }

    .hero-blob-animation {
        width: 94%;
        max-width: 420px; /* larger */
        transform: translateY(-75px); /* higher */
    }
    
    #hero-blob g {
        transform: translate(-32, -38) scale(1.3) !important; /* bigger and slightly left */
    }
    
    #hero-blob {
        transform: scale(1.18) !important; /* larger */
    }
    
    #hero-blob {
        transform: scale(1.18); /* ensure larger value wins */
    }
}

@media (max-width: 390px) {
    .hero {
        min-height: 54vh;
        padding: 36px 0 12px; /* tighter */
    }
    
    .tagline {
        font-size: 1.4rem; /* slightly smaller on very small screens */
        line-height: 1.2;
        letter-spacing: 0.01em;
        word-spacing: 0.04em;
    }
    
    .tagline .line1,
    .tagline .line2 {
        display: inline-block;
        white-space: nowrap;
    }
    
    .tagline br {
        display: block !important;
    }
    
    .hero-content {
        gap: 20px;
        padding: 0 8px;
    }
    
    .hero-blob-animation {
        width: 92%;
        max-width: 360px; /* larger */
        transform: translateY(-60px); /* higher */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Additional mobile-specific optimizations */
@media (max-width: 390px) {
    .hero {
        min-height: 54vh;
        padding: 36px 0 12px; /* tighter */
    }
    
    .tagline {
        font-size: 1.4rem; /* slightly smaller on very small screens */
        line-height: 1.2;
        letter-spacing: 0.01em;
        word-spacing: 0.04em;
    }
    
    .tagline .line1,
    .tagline .line2 {
        display: inline-block;
        white-space: nowrap;
    }
    
    .tagline br {
        display: block !important;
    }
    
    .hero-content {
        gap: 20px;
        padding: 0 8px;
    }
    
    .hero-blob-animation {
        width: 92%;
        max-width: 360px; /* larger */
        transform: translateY(-60px); /* higher */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Section Styles */
section {
    padding: 64px 0; /* slightly tighter global spacing */
    position: relative;
}

/* Reduced spacing for about section after hero */
.about {
    padding-top: 44px; /* bring "What is HyperStrategy?" closer */
}

.section-header {
    text-align: center;
    margin-bottom: 24px; /* tighter section header spacing */
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 3px;
    background: #FFFFFF;
    opacity: 0.9;
    margin: 0 auto;
}

/* Wrapper optimizations for mobile */
.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
    width: 100%;
}

/* Mobile-specific section spacing optimizations */
@media (max-width: 1024px) {
    section {
        padding: 56px 0;
    }
    
    .about {
        padding-top: 26px;
    }
    
    .section-header {
        margin-bottom: 28px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .wrapper {
        padding: 0 15px;
        padding-top: 85px; /* Increased to account for header + padding */
    }
}

@media (max-width: 768px) {
    section {
        padding: 42px 0;
    }
    
    .about {
        padding-top: 18px;
    }
    
    .section-header {
        margin-bottom: 24px;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .section-line {
        width: 60px;
        height: 2px;
    }
    
    .wrapper {
        padding: 0 15px;
        padding-top: 80px; /* Increased to properly clear header */
    }
}

@media (max-width: 480px) {
    section {
        padding: 30px 0;
    }
    
    .about {
        padding-top: 14px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
        line-height: 1.25;
    }
    
    .section-line {
        width: 50px;
        height: 2px;
    }
    
    .wrapper {
        padding: 0 12px;
        padding-top: 75px; /* Increased to properly clear header */
    }
}

@media (max-width: 390px) {
    section {
        padding: 35px 0;
    }
    
    .about {
        padding-top: 12px;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .wrapper {
        padding: 0 10px;
        padding-top: 70px; /* Increased to properly clear header */
    }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 254, 183, 0.3);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color-muted);
    font-family: var(--font-secondary);
}

/* Strategy Section */
.strategy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* tighter gap between text and blob */
    text-align: center;
}

.strategy-text {
    max-width: 800px;
    width: 100%;
}

.strategy-intro {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

.strategy-points {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.strategy-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.point-icon {
    margin-top: 5px;
    flex-shrink: 0;
}

.check-icon circle {
    fill: rgba(42, 254, 183, 0.15);
}

.check-icon path {
    stroke: #2AFEB7;
    stroke-width: 2.5;
}

.point-text h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #000; /* make headings black */
}

.point-text p {
    color: var(--text-color-muted);
    font-family: var(--font-secondary);
    line-height: 1.6;
}

.strategy-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px; /* larger visual area */
    width: 100%;
    margin: 8px 0 8px; /* bring blob closer to text */
}

.visual-container {
    width: 340px; /* larger strategy blob */
    height: 340px;
    position: relative;
}

/* Replace 3D cube with blob visual */
.strategy-blob {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* avoid capturing hover */
}

#strategy-blob-visual { width: 100%; height: 100%; display: block; overflow: visible; }

/* Style the strategy blob to inherit card colors */
#strategy-blob-visual .s-blob-outer {
    fill: rgba(8, 196, 229, 0.10);
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1.8px;
}

#strategy-blob-visual .s-blob-inner {
    fill: rgba(8, 196, 229, 0.10);
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1.6px;
}

/* Remove cube faces */

.front { transform: translateZ(100px); }
.back { transform: rotateY(180deg) translateZ(100px); }
.right { transform: rotateY(90deg) translateZ(100px); }
.left { transform: rotateY(-90deg) translateZ(100px); }
.top { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Community Section */
.community {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 48px 0; /* tighter spacing */
}

.community-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.community-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    text-align: center;
}

.community-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
}

.community-links {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.community-link span {
    font-weight: 500;
}

.network-visualization {
    position: relative;
    width: 100%;
    height: 350px;
    margin-top: 0;
}

.network-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(42, 254, 183, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Footer */
footer {
    padding: 20px 40px;
    background-color: var(--surface-color);
    border-top: 1px solid var(--surface-border);
    backdrop-filter: saturate(120%) blur(12px);
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-actions {
    display: flex;
    gap: 20px;
}

.footer-actions span {
    color: var(--text-color-muted);
    cursor: pointer;
    transition: var(--transition);
}

.footer-actions span:hover {
    color: var(--primary-color);
}

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

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.animated-svg-container {
    width: 280px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    perspective: 1000px;
}

#animated-logo {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-style: preserve-3d;
}

.logo-shape {
    filter: drop-shadow(0 0 10px rgba(42, 254, 183, 0.2));
}

.logo-glow {
    filter: url(#glow);
    transform-origin: center center;
    transform-style: preserve-3d;
}

/* OPTIMIZED Bubbles Animation - Performance focused */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* REMOVED perspective for performance */
}

.bubble {
    position: absolute;
    bottom: -100px; /* Start below the viewport */
    width: 15px;
    height: 15px;
    /* SIMPLIFIED background - removed complex gradients */
    background: rgba(42, 254, 183, 0.15);
    border-radius: 50%;
    /* SIMPLIFIED shadow - reduced complexity */
    box-shadow: 0 0 8px rgba(42, 254, 183, 0.1);
    /* REMOVED expensive backdrop-filter for performance */
    opacity: 0.2; /* Reduced opacity */
    border: 1px solid rgba(255, 255, 255, 0.03);
    will-change: transform; /* Optimized for transforms only */
    /* REMOVED transform-style for performance */
    transform-origin: center center;
    /* REMOVED transition for performance */
    display: block !important;
    visibility: visible !important;
}

/* SIMPLIFIED bubble variants - reduced complexity */
.bubble:nth-child(3n+1) {
    background: rgba(42, 254, 183, 0.12);
}

.bubble:nth-child(3n+2) {
    background: rgba(8, 196, 229, 0.12);
}

.bubble:nth-child(3n) {
    background: rgba(25, 225, 195, 0.12);
}

/* REMOVED additional complex bubble variations for performance */

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px; /* reduced space between hero and buttons */
    flex-wrap: wrap;
    align-items: center;
}

/* Animated Button Styles */
.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 36px;
  border: 1px solid rgba(42, 254, 183, 0.16); /* subtle mint border */
  font-size: 16px;
  /* soft mint-tinted surface */
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FFFC 100%);
  border-radius: 16px;
  font-weight: 700;
  color: var(--cta-text);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06), 0 2px 8px rgba(42, 254, 183, 0.10);
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease, background-color .25s ease;
  text-decoration: none;
  min-height: 56px; /* Improved touch target */
  min-width: 120px;
}

/* glossy highlight */
.animated-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.0) 55%);
  pointer-events: none;
}

.animated-button svg {
  position: absolute;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cta-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 9;
  transition: all .25s ease;
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 10px 22px rgba(42, 254, 183, 0.14), 0 6px 16px rgba(0,0,0,0.06);
  transform: translateY(-1px);
  background: linear-gradient(180deg, #FFFFFF 0%, #EFFFF8 100%);
}

.animated-button:hover .text {
  transform: translateX(0);
}

.animated-button:hover svg { stroke: var(--cta-text); }

.animated-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(42, 254, 183, 0.14), 0 2px 6px rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #F9FFFE 0%, #E6FFF4 100%);
}

.animated-button .circle { display: none; }

/* Mobile-optimized CTA buttons */
@media (max-width: 1024px) {
    .cta-buttons {
        gap: 15px;
        margin-top: 28px;
    }
    
    .animated-button {
        padding: 14px 32px;
        font-size: 15px;
        min-height: 52px;
        min-width: 110px;
    }
}

@media (max-width: 768px) {
    .cta-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
        width: 100%;
        max-width: 720px;
    }
    
    /* Ensure Vault button appears centered in the last row */
    .cta-buttons .animated-button:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .animated-button {
        width: auto;
        max-width: none;
        padding: 12px 18px;
        font-size: 15px;
        min-height: 48px;
        min-width: 112px;
        border-radius: 16px;
    }
    
    .animated-button:hover {
        border-radius: 12px;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) and (pointer: coarse) {
        .animated-button:hover {
            box-shadow: 0 0 0 2px var(--primary-color);
            color: var(--primary-color);
            border-radius: 50px;
        }
        
        .animated-button:hover .circle {
            width: 20px;
            height: 20px;
            opacity: 0;
        }
        
        .animated-button:hover svg {
            stroke: var(--primary-color);
        }
        
        /* Active state for touch */
        .animated-button:active {
            background-color: var(--primary-color);
            color: var(--dark-bg);
            transform: scale(0.98);
        }
        
        .animated-button:active svg {
            stroke: var(--dark-bg);
        }
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        gap: 10px;
        margin-top: 18px;
        padding: 0 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .animated-button {
        width: auto;
        max-width: none;
        padding: 12px 14px;
        font-size: 15px;
        min-height: 46px;
        min-width: 120px;
        font-weight: 600;
    }
    
    .animated-button .text {
        font-size: 16px;
        font-weight: 600;
    }
}

@media (max-width: 390px) {
    .cta-buttons {
        gap: 8px;
        margin-top: 16px;
        padding: 0 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .animated-button {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
        min-width: 108px;
    }
    
    .animated-button .text {
        font-size: 15px;
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

/* Media queries for hero section */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-text {
        padding-right: 0;
        align-items: center;
    }

    .tagline {
        font-size: 3.5rem;
    }

    .hero-blob-animation {
        margin-top: 0;
        width: 90%;
        max-width: 700px;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-fade {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
    padding-top: 0; /* Add explicit padding-top: 0 since wrapper handles the spacing */
    /* iOS Safari fix - ensure dark background */
    background-color: var(--dark-bg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Wrapper optimizations for mobile */
.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
    width: 100%;
    /* iOS Safari fix - ensure dark background */
    background-color: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* MOBILE: Hide particles container completely */
@media (max-width: 768px) {
    .particles-container {
        display: none !important; /* Completely hide on mobile */
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Disable noise overlay on mobile for performance */
    .noise {
        display: none !important;
        opacity: 0 !important;
    }
    
    /* iOS Safari loading screen fixes */
    .loading-screen {
        display: none !important; /* Force hide loading screen on mobile */
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Ensure main content is visible immediately on mobile */
    .main-content {
        opacity: 1 !important;
        visibility: visible !important;
        background-color: var(--dark-bg) !important; /* Keep desktop background */
        background: var(--bg-gradient) !important;   /* Match desktop gradient */
    }
    
    /* iOS Safari viewport fixes */
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background-color: var(--dark-bg) !important;
        background: var(--bg-gradient) !important;
        position: relative;
    }
    
    html {
        height: -webkit-fill-available;
        background-color: var(--dark-bg) !important;
        background: var(--bg-gradient) !important;
    }
    
    /* Ensure wrapper has dark background on mobile */
    .wrapper {
        background-color: transparent;
    }
}

/* Small mobile specific fixes */
@media (max-width: 480px) {
    /* Extra insurance for very small screens */
    html, body {
        background: var(--bg-gradient) !important;
        background-color: var(--dark-bg) !important;
    }
    
    .particles-container,
    .floating-particle {
        display: none !important;
    }
}

/* Remove particle animations on touch devices */
@media (pointer: coarse) {
    .particles-container {
        display: none !important;
    }
    
    .floating-particle {
        display: none !important;
        animation: none !important;
    }
}

/* HyperStrategy Section */
.hyperstrategy {
    padding: 100px 0;
    position: relative;
    background-color: rgba(15, 26, 30, 0.7);
}

.hyperstrategy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.hyperstrategy .protocol-description {
    width: 100%;
    margin-top: 30px;
}

.justified-text {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.hyperstrategy-intro {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Protocol Section */
.protocol {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(15, 26, 30, 0.9) 100%);
    position: relative;
}

.protocol-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.protocol-description {
    text-align: center;
}

.protocol-description h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.protocol-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Mechanics Section */
.mechanics {
    padding: 100px 0;
    background-color: rgba(15, 26, 30, 0.8);
    position: relative;
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mechanics-card {
    background: rgba(25, 35, 40, 0.6);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(42, 254, 183, 0.1);
    height: 100%;
}

.mechanics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 254, 183, 0.1);
    border-color: rgba(42, 254, 183, 0.3);
}

.mechanics-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.mechanics-card ul {
    list-style: none;
    padding: 0;
}

.mechanics-card li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
}

.mechanics-card .sub-item {
    padding-left: 20px;
    color: var(--text-color-muted);
}

/* FAQs Section */
.faqs {
    padding: 56px 0; /* tighter between title and FAQ */
    background-color: transparent;
    position: relative;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 50px;
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 24px 24px;
    backdrop-filter: saturate(120%) blur(12px);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    transition: var(--transition);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-toggle svg {
    stroke: #FFFFFF;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    color: var(--text-color-muted);
    line-height: 1.6;
}

.faq-item.active .faq-question h3 {
    color: #FFFFFF;
}

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

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* Reveal Animation Classes */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles for new sections */
@media (max-width: 768px) {
    .hyperstrategy, .protocol, .mechanics, .faqs {
        padding: 60px 0;
    }
    
    .mechanics-grid {
        grid-template-columns: 1fr;
    }
    
    .protocol-description h2 {
        font-size: 2.2rem;
    }
    
    .network-visualization {
        height: 300px;
    }
    
    .faq-question h3 {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    
    .community-content .network-visualization {
        height: 280px;
        margin-top: 30px;
    }
    
    .community-links {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hyperstrategy-intro {
        font-size: 1rem;
    }
    
    .protocol-description h2 {
        font-size: 1.9rem;
        margin-bottom: 18px;
        line-height: 1.25;
        padding: 0 8px;
    }
    
    .mechanics-card {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .network-visualization {
        height: 250px;
    }
    
    .network-node {
        width: 30px;
        height: 30px;
    }
    
    .network-center {
        width: 60px;
        height: 60px;
    }
    
    .user-icon {
        width: 40px;
        height: 40px;
    }
}

.network-connection {
    position: absolute;
    background-color: rgba(42, 254, 183, 0.2);
    height: 1px;
    transform-origin: left center;
    z-index: 1;
}

.network-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(42, 254, 183, 0.5);
}

.network-node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.node-1 { top: 20%; left: 30%; }
.node-2 { top: 15%; right: 25%; }
.node-3 { top: 70%; left: 20%; }
.node-4 { top: 65%; right: 15%; }
.node-5 { top: 40%; left: 15%; }
.node-6 { top: 35%; right: 20%; }

.user-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(42, 254, 183, 0.2);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon::before {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.8;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"/></svg>');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.network-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.5); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.2; }
} 

/* Improved mobile layout stacking */
@media (max-width: 1024px) {
    .strategy-content {
        flex-direction: column;
        gap: 20px; /* tighter */
        text-align: center;
    }
    
    .strategy-text {
        order: 1;
    }
    
    .strategy-visual {
        order: 2;
        min-height: 360px; /* larger */
        margin-top: 8px; /* tighter */
    }
    
    .visual-container {
        width: 320px;
        height: 320px;
    }
    
    .face {
        width: 150px;
        height: 150px;
    }
    
    .front { transform: translateZ(75px); }
    .back { transform: rotateY(180deg) translateZ(75px); }
    .right { transform: rotateY(90deg) translateZ(75px); }
    .left { transform: rotateY(-90deg) translateZ(75px); }
    .top { transform: rotateX(90deg) translateZ(75px); }
    .bottom { transform: rotateX(-90deg) translateZ(75px); }
    
    .strategy-intro {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .strategy-points {
        gap: 30px;
    }
    
    .community-links {
        gap: 25px;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .strategy-content { gap: 10px; }
    .strategy-points { gap: 18px; }
    .strategy-visual { margin-top: 2px; }
    
    .strategy-intro {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .strategy-points {
        gap: 20px;
    }
    
    .strategy-point {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .point-icon {
        margin-top: 0;
    }
    
    .point-text h4 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .point-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .strategy-visual {
        min-height: 300px; /* larger */
        margin-top: 6px; /* tighter */
    }
    
    .visual-container {
        width: 300px; /* slightly larger */
        height: 300px;
    }
    
    .face {
        width: 120px;
        height: 120px;
    }
    
    .front { transform: translateZ(60px); }
    .back { transform: rotateY(180deg) translateZ(60px); }
    .right { transform: rotateY(90deg) translateZ(60px); }
    .left { transform: rotateY(-90deg) translateZ(60px); }
    .top { transform: rotateX(90deg) translateZ(60px); }
    .bottom { transform: rotateX(-90deg) translateZ(60px); }
    
    .community-content h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .community-content p {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .community-links {
        gap: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    
    .community-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .strategy-content { gap: 8px; }
    .strategy-visual { margin-top: 0px; }
    
    .strategy-intro {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .strategy-points {
        gap: 20px;
    }
    
    .point-text h4 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .point-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .strategy-visual {
        min-height: 280px; /* slightly larger */
        margin-top: 4px; /* tighter */
    }
    
    .visual-container {
        width: 260px; /* slightly larger */
        height: 260px;
    }
    
    .face {
        width: 100px;
        height: 100px;
    }
    
    .front { transform: translateZ(50px); }
    .back { transform: rotateY(180deg) translateZ(50px); }
    .right { transform: rotateY(90deg) translateZ(50px); }
    .left { transform: rotateY(-90deg) translateZ(50px); }
    .top { transform: rotateX(90deg) translateZ(50px); }
    .bottom { transform: rotateX(-90deg) translateZ(50px); }
    
    .community-content h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .community-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .community-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .community-link {
        font-size: 0.85rem;
        padding: 8px 0;
    }
}

@media (max-width: 390px) {
    .strategy-content { gap: 6px; }
    .strategy-visual { margin-top: 0; }
    
    .strategy-intro {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .point-text h4 {
        font-size: 1rem;
    }
    
    .point-text p {
        font-size: 0.85rem;
    }
    
    .visual-container {
        width: 230px; /* slightly larger */
        height: 230px;
    }
    
    .face {
        width: 90px;
        height: 90px;
    }
    
    .front { transform: translateZ(45px); }
    .back { transform: rotateY(180deg) translateZ(45px); }
    .right { transform: rotateY(90deg) translateZ(45px); }
    .left { transform: rotateY(-90deg) translateZ(45px); }
    .top { transform: rotateX(90deg) translateZ(45px); }
    .bottom { transform: rotateX(-90deg) translateZ(45px); }
    
    .community-content h3 {
        font-size: 1.3rem;
    }
    
    .community-content p {
        font-size: 0.9rem;
    }
} 

/* Base typography optimizations */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improved text content styling */
.protocol-description p,
.justified-text {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.hyperstrategy-intro {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About content optimizations */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.protocol-description h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

/* Mobile typography optimizations */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .protocol-description p,
    .justified-text {
        font-size: 1.05rem;
        line-height: 1.65;
        margin-bottom: 18px;
    }
    
    .hyperstrategy-intro {
        font-size: 1.2rem;
        margin-bottom: 35px;
        line-height: 1.55;
    }
    
    .protocol-description h2 {
        font-size: 2.5rem;
        margin-bottom: 25px;
        line-height: 1.15;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        line-height: 1.5;
    }
    
    .protocol-description p,
    .justified-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 16px;
        text-align: left; /* Better for mobile reading */
    }
    
    .hyperstrategy-intro {
        font-size: 1.1rem;
        margin-bottom: 30px;
        line-height: 1.5;
        text-align: left;
        padding: 0 10px;
    }
    
    .protocol-description h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        line-height: 1.2;
        padding: 0 10px;
    }
    
    /* FAQ typography improvements */
    .faq-question h3 {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 0 18px;
    }
    
    /* Mechanics card typography */
    .mechanics-card h3 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .mechanics-card li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .protocol-description p,
    .justified-text {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .hyperstrategy-intro {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.5;
        padding: 0 8px;
    }
    
    .protocol-description h2 {
        font-size: 1.9rem;
        margin-bottom: 18px;
        line-height: 1.25;
        padding: 0 8px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        line-height: 1.35;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 0 16px;
    }
    
    .mechanics-card h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .mechanics-card li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 6px;
    }
    
    /* Footer typography */
    .footer-copyright p {
        font-size: 0.85rem;
        line-height: 1.4;
        text-align: center;
    }
}

@media (max-width: 390px) {
    html {
        font-size: 13px;
    }
    
    .protocol-description p,
    .justified-text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 14px;
        padding: 0 3px;
    }
    
    .hyperstrategy-intro {
        font-size: 0.95rem;
        margin-bottom: 22px;
        line-height: 1.45;
        padding: 0 5px;
    }
    
    .protocol-description h2 {
        font-size: 1.7rem;
        margin-bottom: 16px;
        line-height: 1.3;
        padding: 0 5px;
    }
    
    .faq-question h3 {
        font-size: 1.05rem;
        line-height: 1.3;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
        line-height: 1.45;
        padding: 0 0 14px;
    }
    
    .mechanics-card h3 {
        font-size: 1.1rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    
    .mechanics-card li {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 5px;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Enhanced readability for small screens */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .protocol-description p,
    .justified-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .hyperstrategy-intro {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .protocol-description h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        line-height: 1.25;
    }
}

/* Improved text selection and focus styles for mobile */
::selection {
    background-color: rgba(42, 254, 183, 0.2);
    color: var(--text-color);
}

::-moz-selection {
    background-color: rgba(42, 254, 183, 0.2);
    color: var(--text-color);
}

/* Better focus styles for accessibility */
a:focus,
button:focus,
.social-icon:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove focus outline for mouse users but keep for keyboard users */
.js-focus-visible a:focus:not(.focus-visible),
.js-focus-visible button:focus:not(.focus-visible),
.js-focus-visible .social-icon:focus:not(.focus-visible),
.js-focus-visible .mobile-menu-toggle:focus:not(.focus-visible) {
    outline: none;
} 

/* Mobile class added by JavaScript */
.is-mobile .loading-screen {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.is-mobile .main-content {
    opacity: 1 !important;
    visibility: visible !important;
}

.is-mobile .particles-container,
.is-mobile .floating-particle {
    display: none !important;
    visibility: hidden !important;
}

.is-mobile body {
    background-color: var(--dark-bg) !important;
    background: var(--bg-gradient) !important;
}

/* ---- New additions: primary nav, stats bar, how-it-works, features tweaks ---- */
/* Primary nav (desktop) */
.primary-nav {
    display: flex;
    gap: 24px;
    margin-right: 24px;
}

.primary-nav .nav-link {
    color: #e5e7eb;
    font-weight: 500;
}

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

/* Mobile behavior: keep social nav hidden drawer; collapse primary too */
@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }
  nav ul {
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  nav ul.active { transform: translateY(0); }
}

/* Stats Bar */
.stats-bar {
  padding: 4px 0 10px; /* pull stats closer to hero and FAQ */
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.stats-grid {
  max-width: 1200px; /* allow a bit more width so cards fit */
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px; /* even tighter */
}

.stat-card {
  background: rgba(5, 20, 22, 0.20); /* slightly more transparent */
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: saturate(120%) blur(12px);
}

/* Ensure stats show immediately without scroll-triggered reveal */
.stats-bar .reveal-element {
  opacity: 1 !important;
  transform: none !important;
}

/* Improve mid-page contrast (How It Works) */
.how-it-works .section-header h2 {
    color: #134E4A;
    -webkit-text-fill-color: #134E4A;
}
.how-it-works .section-line {
    background: rgba(19, 78, 74, 0.6);
}
/* Make global body text use the same deep-teal as the How It Works title */
body, p, .protocol-description p, .justified-text,
.strategy-intro, .point-text p, .feature-card p,
.community-content p, .faq-answer p {
    color: #134E4A;
}

.stat-label {
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.stat-subvalue {
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* How It Works */
.how-it-works { padding: 80px 0; }
.how-steps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: rgba(25, 35, 40, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
}
.step-number {
  color: var(--primary-color);
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 8px;
}
.step-title { font-size: 1.2rem; margin-bottom: 8px; }
.step-desc { color: var(--text-color-muted); }

@media (max-width: 1024px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .how-steps { grid-template-columns: 1fr; } }

/* Features spacing tweak */
.features { padding-top: 40px; }

@media (max-width: 768px) {
    #hero-blob g {
        transform: translate(-50, -10) scale(1.2) !important; /* further left per marker */
    }
}

@media (max-width: 480px) {
    #hero-blob g {
        transform: translate(-52, -35) scale(1.2) !important; /* further left on small screens */
    }
}

/* Ensure whole hero blob shifts 10px left on mobile */
@media (max-width: 768px) {
  #hero-blob { transform: translateX(-10px) scale(1.2) !important; }
}
@media (max-width: 480px) {
  #hero-blob { transform: translateX(-10px) scale(1.1) !important; }
}

/* Mobile spacing between stats and About title */
@media (max-width: 768px) {
  .stats-bar { padding-bottom: 24px; }
  .about { padding-top: 40px; }
}
@media (max-width: 480px) {
  .stats-bar { padding-bottom: 28px; }
  .about { padding-top: 44px; }
}
@media (max-width: 390px) {
  .stats-bar { padding-bottom: 28px; }
  .about { padding-top: 40px; }
}

/* Fix mobile scrolling beyond content */
@media (max-width: 768px) {
  body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
  }
  
  .main-content {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  .wrapper {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  /* Ensure footer stays at bottom */
  footer {
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  .main-content {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}

@media (max-width: 768px) {
  /* Center strategy point text on mobile */
  .strategy-point { text-align: center; align-items: center; }
  .strategy-point .point-text p { margin-left: auto; margin-right: auto; }
}

/* Make strategy point paragraphs black */
.strategy .point-text p { color: #000 !important; }

/* Center About section paragraphs on mobile */
@media (max-width: 768px) {
  .about .protocol-description p.justified-text { 
    text-align: center !important; 
    margin-left: auto; 
    margin-right: auto; 
  }
}

@media (max-width: 480px) {
  .about .protocol-description p.justified-text { 
    text-align: center !important; 
  }
}

@media (max-width: 390px) {
  .about .protocol-description p.justified-text { 
    text-align: center !important; 
  }
}

/* Make strategy point paragraphs match .strategy-intro style */
.strategy .point-text p {
  color: #134E4A !important;
  text-align: center;
  font-weight: 300;
}

/* Strategy paragraphs that use .justified-text should match About style */
.strategy .point-text p.justified-text {
  color: #134E4A; /* deep teal to match About */
  text-align: left !important; /* desktop: left for better readability */
  font-weight: 300;
}

@media (max-width: 768px) {
  /* Center Strategy paragraphs on mobile */
  .strategy .point-text p.justified-text { 
    text-align: center !important; 
    margin-left: auto; 
    margin-right: auto; 
  }
  /* Center About paragraphs on mobile (already set, ensure consistency) */
  .about .protocol-description p.justified-text { 
    text-align: center !important; 
    margin-left: auto; 
    margin-right: auto; 
  }
}