/* =====================================================
   VARIABLES & ROOT STYLES
   ===================================================== */
:root {
    /* Colors - Dune Universe Palette */
    --primary-gold: #D4A574;
    --primary-orange: #E67E22;
    --accent-blue: #5DADE2;
    --sand-light: #F4E4C1;
    --sand-dark: #C19A6B;
    --spice-orange: #FF6B35;
    --spice-glow: #FFB347;
    
    /* Dark Theme */
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-tertiary: #1A1A1A;
    --surface: #1F1F1F;
    --surface-hover: #2A2A2A;
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #808080;
    --text-accent: var(--primary-gold);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 8rem;
    
    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-slower: 1s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(212, 165, 116, 0.3);
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    cursor: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(230, 126, 34, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* =====================================================
   LOADING SCREEN
   ===================================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.spice-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.spice-particle {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-gold), var(--spice-orange));
    border-radius: 50%;
    animation: spiceFloat 1.5s ease-in-out infinite;
}

.spice-particle:nth-child(2) {
    animation-delay: 0.2s;
}

.spice-particle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes spiceFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

.loader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.5rem;
    color: var(--primary-gold);
    animation: pulse 2s ease-in-out infinite;
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease;
    opacity: 0.5;
}

body.cursor-hover .cursor-outline {
    width: 50px;
    height: 50px;
    border-color: var(--spice-orange);
    background: rgba(212, 165, 116, 0.1);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-base);
    mix-blend-mode: difference;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    mix-blend-mode: normal;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.nav-brand:hover {
    transform: scale(1.05);
}

.brand-symbol {
    width: 40px;
    height: 40px;
}

.brand-icon {
    width: 100%;
    height: 100%;
    color: var(--primary-gold);
}

/* Disable old rotation on the new logo and add wave motion */
.brand-logo { animation: none; }

.logo-waves .logo-wave {
    opacity: 0.9;
}

.logo-waves .wave-top {
    animation: waveShift 6s ease-in-out infinite;
}

.logo-waves .wave-bottom {
    animation: waveShift 6s ease-in-out infinite reverse;
}

@keyframes waveShift {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10px);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.2rem;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-item {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.nav-item:hover {
    color: var(--primary-gold);
}

.nav-line {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), var(--spice-orange));
    transition: width var(--transition-base);
}

.nav-item:hover .nav-line,
.nav-item.active .nav-line {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-gold), var(--spice-orange));
    padding: 0.8rem 2rem;
    border-radius: var(--radius-xl);
    color: var(--bg-primary) !important;
    font-weight: 700;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.bar {
    width: 30px;
    height: 3px;
    background: var(--primary-gold);
    transition: all var(--transition-base);
}

.nav-toggle.active .bar:first-child {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .bar:last-child {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#sandCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.4) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 165, 116, 0.5);
    }
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    color: var(--primary-gold);
    font-weight: 700;
}

.badge-icon {
    color: var(--spice-orange);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    margin-bottom: 1rem;
    position: relative;
}

.title-line {
    display: block;
    position: relative;
    overflow: hidden;
}

.title-line span {
    display: inline-block;
    transform: translateY(100%);
    animation: slideUp 0.8s ease forwards;
    animation-delay: calc(var(--char-index) * 0.05s);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.title-accent {
    background: linear-gradient(135deg, var(--primary-gold), var(--spice-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(212, 165, 116, 0.5);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    outline: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--spice-orange));
    color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: rgba(212, 165, 116, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.2);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* =====================================================
   HERO STATS
   ===================================================== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(212, 165, 116, 0.5);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    color: var(--text-secondary);
}

/* =====================================================
   SCROLL INDICATOR
   ===================================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border-right: 2px solid var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    transform: rotate(45deg);
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

/* =====================================================
   SECTIONS BASE
   ===================================================== */
section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-display);
    position: relative;
    display: inline-block;
}

.title-top {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    color: var(--text-secondary);
    margin-bottom: -1rem;
}

.title-main {
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    background: linear-gradient(135deg, var(--primary-gold), var(--spice-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.2rem;
}

/* =====================================================
   STORY SECTION
   ===================================================== */
.story-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.1;
}

.sand-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23D4A574" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-xl);
}

