/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0A0A0F;
    --bg-secondary: #0D1117;
    --bg-card: rgba(13, 17, 23, 0.8);
    --amber: #FFB800;
    --amber-glow: rgba(255, 184, 0, 0.3);
    --ghost-blue: #00D4FF;
    --ghost-blue-dim: #B0C4DE;
    --ghost-glow: rgba(0, 212, 255, 0.3);
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --border-color: rgba(176, 196, 222, 0.15);
    --font-display: 'Orbitron', monospace, sans-serif;
    --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== HERO MODE SWITCH ===== */
.hero-mode-switch {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 8px;
}

.hero-mode-btn {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ghost-blue-dim);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.hero-mode-btn:hover {
    color: var(--text-primary);
}

.hero-mode-btn.active {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

/* ===== HERO NEWSFEED ===== */
.hero-newsfeed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    visibility: hidden;
    opacity: 0;
    padding: 16px 32px;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    display: flex;
    align-items: center;
    animation: holo-flicker 8s ease-in-out infinite;
    transition: visibility 0.3s, opacity 0.3s;
}

.hero-newsfeed.active {
    visibility: visible;
    opacity: 1;
}

@keyframes holo-flicker {
    0%, 100% { filter: brightness(0.88); }
    25% { filter: brightness(0.84); }
    50% { filter: brightness(0.92); }
    52% { filter: brightness(0.82); }
    54% { filter: brightness(0.9); }
    75% { filter: brightness(0.86); }
}

.newsfeed-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 80s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.nf-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.nf-item + .nf-item {
    border-left: 1px solid var(--border-color);
}

.nf-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.nf-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--amber);
    text-shadow: 0 0 15px var(--amber-glow);
    line-height: 1.2;
}

.nf-change {
    font-size: 0.75rem;
    font-weight: 700;
}

.nf-change.up {
    color: #4CAF50;
}

.nf-change.down {
    color: #F44336;
}

.nf-news {
    padding: 0 24px;
}

.nf-news-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.nf-news-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--ghost-blue-dim);
    text-shadow: 0 0 15px var(--ghost-glow);
    line-height: 1.2;
}

/* ===== SPACE BACKGROUND ===== */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        url('/static/images/space-bg.jpg') center center / cover no-repeat;
}

.stars-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.03) 0%, transparent 60%),
        rgba(10, 10, 15, 0.55);
}

/* ===== PATROL BEE ===== */
.hero-stats-wrap {
    position: relative;
}

.hero-panels {
    position: relative;
    margin: 12px 0;
}

.hero-stats {
    transition: visibility 0.3s, opacity 0.3s;
}

.hero-stats.hidden {
    visibility: hidden;
    opacity: 0;
}

.patrol-bee {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.patrol-bee-img {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.4));
}

.bee-thought {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--amber);
    text-shadow: 0 0 8px var(--amber-glow);
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 184, 0, 0.25);
    padding: 4px 12px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.bee-thought.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .patrol-bee-img {
        width: 100px;
    }

    .bee-thought {
        font-size: 0.5rem;
    }
}

/* ===== CORP LOGO ===== */
.corp-logo {
    width: 100px;
    margin-bottom: -8px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--ghost-glow)) drop-shadow(0 0 40px rgba(0, 212, 255, 0.15));
    animation: logo-glow 4s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 20px var(--ghost-glow)) drop-shadow(0 0 40px rgba(0, 212, 255, 0.15)); }
    50% { filter: drop-shadow(0 0 30px var(--ghost-glow)) drop-shadow(0 0 60px rgba(0, 212, 255, 0.25)); }
}

@media (max-width: 768px) {
    .hero-brand {
        gap: 14px;
    }

    .corp-logo {
        width: 70px;
    }
}

/* ===== FLOATING DISCORD BUTTON ===== */
.floating-discord {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 15, 0.75);
    border: 1px solid rgba(255, 184, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--amber);
}

