:root {
    /* Color Palette - Cyberpunk */
    --bg-dark: #0a0a0f;
    --neon-green: #00ff12;
    --neon-pink: #ff007f;
    --electric-blue: #00f0ff;
    --text-main: #ffffff;
    --text-muted: #a0a0B0;
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

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

/* Background Effects */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--neon-pink);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--electric-blue);
}

/* Utilities */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* Buttons */
.btn {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cyber-btn {
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    position: relative;
}

.cyber-btn:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-green);
}

.cyber-btn-primary {
    background: var(--neon-pink);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px var(--neon-pink);
}

.cyber-btn-primary:hover {
    background: #ff3399;
    box-shadow: 0 0 30px var(--neon-pink);
    transform: translateY(-2px);
}

.cyber-btn-outline {
    background: transparent;
    color: var(--electric-blue);
    border: 1px solid var(--electric-blue);
}

.cyber-btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px var(--electric-blue);
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
    font-weight: 900;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--electric-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(21px, 9999px, 86px, 0);
    }

    5% {
        clip: rect(69px, 9999px, 73px, 0);
    }

    10% {
        clip: rect(81px, 9999px, 20px, 0);
    }

    15% {
        clip: rect(93px, 9999px, 70px, 0);
    }

    20% {
        clip: rect(32px, 9999px, 23px, 0);
    }

    25% {
        clip: rect(50px, 9999px, 50px, 0);
    }

    30% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    35% {
        clip: rect(61px, 9999px, 48px, 0);
    }

    40% {
        clip: rect(27px, 9999px, 80px, 0);
    }

    45% {
        clip: rect(15px, 9999px, 34px, 0);
    }

    50% {
        clip: rect(72px, 9999px, 25px, 0);
    }

    55% {
        clip: rect(33px, 9999px, 66px, 0);
    }

    60% {
        clip: rect(96px, 9999px, 45px, 0);
    }

    65% {
        clip: rect(84px, 9999px, 12px, 0);
    }

    70% {
        clip: rect(45px, 9999px, 38px, 0);
    }

    75% {
        clip: rect(7px, 9999px, 55px, 0);
    }

    80% {
        clip: rect(52px, 9999px, 18px, 0);
    }

    85% {
        clip: rect(88px, 9999px, 92px, 0);
    }

    90% {
        clip: rect(24px, 9999px, 63px, 0);
    }

    95% {
        clip: rect(68px, 9999px, 87px, 0);
    }

    100% {
        clip: rect(11px, 9999px, 29px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }

    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }

    15% {
        clip: rect(75px, 9999px, 5px, 0);
    }

    20% {
        clip: rect(67px, 9999px, 61px, 0);
    }

    25% {
        clip: rect(14px, 9999px, 79px, 0);
    }

    30% {
        clip: rect(1px, 9999px, 18px, 0);
    }

    35% {
        clip: rect(86px, 9999px, 8px, 0);
    }

    40% {
        clip: rect(92px, 9999px, 40px, 0);
    }

    45% {
        clip: rect(60px, 9999px, 28px, 0);
    }

    50% {
        clip: rect(3px, 9999px, 98px, 0);
    }

    55% {
        clip: rect(38px, 9999px, 53px, 0);
    }

    60% {
        clip: rect(22px, 9999px, 35px, 0);
    }

    65% {
        clip: rect(41px, 9999px, 64px, 0);
    }

    70% {
        clip: rect(9px, 9999px, 22px, 0);
    }

    75% {
        clip: rect(55px, 9999px, 46px, 0);
    }

    80% {
        clip: rect(97px, 9999px, 76px, 0);
    }

    85% {
        clip: rect(29px, 9999px, 11px, 0);
    }

    90% {
        clip: rect(81px, 9999px, 58px, 0);
    }

    95% {
        clip: rect(70px, 9999px, 82px, 0);
    }

    100% {
        clip: rect(19px, 9999px, 91px, 0);
    }
}

/* Typography elements */
.logo .glitch {
    font-size: 2rem;
}

