/* ═══════════════════════════════════════════
   LARP GLOBAL STYLES
   New clean design system
═══════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #080808;
    --bg-secondary: #0e0e0e;
    --bg-card: #151515;
    --text: #ffffff;
    --text-secondary: #999999;
    --text-muted: #606060;
    --accent: #f97316;
    --border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #222 #0a0a0a;
    background: var(--bg);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 3px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease infinite;
}

.preloader-text {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.nav-logo img {
    height: 32px;
}

.nav-logo span {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-cta {
    padding: 0.6rem 1.25rem;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--text);
}

/* Nav Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.nav-btn svg {
    width: 14px;
    height: 14px;
}

.nav-btn.discord {
    background: #5865F2;
    color: #fff;
}

.nav-btn.discord:hover {
    background: #4752c4;
}

.nav-btn.join {
    background: var(--text);
    color: var(--bg);
}

.nav-btn.join:hover {
    background: var(--accent);
}

.nav-btn.staff {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.nav-btn.staff:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2rem;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--accent);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.mobile-nav-actions .nav-btn {
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
}

/* Chat Bubble */
.chat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(249, 115, 22, 0.4);
}

.chat-bubble svg {
    width: 24px;
    height: 24px;
    color: var(--bg);
    stroke: var(--bg);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    max-height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-icon img {
    width: 20px;
    height: 20px;
}

.chat-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.chat-header p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.chat-close:hover {
    color: var(--text);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
}

.chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent);
    color: var(--bg);
}

.chat-message.bot {
    align-self: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.chat-message.typing {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-send {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send:hover {
    transform: scale(1.05);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send svg {
    width: 18px;
    height: 18px;
}

/* Liberty Studios Badge */
.liberty-badge {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.liberty-badge:hover {
    padding-right: 1.5rem;
    background: rgba(201, 167, 108, 0.1);
    border-color: rgba(201, 167, 108, 0.3);
}

.liberty-badge img {
    width: 28px;
    height: 28px;
}

.liberty-badge-text {
    display: flex;
    flex-direction: column;
}

.liberty-badge-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.liberty-badge-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c9a76c;
}

/* ═══════════════════════════════════════════
   PAGE HEADERS
═══════════════════════════════════════════ */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25);
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 5, 5, 0.5) 0%,
            rgba(5, 5, 5, 0.3) 50%,
            rgba(5, 5, 5, 1) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 10;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
    background: var(--bg);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    height: 24px;
    opacity: 0.6;
}

.footer-logo span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-blur {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(20px);
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-blur.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-120px) rotate(-2deg);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(120px) rotate(2deg);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.reveal-3d {
    opacity: 0;
    transform: perspective(800px) rotateY(25deg) translateZ(-80px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-3d.active {
    opacity: 1;
    transform: perspective(800px) rotateY(0) translateZ(0) scale(1);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.3);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

.glow-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-in.active {
    opacity: 1;
    transform: translateY(0);
    animation: glowPulse 0.8s ease 0.5s;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 rgba(249, 115, 22, 0);
    }

    50% {
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.3), 0 0 80px rgba(249, 115, 22, 0.1);
    }

    100% {
        box-shadow: 0 0 0 rgba(249, 115, 22, 0);
    }
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.6s;
}

.reveal-delay-5 {
    transition-delay: 0.75s;
}

.reveal-delay-6 {
    transition-delay: 0.9s;
}

.reveal-delay-7 {
    transition-delay: 1.05s;
}

.reveal-delay-8 {
    transition-delay: 1.2s;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-logo span {
        display: none;
    }

    .nav-logo img {
        height: 28px;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .page-header {
        padding: 8rem 1.5rem 3rem;
    }

    .chat-widget {
        right: 1rem;
        left: 1rem;
        width: auto;
        bottom: 5.5rem;
        max-height: 400px;
    }

    .liberty-badge {
        display: none;
    }
}
