*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #1a472a;
    --green-mid: #2d6a4f;
    --green-light: #40916c;
    --green-glow: #52b788;
    --bg-dark: #0a0f0d;
    --bg-card: #111a15;
    --text: #e8f5e9;
    --text-dim: #81c784;
    --gold: #ffd54f;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(82, 183, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82, 183, 136, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.frog-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 20px rgba(82, 183, 136, 0.5));
}

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

h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 32px;
    background: linear-gradient(135deg, var(--green-glow), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-dim);
    font-size: 18px;
    margin-top: 12px;
    letter-spacing: 2px;
}

main {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: var(--green-glow);
    margin-bottom: 16px;
}

.hero p {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.server-info {
    padding: 20px;
}

.server-info h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-dim);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(82, 183, 136, 0.15);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.card.java::before { background: linear-gradient(90deg, #e53935, #ff8a65); }
.card.bedrock::before { background: linear-gradient(90deg, #5c6bc0, #42a5f5); }
.card.console::before { background: linear-gradient(90deg, #78909c, #b0bec5); }

.card:hover {
    transform: translateY(-4px);
    border-color: var(--green-glow);
    box-shadow: 0 12px 40px rgba(82, 183, 136, 0.15);
}

.card-badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
}

.java .card-badge { background: rgba(229, 57, 53, 0.15); color: #ff8a65; }
.bedrock .card-badge { background: rgba(92, 107, 192, 0.15); color: #7986cb; }
.console .card-badge { background: rgba(120, 144, 156, 0.15); color: #90a4ae; }

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(82, 183, 136, 0.08);
    border: 1px solid rgba(82, 183, 136, 0.15);
}

.card-icon i {
    font-size: 28px;
}

.card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-top: 12px;
    margin-bottom: 4px;
}

.card-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
}

.card-value:hover {
    background: rgba(82, 183, 136, 0.1);
}

.copy-hint {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--green-glow);
    margin-top: 6px;
    opacity: 0.7;
}

.coming-soon {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--text-dim);
    padding: 20px 0;
    opacity: 0.6;
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 13px;
    opacity: 0.5;
}

/* 404 Page */
.error-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(82, 183, 136, 0.4));
}

.error-code {
    font-family: 'Press Start 2P', monospace;
    font-size: 72px;
    margin: 24px 0 16px;
    background: linear-gradient(135deg, #e53935, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-text {
    font-size: 20px;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.back-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--bg-dark);
    background: var(--green-glow);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(82, 183, 136, 0.4);
}

@media (max-width: 600px) {
    h1 { font-size: 20px; }
    .frog-icon { width: 36px; height: 36px; }
    .hero h2 { font-size: 14px; }
    .error-code { font-size: 48px; }
}
