:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-primary: #6d5dfc;
    --accent-secondary: #21d1ff;
    --accent-gold: #ffd700;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}


.logo-container img {
    height: 35px;
    width: auto;
    /* Default: No filter for icons */
}

/* Only whiten the text logo */
.nav-logo-text {
    filter: brightness(0) invert(1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn:hover {
    background: white;
    color: black;
    transform: scale(1.05);
}

/* Language Dropdown */
.lang-wrapper {
    position: relative;
    display: inline-block;
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 160px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.lang-wrapper.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-option.selected {
    color: var(--accent-secondary);
    background: rgba(33, 209, 255, 0.1);
}

/* SCENE 1: HERO */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title-container {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.big-text {
    font-size: 10vw;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(50px);
}

.sub-text {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 40px auto;
    color: #a0a0a0;
    opacity: 0;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        top: 10px;
        opacity: 1;
    }

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

/* SCENE 2: CARD STACK SCROLLYTELLING (Split Layout) */
.stack-section {
    position: relative;
    background: #000;
    z-index: 10;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.split-container {
    width: 90vw;
    max-width: 1400px;
    height: 80vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LEFT: The Card Stack */
.card-stack-wrapper {
    width: 45vw;
    /* Fixed width for the visual side */
    max-width: 500px;
    height: 60vh;
    max-height: 700px;
    position: relative;
    /* No margin auto, relying on flex justify */
}

/* The Card */
.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: center bottom;
    transition: box-shadow 0.3s;
}

/* Z-Index logic: Card 1 (Top Code) is FRONT. */
.card-1 {
    z-index: 4;
    background: linear-gradient(160deg, #1a1a1a, #050505);
    border-color: rgba(109, 93, 252, 0.3);
}

.card-2 {
    z-index: 3;
    background: linear-gradient(160deg, #1f1f1f, #0a0a0a);
    border-color: rgba(255, 215, 0, 0.2);
}

.card-3 {
    z-index: 2;
    background: linear-gradient(160deg, #1a1a1a, #050505);
    border-color: rgba(33, 209, 255, 0.3);
}

.card-4 {
    z-index: 1;
    background: #000;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Visuals Only (No Text inside) */
.card-visual-only {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

/* RIGHT: Text Stack */
.text-stack-wrapper {
    width: 45%;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 5%;
}

.info-block {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    /* We animate opacity and Y */
}

.text-1 {
    opacity: 1;
    visibility: visible;
}

/* Initial State */

.info-block h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, white, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.info-block p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Smaller CTA button for the text block */
.small-btn {
    padding: 15px 40px;
    font-size: 1rem;
}

/* Visual Elements Specifics */
.glow-orb {
    width: 25vmin;
    height: 25vmin;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: pulse 4s infinite;
}

.grid-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.card-visual-only h1 {
    position: absolute;
    font-size: 5rem;
    z-index: 2;
    letter-spacing: 5px;
    opacity: 0.8;
}

.shield-huge {
    font-size: 15vmin;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
}

.chart-svg {
    width: 80%;
    overflow: visible;
    filter: drop-shadow(0 0 10px #21d1ff);
}

.float-stat {
    position: absolute;
    bottom: 30%;
    right: 15%;
    background: #111;
    padding: 20px 30px;
    border-radius: 20px;
    border: 1px solid #333;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 3s ease-in-out infinite;
}

.float-stat span {
    display: block;
    font-size: 1rem;
    color: #888;
}

.float-stat strong {
    font-size: 2.5rem;
    color: white;
}

.ui-mockup {
    width: 80%;
    height: 70%;
    background: #1a1a1a;
    border-radius: 20px;
    border: 1px solid #333;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ui-bar {
    width: 100%;
    height: 25px;
    background: #333;
    border-radius: 8px;
}

.ui-row {
    width: 100%;
    height: 50px;
    background: #222;
    border-radius: 8px;
}

.ui-row.short {
    width: 60%;
}

.btn-mock {
    align-self: flex-end;
    width: 100px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 8px;
}


@keyframes float {

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

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

/* Mobile */
/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet & Mobile - Split Container */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
        gap: 40px;
        align-items: center;
    }

    /* Cards stay on top with animation enabled */
    .card-stack-wrapper {
        width: 85vw;
        max-width: 420px;
        height: 60vh;
        max-height: 550px;
        margin: 0 auto;
        position: relative;
    }

    /* Single text display area below cards */
    .text-stack-wrapper {
        width: 85vw;
        max-width: 500px;
        height: auto;
        min-height: 300px;
        padding: 0;
        text-align: center;
        margin: 0 auto;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* All text blocks occupy same space (overlay) */
    .info-block {
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        padding: 30px 25px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .info-block h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .info-block p {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .tag {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-bottom: 10px;
    }

    .small-btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

/* SCENE 3: FEATURES (Horizontal) */
.features-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
    z-index: 20;
}

.features-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 5vw;
}

.intro-card {
    min-width: 450px;
    height: 500px;
    background: linear-gradient(135deg, rgba(109, 93, 252, 0.15), rgba(0, 0, 0, 0.7));
    border-radius: 40px;
    border: 1px solid rgba(109, 93, 252, 0.3);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.intro-card h2 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 30px;
}

.feature-card {
    min-width: 400px;
    height: 500px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: var(--accent-primary);
    background: rgba(109, 93, 252, 0.1);
    transform: translateY(-10px);
}

.f-icon {
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 30px;
}

.f-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.f-desc {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* SCENE 4: CTA */
.cta-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(109, 93, 252, 0.2) 0%, rgba(0, 0, 0, 1) 70%);
}

.cta-title {
    font-size: 5rem;
    margin-bottom: 50px;
    font-weight: 800;
}

.glowing-btn {
    display: inline-block;
    padding: 24px 70px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: transparent;
    border: 2px solid white;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    z-index: 1;
}

.glowing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: white;
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glowing-btn:hover {
    color: black;
}

.glowing-btn:hover::before {
    width: 100%;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */
@media (max-width: 768px) {

    /* Typography */
    .big-text {
        font-size: 12vw;
        line-height: 1.1;
    }

    .sub-text {
        font-size: 1rem;
        padding: 0 20px;
        max-width: 90%;
    }

    /* Hero Section */
    .hero-section {
        padding: 100px 20px 60px;
        min-height: 90vh;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator p {
        font-size: 0.85rem;
    }

    /* Navigation */
    nav {
        padding: 12px 20px;
    }

    .logo-container img {
        height: 28px;
    }

    .header-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .header-btn span {
        display: none;
    }

    .header-btn i {
        margin: 0;
    }

    /* Language Dropdown */
    .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 150px;
    }

    /* Card Stack on Mobile */
    .card-stack-wrapper {
        width: 90vw;
        height: 50vh;
        max-height: 450px;
    }

    .card {
        border-radius: 25px;
    }

    .card-visual-only h1 {
        font-size: 3.5rem;
    }

    .shield-huge {
        font-size: 10vmin;
    }

    .float-stat {
        padding: 15px 20px;
        bottom: 25%;
        right: 10%;
    }

    .float-stat strong {
        font-size: 2rem;
    }

    /* Text Stack on Mobile */
    .text-stack-wrapper {
        width: 90vw;
        padding: 0 15px;
    }

    .info-block {
        padding: 0 10px;
        margin-bottom: 50px;
    }

    .info-block h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .info-block p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .tag {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .small-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* Features Section */
    .feature-card {
        min-width: 85vw;
        height: auto;
        min-height: 350px;
        padding: 30px;
    }

    .intro-card {
        min-width: 85vw;
        margin-bottom: 20px;
        padding: 40px 30px;
    }

    .intro-card h2 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .intro-card p {
        font-size: 1rem;
    }

    .f-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .f-title {
        font-size: 1.6rem;
    }

    .f-desc {
        font-size: 1rem;
    }

    /* CTA Section */
    .cta-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .glowing-btn {
        padding: 18px 50px;
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 20px 0;
    }

    .footer-logo {
        flex-direction: column;
        gap: 10px;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-copy {
        font-size: 0.85rem;
        margin-top: 10px;
    }
}

/* Small Mobile - Extra Optimization */
@media (max-width: 480px) {
    .big-text {
        font-size: 14vw;
    }

    .card-stack-wrapper {
        height: 45vh;
    }

    .info-block h2 {
        font-size: 1.75rem;
    }

    .info-block p {
        font-size: 0.95rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .glowing-btn {
        padding: 16px 40px;
        font-size: 1.1rem;
    }

    .intro-card h2 {
        font-size: 2rem;
    }

    .f-title {
        font-size: 1.4rem;
    }
}

/* FOOTER */
footer {
    padding: 80px 5vw;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}


.footer-logo img {
    height: 40px;
    /* Default: No filter */
}

.footer-logo-text {
    filter: brightness(0) invert(1);
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
    }
}