/* ===================================
   STAR CITIZEN LANDING PAGE STYLES
   Design System: Dark Mode, Futuristic, Command Center Aesthetic
   =================================== */

/* === CSS Variables === */
:root {
    /* Colors */
    --color-base: #0a0e1a;
    --color-surface: #151b2e;
    --color-surface-elevated: #1a2238;
    --color-accent-primary: #00d9ff;
    --color-accent-secondary: #ff6b35;
    --color-accent-warm: #ff6b35;
    --color-accent-gold: #ffd700;
    --color-accent-hot: #ff3366;
    --color-success: #00ff88;
    --color-warning: #ffd700;
    --color-text-primary: #e8f1ff;
    --color-text-secondary: #8b9dc3;
    --color-text-muted: #5a6b8c;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #0066ff 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #ff3366 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --gradient-surface: linear-gradient(135deg, #151b2e 0%, #1a2238 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10, 14, 26, 0.8) 0%, rgba(10, 14, 26, 0.95) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Borders */
    --border-radius: 4px;
    --border-width: 1px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
    --shadow-glow-warm: 0 0 30px rgba(255, 107, 53, 0.5);
    --shadow-glow-gold: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-base);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-text-secondary);
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-primary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-link {
    color: var(--color-accent-primary);
    border: 1px solid var(--color-accent-primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
}

.cta-link:hover {
    background: var(--color-accent-primary);
    color: var(--color-base);
    box-shadow: var(--shadow-glow);
}

.cta-link::after {
    display: none;
}

.cc-login-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent-primary), #3b82f6);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cc-login-btn:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

.cc-login-btn::after {
    display: none;
}

/* === Language Switcher === */
.language-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--color-accent-primary);
}

.flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-code {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition-fast);
}

.lang-btn:hover .dropdown-arrow {
    transform: translateY(2px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-accent-primary);
    border-radius: var(--border-radius);
    list-style: none;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    margin: 0;
}

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.lang-option:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--color-text-primary);
}

.lang-option.active {
    background: rgba(0, 217, 255, 0.15);
    color: var(--color-accent-primary);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.4;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(10, 14, 26, 0.7) 0%, rgba(10, 14, 26, 0.85) 100%),
        url('./assets/hero-bg.webp') center/cover no-repeat;
    animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    opacity: 0;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--color-accent-primary);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent-primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 0.3;
    }
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.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: var(--gradient-warm);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-warm), 0 8px 24px rgba(255, 107, 53, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent-primary);
    border: 2px solid var(--color-accent-primary);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-tertiary:hover {
    background: var(--color-surface-elevated);
    border-color: var(--color-accent-primary);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* === Sections === */
.section {
    padding: var(--spacing-xl) 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
}

/* === DNA Section === */
.dna-section {
    background:
        linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, transparent 40%, rgba(0, 217, 255, 0.05) 100%),
        linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.03) 50%, transparent 70%),
        var(--color-surface);
    position: relative;
    overflow: hidden;
}

.dna-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dna-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dna-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dna-card {
    background: var(--gradient-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.dna-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.dna-card:hover::before {
    transform: scaleX(1);
}

.dna-card:hover {
    border-color: var(--color-accent-warm);
    box-shadow: var(--shadow-glow-warm), 0 12px 40px rgba(255, 107, 53, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.dna-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--color-accent-primary);
}

.dna-icon svg {
    width: 100%;
    height: 100%;
}

.dna-card h3 {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.dna-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* === Command Center Section === */
.command-center-section {
    background:
        linear-gradient(180deg, rgba(10, 14, 26, 0.85) 0%, rgba(10, 14, 26, 0.9) 100%),
        url('./assets/command-center-bg.webp') center/cover no-repeat fixed;
    position: relative;
}


/* === Activity Section === */
.activity-section {
    background:
        linear-gradient(-45deg, rgba(0, 217, 255, 0.05) 0%, transparent 50%, rgba(255, 215, 0, 0.04) 100%),
        linear-gradient(135deg, transparent 40%, rgba(255, 107, 53, 0.03) 60%, transparent 80%),
        var(--color-surface);
    position: relative;
    overflow: hidden;
}

.activity-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.activity-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.column-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent-primary);
}

/* Event Cards */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gradient-surface);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.event-card:hover {
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 1rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    color: var(--color-base);
}

