/* =============================================================
   home.css — KitsuMC Shared Nav v2 + Homepage Sections
   Loaded by all pages. Extends index.css without breaking it.
   ============================================================= */


/* ===== SHARED: NAV RESET & STRUCTURE ===== */

nav {
    padding: 0;
    background: rgba(15, 5, 10, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* 3-group layout — pinkyslauncher.com style */
.nav-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 0 0 auto;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 0 auto;
    justify-content: flex-end;
}

/* Brand icon — Hello Kitty kitsune style */
.brand-icon {
    width: 50px;
    height: 50px;
    image-rendering: pixelated;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255,140,26,0.55)) drop-shadow(0 0 4px rgba(255,165,50,0.3));
    transition: transform 0.2s var(--ease-bounce), filter 0.2s;
}
.brand:hover .brand-icon {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 16px rgba(255,140,26,0.85));
}

/* Online pill — sits right next to logo on the LEFT (pinkyslauncher style) */
.online-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(125, 255, 154, 0.07);
    border: 1.5px solid rgba(125, 255, 154, 0.22);
    padding: 0.26rem 0.68rem;
    border-radius: 50px;
    font-family: var(--font-mc);
    font-size: 0.58rem;
    color: #7dff9a;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(125, 255, 154, 0.4);
    white-space: nowrap;
}

/* Nav links — clean, no heavy box */
.nav-links {
    display: flex;
    gap: 0.15rem;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    outline: none;
}

.nav-links a {
    font-family: var(--font-mc);
    font-size: 0.62rem;
    color: var(--text-dim);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 0.44rem 1.05rem;
    border-radius: 7px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent);
    background: rgba(255, 140, 26, 0.1);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Theme toggle button */
.theme-toggle {
    width: 32px;
    height: 32px;
    background: rgba(255, 140, 26, 0.07);
    border: 1.5px solid var(--border-subtle);
    border-radius: 7px;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 140, 26, 0.14);
    color: var(--accent);
    border-color: var(--accent);
}

/* Server info button */
.server-info-btn {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    background: rgba(255, 140, 26, 0.07);
    border: 1.5px solid var(--border-subtle);
    padding: 0.42rem 0.9rem;
    border-radius: 8px;
    font-family: var(--font-mc);
    font-size: 0.57rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.server-info-btn:hover {
    background: rgba(255, 140, 26, 0.14);
    color: var(--text-primary);
    border-color: var(--accent);
}

/* Sign Up Now button — rightmost, no extra margin */
.signup-btn {
    background: var(--accent);
    color: #fff !important;
    padding: 0.48rem 1.1rem;
    border-radius: 8px;
    font-family: var(--font-mc);
    font-size: 0.57rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 3px 0 var(--plush-dark), 0 4px 16px var(--accent-glow);
    transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s var(--ease-bounce);
    margin-left: 0;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--plush-dark), 0 8px 26px var(--accent-glow);
    color: #fff !important;
}

.signup-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--plush-dark), 0 2px 10px var(--accent-glow);
}


/* ===== HERO SECTION ===== */

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background video */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    opacity: 0.85;
    transform: scale(1.08);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(15, 5, 10, 0.92) 0%, rgba(15, 5, 10, 0.72) 45%, rgba(15, 5, 10, 0.28) 75%, rgba(15, 5, 10, 0.08) 100%),
        linear-gradient(180deg, rgba(15, 5, 10, 0.25) 35%, rgba(15, 5, 10, 0.9) 100%);
}

/* Floating pixel particles */
.floating-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, rgba(255, 145, 30, 0.75) 0%, rgba(230, 100, 10, 0.55) 100%);
    border-radius: 3px;
    opacity: 0;
    animation: particleDrift var(--d, 5s) ease-in-out var(--delay, 0s) infinite;
    transform: scale(var(--s, 1)) rotate(15deg);
    box-shadow:
        0 0 10px rgba(255, 140, 26, 0.5),
        inset 0 1px 0 rgba(255, 200, 140, 0.5),
        inset -1px -1px 0 rgba(180, 40, 100, 0.3);
}

