@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Pure Black & White Minimalist Palette */
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --accent: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(15, 15, 15, 0.4);

    --header-height: 80px;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 1100px;
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.85rem;
}

.mb-sm {
    margin-bottom: 1rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.mt-lg {
    margin-top: 4rem;
}

.mt-xl {
    margin-top: 8rem;
}

.mb-xl {
    margin-bottom: 8rem;
}

.py-lg {
    padding: 5rem 0;
}

/* Background Animated Glows */
.bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0) 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}

.top-glow {
    top: -20vw;
    left: 20%;
}

.bottom-glow {
    bottom: -30vw;
    right: 10%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(50px) scale(1.1);
    }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
    /* Important for waves */
}

/* Header SVG Waves */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.waves {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0px;
}

/* Animation */
.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* The requested header animation! */
.animate-header {
    animation: headerSlideDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-btn {
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-light);
}

/* Typography & Hierarchy */
.hero {
    position: relative;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section {
    position: relative;
    z-index: 10;
}

.full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.title-large {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.title-medium {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.micro-copy {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Layouts Grids */
.grid {
    display: grid;
}

/* Split Layout for Services */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cards-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-column {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

/* Glass Cards & Panels */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.5rem;
    /* Make more compact */
    backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    /* make them feel interactive */
}

.hover-lift:hover {
    transform: translateX(10px);
    /* Move right instead of up for vertical list */
    background: rgba(25, 25, 25, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Specific Neon Hover Colors for Cards */
.cards-column .glass-card[data-target="node-treasury"]:hover {
    border-color: #00f3ff;
    box-shadow: -5px 0 25px rgba(0, 243, 255, 0.3);
}

.cards-column .glass-card[data-target="node-token"]:hover {
    border-color: #b100ff;
    box-shadow: -5px 0 25px rgba(177, 0, 255, 0.3);
}

.cards-column .glass-card[data-target="node-compliance"]:hover {
    border-color: #39ff14;
    box-shadow: -5px 0 25px rgba(57, 255, 20, 0.3);
}

.cards-column .glass-card[data-target="node-liquidity"]:hover {
    border-color: #ff0055;
    /* Neon Pink/Red */
    box-shadow: -5px 0 25px rgba(255, 0, 85, 0.3);
}

/* Concept Map SVG */
.concept-map-container {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.concept-map-svg {
    width: 90%;
    height: 90%;
    overflow: visible;
}

.map-line {
    fill: none;
    stroke: var(--border-color-light);
    stroke-width: 2;
    stroke-dasharray: 6 6;
    animation: dash-flow 20s linear infinite;
}

@keyframes dash-flow {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.node-bg {
    fill: var(--bg-secondary);
    stroke: var(--border-color);
    stroke-width: 2;
    transition: all 0.4s ease;
}

.node-inner {
    fill: rgba(255, 255, 255, 0.1);
}

.node-glow {
    fill: none;
    stroke: transparent;
    stroke-width: 4;
    opacity: 0;
    transition: all 0.4s ease;
}

/* Node Interaction States */
.map-node {
    transition: transform 0.4s ease;
}

.map-node.active-node {
    transform: scale(1.1);
    transform-origin: center;
}

#node-treasury.active-node .node-bg {
    stroke: #00f3ff;
}

#node-treasury.active-node .node-glow {
    stroke: #00f3ff;
    opacity: 0.6;
    filter: blur(8px);
}

#node-treasury.active-node text {
    fill: #00f3ff;
    text-shadow: 0 0 10px #00f3ff;
}

#node-token.active-node .node-bg {
    stroke: #b100ff;
}

#node-token.active-node .node-glow {
    stroke: #b100ff;
    opacity: 0.6;
    filter: blur(8px);
}

#node-token.active-node text {
    fill: #b100ff;
    text-shadow: 0 0 10px #b100ff;
}

#node-compliance.active-node .node-bg {
    stroke: #39ff14;
}

#node-compliance.active-node .node-glow {
    stroke: #39ff14;
    opacity: 0.6;
    filter: blur(8px);
}

#node-compliance.active-node text {
    fill: #39ff14;
    text-shadow: 0 0 10px #39ff14;
}

#node-liquidity.active-node .node-bg {
    stroke: #ff0055;
}

#node-liquidity.active-node .node-glow {
    stroke: #ff0055;
    opacity: 0.6;
    filter: blur(8px);
}

#node-liquidity.active-node text {
    fill: #ff0055;
    text-shadow: 0 0 10px #ff0055;
}

/* End SVG Map */

.icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.glass-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.glass-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.7) 50%, rgba(15, 15, 15, 0) 100%);
}

.cta-box {
    padding: 5rem 2rem;
    border: 1px solid var(--border-color-light);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    margin-top: 4rem;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Animations Base (Delay & Triggers) */
@keyframes headerSlideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-anim-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-anim-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Core Typography Effect: Metallic Shimmer */
.shimmer-text {
    background: linear-gradient(110deg,
            #b2b2b2 15%,
            #ffffff 45%,
            #ffffff 55%,
            #b2b2b2 85%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% center;
    }
}

/* Footer Layout */
.footer {
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    /* Ultra clean */
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.links-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.link-group a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

/* Hero Actions Spacing */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3.5rem;
}


/* Responsive Design */
@media (max-width: 900px) {

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-column {
        order: -1;
        /* Move map above cards on mobile */
        aspect-ratio: auto;
        min-height: 350px;
    }

    .concept-map-svg {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .grid-cols-3,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .links-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .links-col {
        grid-template-columns: 1fr;
    }
}