:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-color: #00f2ff;
    --secondary-color: #bd00ff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-heading);
}

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

/* Curtain Intro Styles */
.curtain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curtain-left,
.curtain-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #000;
    transition: transform 3s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain-left {
    left: 0;
    transform-origin: left;
}

.curtain-right {
    right: 0;
    transform-origin: right;
}

.curtain-logo {
    position: relative;
    z-index: 100000;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.logo-text {
    letter-spacing: -2px;
}

.logo-dot {
    color: var(--primary-color);
}

/* Open State */
.curtain-open .curtain-left {
    transform: translateX(-100%);
}

.curtain-open .curtain-right {
    transform: translateX(100%);
}

.curtain-open .curtain-logo {
    opacity: 0;
}

/* Background Effects */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(189, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 255, 0.15) 0%, transparent 50%);
    filter: blur(100px);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJibHVyIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNibHVyKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    pointer-events: none;
    opacity: 0.4;
}

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

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-glow {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.4);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.6);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn i {
    margin-right: 0.5rem;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(5, 5, 5, 0.6);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--primary-color);
}

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0;
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.separator {
    color: rgba(255, 255, 255, 0.2);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: white;
}

/* Hero */
.hero {
    padding-top: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

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

.badge-new {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 242, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.app-mockup {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.glow-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 3;
}

.floating-card {
    position: absolute;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 4;
    animation: float 6s ease-in-out infinite;
    line-height: 1.3;
}

#crypto-ticker {
    transition: opacity 0.2s ease-in-out;
    display: inline-block;
}

#hero-title-suffix {
    transition: opacity 0.5s ease-in-out;
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    /* More visible glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-1 {
    top: 10%;
    right: -20px;
    color: var(--secondary-color);
    animation-delay: 0s;
}

.float-2 {
    bottom: 20%;
    left: -40px;
    color: var(--primary-color);
    animation-delay: 3s;
}

@keyframes float {

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

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

/* Features */
.features {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    flex: 1 1 300px;
    max-width: 350px;
}

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: transform 0.3s;
}

.glass-panel:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.color-1 {
    background: rgba(0, 242, 255, 0.2);
    color: var(--primary-color);
}

.color-2 {
    background: rgba(189, 0, 255, 0.2);
    color: var(--secondary-color);
}

.color-3 {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.glass-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.glass-panel p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Newsletter */
.glass-section {
    position: relative;
    padding: 6rem 0;
    margin: 4rem 0;
    overflow: hidden;
}

.glass-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.newsletter-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.join-form {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.glass-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    width: 300px;
    outline: none;
}

.glass-input:focus {
    border-color: var(--primary-color);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        text-align: left;
    }
}

.legal-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 800px;
    line-height: 1.5;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1.5rem;
    }
}

/* Degen Mode Styles */
body.degen-mode {
    --primary-color: #00ff00;
    --secondary-color: #00ff00;
    --text-main: #00ff00;
    --text-muted: #00aa00;
    font-family: 'Roboto Mono', monospace !important;
}

body.degen-mode *:not(.fas):not(.far):not(.fab):not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: 'Roboto Mono', monospace !important;
}

/* Ensure icons keep their font */
body.degen-mode .fas,
body.degen-mode .far,
body.degen-mode .fa,
body.degen-mode .fa-solid,
body.degen-mode .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
}

body.degen-mode .fab,
body.degen-mode .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

body.degen-mode .gradient-bg {
    background: #000;
    background-image:
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    filter: none;
    opacity: 1;
}

body.degen-mode .noise-overlay {
    opacity: 0.1;
    mix-blend-mode: overlay;
}

body.degen-mode .glass-header,
body.degen-mode .glass-panel,
body.degen-mode .newsletter-content,
body.degen-mode .feature-card,
body.degen-mode .floating-card {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    border-radius: 0 !important;
}