.event-day {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-info h4 {
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.event-info p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-accent-primary);
    transition: var(--transition-fast);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--color-success);
}

.activity-member {
    background: rgba(0, 217, 255, 0.2);
    color: var(--color-accent-primary);
}

.activity-operation {
    background: rgba(255, 107, 53, 0.2);
    color: var(--color-accent-secondary);
}

.activity-achievement {
    background: rgba(255, 215, 0, 0.2);
    color: var(--color-warning);
}

.activity-fleet {
    background: rgba(0, 217, 255, 0.2);
    color: var(--color-accent-primary);
}

.activity-content p:first-child {
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.activity-content p:nth-child(2) {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* === Universe Section === */
.universe-section {
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 70%),
        var(--color-base);
}

.universe-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

.universe-text h3 {
    margin-bottom: 1.5rem;
    color: var(--color-accent-primary);
}

.universe-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.universe-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.universe-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.universe-stat .stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.universe-stat .stat-label {
    font-size: 0.9rem;
}

/* Star Map */
.universe-visual {
    position: relative;
    min-height: 500px;
}

.star-map {
    position: relative;
    width: 100%;
    height: 650px;
    background:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--border-radius);
}

/* === System Nodes === */
.system-node {
    position: absolute;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

.system-node::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-surface);
    border: 2px solid var(--color-text-muted);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.system-node.active::before {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.system-node.active .node-pulse {
    display: block;
}

.node-pulse {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent-primary);
    border-radius: 50%;
    animation: nodePulse 2s infinite;
}

@keyframes nodePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.node-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.system-node.active .node-label {
    color: var(--color-accent-primary);
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* === Journey Section === */
.journey-section {
    background: var(--color-surface);
}

.journey-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 4rem;
}

.journey-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-surface);
    border: 2px solid var(--color-accent-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--color-accent-primary);
    transition: var(--transition-normal);
}

.journey-step:hover .step-number {
    background: var(--gradient-primary);
    color: var(--color-base);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.step-content h3 {
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.step-content p {
    font-size: 0.95rem;
    max-width: 200px;
}

.step-connector {
    position: absolute;
    top: 40px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-primary) 0%, rgba(0, 217, 255, 0.3) 100%);
}

.journey-step:last-child .step-connector {
    display: none;
}

/* === Join Section === */
.join-section {
    background:
        linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%),
        var(--color-base);
    text-align: center;
}

.join-content h2 {
    margin-bottom: 1.5rem;
}

.join-content>p {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.join-ctas {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.join-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-primary);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--color-accent-primary);
}

.social-link:hover::after {
    width: 100%;
}

/* === Footer === */
.footer {
    background: var(--color-surface);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-accent-primary);
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-tagline {
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .journey-flow {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        display: none;
    }

    .universe-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Simplified for mobile - can add hamburger menu later */
    }

    .hero {
        min-height: 80vh;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .universe-stats {
        grid-template-columns: 1fr;
    }

    .join-ctas {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .section {
        padding: var(--spacing-lg) 1rem;
    }

    .dna-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }
}

/* === AOS Animation Support === */
[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);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* === Keyframe Animations === */
@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }
}

@keyframes pulse-warm {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 107, 53, 0);
    }
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 215, 0, 0);
    }
}

/* === Logo Styling === */
.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
    transition: var(--transition-normal);
    mix-blend-mode: screen;
}

.logo-img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.8));
    transform: scale(1.05);
}