/* Pixel-art inner highlight */
.particle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: rgba(255, 225, 180, 0.5);
    border-radius: 1px;
}

@keyframes particleDrift {
    0%   { opacity: 0;    transform: scale(var(--s, 1)) rotate(10deg)  translateY(0px);   }
    10%  { opacity: 0.55; }
    40%  { opacity: 0.65; transform: scale(var(--s, 1)) rotate(28deg)  translateY(-18px); }
    70%  { opacity: 0.4;  transform: scale(var(--s, 1)) rotate(-8deg)  translateY(10px);  }
    90%  { opacity: 0.55; }
    100% { opacity: 0;    transform: scale(var(--s, 1)) rotate(10deg)  translateY(0px);   }
}

/* Two-column hero layout */
.hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 5rem max(5%, 2rem) 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 0 1 580px;
    min-width: 0;
}

.hero-mascot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-character {
    width: clamp(240px, 34vw, 460px);
    height: auto;
    filter: drop-shadow(0 24px 64px rgba(255, 140, 26, 0.45)) drop-shadow(0 0 32px rgba(255, 140, 26, 0.2));
    animation: float 3.8s ease-in-out infinite;
    user-select: none;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 140, 26, 0.1);
    border: 1.5px solid rgba(255, 140, 26, 0.22);
    padding: 0.28rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    line-height: 1;
}

.home-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.08;
    margin-bottom: 1.3rem;
    color: var(--text-primary);
    text-shadow: 4px 4px 0 rgba(80, 40, 0, 0.8), 0 0 60px rgba(255, 140, 26, 0.18);
    text-wrap: balance;
    letter-spacing: 0.01em;
}

.home-hero h1 .highlight {
    color: var(--accent);
    text-shadow: 4px 4px 0 var(--plush-dark), 0 0 40px var(--accent-glow);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 52ch;
    margin-bottom: 2.2rem;
    line-height: 1.72;
    font-weight: 600;
    text-wrap: pretty;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-download {
    background: var(--accent);
    color: #fff;
    padding: 0.95rem 2rem;
    font-family: var(--font-mc);
    font-size: 0.68rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 5px 0 var(--plush-dark), 0 8px 26px var(--accent-glow);
    transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s var(--ease-bounce);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 0 var(--plush-dark), 0 14px 38px var(--accent-glow);
    color: #fff;
}

.btn-download:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--plush-dark);
}

.btn-features {
    background: rgba(255, 140, 26, 0.08);
    border: 2px solid var(--border-subtle);
    color: var(--text-dim);
    padding: 0.95rem 2rem;
    font-family: var(--font-mc);
    font-size: 0.68rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-bounce);
    backdrop-filter: blur(10px);
}

.btn-features:hover {
    background: rgba(255, 140, 26, 0.16);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-3px);
}


/* ===== STATS BAR ===== */

.stats-bar {
    background: rgba(22, 8, 15, 0.97);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.4rem 5%;
    position: relative;
    z-index: 10;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 140, 26, 0.09);
    border: 1.5px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-text strong {
    display: block;
    font-family: var(--font-mc);
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.stat-text span {
    font-size: 0.73rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 34px;
    background: var(--border-subtle);
    flex-shrink: 0;
}


/* ===== ABOUT SECTION ===== */

.about-section {
    padding: 7rem 8%;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    font-family: var(--font-mc);
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 1.1rem;
    text-shadow: 4px 4px 0 rgba(80, 40, 0, 0.5);
    text-wrap: balance;
    letter-spacing: 0.01em;
}

.about-text h2 .accent-word {
    color: var(--accent);
    text-shadow: 3px 3px 0 var(--plush-dark), 0 0 25px var(--accent-glow);
}

.about-text > p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 60ch;
    font-weight: 600;
    margin-bottom: 1.8rem;
    text-wrap: pretty;
}

