/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0b0b10;
    --bg-card: rgba(18, 18, 28, 0.6);
    --bg-card-solid: #13131c;
    --bg-card-hover: #1a1a28;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --text: #e4e4ec;
    --text-muted: #8585a0;
    --accent: #9b59b6;
    --accent-light: #c084e0;
    --accent-glow: rgba(155, 89, 182, 0.25);
    --accent-glow-strong: rgba(155, 89, 182, 0.45);
    --success: #2ecc71;
    --gold: #f1c40f;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(155, 89, 182, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(88, 101, 242, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #d9a8f0; }

.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; color: var(--accent-light); }

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 11, 16, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-logo a, .nav-logo { color: var(--text); text-decoration: none; }
.nav-logo a:hover { color: var(--text); }
.nav-logo span {
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Hamburger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 1px;
}

.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Canvas ── */
.hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(ellipse at 50% 40%, rgba(155, 89, 182, 0.06) 0%, transparent 60%);
}

.hero.hero-compact {
    min-height: 70vh;
    padding-top: 6rem;
}

.hero-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-light);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid rgba(155, 89, 182, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #c8c8d8 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    background: linear-gradient(135deg, #c084e0 0%, #ec4899 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

.server-ip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(18, 18, 28, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    margin-bottom: 2rem;
    color: var(--text);
}

.server-ip:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow), inset 0 0 25px rgba(155, 89, 182, 0.05);
    transform: translateY(-2px);
}

.server-ip svg { color: var(--text-muted); flex-shrink: 0; }

.server-ip .copy-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    opacity: 0.7;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    color: var(--text-muted);
    opacity: 0.4;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.3s, background 0.2s;
    letter-spacing: 0.3px;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 6px 30px var(--accent-glow-strong), 0 2px 15px rgba(236, 72, 153, 0.2);
    color: white;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: rgba(155, 89, 182, 0.3);
    color: var(--accent-light);
    box-shadow: 0 4px 15px var(--accent-glow);
    background: rgba(155, 89, 182, 0.06);
}

/* ── Section ── */
.section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.05rem;
}

/* ── Feature Cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 89, 182, 0.2);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.1);
    background: rgba(22, 22, 34, 0.7);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(88, 101, 242, 0.08) 100%);
    border: 1px solid rgba(155, 89, 182, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── CTA Section ── */
.cta-section { padding-bottom: 4rem; }

.cta-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.06) 0%, rgba(18, 18, 28, 0.5) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(155, 89, 182, 0.15);
    border-top: 1px solid rgba(155, 89, 182, 0.25);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ── Rank Cards ── */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rank-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.75rem;
    transition: transform 0.25s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.rank-card:hover {
    transform: translateY(-6px);
    border-color: rgba(155, 89, 182, 0.3);
    box-shadow: 0 12px 40px var(--accent-glow);
    background: rgba(22, 22, 34, 0.7);
}

.rank-card.featured {
    border-color: rgba(155, 89, 182, 0.25);
    box-shadow: 0 0 40px var(--accent-glow);
    position: relative;
    background: linear-gradient(180deg, rgba(155, 89, 182, 0.06) 0%, var(--bg-card) 40%);
}

.rank-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    letter-spacing: 1.5px;
}

.rank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rank-name {
    font-size: 1.4rem;
    font-weight: 800;
}

.rank-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-light);
}

.rank-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.rank-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0.75rem 0;
}

.rank-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin: 1.25rem 0 0.5rem;
}

.rank-perks {
    list-style: none;
    flex-grow: 1;
}

.rank-perks li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.rank-perks li::before {
    content: '\203A';
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.rank-colors {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.2s;
}

.color-dot:hover { transform: scale(1.3); }

.rank-buy {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.15s;
    letter-spacing: 0.3px;
}

.rank-buy:hover {
    box-shadow: 0 6px 25px var(--accent-glow-strong), 0 2px 15px rgba(236, 72, 153, 0.2);
    transform: translateY(-2px);
}

/* ── Cosmetics collapse ── */
.cosmetics-toggle {
    font-size: 0.8rem;
    color: var(--accent-light);
    cursor: pointer;
    margin-top: 0.75rem;
    user-select: none;
    transition: color 0.2s;
}

.cosmetics-toggle:hover { color: #d9a8f0; }

.cosmetics-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cosmetics-content.open { max-height: 400px; }

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    background: rgba(11, 11, 16, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

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

/* ── Purchase Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: rgba(18, 18, 28, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal h2 { margin-bottom: 0.5rem; font-weight: 700; }
.modal p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

.modal input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.15);
}

.modal-actions { display: flex; gap: 0.75rem; }
.modal-actions .btn { flex: 1; text-align: center; justify-content: center; }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 300;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── Plugin Cards ── */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.plugin-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 2rem;
    transition: transform 0.25s, border-color 0.3s, box-shadow 0.3s;
}

.plugin-card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 89, 182, 0.3);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.1);
}

