/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* LIGHT THEME (Enhanced Contrast) */
    --neon-lime: #96D100;
    --neon-lime-rgb: 150, 209, 0;
    --dark-bg: #F5F5F0;
    --dark-surface: #FFFFFF;
    --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
    --card-border: rgba(0, 0, 0, 0.15);
    /* Stronger contrast against white */
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    --text-main: #111822;
    /* Deeper text */
    --text-muted: #4B5563;
    --chart-bar-1: rgba(150, 209, 0, 0.8);
    --chart-bar-2: rgba(31, 41, 55, 0.15);
    --chart-bar-3: rgba(150, 209, 0, 0.4);
    --mesh-line: rgba(0, 0, 0, 0.05);
    /* Darker mesh */
    --nav-bg: rgba(245, 245, 240, 0.6);
    --nav-scrolled: rgba(245, 245, 240, 0.9);
    --hero-gradient: linear-gradient(135deg, #111822 0%, #4b5563 100%);
    --btn-bg: #111822;
    --btn-text: #ffffff;
    --discord-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    --chart-bg: #fff;
    --prose-link: rgba(150, 209, 0, 0.3);
}

[data-theme="dark"] {
    /* DARK THEME (Reverse Colors) */
    --neon-lime: #ccff00;
    --neon-lime-rgb: 204, 255, 0;
    --dark-bg: #010101;
    --dark-surface: #0a0a0a;
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    --card-border: rgba(255, 255, 255, 0.12);
    /* Brighter border */
    --card-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --chart-bar-1: rgba(204, 255, 0, 0.8);
    --chart-bar-2: rgba(255, 255, 255, 0.15);
    --chart-bar-3: rgba(0, 255, 128, 0.4);
    --mesh-line: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(1, 1, 1, 0.6);
    --nav-scrolled: rgba(1, 1, 1, 0.85);
    --hero-gradient: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    --btn-bg: #f5f5f7;
    --btn-text: #000000;
    --discord-bg: radial-gradient(circle at center, rgba(88, 101, 242, 0.15) 0%, transparent 60%);
    --chart-bg: #010101;
    --prose-link: rgba(204, 255, 0, 0.3);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* SVG Mesh Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--mesh-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--mesh-line) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* Green Glow Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 25s infinite alternate ease-in-out;
}

.orb-1 {
    top: 10%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(var(--neon-lime-rgb), 0.35) 0%, transparent 60%);
}

.orb-2 {
    bottom: 0%;
    right: -5%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(var(--neon-lime-rgb), 0.25) 0%, transparent 70%);
    animation-delay: -7s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 80px) scale(1.1);
    }
}

/* Typography Links */
a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--neon-lime);
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

section {
    padding: 8rem 0;
    position: relative;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--mesh-line);
    transition: padding 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    padding: 1rem 0;
    background: var(--nav-scrolled);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom SVG App Icon */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

.custom-logo {
    width: 32px;
    height: 32px;
    background: rgba(var(--neon-lime-rgb), 0.15);
    border: 1px solid var(--neon-lime);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-lime);
    box-shadow: 0 0 15px rgba(var(--neon-lime-rgb), 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--neon-lime);
    color: #000;
    box-shadow: 0 4px 20px rgba(var(--neon-lime-rgb), 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    background: var(--mesh-line);
    border-color: var(--neon-lime);
    color: var(--text-main);
    box-shadow: none;
}

/* Ultra-Premium Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
    position: relative;
}

/* SVG Node Lines Background */
.hero-nodes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.hero-nodes path {
    stroke: var(--mesh-line);
}

.hero-nodes path:nth-child(2) {
    stroke: rgba(var(--neon-lime-rgb), 0.3);
}

/* Floating Data Points around Hero */
.data-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    animation: float 8s ease-in-out infinite;
}

.data-node .dot {
    width: 8px;
    height: 8px;
    background: var(--text-main);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--card-border);
}

.data-node.neon .dot {
    background: var(--neon-lime);
    box-shadow: 0 0 15px rgba(var(--neon-lime-rgb), 0.6);
}

.data-node .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.node-1 {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.node-2 {
    top: 35%;
    right: 15%;
    animation-delay: -2s;
}

.node-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: -4s;
}

.node-4 {
    bottom: 30%;
    right: 20%;
    animation-delay: -6s;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 3;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    position: relative;
    z-index: 3;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

/* Narrative Sections (The Problem & Concept) */
.narrative-block {
    max-width: 800px;
    margin: 0 auto 6rem;
    text-align: center;
}

.narrative-block h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.narrative-block p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* God-Tier Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(320px, auto);
    gap: 1.5rem;
    margin-top: 2rem;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

/* Interactive Mouse Glow Logic for Theme Layering */
.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(var(--neon-lime-rgb), 0.08),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card::after {
    content: "";
    position: absolute;
    inset: 0px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(var(--neon-lime-rgb), 0.3),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-card>* {
    position: relative;
    z-index: 3;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
    grid-column: span 1;
}

.bento-wide {
    grid-column: span 2;
}

/* Mock Charts inside Bento Boxes */
.mock-chart-container {
    height: 150px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    position: relative;
}

.mock-bar {
    flex: 1;
    background: var(--chart-bar-2);
    border-radius: 6px 6px 0 0;
    position: relative;
    border-top: 2px solid var(--mesh-line);
    animation: growBar 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: bottom;
    opacity: 0;
}

.mock-bar.highlight {
    background: linear-gradient(180deg, var(--chart-bar-1) 0%, rgba(var(--neon-lime-rgb), 0.2) 100%);
    border-top: 2px solid var(--neon-lime);
}

@keyframes growBar {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.circular-chart {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--neon-lime) 0% 75%, var(--mesh-line) 75% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px var(--mesh-line);
}

.circular-chart::after {
    content: "98%";
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--chart-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: inset 0 2px 5px var(--mesh-line);
}

.bento-text-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.bento-text-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Staggered Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-wide {
        grid-column: span 2;
    }

    .bento-tall {
        grid-row: span 1;
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: auto;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .nav-links {
        display: none;
    }

    .node-1,
    .node-2,
    .node-3,
    .node-4 {
        display: none;
    }
}

/* Interactive Discord Section */
.discord-interactive {
    background: var(--discord-bg);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 32px;
    padding: 6rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px);
    box-shadow: var(--card-shadow);
}

.discord-interactive::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.discord-interactive h2 {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.discord-interactive p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 3rem;
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    border: none;
}

.btn-discord:hover {
    background: #4752C4;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--neon-lime);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

/* Prose for Narrative Docs (Privacy, Developer) */
.prose {
    max-width: 800px;
    margin: 10rem auto 4rem;
    color: var(--text-main);
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.prose h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.prose h2 {
    color: var(--text-main);
    margin: 4rem 0 1.5rem;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.prose h3 {
    color: var(--text-main);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.prose p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

.prose ul {
    margin: 1.5rem 0 2rem;
    padding-left: 2rem;
}

.prose li {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.prose a {
    color: var(--neon-lime);
    border-bottom: 1px solid var(--prose-link);
}

.prose a:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

.meta-label {
    display: inline-block;
    color: var(--neon-lime);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    background: rgba(var(--neon-lime-rgb), 0.15);
    border-radius: 100px;
    border: 1px solid rgba(var(--neon-lime-rgb), 0.3);
}