/* ========================================
   Rangal Landing Page - Styles
   ======================================== */

:root {
    --primary-color: #FFDE21;
    --primary-darker: #C7AC17;
    --dark-background: #1E1E1E;
    --dark-surface: #2D2D2D;
    --dark-text: #FFFFFF;
    --dark-text-secondary: #B0B0B0;
    --dark-border: #424242;

    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container-max-width: 1200px;
    --section-padding-desktop: 120px;
    --section-padding-tablet: 80px;
    --section-padding-mobile: 60px;
    --section-min-height: 100vh;

    --transition-speed: 300ms;
    --transition-ease: ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-background);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms var(--transition-ease),
        transform 600ms var(--transition-ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Vertical Navigation Bar
   ======================================== */
.vertical-navbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.vertical-navbar:hover {
    border-color: rgba(255, 222, 33, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 222, 33, 0.1);
}

.navbar-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.navbar-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.navbar-item:hover {
    background: rgba(255, 222, 33, 0.1);
    border-color: rgba(255, 222, 33, 0.3);
    transform: scale(1.1);
}

.navbar-item.active {
    background: linear-gradient(135deg, rgba(255, 222, 33, 0.2), rgba(255, 222, 33, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 222, 33, 0.3);
}

.navbar-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.navbar-item:hover .navbar-icon {
    transform: scale(1.2);
}

.navbar-item::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--dark-surface);
    color: var(--dark-text);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--dark-border);
    z-index: 1001;
}

.navbar-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.navbar-divider {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
    margin: 8px auto;
    border-radius: 1px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding-desktop) 0;
    overflow: visible;
}

.hero-background {
    position: absolute;
    inset: -100px;
    background: radial-gradient(ellipse at center, rgba(255, 222, 33, 0.04) 0%, rgba(255, 222, 33, 0.02) 30%, rgba(255, 222, 33, 0) 70%);
    z-index: 0;
    overflow: visible;
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
}

.hero-background::before,
.hero-background::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: paint;
}

.hero-background::before {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 222, 33, 0.2) 0%, rgba(255, 222, 33, 0.12) 25%, rgba(255, 222, 33, 0.05) 50%, rgba(255, 222, 33, 0) 75%);
    top: -300px;
    right: -300px;
    animation-delay: 0s;
    filter: blur(120px);
}

.hero-background::after {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 222, 33, 0.16) 0%, rgba(255, 222, 33, 0.1) 25%, rgba(255, 222, 33, 0.04) 50%, rgba(255, 222, 33, 0) 75%);
    bottom: -250px;
    left: -250px;
    animation-delay: -10s;
    filter: blur(120px);
}

@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    25% {
        transform: translate3d(50px, -50px, 0) scale(1.1);
    }

    50% {
        transform: translate3d(-30px, 30px, 0) scale(0.9);
    }

    75% {
        transform: translate3d(40px, 40px, 0) scale(1.05);
    }
}

.particles {
    position: absolute;
    inset: -50px;
    z-index: 0;
    overflow: visible;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite;
    box-shadow: 0 0 8px rgba(255, 222, 33, 0.4);
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: paint;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, #fff 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 2px;
    animation: shimmer 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 222, 33, 0.4));
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: filter;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--dark-text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffe566 100%);
    color: var(--dark-background);
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: 0 4px 20px rgba(255, 222, 33, 0.3),
        0 0 0 0 rgba(255, 222, 33, 0.5);
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 222, 33, 0.3),
            0 0 0 0 rgba(255, 222, 33, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(255, 222, 33, 0.5),
            0 0 0 10px rgba(255, 222, 33, 0);
    }
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 40px rgba(255, 222, 33, 0.6),
        0 0 0 0 rgba(255, 222, 33, 0);
    animation: none;
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-arrow {
    font-size: 24px;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.cta-button:hover .cta-arrow {
    transform: translateX(-4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px rgba(255, 222, 33, 0.6));
    backface-visibility: hidden;
    will-change: filter, transform;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: rotate(45deg) translateY(10px);
        opacity: 1;
    }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    min-height: var(--section-min-height);
    padding: var(--section-padding-desktop) 0;
    background-color: var(--dark-background);
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 64px;
    color: var(--dark-text);
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, var(--dark-surface) 0%, rgba(45, 45, 45, 0.8) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-ease);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 222, 33, 0.15), transparent);
    transition: left 0.8s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, var(--primary-color), transparent);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    will-change: opacity;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-16px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 24px 80px rgba(255, 222, 33, 0.25),
        0 0 0 1px rgba(255, 222, 33, 0.4),
        inset 0 0 40px rgba(255, 222, 33, 0.05);
    backface-visibility: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 222, 33, 0.05) 0%, rgba(255, 222, 33, 0.03) 25%, rgba(255, 222, 33, 0.01) 50%, rgba(255, 222, 33, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 28px;
    display: block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 15px rgba(255, 222, 33, 0.4));
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: filter, transform;
}