.plugin-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.plugin-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(155, 89, 182, 0.08);
    border: 1px solid rgba(155, 89, 182, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plugin-name {
    font-size: 1.3rem;
    font-weight: 800;
}

.plugin-version {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(155, 89, 182, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
}

.plugin-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.plugin-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.plugin-features { margin-bottom: 1.25rem; }

.plugin-actions {
    display: flex;
    gap: 0.75rem;
}

.plugin-btn { flex: 1; text-align: center; justify-content: center; }

.plugins-cta {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── MC Banner ── */
/* ── Discord Card ── */
.discord-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(88, 101, 242, 0.25);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.1);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, var(--bg-card) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}

.discord-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.discord-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.discord-members {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.discord-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.discord-online {
    background: #3ba55d;
    box-shadow: 0 0 6px rgba(59, 165, 93, 0.5);
}

.discord-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #5865F2;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-discord:hover {
    background: #4752c4;
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.35);
    transform: translateY(-1px);
}

.mc-banner {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.06) 0%, rgba(18, 18, 28, 0.5) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(155, 89, 182, 0.15);
    border-top: 1px solid rgba(155, 89, 182, 0.25);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.mc-banner-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.mc-banner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.mc-banner p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* ── Clickable Feature Cards ── */
.feature-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.feature-card-link:hover { color: inherit; }

/* ── Plugin Hero ── */
.plugin-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    background: radial-gradient(ellipse at 50% 30%, rgba(155, 89, 182, 0.06) 0%, transparent 60%);
}

.plugin-hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.plugin-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.plugin-hero .tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.plugin-hero-meta {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ── Steps Grid ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.step-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Compat Grid ── */
.compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.compat-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s;
}

.compat-item:hover { border-color: rgba(155, 89, 182, 0.3); }

.compat-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.compat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Docs Layout ── */
.docs-layout {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    padding: 2rem 1.5rem 4rem;
}

.docs-sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
}

.docs-sidebar-header { margin-bottom: 1.5rem; }

.docs-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.docs-back:hover { color: var(--accent-light); }

.docs-toc {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.docs-toc a {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.docs-toc a:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.docs-toc a.active { color: var(--accent-light); border-left-color: var(--accent); background: rgba(155, 89, 182, 0.05); }

.docs-content { min-width: 0; }

.docs-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.docs-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.docs-section {
    margin-bottom: 3rem;
    scroll-margin-top: 5rem;
}

.docs-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.docs-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}

.docs-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.docs-grid-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.docs-grid-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.docs-grid-item p { margin-bottom: 0; }

.docs-callout {
    background: rgba(155, 89, 182, 0.06);
    border: 1px solid rgba(155, 89, 182, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1rem 0;
    line-height: 1.6;
}

.docs-callout-warn {
    background: rgba(241, 196, 15, 0.06);
    border-color: rgba(241, 196, 15, 0.2);
}

.docs-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.docs-table th {
    text-align: left;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.docs-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-muted);
}

.docs-table tr:hover td { background: rgba(255,255,255,0.015); }

.docs-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
}

.docs-tag-op { background: rgba(155, 89, 182, 0.15); color: var(--accent-light); }

.docs-code {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
    margin: 1rem 0;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.docs-list li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
}

.docs-list li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-burger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 11, 16, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    .nav-links li { padding: 0.6rem 0; }

    .ranks-grid { grid-template-columns: 1fr; }
    .section { padding: 4rem 1rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }

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

    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; }
    .docs-toc { flex-direction: row; flex-wrap: wrap; gap: 0.25rem; }
    .docs-toc a { border-left: none; border-bottom: 2px solid transparent; padding: 0.4rem 0.6rem; font-size: 0.75rem; }
    .docs-toc a.active { border-bottom-color: var(--accent); border-left: none; }
    .docs-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.5rem; letter-spacing: 3px; }
    .server-ip { font-size: 0.9rem; padding: 0.6rem 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 2rem 1.25rem; }
}