body.degen-mode .btn {
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.degen-mode .btn-primary,
body.degen-mode .btn-glow {
    background: rgba(0, 255, 0, 0.1) !important;
    color: #00ff00 !important;
    border: 1px solid #00ff00 !important;
    box-shadow: 0 0 5px #00ff00 !important;
}

body.degen-mode .btn-primary:hover {
    background: #00ff00;
    color: black;
    box-shadow: 0 0 20px #00ff00;
}

body.degen-mode h1 {
    text-transform: uppercase;
    text-shadow: 0 0 10px #00ff00;
    animation: glitch 1s linear infinite;
}

body.degen-mode .app-mockup {
    filter: grayscale(100%) sepia(100%) hue-rotate(50deg) saturate(500%);
    border: 1px solid #00ff00;
}

@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

body.degen-mode .gradient-text {
    background: none;
    -webkit-text-fill-color: #00ff00;
    color: #00ff00;
}

body.degen-mode .legal-text {
    text-align: left !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
}

body.degen-mode .footer-bottom {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
}

@media (min-width: 768px) {
    body.degen-mode .footer-bottom {
        text-align: left !important;
        align-items: flex-end !important;
    }
}

/* Specific Logo Colors in Degen Mode */
body.degen-mode .logo {
    font-family: 'Outfit', sans-serif !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
    color: #ffffff !important;
}

body.degen-mode .logo .dot {
    color: #00f2ff !important;
}

/* Hide Newsletter in Degen Mode */
body.degen-mode .newsletter {
    display: none !important;
}

/* Degen Only Elements */
.degen-only {
    display: none !important;
}

body.degen-mode .degen-only {
    display: block !important;
}

/* --- Moneyflow Page Styles --- */
.page-header {
    padding-top: 180px;
    /* Increased from 120px to avoid header overlap */
    padding-bottom: 60px;
    text-align: center;
}

.flow-section {
    padding: 0 0 100px;
    /* Reduced top padding as page-header handles it */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.flow-node {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    width: 250px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.flow-node:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.node-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.node-icon.bank i {
    color: var(--text-muted);
}

.node-icon.duo {
    color: #00f2ff;
}

.node-icon.wallet i {
    color: var(--secondary-color);
}

.node-icon.defi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -10px;
    /* Overlap effect */
}

.defi-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: #fff;
    transition: transform 0.3s ease;
    z-index: 1;
}

.defi-logo:hover {
    transform: scale(1.2) translateY(-5px);
    z-index: 10;
}

.defi-logo:nth-child(2) {
    margin-left: -15px;
}

.defi-logo:nth-child(3) {
    margin-left: -15px;
}

.flow-arrow {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-label {
    background: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.flow-particle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--primary-color);
    animation: flowMove 2s infinite linear;
}

@keyframes flowMove {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.duo-split {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
    /* Ensure vertical centering */
    height: 100%;
    /* Ensure full height usage if parent allows */
}

.duo-part {
    font-size: 0.8rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    /* Fixed height to ensure alignment */
}

/* Return Flow Styles */
.bank-duo-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    /* Ensure z-index is handled */
    z-index: 1;
}

.return-flow {
    position: absolute;
    bottom: -60px;
    left: 125px;
    /* Center of Bank node (250px / 2) */
    right: 125px;
    /* Center of DUO node */
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
    z-index: 0;
}

.return-flow .arrow-label {
    transform: translateY(50%);
}

.return-particle {
    position: absolute;
    bottom: -2px;
    /* On the border */
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--text-muted);
    /* Simple animation moving right to left along the bottom */
    animation: returnMove 3s infinite linear;
}

@keyframes returnMove {
    0% {
        right: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        right: 100%;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .flow-container {
        flex-direction: column;
    }

    .flow-arrow {
        min-width: 2px;
        min-height: 100px;
        width: 2px;
    }

    .flow-particle {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        animation: flowMoveVertical 2s infinite linear;
    }

    @keyframes flowMoveVertical {
        0% {
            top: 0;
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            top: 100%;
            opacity: 0;
        }
    }
}