.about-perks {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.perk-item i {
    color: var(--accent);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.about-image {
    flex: 0 0 460px;
    max-width: 100%;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    border: 2px solid var(--border-subtle);
    box-shadow: 8px 8px 0 rgba(80, 40, 0, 0.28), 0 24px 60px rgba(255, 140, 26, 0.1);
    display: block;
}

.about-image-deco {
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 140, 26, 0.12);
    border-radius: 18px;
    pointer-events: none;
}


/* ===== FEATURES SECTION ===== */

.features-section {
    padding: 6rem 8%;
    background: rgba(16, 5, 11, 0.99);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 10;
}

.section-heading {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 3.5rem;
}

.section-heading h2 {
    font-family: var(--font-mc);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--text-primary);
    margin-bottom: 0.7rem;
    text-shadow: 4px 4px 0 rgba(80, 40, 0, 0.45);
    text-wrap: balance;
    letter-spacing: 0.01em;
}

.section-heading h2 .accent-word {
    color: var(--accent);
    text-shadow: 3px 3px 0 var(--plush-dark), 0 0 25px var(--accent-glow);
}

.section-heading p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 600;
    text-wrap: pretty;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.9rem 1.7rem;
    transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(255, 140, 26, 0.1);
    border-color: rgba(255, 140, 26, 0.32);
}

.feature-card.accent-card {
    background: rgba(255, 140, 26, 0.07);
    border-color: rgba(255, 140, 26, 0.22);
}

.fc-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 140, 26, 0.09);
    border: 1.5px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 1.15rem;
    transition: background 0.2s;
}

.feature-card:hover .fc-icon {
    background: rgba(255, 140, 26, 0.16);
}

.feature-card h3 {
    font-family: var(--font-mc);
    font-size: 0.87rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.4px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 600;
}


/* ===== NEWS SECTION ===== */

.home-news-section {
    padding: 6rem 8%;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 10;
}

.section-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-header-row h2 {
    font-family: var(--font-mc);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--text-primary);
    text-shadow: 3px 3px 0 rgba(80, 40, 0, 0.45);
    letter-spacing: 0.01em;
}

.view-all-link {
    font-family: var(--font-mc);
    font-size: 0.62rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.75;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.view-all-link:hover { opacity: 1; }

.news-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card-home {
    background: var(--card-bg);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.2s var(--ease-smooth), border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.news-card-home:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 26, 0.28);
    color: inherit;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.news-card-home time {
    font-size: 0.73rem;
    color: var(--text-dim);
    font-weight: 700;
}

.news-card-home h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    flex: 1;
}

.news-card-home p {
    color: var(--text-dim);
    font-size: 0.875rem;
    line-height: 1.55;
    flex: 1;
    font-weight: 600;
}

.news-card-footer-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.read-more-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.75;
    transition: opacity 0.15s;
}

.read-more-link:hover { opacity: 1; }


/* ===== DOWNLOAD CTA SECTION ===== */

.download-cta-section {
    padding: 6rem 8%;
    background: rgba(14, 4, 10, 0.99);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.download-cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255, 140, 26, 0.06), transparent 70%);
    pointer-events: none;
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4.5rem;
}

.cta-text {
    flex: 1;
    min-width: 280px;
}

.cta-text h2 {
    font-family: var(--font-mc);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 rgba(80, 40, 0, 0.6);
    text-wrap: balance;
    letter-spacing: 0.01em;
}

.cta-text h2 .accent-word {
    color: var(--accent);
    text-shadow: 4px 4px 0 var(--plush-dark), 0 0 30px var(--accent-glow);
}

.cta-text p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.72;
    max-width: 50ch;
    margin-bottom: 2rem;
    font-weight: 600;
    text-wrap: pretty;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-visual {
    flex: 0 0 360px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-visual img {
    width: 100%;
    border-radius: 16px;
    border: 2px solid var(--border-subtle);
    box-shadow: 6px 6px 0 rgba(80, 40, 0, 0.28), 0 24px 56px rgba(255, 140, 26, 0.12);
    display: block;
}

.cta-visual-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse, rgba(255, 140, 26, 0.1), transparent 70%);
    pointer-events: none;
}


/* ===== SITE FOOTER ===== */

