/* ========================================
   CSS Variables (from Figma Design)
   ======================================== */
:root {
    /* Primary Colors */
    --color-primary-50: #EDE9FF;
    --color-primary-300: #9179FF;
    --color-primary-400: #6D4CFF;
    --color-primary-500: #481FFF;
    --color-primary-600: #3A19CC;
    --color-primary-700: #2B1399;
    --color-primary-800: #1D0C66;
    --color-primary-900: #0E0633;
    --color-primary-950: #080127;

    /* Neutral Colors */
    --color-neutral-200: #CCCCCC;
    --color-neutral-300: #B2B2B2;
    --color-neutral-400: #999999;
    --color-neutral-500: #808080;
    --color-neutral-600: #666666;
    --color-neutral-700: #4D4D4D;
    --color-neutral-800: #333333;
    --color-neutral-900: #1A1A1A;

    /* Surface Colors */
    --color-surface-white: #FFFFFF;
    --color-surface-black: #0D0D0D;

    /* Typography */
    --font-primary: 'Staatliches', cursive;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 80px 0;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: var(--color-primary-950);
    color: var(--color-surface-white);
    line-height: 1.6;
    overflow-x: hidden !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Navigation
   ======================================== */
/* ========================================
   Navigation - Updated to Match Figma
   ======================================== */
.navbar {
    width: 100%;
    padding: 12px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #EDE9FF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: transparent;
}

.navbar .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--color-surface-white);
}

.navbar.scrolled .nav-links a:hover::after,
.navbar.scrolled .nav-links a.active::after {
    background: var(--color-primary-300);
}

.navbar.scrolled .btn-secondary {
    color: var(--color-surface-white);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 155px;
    height: 32px;
    object-fit: contain;
}

/* Navigation Links - Centered */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-neutral-700);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Active Link */
.nav-links a.active {
    font-weight: 600;
    color: var(--color-neutral-800);
}

/* Hover Effect */
.nav-links a:hover {
    color: var(--color-neutral-800);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-500);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Button Styles - Updated to Match Figma */