.feature-card:hover .feature-icon {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 25px rgba(255, 222, 33, 0.7));
    backface-visibility: hidden;
}

.feature-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.feature-description {
    font-size: 16px;
    color: var(--dark-text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ========================================
   Gamification Section
   ======================================== */
.gamification {
    min-height: var(--section-min-height);
    padding: var(--section-padding-desktop) 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 222, 33, 0.04) 0%, rgba(255, 222, 33, 0.02) 30%, rgba(255, 222, 33, 0) 60%),
        linear-gradient(180deg, var(--dark-background) 0%, #232323 50%, var(--dark-background) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
}

.gamification::before {
    display: none;
}

.gamification-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.gamification-subtitle {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 24px;
    line-height: 1.4;
}

.gamification-description {
    font-size: 18px;
    color: var(--dark-text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.xp-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.xp-benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    transition: all var(--transition-speed) var(--transition-ease);
}

.xp-benefit-item:hover {
    border-color: var(--primary-color);
    transform: translateX(-8px);
    box-shadow: 0 8px 30px rgba(255, 222, 33, 0.15);
    backface-visibility: hidden;
}

.xp-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.xp-text h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.xp-text p {
    font-size: 15px;
    color: var(--dark-text-secondary);
    line-height: 1.6;
}

.gamification-visual {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.xp-meter {
    background: var(--dark-surface);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 222, 33, 0.2);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.xp-level {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.xp-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--dark-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ffe566);
    border-radius: 6px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(255, 222, 33, 0.5);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.xp-points {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text-secondary);
}

.reward-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reward-card {
    background: linear-gradient(135deg, var(--dark-surface) 0%, rgba(255, 222, 33, 0.1) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-ease);
}

.reward-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 222, 33, 0.3);
    backface-visibility: hidden;
}

.reward-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.reward-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.reward-label {
    font-size: 14px;
    color: var(--dark-text-secondary);
    line-height: 1.5;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    min-height: var(--section-min-height);
    padding: var(--section-padding-desktop) 0;
    background: var(--dark-background);
    display: flex;
    align-items: center;
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 15%, var(--primary-color) 85%, transparent 100%);
    opacity: 0.25;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    position: relative;
    transition: all var(--transition-speed) var(--transition-ease);
}

.step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(255, 222, 33, 0.2);
    backface-visibility: hidden;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #ffe566);
    color: var(--dark-background);
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 222, 33, 0.4);
    backface-visibility: hidden;
    will-change: transform;
}

