/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #09090b;
    color: #e4e4e7;
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========== Navbar ========== */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
}
nav.scrolled { background: rgba(9, 9, 11, 0.95); }
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
}
.logo { font-weight: 900; font-size: 1.4rem; letter-spacing: 1px; color: #fff; }
.logo span { color: #00ffcc; text-shadow: 0 0 12px rgba(0,255,204,0.4); }
.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a {
    color: #a1a1aa; font-weight: 500; font-size: 0.95rem;
    transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: #00ffcc;
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-discord-btn {
    padding: 8px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
    background: rgba(0,255,204,0.1); color: #00ffcc;
    border: 1px solid rgba(0,255,204,0.3);
    transition: all 0.3s;
}
.nav-discord-btn:hover {
    background: rgba(0,255,204,0.2); box-shadow: 0 0 20px rgba(0,255,204,0.15);
}
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px; background: #a1a1aa;
    margin: 5px 0; transition: 0.3s;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 10px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; border: none; text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, #00ffcc, #00cc99);
    color: #000; box-shadow: 0 4px 24px rgba(0,255,204,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,255,204,0.4);
}
.btn-outline {
    background: transparent; color: #00ffcc;
    border: 2px solid rgba(0,255,204,0.4);
}
.btn-outline:hover {
    background: rgba(0,255,204,0.08);
    border-color: #00ffcc;
}
.btn.small { padding: 10px 22px; font-size: 0.95rem; }

/* ========== Hero ========== */
#hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
    background: radial-gradient(ellipse at 50% 0%, #0d2b26 0%, #09090b 60%);
    overflow: hidden;
}
.hero-particles {
    position: absolute; inset: 0; pointer-events: none;
}
.hero-particles .particle {
    position: absolute; border-radius: 50%; background: rgba(0,255,204,0.15);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.7; }
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; }
.hero-badge {
    display: inline-block; padding: 6px 18px; border-radius: 999px;
    background: rgba(0,255,204,0.1); color: #00ffcc;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
    border: 1px solid rgba(0,255,204,0.2);
    margin-bottom: 24px;
}
.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900;
    line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, #00ffcc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.15rem; color: #a1a1aa; max-width: 550px;
    margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-top: 60px;
}
.stat { text-align: center; }
.stat-num {
    font-size: 2.4rem; font-weight: 900; color: #00ffcc;
    text-shadow: 0 0 20px rgba(0,255,204,0.3);
}
.stat-label { font-size: 0.85rem; color: #71717a; margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }
.hero-scroll-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.scroll-arrow {
    width: 24px; height: 24px; border-right: 2px solid #3f3f46;
    border-bottom: 2px solid #3f3f46; transform: rotate(45deg);
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== Sections Common ========== */
section { padding: 100px 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
    margin-bottom: 12px;
}
.section-sub { color: #71717a; font-size: 1.1rem; }

/* ========== Features ========== */
#features { max-width: 1200px; margin: 0 auto; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #18181b; border: 1px solid #27272a; border-radius: 16px;
    padding: 36px 28px; transition: all 0.4s ease;
}
.feature-card:hover {
    border-color: rgba(0,255,204,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,255,204,0.08);
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.feature-card p { color: #a1a1aa; font-size: 0.95rem; line-height: 1.7; }

/* ========== Mods ========== */
#mods {
    max-width: 1200px; margin: 0 auto;
    background: #0c0c0f; border-top: 1px solid #1a1a1e; border-bottom: 1px solid #1a1a1e;
    padding: 100px 24px;
}
.mod-filter {
    display: flex; justify-content: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 20px; border-radius: 999px;
    border: 1px solid #27272a; background: transparent;
    color: #a1a1aa; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: #52525b; color: #fff; }
.filter-btn.active {
    background: rgba(0,255,204,0.1); color: #00ffcc;
    border-color: rgba(0,255,204,0.3);
}
.mods-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.mod-card {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; background: #18181b;
    border: 1px solid #27272a; border-radius: 10px;
    font-size: 0.95rem; font-weight: 500; color: #e4e4e7;
    transition: all 0.25s;
}
.mod-card:hover {
    border-color: rgba(0,255,204,0.3);
    background: #1c1c20;
}
.mod-card.hidden { display: none; }
.mod-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.mod-dot.display { background: #3b82f6; }
.mod-dot.player { background: #f59e0b; }
.mod-dot.render { background: #a855f7; }
.mod-dot.chat { background: #22c55e; }
.mod-dot.hypixel { background: #ef4444; }
.mod-dot.optimization { background: #00ffcc; }

/* ========== Transition Section ========== */
#transition {
    max-width: 900px; margin: 0 auto;
    padding: 100px 24px; text-align: center;
}
.transition-inner {
    background: linear-gradient(145deg, #18181b, #111115);
    border: 1px solid #27272a; border-radius: 20px;
    padding: 60px 40px;
}
.transition-badge {
    display: inline-block; padding: 4px 14px; border-radius: 999px;
    background: rgba(239,68,68,0.12); color: #ef4444;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 20px;
}
#transition h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; color: #fff; }
#transition p { color: #a1a1aa; max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.transition-columns {
    display: flex; align-items: center; justify-content: center;
    gap: 24px; flex-wrap: wrap;
}
.transition-col {
    flex: 1; min-width: 220px; padding: 24px;
    border-radius: 12px; text-align: left;
}
.transition-col.old { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); }
.transition-col.new { background: rgba(0,255,204,0.06); border: 1px solid rgba(0,255,204,0.15); }
.transition-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.transition-col.old h4 { color: #ef4444; }
.transition-col.new h4 { color: #00ffcc; }
.transition-col ul { list-style: none; }
.transition-col li {
    padding: 4px 0; font-size: 0.9rem; color: #a1a1aa;
}
.transition-col li::before { content: '•'; margin-right: 8px; }
.transition-col.old li::before { color: #ef4444; }
.transition-col.new li::before { color: #00ffcc; }
.transition-arrow {
    font-size: 2rem; color: #52525b; font-weight: 300;
}

/* ========== Install ========== */
#install {
    max-width: 1100px; margin: 0 auto; text-align: center;
}
.steps-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 20px;
}
.step-card {
    background: #18181b; border: 1px solid #27272a; border-radius: 16px;
    padding: 36px 28px; text-align: left;
    transition: all 0.3s; position: relative;
}
.step-card:hover {
    border-color: rgba(0,255,204,0.3);
    transform: translateY(-4px);
}
.step-number {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(0,255,204,0.1); color: #00ffcc;
    font-weight: 800; font-size: 1.1rem;
    margin-bottom: 16px;
}
.step-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.step-card p { color: #a1a1aa; font-size: 0.95rem; line-height: 1.7; }
code {
    background: #27272a; padding: 3px 8px; border-radius: 5px;
    color: #e4e4e7; font-family: 'Courier New', monospace; font-size: 0.85rem;
}

/* ========== FAQ ========== */
#faq { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #18181b; border: 1px solid #27272a; border-radius: 12px;
    overflow: hidden; transition: border-color 0.3s;
}
.faq-item:hover, .faq-item[open] { border-color: rgba(0,255,204,0.2); }
.faq-item summary {
    padding: 20px 24px; cursor: pointer; font-weight: 600;
    font-size: 1rem; color: #e4e4e7; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 1.4rem; color: #52525b; transition: transform 0.3s;
}
.faq-item[open] summary::after { content: '−'; color: #00ffcc; }
.faq-item p {
    padding: 0 24px 20px; color: #a1a1aa; line-height: 1.7; font-size: 0.95rem;
}
.faq-item a { color: #00ffcc; }
.faq-item a:hover { text-decoration: underline; }

/* ========== Footer ========== */
footer {
    border-top: 1px solid #1a1a1e;
    background: #0c0c0f;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 40px; padding: 60px 24px 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: #52525b; font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { color: #71717a; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.footer-links a { color: #a1a1aa; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: #00ffcc; }
.footer-bottom {
    text-align: center; padding: 20px 24px;
    border-top: 1px solid #1a1a1e;
}
.footer-bottom p { color: #3f3f46; font-size: 0.8rem; }

/* ========== Animations ========== */
.fade-in { animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hidden-scroll {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.show-scroll { opacity: 1; transform: translateY(0); }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-links, .nav-discord-btn { display: none; }
    .mobile-menu-btn { display: block; }
    nav.mobile-open .nav-links {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(9,9,11,0.98); backdrop-filter: blur(20px);
        padding: 20px 24px; gap: 16px;
        border-bottom: 1px solid #27272a;
    }
    nav.mobile-open .nav-discord-btn {
        display: inline-block;
        position: absolute; top: 100%; right: 24px;
        margin-top: 20px;
    }
    .hero-stats { gap: 24px; }
    .transition-arrow { display: none; }
    .transition-columns { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .mods-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .footer-inner { flex-direction: column; gap: 32px; }
}