.btn {
    height: 44px;
    padding: 8px 12px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

/* Secondary Button (Log in) */
.btn-secondary {
    background: transparent;
    color: var(--color-surface-black);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: rgba(13, 13, 13, 0.05);
    border-color: var(--color-neutral-300);
}

/* Primary Button (Create Account) */
.btn-primary {
    background: var(--color-primary-500);
    color: var(--color-surface-white);
    box-shadow: 0 2px 8px rgba(72, 31, 255, 0.2);
}

.btn-primary:hover {
    background: var(--color-primary-600);
    box-shadow: 0 4px 12px rgba(72, 31, 255, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: black !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-buttons {
    display: none !important;
}

/* ========================================
   Responsive Design for Navigation
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .navbar {
        padding: 12px 24px;
    }

    .nav-links {
        gap: 24px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .navbar .container {
        flex-wrap: nowrap;
    }

    /* Hide Desktop Navigation */
    .nav-links {
        display: none;
        /* visibility: hidden;
        opacity: 0; */
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(8, 1, 39, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.35s ease, opacity 0.3s ease;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
        /* visibility: visible;
        opacity: 1; */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a {
        display: block;
        padding: 16px 20px;
        font-size: 18px;
        color: var(--color-surface-white);
    }

    .nav-links a.active {
        color: var(--color-primary-400);
        background: rgba(109, 76, 255, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    /* Show Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Adjust Button Sizes for Mobile */
    .nav-buttons {
        gap: 8px;
    }

    .btn {
        height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .navbar.scrolled .btn-secondary {
        color: black;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 16px;
    }

    .logo img {
        width: 120px;
        height: 25px;
    }

    .nav-buttons {
        gap: 6px;
    }

    .btn {
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .btn-secondary {
        display: none;
        /* Hide "Log in" on very small screens */
    }
}

@media (max-width: 768px) {

    .nav-buttons {
        display: none;
    }

    .mobile-nav-buttons {
        display: flex !important;
        width: 100%;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
    }

    .mobile-btn-wrap a {
        padding: 0;
    }

    .mobile-nav-buttons .btn {
        width: 100%;
        padding: 20px;
        border-radius: 10px;
        /* gap: 10px; */
    }

    .mobile-btn-wrap {
        margin-bottom: 10px;
    }


    .btn-secondary {
        background: var(--Color-Neutral-100, #EFEFEF) !important;
    }
}


/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--color-primary-500);
    color: var(--color-surface-white);
}

.btn-primary:hover {
    background: var(--color-primary-600);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-surface-black);
}

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

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

.btn-outline:hover {
    border-color: var(--color-primary-400);
    color: var(--color-primary-400);
}

.btn-light {
    background: var(--color-surface-white);
    color: var(--color-surface-black);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-gradient {
    background: linear-gradient(180deg, var(--color-primary-400) 0%, var(--color-primary-500) 100%);
    color: var(--color-surface-white);
    padding: 12px 20px;
    border: 2px solid var(--color-primary-500);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(109, 76, 255, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.05);
}

/* ========================================
   Hero Section
   ======================================== */
@media (max-width: 768px) {
    .hero-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hand-svg {
        position: relative !important;
        right: 4px !important;
        bottom: 0px !important;
    }

    .hand-svg svg {
        width: 47px;
    }

    .hero-subtitle-secondary {
        margin: 0 !important;
        font-size: 24px !important;
    }

    .gif-remover {
        margin-top: -17px !important;
    }

    .features::before {
        width: 100% !important;
        top: -25px !important;
        box-shadow: 100px 100px 100px rgba(29, 12, 102, 0.5) !important;
        height: 1810px !important;
    }

    .gif-container {
        max-height: 181px !important;
        overflow: hidden;
    }

    .hero-overlay-img {
        width: 80% !important;
        top: 74px !important;
        height: 68% !important;
        left: 10% !important;
    }
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    overflow: visible;
}

/* ========================================
   Hero Background with Ocean Wave Effect
   ======================================== */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    width: 100%;
    height: 1000px;
    top: 0;
    left: 0;
    background: radial-gradient(ellipse 95.48% 166.77% at 50% 184.48%,
            var(--color-primary-950) 77%,
            var(--color-primary-400) 82%,
            var(--color-primary-50) 89%);
    background-size: 200% 200%;
    animation: ocean-wave 12s ease-in-out infinite;
    transform: translateZ(0);
    will-change: background-position;
}

/* Ocean Wave Animation */
@keyframes ocean-wave {
    0% {
        background-position: 50% 50%;
        background-size: 200% 200%;
    }

    25% {
        background-position: 45% 55%;
        background-size: 220% 220%;
    }

    50% {
        background-position: 50% 60%;
        background-size: 240% 240%;
    }

    75% {
        background-position: 55% 55%;
        background-size: 220% 220%;
    }

    100% {
        background-position: 50% 50%;
        background-size: 200% 200%;
    }
}


.backdrop-blur {
    position: absolute;
    width: 100%;
    height: 1316px;
    top: 1316px;
    left: 0;
    background: #D9D9D9;
    background-blend-mode: darken;
    backdrop-filter: blur(50px);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 96px;
    font-weight: 400;
    line-height: 84px;
    margin-bottom: 370px;
}

.hero-title .text-dark {
    color: var(--color-neutral-800);
}

.hero-title .text-primary {
    color: var(--color-primary-500);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 48px;
    color: var(--color-primary-300);
    margin: 20px 0;
}

.hero-subtitle-secondary {
    font-family: var(--font-primary);
    font-size: 48px;
    color: var(--color-primary-300);
    margin-top: 110px;
}

.hero-image {
    position: relative;
    max-width: 846px;
    margin: 40px auto;
}

.hand-svg {
    position: absolute;
    bottom: -23px;
    right: 388px;
    width: 90px;
    height: 18px;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.hero-overlay-img {
    position: absolute;
    top: 215px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transform: scale(1.5);
    z-index: 3;
    /* optional */
}

.gif-container {
    background-color: var(--color-primary-950);
    width: 100vw;
    display: block;

}

.gif-remover {
    mix-blend-mode: screen;
}

.gif-remover {
    display: block;
    margin: 0 auto;
    mix-blend-mode: lighten;
    z-index: 2;
    min-width: 100vw;
    object-fit: contain;
    margin-top: -170px;
}


/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 400;
    line-height: 48px;
    color: var(--color-surface-white);
}

.section-title .text-muted {
    color: var(--color-neutral-400);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-padding);
    position: relative;
    overflow: visible;
    z-index: 3;
}

.features::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 1350px;
    left: -10%;
    top: -142px;
    background: var(--color-primary-800);
    box-shadow: 100px 100px 100px rgba(29, 12, 102, 0.5);
    filter: blur(50px);
    z-index: -1;
}

.features-grid {
    position: relative;
    width: 1067.38px;
    height: 909px;
    margin: 0 auto;
    /* max-width: 100vw; optionally make responsive */
}

.feature-card {
    background: rgba(255, 255, 255, 0.20);
    outline: 1px solid var(--color-neutral-500, #808080);
    outline-offset: -1px;
    border-radius: 16px;
    padding: 8px 8px 24px;
    box-sizing: border-box;
    position: absolute;
    /* critical for precise placement */
    width: 523.69px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* No need for responsive box-shadow here */
}

.feature-card:nth-child(1) {
    left: 0;
    top: 0;
}

/* Card 2: Top Right */
.feature-card:nth-child(2) {
    left: 543.69px;
    top: 1px;
}

/* Card 3: Bottom Left */
.feature-card:nth-child(3) {
    left: 0;
    top: 414px;
}

/* Card 4: Bottom Right */
.feature-card:nth-child(4) {
    left: 543.69px;
    top: 515px;
}

.feature-card-images,
.feature-content {
    width: 100%;
}

/* Responsive for tablet/mobile */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        gap: 40px;
    }

    .feature-card {
        width: 100%;
    }
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(109, 76, 255, 0.3);
}

.feature-card-images {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}


/* Main images */
.feature-img-main {
    width: 100%;
    /* fills card */
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);
    /* match screenshot soft gradient overlay */
}

.feature-img-sub {
    width: 80%;
    /* or as needed per card */
    object-fit: cover;
    border-radius: 8px;
}


.feature-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.stack-item {
    width: 100%;
    height: 80px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);
    border-radius: 8px;
}

.feature-content {
    align-self: stretch;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.feature-content h3 {
    color: var(--color-surface-white, white);
    font-size: 20px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 3px;
    margin-top: 0;
}

.feature-content p {
    color: var(--color-neutral-300, #B2B2B2);
    font-size: 16px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

/* Responsive mobile/tablet fallback: Stack cards vertically */
@media (max-width: 1150px) {
    .features-grid {
        width: 100%;
        min-width: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 36px;
        position: static;
    }

    .feature-card {
        position: static;
        width: 100%;
        margin-bottom: 36px;
    }
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: var(--section-padding);
}

/* Tabs */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.tab-btn {
    height: 56px;
    padding: 0 24px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    transition: all 0.3s ease;
    background: var(--color-neutral-900);
    border: 1px solid var(--color-neutral-300);
    color: var(--color-neutral-300);
}

.tab-btn.active {
    background: var(--color-primary-900);
    border-color: var(--color-primary-400);
    color: var(--color-primary-400);
}

.tab-content {
    display: none;
    margin-top: 60px;
}

.tab-content.active {
    display: block;
}

/* Steps Container */
.steps-container,
.community-steps-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

/* Step Item */
.step-item {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: flex-start;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 318px;
}

.step-item.reverse {
    flex-direction: row;
}

/* Main step image */
.step-image,
.step-item>img {
    width: 510px;
    height: 318px;
    object-fit: cover;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(182, 165, 255, 0.5);
    flex-shrink: 0;
}

/* Small image used in reverse layout */
.step-image-small,
.step-item.reverse img.step-image-small {
    width: 307px;
    height: 270px;
    object-fit: cover;
    border-radius: 20px;
    border: 6px solid var(--color-neutral-300);
    background: #222;
    box-shadow: 0 0 18px rgba(60, 30, 130, 0.18);
}

/* Step text content */
.step-content {
    width: 498px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

/* Badge */
.step-badge {
    padding: 2px 8px;
    background: var(--color-primary-700);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Headings */
.step-content h3 {
    color: #fff;
    font-size: 32px;
    font-family: 'Switzer Variable', 'Staatliches', sans-serif;
    font-weight: 600;
    line-height: 40px;
    margin: 0 0 24px 0;
}

/* Paragraph */
.step-content p {
    color: var(--color-neutral-200);
    font-size: 20px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
}

/* Extra groups inside step-content */
.step-content>.flex-group,
.step-content>.step-title-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* RESPONSIVE — MOBILE VIEW */
@media (max-width: 768px) {

    .hero-title {
        font-size: 72px;
    }


    .how-it-works {
        padding: 0;
    }

    .step-item,
    .step-item.reverse {
        flex-direction: column !important;
        text-align: left;
        gap: 24px;
        min-height: auto;
        align-items: flex-start;
    }

    /* Image full width on mobile */
    .step-item img,
    .step-image,
    .join-community-image,
    .step-image-small {
        width: 100% !important;
        height: 245px !important;
        margin: 0 !important;
    }

    /* Content full width */
    .step-content {
        width: 100% !important;
    }

    /* Fix reverse layout — image should come first */
    .step-item.reverse {
        flex-direction: column !important;
    }

    .step-item.reverse img {
        order: -1;
    }

    /* Reduce heading size */
    .step-content h3 {
        font-size: 26px;
        line-height: 32px;
        margin: 0;
    }

    .step-content p {
        font-size: 18px;
        line-height: 28px;
    }

    /* Adjust tab buttons for small screens */
    .tab-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .tab-btn {
        height: 48px;
        font-size: 12px;
        padding: 0 20px;
    }
}


/* Communities Tab */
.community-cta-section {
    position: relative;
    background: linear-gradient(180deg, var(--color-primary-950) 0%, var(--color-primary-800) 100%);
    border-radius: 32px;
    padding: 120px 80px;
    text-align: center;
    overflow: hidden;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: var(--section-padding);
}

.cta-card {
    position: relative;
    background: linear-gradient(123deg, var(--color-primary-800) 0%, var(--color-primary-600) 100%);
    border-radius: 32px;
    padding: 60px 30px;
    overflow: hidden;
}

.cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 117.69% 167.88% at -3.66% 115.11%,
            rgba(255, 255, 255, 0.40) 0%,
            rgba(255, 255, 255, 0) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 708px;
}

.cta-content h2 {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    color: var(--color-surface-white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    line-height: 32px;
    color: var(--color-neutral-300);
    margin-bottom: 24px;
}

.cta-image {
    position: absolute;
    top: 0px;
    right: 15px;
    width: 575px;
    height: auto;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 4px 20px rgba(30, 0, 80, 0.12));
}

@media (max-width: 700px) {
    .cta-image {
        width: 319px;
        top: 335px;
        right: -46px;
    }
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: var(--section-padding);
    text-align: center;
}

.faq-container {
    max-width: 846px;
    margin: 40px auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--color-neutral-800);
    padding: 16px 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: transparent;
    color: var(--color-surface-white);
    font-size: 20px;
    font-weight: 600;
    line-height: 32px;
    text-align: left;
    padding: 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary-400);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(-180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 20px;
    line-height: 32px;
    color: var(--color-neutral-200);
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 16px 0 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 32px;
}

.footer-brand {
    flex: 1;
    max-width: 413px;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-surface-white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-neutral-400);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 24px;
    height: 24px;
    color: var(--color-neutral-300);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--color-primary-400);
    transform: translateY(-2px);
}

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

.footer-column h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: var(--color-neutral-300);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column a {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-neutral-300);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-neutral-800);
}