.step-icon {
    font-size: 56px;
    margin-bottom: 24px;
    margin-top: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 222, 33, 0.3));
    transform: translateZ(0);
    backface-visibility: hidden;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.step-description {
    font-size: 15px;
    color: var(--dark-text-secondary);
    line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */
.about {
    min-height: var(--section-min-height);
    padding: var(--section-padding-desktop) 0;
    background: linear-gradient(180deg, var(--dark-background) 0%, var(--dark-surface) 50%, var(--dark-background) 100%);
    display: flex;
    align-items: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-description {
    font-size: 18px;
    color: var(--dark-text-secondary);
    line-height: 2;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.stat-item:hover {
    background: rgba(255, 222, 33, 0.05);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    animation: countPulse 3s ease-in-out infinite;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.stat-item:hover .stat-number::after {
    width: 100%;
}

.stat-label {
    font-size: 16px;
    color: var(--dark-text-secondary);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    min-height: var(--section-min-height);
    padding: var(--section-padding-desktop) 0;
    background: linear-gradient(180deg, var(--dark-background) 0%, #212121 50%, var(--dark-background) 100%);
    display: flex;
    align-items: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 40px;
    transition: all var(--transition-speed) var(--transition-ease);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(255, 222, 33, 0.15);
    backface-visibility: hidden;
}

.testimonial-text {
    font-size: 16px;
    color: var(--dark-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #ffe566);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--primary-color);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    min-height: var(--section-min-height);
    padding: var(--section-padding-desktop) 0;
    background: var(--dark-background);
    display: flex;
    align-items: center;
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-ease);
}

.faq-item:hover {
    border-color: rgba(255, 222, 33, 0.5);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 222, 33, 0.15);
    backface-visibility: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: transparent;
    border: none;
    color: var(--dark-text);
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-speed) var(--transition-ease);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform var(--transition-speed) var(--transition-ease);
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 32px 24px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--dark-text-secondary);
    line-height: 1.8;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    min-height: var(--section-min-height);
    padding: var(--section-padding-desktop) 0;
    background: linear-gradient(180deg, var(--dark-background) 0%, #25241E 50%, var(--dark-background) 100%);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    transform: translateZ(0);
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 222, 33, 0.1) 0%, rgba(255, 222, 33, 0.06) 40%, rgba(255, 222, 33, 0) 70%);
    top: -100px;
    right: -200px;
    filter: blur(60px);
    mix-blend-mode: screen;
    animation: floatCTAOrb1 15s infinite ease-in-out;
    z-index: 0;

    will-change: transform, filter;
    transform: translateZ(0);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    isolation: isolate;
    contain: paint;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 222, 33, 0.08) 0%, rgba(255, 222, 33, 0.04) 40%, rgba(255, 222, 33, 0) 70%);
    bottom: -150px;
    left: -150px;
    filter: blur(50px);
    mix-blend-mode: screen;
    animation: floatCTAOrb2 15s infinite ease-in-out;
    z-index: 0;

    will-change: transform, filter;
    transform: translateZ(0);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    isolation: isolate;
    contain: paint;
}

@keyframes floatCTAOrb1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(20px, -20px, 0) scale(1.05);
    }
}

@keyframes floatCTAOrb2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(20px, -20px, 0) scale(1.05);
    }
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.4) 0%, rgba(45, 45, 45, 0.2) 100%);
    border: 1px solid rgba(255, 222, 33, 0.2);
    border-radius: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 222, 33, 0.1);
    transition: all 0.4s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.cta-content:hover {
    border-color: rgba(255, 222, 33, 0.4);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 222, 33, 0.2),
        0 0 60px rgba(255, 222, 33, 0.1);
    transform: translateY(-4px);
    backface-visibility: hidden;
}

.cta-title {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, #fff 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: 1px;
    animation: shimmer 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 222, 33, 0.3));
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: filter;
}

.cta-description {
    font-size: 20px;
    color: var(--dark-text-secondary);
    margin-bottom: 48px;
    line-height: 1.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-large {
    padding: 20px 64px;
    font-size: 20px;
}

.app-download-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 222, 33, 0.2);
}

.download-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text-secondary);
    margin-bottom: 32px;
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    background: linear-gradient(135deg, rgba(255, 222, 33, 0.12), rgba(255, 222, 33, 0.06));
    border: 1px solid rgba(255, 222, 33, 0.3);
    border-radius: 14px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
}

.app-download-btn:hover {
    background: linear-gradient(135deg, rgba(255, 222, 33, 0.2), rgba(255, 222, 33, 0.12));
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 222, 33, 0.25);
}

.app-download-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.app-download-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-download-label {
    font-size: 12px;
    color: var(--dark-text-secondary);
    font-weight: 500;
}

.app-download-store {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--dark-background) 0%, rgba(20, 20, 20, 1) 100%);
    border-top: 1px solid rgba(255, 222, 33, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 20px rgba(255, 222, 33, 0.5);
    backface-visibility: hidden;
}

