:root {
    --bg: #06090f;
    --bg-card: #0d1117;
    --bg-card-hover: #151b25;
    --border: #1b2332;
    --border-hover: #2a3a52;
    --text: #d1dae4;
    --text-dim: #5e748a;
    --accent: #4f8ff7;
    --accent2: #6ea8ff;
    --success: #2dd4a0;
    --danger: #f06060;
    --warning: #e8a73e;
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Single soft vignette — not a grid, not noise, just depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 143, 247, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hidden { display: none !important; }

/* ── Nav ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(6, 9, 15, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.logo { font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.logo .accent { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; white-space: nowrap; }
.nav-links a { color: var(--text-dim); font-size: 0.87rem; font-weight: 500; transition: color 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.btn-discord {
    background: #5865f2 !important; color: #fff !important;
    padding: 7px 15px; border-radius: 7px; font-weight: 600; font-size: 0.84rem;
}
.btn-discord:hover { background: #4752c4 !important; }

/* ── Hero (shopee page) ── */
.hero {
    padding: 150px 24px 100px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-inner { max-width: 660px; margin: 0 auto; }
.hero-badge {
    display: inline-block; padding: 5px 14px;
    background: rgba(79, 143, 247, 0.08); border: 1px solid rgba(79, 143, 247, 0.18);
    border-radius: 6px; font-size: 0.77rem; color: var(--accent);
    margin-bottom: 22px; font-weight: 600; letter-spacing: 0.3px;
}
.hero h1 {
    font-size: 3rem; font-weight: 900; letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 18px;
}
.hero-sub { font-size: 1.08rem; color: var(--text-dim); max-width: 520px; margin: 0 auto 34px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }

/* ── Buttons ── */
.btn {
    display: inline-block; padding: 11px 26px; border-radius: 8px;
    font-weight: 700; font-size: 0.9rem; transition: all 0.2s;
    cursor: pointer; border: none;
}
.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 12px rgba(79, 143, 247, 0.2);
}
.btn-primary:hover {
    background: #3d7de6; color: #fff;
    box-shadow: 0 4px 20px rgba(79, 143, 247, 0.3);
}
.btn-outline { border: 1px solid var(--border); color: var(--text-dim); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }

/* ── Features ── */
.features { padding: 90px 0; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.features h2, .code-section h2, .pricing h2, .regions h2 {
    text-align: center; font-size: 1.75rem; font-weight: 800;
    margin-bottom: 44px; letter-spacing: -0.8px;
}
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: border-color 0.25s, background 0.25s;
}
.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.feature-icon {
    font-size: 1.4rem; font-weight: 800; color: #3f3f46;
    margin-bottom: 14px; font-family: 'JetBrains Mono', monospace;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; }

/* ── Code Section ── */
.code-section { padding: 70px 0; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.code-tabs { display: flex; gap: 6px; margin-bottom: 14px; justify-content: center; }
.tab {
    padding: 7px 18px; border-radius: 6px; border: 1px solid var(--border);
    background: transparent; color: var(--text-dim); cursor: pointer;
    font-size: 0.84rem; font-weight: 600; transition: all 0.15s;
}
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px; overflow-x: auto; max-width: 680px; margin: 0 auto;
}
.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.83rem; color: var(--text); line-height: 1.75;
    white-space: pre;
}

/* ── Pricing ── */
.pricing { padding: 90px 0; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.pricing-sub { text-align: center; color: var(--text-dim); margin-top: -32px; margin-bottom: 44px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px; text-align: center; position: relative;
    transition: border-color 0.25s;
}
.pricing-card:hover { border-color: var(--border-hover); }
.pricing-card.featured { border-color: var(--accent); }
.featured-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; padding: 3px 14px;
    border-radius: 6px; font-size: 0.72rem; font-weight: 700;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
.price { font-size: 2.1rem; font-weight: 900; margin-bottom: 22px; color: #fff; }
.price span { font-size: 0.85rem; font-weight: 500; }
.pricing-card ul { list-style: none; margin-bottom: 26px; }
.pricing-card li {
    padding: 7px 0; color: var(--text-dim); font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card .btn { width: 100%; }

/* ── Regions ── */
.regions { padding: 70px 0; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.region-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.region-tags span {
    padding: 7px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px; font-size: 0.84rem; color: var(--text-dim); font-weight: 500;
    transition: border-color 0.2s;
}
.region-tags span:hover { border-color: var(--border-hover); }

/* ── Footer ── */
footer {
    padding: 36px 0; text-align: center;
    border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.82rem;
    position: relative; z-index: 1;
}

/* ── Responsive — Tablet ── */
@media (max-width: 768px) {
    .hero { padding: 115px 16px 60px; }
    .hero h1 { font-size: 2.1rem; letter-spacing: -1px; }
    .hero-sub { font-size: 0.95rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 270px; text-align: center; }

    .nav-inner { padding: 0 12px; }
    .nav-links { gap: 10px; overflow-x: auto; }
    .nav-links a { font-size: 0.78rem; flex-shrink: 0; }
    .btn-discord { padding: 5px 10px; font-size: 0.78rem; flex-shrink: 0; }

    .features, .pricing, .regions { padding: 56px 0; }
    .features h2, .code-section h2, .pricing h2, .regions h2 { font-size: 1.4rem; margin-bottom: 30px; }

    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 350px; margin: 0 auto; }
    .code-block { padding: 14px; }
    .code-block code { font-size: 0.73rem; }

    .container { padding: 0 16px; }
}

/* ── Responsive — Mobile ── */
@media (max-width: 480px) {
    .hero { padding: 96px 12px 44px; }
    .hero h1 { font-size: 1.75rem; }
    .hero-badge { font-size: 0.68rem; padding: 4px 10px; }
    .hero-sub { font-size: 0.88rem; }

    .nav-inner { height: 52px; }
    .logo { font-size: 1.05rem; flex-shrink: 0; }
    .nav-links { gap: 6px; }
    .nav-links a { font-size: 0.7rem; }
    .btn-discord { padding: 4px 8px; font-size: 0.7rem; }

    .feature-card { padding: 20px; }
    .feature-card h3 { font-size: 0.98rem; }
    .code-tabs { flex-wrap: wrap; }
    .tab { padding: 5px 12px; font-size: 0.78rem; }
    .pricing-card { padding: 22px; }
    .region-tags span { padding: 5px 12px; font-size: 0.78rem; }
}