.site-footer {
    background: #0b0308;
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 8% 2.5rem;
    position: relative;
    z-index: 20;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mc);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    text-shadow: 3px 3px 0 var(--plush-dark), 0 0 20px var(--accent-glow);
    letter-spacing: 1.5px;
}

.footer-brand-link img {
    width: 26px;
    height: 26px;
    image-rendering: pixelated;
}

.footer-col-brand p {
    color: var(--text-dim);
    font-size: 0.86rem;
    line-height: 1.65;
    max-width: 36ch;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 0.55rem;
}

.social-btn {
    width: 34px;
    height: 34px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-btn:hover {
    background: rgba(255, 140, 26, 0.12);
    color: var(--accent);
    border-color: var(--accent);
}

.footer-col h4 {
    font-family: var(--font-mc);
    font-size: 0.62rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col ul li a {
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom-bar {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    opacity: 0.45;
    font-weight: 600;
}


/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 2, 6, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #1e0b15;
    border: 1.5px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 460px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(24px);
    transition: transform 0.35s var(--ease-bounce);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 140, 26, 0.05);
}

.modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: rgba(255, 140, 26, 0.07);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 140, 26, 0.14);
    color: var(--text-primary);
}

.modal-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 140, 26, 0.1);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.modal-box h2 {
    font-family: var(--font-mc);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.4px;
}

.modal-box p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.modal-box .modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--accent);
    color: #fff;
    padding: 0.9rem 2rem;
    font-family: var(--font-mc);
    font-size: 0.68rem;
    border-radius: 4px;
    box-shadow: 0 4px 0 var(--plush-dark), 0 6px 22px var(--accent-glow);
    transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-box .modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 var(--plush-dark), 0 12px 34px var(--accent-glow);
    color: #fff;
}


/* ===== LIGHT THEME ===== */

[data-theme="light"] {
    --bg-dark: #faf0f5;
    --card-bg: rgba(200, 80, 130, 0.06);
    --border-subtle: rgba(180, 50, 90, 0.14);
    --text-primary: #1a0810;
    --text-dim: #6a1a3a;
    --plush-dark: #b03060;
    --accent-glow: rgba(230, 100, 10, 0.3);
}

[data-theme="light"] body {
    background-color: var(--bg-dark);
}

[data-theme="light"] nav {
    background: rgba(250, 235, 245, 0.92);
    border-bottom-color: rgba(180, 50, 90, 0.12);
}

[data-theme="light"] .hero-overlay {
    background:
        linear-gradient(90deg, rgba(220, 150, 185, 0.92) 0%, rgba(220, 150, 185, 0.7) 45%, rgba(220, 150, 185, 0.28) 75%, rgba(220, 150, 185, 0.06) 100%),
        linear-gradient(180deg, rgba(220, 150, 185, 0.15) 35%, rgba(200, 120, 160, 0.88) 100%);
}

[data-theme="light"] .home-hero h1,
[data-theme="light"] .home-hero .hero-desc {
    text-shadow: none;
}

[data-theme="light"] .home-hero h1 .highlight {
    text-shadow: 2px 2px 0 rgba(160, 40, 80, 0.3);
}