.footer::after {
    content: '';
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 280px;
    background: radial-gradient(ellipse, rgba(255, 222, 33, 0.03) 0%, rgba(255, 222, 33, 0.02) 25%, rgba(255, 222, 33, 0.01) 45%, rgba(255, 222, 33, 0) 65%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #ffe566);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 222, 33, 0.3));
    transform: translateZ(0);
    backface-visibility: hidden;
}

.footer-tagline {
    font-size: 16px;
    color: var(--dark-text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
    margin: 32px auto;
    border-radius: 1px;
}

.footer-text {
    font-size: 14px;
    color: var(--dark-text-secondary);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-text::before {
    content: '✦';
    color: var(--primary-color);
    opacity: 0.6;
    animation: sparkle 2s ease-in-out infinite;
}

.footer-text::after {
    content: '✦';
    color: var(--primary-color);
    opacity: 0.6;
    animation: sparkle 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ========================================
   Responsive Design - Tablet
   ======================================== */
@media (max-width: 1024px) {
    .vertical-navbar {
        right: 12px;
        padding: 12px 8px;
    }

    .navbar-item {
        width: 42px;
        height: 42px;
    }

    .navbar-icon {
        font-size: 18px;
    }

    .hero,
    .features,
    .gamification,
    .how-it-works,
    .about,
    .testimonials,
    .faq,
    .cta-section {
        padding: var(--section-padding-tablet) 0;
    }

    .gamification-content {
        grid-template-columns: 1fr;
        gap: 48px;
        max-width: 100%;
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container::before {
        display: none;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title,
    .cta-title {
        font-size: 40px;
        margin-bottom: 48px;
    }

    .cta-content {
        padding: 60px 40px;
    }

    .about-description,
    .cta-description {
        font-size: 16px;
    }

    .about-stats {
        gap: 48px;
    }

    .stat-number {
        font-size: 40px;
    }

    .cta-button-large {
        padding: 18px 56px;
        font-size: 18px;
    }
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */
@media (max-width: 768px) {
    .vertical-navbar {
        display: none;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: var(--section-padding-mobile) 0;
        overflow: hidden;
    }

    .hero-content {
        margin: 0 auto;
        padding: 0 8px;
    }

    .features,
    .gamification,
    .how-it-works,
    .about,
    .testimonials,
    .faq {
        padding: var(--section-padding-mobile) 0;
        min-height: auto;
    }

    .cta-section {
        min-height: 100vh;
        min-height: 100svh;
        padding: var(--section-padding-mobile) 0;
        overflow: hidden;
    }

    .gamification-subtitle {
        font-size: 28px;
    }

    .gamification-description {
        font-size: 16px;
    }

    .xp-benefit-item {
        padding: 20px;
    }

    .xp-icon {
        font-size: 28px;
    }

    .xp-text h4 {
        font-size: 18px;
    }

    .reward-cards {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .hero-background::before {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
        filter: blur(80px);
        opacity: 0.1;
    }

    .hero-background::after {
        width: 350px;
        height: 350px;
        bottom: -120px;
        left: -120px;
        filter: blur(80px);
        opacity: 0.1;
    }

    .particle {
        width: 2px;
        height: 2px;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .section-title,
    .cta-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .cta-content {
        padding: 48px 24px;
        border-radius: 24px;
        max-width: 100%;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 100%;
        margin: 0 auto;
    }

    .feature-card {
        padding: 40px 32px;
        min-height: 240px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-description {
        font-size: 15px;
    }

    .about-description,
    .cta-description {
        font-size: 15px;
        margin-bottom: 48px;
    }

    .about-stats {
        gap: 32px;
        flex-direction: column;
        align-items: center;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }

    .footer-brand {
        font-size: 28px;
    }

    .footer-tagline {
        font-size: 14px;
    }

    .cta-button-large {
        padding: 16px 48px;
        font-size: 16px;
    }

    .app-download-section {
        margin-top: 48px;
        padding-top: 36px;
    }

    .download-section-title {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .download-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .app-download-btn {
        min-width: auto;
        width: 100%;
        padding: 14px 20px;
    }

    .app-download-icon {
        font-size: 28px;
    }

    .app-download-store {
        font-size: 16px;
    }

    .scroll-indicator {
        bottom: 30px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

::selection {
    background-color: var(--primary-color);
    color: var(--dark-background);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-background);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-surface);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}