.story-card {
    position: relative;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05), rgba(230, 126, 34, 0.05));
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-base);
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.story-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.2);
}

.story-card:hover::before {
    opacity: 1;
}

.card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(212, 165, 116, 0.1);
    font-weight: 700;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.story-quote {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: 2rem;
    position: relative;
}

.story-quote blockquote {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary-gold);
    position: relative;
}

.story-quote blockquote::before,
.story-quote blockquote::after {
    content: '"';
    font-size: 4rem;
    position: absolute;
    opacity: 0.2;
}

.story-quote blockquote::before {
    top: -20px;
    left: -40px;
}

.story-quote blockquote::after {
    bottom: -40px;
    right: -40px;
}

.story-quote cite {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.1rem;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features-section {
    background: var(--bg-secondary);
    position: relative;
}

.features-showcase {
    display: grid;
    gap: 2.5rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
}

.feature-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.feature-item:nth-child(even) > * {
    direction: ltr;
}

.feature-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(220px, 35vw, 320px);
}

.feature-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform var(--transition-slow);
}

.feature-item:hover .feature-image img {
    transform: scale(1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* icon styles removed; now using images */

.feature-bg-media,
.feature-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.feature-bg-media img,
.feature-bg img {
    width: 120%;
    max-width: 680px;
    opacity: 0.07;
    filter: grayscale(100%) contrast(120%);
}

.feature-bg-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: 15rem;
    font-weight: 700;
    color: rgba(212, 165, 116, 0.03);
    letter-spacing: 0.2rem;
    z-index: 1;
}

.feature-content {
    padding: 2rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 1.5rem;
}

/* =====================================================
   FACTIONS SECTION
   ===================================================== */
.factions-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.factions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faction-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.faction-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(212, 165, 116, 0.3);
}

.faction-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.faction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.faction-card:hover .faction-image img {
    transform: scale(1.1);
}

.faction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
}

.faction-content {
    padding: 2rem;
}

.faction-name {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2rem;
    color: var(--primary-gold);
}

.faction-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.faction-stats {
    display: flex;
    justify-content: space-between;
}

.stat {
    text-align: center;
}

.stat-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* =====================================================
   JOIN SECTION
   ===================================================== */
.join-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.join-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.join-content {
    padding: 2rem;
}

.join-title {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.join-title .title-line {
    display: block;
    margin-bottom: -2rem;
}

.join-title .title-line:first-child {
    font-size: 2rem;
    color: var(--text-secondary);
    letter-spacing: 0.3rem;
}

.title-large {
    font-size: clamp(2rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--primary-gold), var(--spice-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.2rem;
}

.join-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.countdown-timer {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    align-items: stretch;
}

.countdown-item {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(230, 126, 34, 0.05));
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    min-width: 80px;
}

.count-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
}

.count-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1rem;
    margin-top: 0.5rem;
}

.join-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input {
    padding: 1.2rem;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-base);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
}

.form-input:focus {
    border-color: var(--primary-gold);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-gold), var(--spice-orange));
    color: var(--bg-primary);
    padding: 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.4);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform var(--transition-base);
}

.btn-submit:hover .btn-arrow {
    transform: translateX(5px);
}

.founder-benefits {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05), rgba(230, 126, 34, 0.05));
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: var(--radius-lg);
}

.founder-benefits h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.benefit i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.join-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.join-image { width: 100%; }
.join-image img {
    width: 150%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.orb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: orb-pulse 3s ease-in-out infinite;
}

@keyframes orb-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--spice-orange) 0%, var(--primary-gold) 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(212, 165, 116, 0.6);
    animation: rotate 10s linear infinite;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-tertiary);
    padding: 3rem 0;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    color: var(--primary-gold);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--primary-gold);
}

.footer-text {
    color: var(--text-muted);
    line-height: 1.8;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .feature-item,
    .feature-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .join-wrapper {
        grid-template-columns: 1fr;
    }
    
    .join-visual { display: block; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition-base);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero-title {
        font-size: clamp(3rem, 10vw, 6rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .story-grid,
    .factions-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ANIMATIONS ON SCROLL
   ===================================================== */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.no-scroll {
    overflow: hidden;
}

/* =====================================================
   SCROLLBAR STYLING
   ===================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-gold), var(--spice-orange));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}