:root {
    --primary: #34d399;       /* Emerald segar */
    --primary-dark: #10b981;
    --accent: #fbbf24;        /* Amber hangat seperti kopi & matahari shaders */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(15, 23, 42, 0.58);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-hover: rgba(30, 41, 59, 0.78);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Variasi Font Minecraft */
.mc-font {
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 0.5px;
}

/* Background Pemandangan Minecraft Shaders */
.bg-layer {
    position: fixed;
    inset: -5%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.2s ease-in-out;
    will-change: transform;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.45) 0%,
        rgba(15, 23, 42, 0.72) 50%,
        rgba(15, 23, 42, 0.94) 100%
    );
    backdrop-filter: blur(2px);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.35rem;
}

.brand .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-ip-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: var(--primary);
    padding: 0.55rem 1rem;
    border-radius: 99px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-ip-btn:hover {
    background: var(--primary);
    color: #064e3b;
}

.nav-ip-btn svg {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero-content {
    max-width: 880px;
    width: 100%;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1.75rem;
}

.badge-pill .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title .mc-font {
    display: inline-block;
    font-size: clamp(1.4rem, 3.3vw, 2.3rem);
    margin-top: 0.6rem;
    line-height: 1.4;
}

.text-gradient {
    background: linear-gradient(135deg, #34d399 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

/* Wrapper & Kotak IP (Java + Bedrock) */
.ip-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    max-width: 820px;
    margin: 0 auto;
}

.ip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.78);
    border: 1.5px solid rgba(52, 211, 153, 0.45);
    backdrop-filter: blur(16px);
    padding: 1.1rem 1.35rem;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.ip-box:hover {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 20px 40px rgba(52, 211, 153, 0.2);
}

.ip-box.bedrock-box {
    border-color: rgba(251, 191, 36, 0.45);
}

.ip-box.bedrock-box:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.2);
}

.ip-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.4rem;
}

.ip-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    color: var(--primary);
}

.ip-label svg {
    width: 14px;
    height: 14px;
}

.ip-label.amber-text {
    color: var(--accent);
}

.ip-address {
    font-size: 0.95rem;
    color: #ffffff;
}

.ip-port {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.ip-port strong {
    color: var(--accent);
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    transition: background 0.2s, color 0.2s;
}

.ip-port strong:hover {
    background: var(--accent);
    color: #451a03;
}

.ip-action {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--primary);
    color: #064e3b;
    padding: 0.65rem 0.95rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.ip-box:hover .ip-action {
    filter: brightness(1.08);
}

.ip-action.amber-btn {
    background: var(--accent);
    color: #451a03;
}

.ip-action svg {
    width: 16px;
    height: 16px;
}

/* Section Umum */
.section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.mc-tag {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

/* Grid Fitur */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
}

.feature-card:hover {
    background: var(--glass-hover);
    border-color: rgba(52, 211, 153, 0.35);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.icon-box.emerald { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.icon-box.amber   { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.icon-box.sky     { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.icon-box.rose    { background: rgba(251, 113, 133, 0.15); color: #fb7185; }
.icon-box.purple  { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.icon-box.teal    { background: rgba(45, 212, 191, 0.15); color: #2dd4bf; }
.icon-box.orange  { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.icon-box.indigo  { background: rgba(129, 140, 248, 0.15); color: #818cf8; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Aturan Server */
.rules-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rule-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.rule-number {
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 0.75rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.rule-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.rule-content p {
    font-size: 0.94rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.85);
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-brand .mc-font {
    color: var(--primary);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.4rem;
}

.footer-brand p, .copyright {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #065f46;
    color: #ecfdf5;
    border: 1px solid #34d399;
    padding: 0.9rem 1.3rem;
    border-radius: 12px;
    font-size: 0.92rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .ip-wrapper {
        grid-template-columns: 1fr;
    }
    .ip-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .ip-info {
        align-items: center;
        text-align: center;
    }
    .ip-action {
        width: 100%;
        justify-content: center;
    }
    .rule-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}