.floating-discord:hover {
    background: rgba(255, 184, 0, 0.15);
    border-color: var(--amber);
    box-shadow: 0 0 20px var(--amber-glow);
    transform: translateY(-2px);
}

.discord-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.discord-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ===== SECTION NAV (next section button) ===== */
.section-nav {
    text-align: center;
    margin-top: 60px;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber) 50%, transparent);
    opacity: 0.4;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 3px;
    color: var(--ghost-blue-dim);
    text-shadow: 0 0 20px var(--ghost-glow);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.015) 2px,
        rgba(0, 212, 255, 0.015) 4px
    );
    z-index: 3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 4;
}

.hero-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.alliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--amber);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--amber-glow);
    padding: 0;
}

.alliance-logo {
    width: 32px;
    height: 32px;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 6px;
    color: #fff;
    text-shadow:
        0 0 30px var(--ghost-glow),
        0 0 60px rgba(0, 212, 255, 0.15),
        0 0 100px rgba(0, 212, 255, 0.08);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--ghost-blue-dim);
    border-bottom: 2px solid var(--ghost-blue-dim);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.5;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { bottom: 28px; opacity: 0.5; }
    50% { bottom: 20px; opacity: 0.9; }
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 32px;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--amber);
    text-shadow: 0 0 15px var(--amber-glow);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-stat-number-sm {
    font-size: 1.3rem;
}

.hero-stat-courier {
    gap: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--bg-primary);
    background: var(--amber);
    padding: 16px 48px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--amber-glow);
}

.cta-button:hover {
    background: #FFC107;
    box-shadow: 0 0 40px var(--amber-glow), 0 0 80px rgba(255, 184, 0, 0.15);
    transform: translateY(-2px);
}

.cta-button-large {
    font-size: 1.2rem;
    padding: 20px 60px;
}

.pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--amber-glow); }
    50% { box-shadow: 0 0 40px var(--amber-glow), 0 0 60px rgba(255, 184, 0, 0.15); }
}


/* ===== MEDIA GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    position: relative;
}

.video-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ghost-blue-dim);
    margin-bottom: 12px;
    text-align: center;
}

.video-frame {
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
}

.video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* ===== RECRUIT TEXT ===== */
.recruit-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.35rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.recruit-text p {
    margin-bottom: 16px;
}

.recruit-text strong {
    color: var(--ghost-blue);
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--ghost-blue-dim);
    padding: 36px 28px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.advantage-card {
    border-top-color: var(--amber);
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
    transform: translateY(-4px);
}

.card-icon {
    margin-bottom: 16px;
    color: var(--ghost-blue-dim);
}

.card-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.advantage-card .card-icon {
    color: var(--amber);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ghost-blue-dim);
    margin-bottom: 12px;
}

.card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--amber);
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    padding: 3px 10px;
    border-radius: 2px;
}


/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ADVANTAGES ===== */
.advantages-grid {
    grid-template-columns: repeat(3, 1fr);
}

.advantages-grid .card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.advantages-grid .card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-discord {
        padding: 8px 14px;
        right: 16px;
        bottom: 16px;
    }

    .discord-text {
        display: none;
    }

    .next-section-btn {
        bottom: 20px;
        width: 38px;
        height: 38px;
    }
    .hero-title {
        letter-spacing: 3px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cta-button-large {
        font-size: 1rem;
        padding: 16px 40px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 16px;
        gap: 8px;
    }

    .hero-stat {
        padding: 8px 16px;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-newsfeed {
        padding: 12px 16px;
    }

    .nf-item {
        padding: 0 12px;
    }

    .nf-price {
        font-size: 1.3rem;
    }

    .nf-news-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .alliance-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-stat {
        padding: 6px 12px;
    }

    .hero-stat-number {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .newsfeed-track {
        animation: none;
    }

    .patrol-bee {
        display: none;
    }
}