.cyber-text {
    font-family: var(--font-mono);
    color: var(--neon-green);
    letter-spacing: 2px;
}

.highlight-pink {
    color: var(--neon-pink);
}

.highlight-blue {
    color: var(--electric-blue);
}

.highlight-green {
    color: var(--neon-green);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 0;
    gap: 2.5rem;
}

.hero-content {
    flex: 1 1 450px;
    max-width: 480px;
    z-index: 5;
    position: relative;
}

.hero-title {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    line-height: 1.1;
    margin: 1rem 0;
    text-transform: uppercase;
}

.subtitle {
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 440px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.hero-graphic {
    flex: 1 1 380px;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 440px;
    max-width: 460px;
    width: 100%;
}

.graphic-composition {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mascot {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.5);
    z-index: 2;
    animation: floatMascot 6s ease-in-out infinite;
}

@keyframes floatMascot {

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

    50% {
        transform: translateY(-15px);
    }
}

.floating-panel-1 {
    position: absolute;
    bottom: -20px;
    left: -15px;
    z-index: 10;
    transform: rotate(-5deg);
}

.floating-panel-2 {
    position: absolute;
    top: 40px;
    right: -20px;
    z-index: 10;
    padding: 10px 20px;
    border-radius: 8px;
    transform: rotate(5deg);
    border-left: 4px solid var(--electric-blue);
    background: rgba(0, 0, 0, 0.8);
}

/* Cyber Card */
.cyber-card {
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 250px;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.9);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.card-body p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

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

/* About Section */
.pattern-bg {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.layout-split {
    display: flex;
    justify-content: center;
}

.content-box {
    padding: 3rem;
    border-radius: 15px;
    max-width: 800px;
    border-top: 4px solid var(--electric-blue);
}

.bullet-list {
    list-style: none;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.bullet-list li {
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.bullet-list li:hover {
    transform: translateX(10px);
    color: var(--electric-blue);
}

.desc-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    /* The 42-character deployer address has no break point; let it wrap on a phone */
    overflow-wrap: anywhere;
}

/* Roadmap Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    margin-left: auto;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
}

.timeline-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.timeline-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.timeline-marker {
    position: absolute;
    top: 50%;
    left: -15%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--text-muted);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: auto;
    right: -15%;
}

.timeline-item.active .timeline-marker {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    background: var(--neon-green);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--electric-blue);
    box-shadow: 0 0 10px var(--electric-blue);
}

/* Tokenomics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    container-type: inline-size;
    padding: 2rem 0.75rem;
    border-radius: 15px;
    transition: transform 0.3s;
    border-bottom: 5px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--neon-pink);
}

.stat-num {
    font-size: clamp(1.5rem, 13cqi, 2.6rem);
    margin-bottom: 1rem;
    white-space: nowrap;
    word-break: normal;
    letter-spacing: -0.02em;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: 50px;
}

.social-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.disclaimer {
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Privacy note (SAN-64): reference text, so it reads left-aligned at a
   comfortable measure even though the rest of the footer is centred. */
.privacy {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.privacy summary {
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: var(--electric-blue);
}

.privacy summary:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
}

.privacy p {
    text-align: left;
    line-height: 1.7;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
        flex: 1 1 auto;
    }

    .subtitle {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-graphic {
        margin-top: 1rem;
        width: 100%;
        max-width: 450px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-container {
        padding: 0 1rem;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* "// HYPERLIQUID_ALL_COINS_SPOT_MARKET" is one unbreakable word: size it to the phone, and the <wbr>s in the markup wrap it after an underscore below ~340px */
    .pre-title {
        font-size: clamp(0.7rem, 3.2vw, 1rem);
        letter-spacing: 1px;
    }

    .hero-graphic {
        margin-top: 3rem;
        width: 100%;
    }

    .floating-panel-1,
    .floating-panel-2 {
        display: none;
        /* Hide floating panels on mobile for cleaner view */
    }

    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: auto;
        margin: 0 0 0 40px;
        text-align: left;
    }

    .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: -30px;
        transform: translateY(-50%);
    }
}