.footer-bottom p {
    font-size: 14px;
    line-height: 20px;
    color: var(--color-neutral-200);
}

.footer-bottom .text-muted {
    color: var(--color-neutral-500);
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    font-size: 14px;
    line-height: 20px;
    color: var(--color-neutral-500);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* MOBILE FOOTER (FIGMA MATCHED) */
@media (max-width: 768px) {

    .footer {
        padding: 32px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        margin-bottom: 32px;
    }

    /* Brand Section */
    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer-logo {
        font-size: 32px;
        line-height: 28px;
    }

    .footer-brand p {
        font-size: 16px;
        line-height: 24px;
    }

    .social-links {
        gap: 20px;
    }

    /* Footer columns wrapper */
    .footer-links {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .footer-column h4 {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 20px;
    }

    .footer-column ul {
        gap: 16px;
    }

    .footer-column a {
        font-size: 16px;
        line-height: 24px;
    }

    /* Footer Bottom */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
        padding-top: 32px;
    }

    .footer-legal {
        justify-content: center;
        gap: 32px;
    }

    .footer-bottom p {
        text-align: center;
        font-size: 14px;
        line-height: 20px;
    }
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}



/* Section layout and background */
.community-hero {
    width: 100%;
    max-width: 1280px;
    margin: 60px auto 0 auto;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    position: relative;
    min-height: 640px;
    background: linear-gradient(180deg, var(--color-primary-950, #080127) 0%, var(--color-primary-800, #1D0C66) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stacking and centering */
.community-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
    max-width: 100vw;
}

/* Green top label */
.community-hero__label {
    color: var(--text-success, #00C950);
    font-size: 16px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 1.28px;
    text-align: center;
    align-self: stretch;
    margin-bottom: 0;
}

/* Title and subtitle block */
.community-hero__headings {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.community-hero__title-main {
    text-align: center;
    color: var(--text-Primary, #fff);
    font-size: 72px;
    font-family: Staatliches, sans-serif;
    font-weight: 400;
    line-height: 72px;
}

.community-hero__title-secondary {
    text-align: center;
    color: var(--color-primary-300, #9179FF);
    font-size: 72px;
    font-family: Staatliches, sans-serif;
    font-weight: 400;
    line-height: 72px;
}

.community-hero__desc {
    width: 630px;
    max-width: 90vw;
    text-align: center;
    color: var(--text-body-lg, #B2B2B2);
    font-size: 20px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 32px;
}

.community-hero__btn {
    padding: 12px 20px;
    background: linear-gradient(180deg, var(--color-primary-400, #6D4CFF) 0%, var(--color-primary-500, #481FFF) 100%);
    box-shadow: 0px 0px 0px 4px rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: none;
    outline: 2px solid var(--color-primary-500, #481FFF);
    outline-offset: -2px;
    color: var(--color-bg-white, #fff);
    font-size: 16px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.community-hero__btn span {
    font-size: 18px;
}

/* Responsive styles */
@media (max-width: 900px) {

    .community-hero__title-main,
    .community-hero__title-secondary {
        font-size: 38px;
        line-height: 46px;
    }

    .community-hero__desc {
        width: 90vw;
        font-size: 16px;
        line-height: 24px;
    }
}

/* Large glowing arc at bottom */
.community-hero {
    width: 1280px;
    height: 769px;
    background: linear-gradient(180deg,
            var(--color-primary-950, #080127) 0%,
            var(--color-primary-800, #1D0C66) 100%);
    border-bottom-right-radius: 32px;
    border-bottom-left-radius: 32px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Streaks */
.community-hero__line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(192, 176, 255, 0.08) 0%, rgba(96, 83, 183, 0.65) 100%);
    opacity: 0.65;
    border-radius: 2px;
}


.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 3;
}

.star {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    border-radius: 2px;
    filter: blur(1px);
    opacity: 0.7;
    animation: fall 3s linear infinite;
    transform: rotate(-50deg);
}

/* Randomize positions */
.star:nth-child(1) {
    top: 40px;
    left: 10%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 150px;
    left: 80%;
    animation-delay: 1s;
}

.star:nth-child(3) {
    top: 260px;
    left: 20%;
    animation-delay: 2s;
}

.star:nth-child(4) {
    top: 80px;
    left: 60%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    top: 200px;
    left: 90%;
    animation-delay: 2.5s;
}

@keyframes fall {
    0% {
        transform: translateX(0) translateY(0) rotate(-50deg);
        opacity: 1;
    }

    100% {
        transform: translateX(-200px) translateY(200px) rotate(-50deg);
        opacity: 0;
    }
}

.community-hero__visual {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 460px;
    width: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}


@media (max-width: 900px) {
    .community-hero__visual {
        height: 190px;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .community-hero {
        min-height: 640px;
        padding-top: 50px;
    }

    .community-hero__title-main,
    .community-hero__title-secondary {
        font-size: 54px;
        line-height: 58px;
    }

    .community-hero__desc {
        font-size: 18px;
    }

    .community-hero__btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 600px) {
    .community-hero {
        width: 100%;
        /* min-height: 540px; */
        /* padding: 40px 16px 0; */
        height: 432px;
        border-radius: 0;

    }

    .community-hero__content {
        gap: 14px;
        margin-top: 10px;
    }

    .community-hero__label {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .community-hero__title-main,
    .community-hero__title-secondary {
        font-size: 32px;
        line-height: 36px;
    }

    .community-hero__desc {
        width: 100%;
        max-width: 95%;
        font-size: 14px;
        line-height: 22px;
    }

    .community-hero__btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Bottom Dome / Circle */
    .community-hero__visual {
        height: 180px !important;
        bottom: -20px;
    }

    .community-hero__circle-svg {
        transform: scale(1.6);
        transform-origin: center bottom;
    }

    /* Stars smaller + repositioned */
    .star {
        width: 100px;
        opacity: 0.45;
    }

    .star:nth-child(1) {
        top: 20px;
        left: 5%;
    }

    .star:nth-child(2) {
        top: 80px;
        left: 60%;
    }

    .star:nth-child(3) {
        top: 160px;
        left: 25%;
    }

    .star:nth-child(4) {
        top: 60px;
        left: 75%;
    }

    .star:nth-child(5) {
        top: 140px;
        left: 85%;
    }
}

.contact-minimal p {
    color: #B2B2B2;
    font-size: 13px;
    margin-bottom: 8px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.email-icon {
    color: #6D4CFF; /* Purple Icon */
}

/* Animated Underline Effect */
.email-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #6D4CFF;
    transition: width 0.3s ease;
}

.email-link:hover::after {
    width: 100%;
}