[data-theme="light"] .stats-bar { background: rgba(248, 232, 242, 0.98); }
[data-theme="light"] .features-section { background: rgba(246, 228, 238, 0.99); }
[data-theme="light"] .download-cta-section { background: rgba(250, 236, 244, 0.99); }
[data-theme="light"] .site-footer { background: #f0d8e6; }

[data-theme="light"] .hero-badge {
    background: rgba(200, 80, 130, 0.08);
    border-color: rgba(180, 50, 90, 0.18);
}

/* Nav light mode — all interactive elements need explicit dark-on-light contrast */
[data-theme="light"] .nav-left .brand,
[data-theme="light"] .nav-left .brand:hover { color: var(--plush-dark); }

[data-theme="light"] .nav-links a { color: #5a1028; }
[data-theme="light"] .nav-links a.active,
[data-theme="light"] .nav-links a:hover { color: var(--accent); }

[data-theme="light"] .online-pill {
    background: rgba(160, 36, 90, 0.1);
    border-color: rgba(160, 36, 90, 0.2);
    color: #5a1028;
}

[data-theme="light"] .theme-toggle {
    background: rgba(160, 36, 90, 0.08);
    border-color: rgba(160, 36, 90, 0.2);
    color: #5a1028;
}
[data-theme="light"] .theme-toggle:hover {
    background: rgba(160, 36, 90, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}

[data-theme="light"] .server-info-btn {
    background: rgba(160, 36, 90, 0.08);
    border-color: rgba(160, 36, 90, 0.2);
    color: #5a1028;
}
[data-theme="light"] .server-info-btn:hover {
    background: rgba(160, 36, 90, 0.15);
    border-color: var(--accent);
    color: var(--plush-dark);
}

/* btn-features in the hero is on a dark fox overlay — needs solid contrast */
[data-theme="light"] .home-hero .btn-features {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(120, 10, 55, 0.6);
    color: #1a0810;
}
[data-theme="light"] .home-hero .btn-features:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: var(--plush-dark);
    color: #1a0810;
}

[data-theme="light"] .modal-box { background: #fff0f6; }
[data-theme="light"] .modal-overlay { background: rgba(200, 140, 170, 0.5); }


/* ===== SCROLL REVEAL ===== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }


/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
    .about-inner { flex-direction: column; gap: 3rem; }
    .about-image { flex: none; max-width: 560px; }
    .cta-inner { flex-direction: column; gap: 3rem; }
    .cta-visual { flex: none; width: 100%; max-width: 440px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
    .server-info-btn span { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-center { display: none; }
    .nav-container { padding: 0 1rem; }

    .home-hero h1 { font-size: 2.1rem; }
    .hero-body { flex-direction: column; align-items: flex-start; padding: 5rem 1.5rem 3rem; }
    .hero-mascot { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .news-grid-home { grid-template-columns: 1fr; }

    .stats-inner { justify-content: flex-start; gap: 1.2rem 2rem; }
    .stat-divider { display: none; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-col-brand { grid-column: span 1; }

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

@media (max-width: 480px) {
    .signup-btn { font-size: 0.54rem; padding: 0.42rem 0.65rem; }
    .hero-badges { gap: 0.35rem; }
    .hero-badge { font-size: 0.7rem; }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .btn-download, .btn-features { width: 100%; justify-content: center; }
}


/* ===== SEASONAL SECTION ===== */

.seasonal-section {
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 140, 26, 0.07) 0%, transparent 55%);
    border-top: 1px solid var(--border-subtle);
}

.season-deco {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    font-size: 2.8rem;
    opacity: 0.22;
    user-select: none;
    pointer-events: none;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 140, 26, 0.4));
}

.season-deco-right {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-size: 2rem;
    opacity: 0.14;
    user-select: none;
    pointer-events: none;
    animation: float 6s ease-in-out infinite reverse;
}

.season-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1.5px solid rgba(255, 140, 26, 0.35);
    color: var(--accent);
    font-family: var(--font-mc);
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
}

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

.seasonal-section .section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.seasonal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.season-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, border-color 0.25s;
}

.season-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 140, 26, 0.32);
    box-shadow: 0 18px 44px rgba(255, 140, 26, 0.1);
}

.season-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 140, 26, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.season-card h3 {
    font-family: var(--font-mc);
    font-size: 0.87rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}

.season-card p {
    color: var(--text-dim);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
    font-weight: 600;
}


/* ===== FAQ SECTION ===== */

.faq-section {
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.faq-section .section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-section .section-heading h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.4rem;
}

.faq-section .section-heading p {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 600;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-item.open {
    border-color: rgba(255, 140, 26, 0.32);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    gap: 1rem;
    line-height: 1.4;
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-chevron {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 140, 26, 0.1);
    border: 1px solid rgba(255, 140, 26, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.65rem;
    transition: transform 0.3s var(--ease-smooth), background 0.2s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    background: rgba(255, 140, 26, 0.2);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s var(--ease-smooth);
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    padding: 0 1.5rem;
    transition: padding 0.3s var(--ease-smooth);
}

.faq-item.open .faq-answer-inner {
    padding: 0 1.5rem 1.3rem;
}

.faq-answer-inner p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.75;
    font-weight: 600;
    margin: 0;
}

/* macOS button variant in CTA */
.btn-download-mac {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1.5px solid var(--border-subtle);
    box-shadow: none;
}

.btn-download-mac:hover {
    background: rgba(255, 140, 26, 0.08);
    border-color: rgba(255, 140, 26, 0.32);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 140, 26, 0.12);
}