/* === Fix logo background === */
.logo-img,
.hero-logo-watermark img {
    mix-blend-mode: screen;
    background: transparent;
}


/* === Footer Logo === */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-text {
    flex: 1;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: 80px;
    width: auto;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
    opacity: 0.8;
}

/* === Star Map Container === */
.star-map {
    position: relative;
    width: 100%;
    height: 650px;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--border-radius);
}


/* === Planet Nodes (Small Gold Dots) === */
.planet-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    transition: var(--transition-normal);
    cursor: help;
}

.planet-node:hover {
    transform: translate(-50%, -50%) scale(2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

/* === Planet Labels (Always Visible) === */
.planet-label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent-gold);
    white-space: nowrap;
    opacity: 0.9;
    pointer-events: none;
}

/* === Map Legend === */
.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    min-width: 260px;
    /* Increased width again */
    /* Wider box as requested */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* ... (other legend styles) ... */

/* Left-aligned planet label for right-edge planets */
.planet-label.left {
    left: auto;
    right: 15px;
    text-align: right;
}

/* Left-positioned system node label */
.system-node .node-label.left {
    top: 50%;
    left: auto;
    right: 25px;
    transform: translateY(-50%);
    margin-top: 0;
}

/* Right-positioned system node label */
.system-node .node-label.right {
    top: 50%;
    left: 40px;
    /* Increased from 25px for spacing */
    right: auto;
    transform: translateY(-50%);
    margin-top: 0;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.safe {
    background: var(--color-accent-primary);
    box-shadow: 0 0 5px var(--color-accent-primary);
}

.legend-dot.lawless {
    background: var(--color-accent-warm);
    box-shadow: 0 0 5px var(--color-accent-warm);
}

.legend-symbol.gate {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid var(--color-accent-gold);
    transform: rotate(45deg);
}

/* === Jump Gates === */
.jump-gate {
    position: absolute;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: var(--transition-normal);
    cursor: help;
    z-index: 5;
}

.jump-gate.active {
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid var(--color-accent-primary);
    box-shadow: 0 0 10px var(--color-accent-primary);
    animation: pulse-gate 2s ease-in-out infinite;
}

.jump-gate.planned {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--color-accent-gold);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    opacity: 0.8;
}

.jump-gate:hover {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
    background: var(--color-accent-primary);
}

.gate-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-primary);
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

@keyframes pulse-gate {

    0%,
    100% {
        box-shadow: 0 0 10px var(--color-accent-primary);
        border-color: var(--color-accent-primary);
    }

    50% {
        box-shadow: 0 0 20px var(--color-accent-primary);
        border-color: white;
    }
}

/* === Development Banner === */
.dev-banner {
    background: linear-gradient(90deg, rgba(255, 166, 0, 0.9) 0%, rgba(255, 102, 0, 0.9) 100%);
    color: #0d1117;
    text-align: center;
    padding: 8px 0;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.25);
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 998;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dev-banner .dev-icon {
    margin-right: 8px;
}

/* Adjust layout to prevent overlap */
#hero {
    margin-top: 40px;
}

/* === Hero Video Fix === */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
    overflow: hidden;
}


/* Dark overlay deleted as per user request to brighten video */
/* .hero-video-container::after rule removed */

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Full visibility, no ghosting */
    z-index: 0;
}

/* Hide static background image to prevent ghosting/loading flash */
.hero-background {
    display: none;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

.tool-card {
    background: var(--color-surface-elevated);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.tool-card:hover {
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 217, 255, 0.1);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-accent-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .discord-status {
        display: none;
    }
}

/* === Discord Status Indicator === */
.discord-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-left: 12px;
}

.discord-status .discord-icon {
    color: #5865F2;
    flex-shrink: 0;
}

.discord-status .voice-icon {
    color: var(--color-success);
    flex-shrink: 0;
}

.discord-status .discord-count {
    color: var(--color-text-primary);
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.discord-status .discord-separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 2px;
}