.cta-java-note {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.8;
}

.cta-java-note i { color: var(--accent); font-size: 0.75rem; }

/* Responsive */
@media (max-width: 600px) {
    .seasonal-cards { grid-template-columns: 1fr; }
    .faq-question { font-size: 0.92rem; }
}

[data-theme="light"] .season-card {
    background: #fff;
    border-color: rgba(255, 140, 26, 0.15);
}

[data-theme="light"] .faq-item {
    background: #fff;
    border-color: rgba(255, 140, 26, 0.15);
}

[data-theme="light"] .faq-item.open {
    border-color: rgba(255, 140, 26, 0.4);
}

[data-theme="light"] .faq-question { color: var(--plush-dark); }
[data-theme="light"] .btn-download-mac {
    background: #fff;
    border-color: rgba(160, 36, 90, 0.25);
    color: var(--plush-dark);
}


/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    .hero-video-bg { display: none; }
    .particle { animation: none; opacity: 0.15; }
    .hero-character { animation: none; }
    .bg-slide,
    .modal-box,
    .modal-overlay { transition: none; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn-download:hover,
    .btn-features:hover,
    .signup-btn:hover,
    .feature-card:hover,
    .news-card-home:hover,
    .server-info-btn:hover { transform: none; }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   PAGE LOADER
   Full-screen branded overlay — fades out when page is ready.
   ============================================================ */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: #0e0b05;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    overflow: hidden;
}

[data-theme="light"] #page-loader {
    background: #fdf0f5;
}

#page-loader.loader-done {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.48s ease;
}

/* Background pixel particles */
.loader-pixels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.loader-px {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 140, 26, 0.22);
    border-radius: 1px;
    opacity: 0;
    animation: loaderPxDrift var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
    transform: rotate(12deg);
}

[data-theme="light"] .loader-px {
    background: rgba(200, 60, 110, 0.15);
}

@keyframes loaderPxDrift {
    0%,  100% { opacity: 0;    transform: translateY(0px)   rotate(10deg);  }
    30%        { opacity: 0.75; }
    70%        { opacity: 0.4;  transform: translateY(-22px) rotate(-12deg); }
}

/* Floating logo */
.loader-logo {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: loaderFloat 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 22px rgba(255, 140, 26, 0.55));
}

@keyframes loaderFloat {
    0%, 100% { transform: translateY(0px)   rotate(-3deg); }
    50%       { transform: translateY(-12px) rotate(3deg);  }
}

/* Wordmark */
.loader-wordmark {
    position: relative;
    z-index: 1;
    font-family: 'Silkscreen', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ff8c1a;
    letter-spacing: 7px;
    text-shadow:
        2px 2px 0 rgba(80, 0, 35, 0.9),
        0 0 22px rgba(255, 140, 26, 0.35);
    margin-top: -0.2rem;
}

[data-theme="light"] .loader-wordmark {
    text-shadow: 2px 2px 0 rgba(200, 60, 110, 0.18);
}

/* Progress bar */
.loader-track {
    position: relative;
    z-index: 1;
    width: 140px;
    height: 2px;
    background: rgba(255, 140, 26, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.35rem;
}

[data-theme="light"] .loader-track {
    background: rgba(200, 60, 110, 0.1);
}

#loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(220, 55, 115, 0.8), #ff8c1a, rgba(255, 165, 215, 0.9));
    border-radius: 2px;
    transition: width 0.44s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 9px rgba(255, 140, 26, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .loader-logo { animation: none; }
    .loader-px   { animation: none; opacity: 0.3; }
    #page-loader.loader-done { transition: none; opacity: 0; }
}
