/* ── PALETTE ──
   #e8a838  gold (juba)        primary accent
   #f57536  orange-fire        hover / heat
   #5a6b3a  military green     secondary
   #c41e1e  red                offline / alert
   #0d0d0d  near-black bg
   #1a1612  warm dark bg
   #d4d4d4  silver             headings
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #0d0d0d;
    color: #f1f1f1;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Rajdhani', Arial, sans-serif;
    letter-spacing: 0.05em;
}

/* ── HERO ── */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, #1f1812 0%, #0d0a07 70%, #050505 100%);
    padding: 40px 24px 44px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(232,168,56,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,168,56,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: gridDrift 22s linear infinite;
    z-index: 0;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 44px 44px; }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.14) 3px,
        rgba(0,0,0,0.14) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanMove 10s linear infinite;
}

@keyframes scanMove {
    from { background-position: 0 0; }
    to   { background-position: 0 80px; }
}

.hero .logo {
    width: clamp(220px, 38vw, 340px);
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.7)) drop-shadow(0 0 14px rgba(232,168,56,0.3));
    animation: logoPulse 3.4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 6px 18px rgba(0,0,0,0.7)) drop-shadow(0 0 12px rgba(232,168,56,0.25)); }
    50%       { filter: drop-shadow(0 6px 18px rgba(0,0,0,0.7)) drop-shadow(0 0 28px rgba(245,117,54,0.7)); }
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 4px 0 6px;
    position: relative;
    z-index: 2;
    color: #d4d4d4;
    text-shadow: 0 0 14px rgba(232,168,56,0.25);
}

.hero p {
    position: relative;
    z-index: 2;
    color: #c8c0b4;
    margin: 6px 0;
    font-size: 0.95rem;
}

.hero .highlight {
    text-decoration: underline;
    color: #e8a838;
    font-weight: 600;
}

.hero-network {
    position: relative;
    z-index: 2;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8a8175;
    margin: 6px 0 14px;
}

.hero-network a {
    color: #e8a838;
    text-decoration: none;
    border-bottom: 1px solid rgba(232,168,56,0.4);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.hero-network a:hover {
    color: #f57536;
    border-bottom-color: #f57536;
}

/* JS-driven typewriter — JS adds chars, CSS handles cursor blink */
.typewriter {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8a838;
    display: inline-block;
    margin: 18px auto 0;
    border-right: 2px solid #e8a838;
    padding-right: 3px;
    animation: blink 0.75s step-end infinite;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 12px rgba(232,168,56,0.4);
}

.typewriter.done {
    animation: none;
    border-right-color: transparent;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ── REGION TABS ── */
.region-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 20px 8px;
    background: linear-gradient(180deg, #0d0a07 0%, #14110c 100%);
}

.region-tabs-label {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #e8a838;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.region-tabs-label::before,
.region-tabs-label::after {
    content: '';
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,168,56,0.7), transparent);
}

.region-tabs-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.region-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(232,168,56,0.14), rgba(90,107,58,0.1));
    color: #e8d4a8;
    border: 2px solid rgba(232,168,56,0.4);
    border-radius: 9px;
    padding: 14px 34px;
    cursor: pointer;
    box-shadow:
        0 4px 14px rgba(0,0,0,0.55),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.region-tab .pin {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.9;
}

.region-tab:hover:not(.active) {
    background: linear-gradient(135deg, rgba(232,168,56,0.25), rgba(245,117,54,0.15));
    color: #fff;
    border-color: rgba(232,168,56,0.7);
    transform: translateY(-2px);
}

.region-tab.active {
    background: linear-gradient(135deg, #e8a838, #c47a1f);
    color: #1a1208;
    border-color: #ffd97a;
    box-shadow:
        0 0 24px rgba(232,168,56,0.7),
        0 0 48px rgba(245,117,54,0.3),
        inset 0 0 0 1px rgba(255,255,255,0.25);
    transform: translateY(-2px);
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

.region-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd97a, transparent);
    box-shadow: 0 0 8px #e8a838;
}

body[data-region="norte"]   .input-wrapper[data-region="sudeste"] { display: none; }
body[data-region="sudeste"] .input-wrapper[data-region="norte"]   { display: none; }

/* ── CONTAINER ── */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background:
        radial-gradient(ellipse at top, #1a1612 0%, #0d0a07 60%, #0a0805 100%);
    gap: 24px;
    padding: 32px 20px 40px;
}

/* ── SERVER CARDS ── */
.server-card {
    position: relative;
    background: rgba(28, 22, 14, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(232,168,56,0.2);
    border-radius: 12px;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.04);
    width: 265px;
    padding: 18px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.server-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow:
        0 10px 36px rgba(0,0,0,0.7),
        0 0 28px rgba(232,168,56,0.5),
        0 0 56px rgba(245,117,54,0.18);
    border-color: rgba(232,168,56,0.65);
}

.server-card[data-mode]::after {
    content: attr(data-mode);
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e8a838, #c47a1f);
    color: #1a1208;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,217,122,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.server-card img {
    max-width: 100%;
    height: 148px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.server-card h3 {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 12px 0 6px;
    color: #f1f1f1;
}

.server-card p {
    font-size: 0.82rem;
    color: #bbb;
    margin-bottom: 10px;
    line-height: 1.45;
}

/* ── IP INPUT ── */
.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.copy-input {
    width: 85%;
    padding: 9px 10px;
    border: 1px solid rgba(232,168,56,0.25);
    border-radius: 6px;
    font-size: 0.82rem;
    text-align: center;
    cursor: pointer;
    background-color: rgba(20,16,10,0.75);
    color: #f0e0c0;
    font-family: 'Inter', Arial, monospace;
    transition: background 0.2s, border-color 0.2s;
}

.copy-input:focus { outline: none; }

.copy-input:hover {
    background-color: rgba(50,38,18,0.85);
    border-color: rgba(245,117,54,0.6);
    color: #fff;
}

/* ── STATUS INDICATOR ── */
.status-indicator {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.status-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
    transition: opacity 0.3s;
}

.status-dot-inner {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #555;
    transition: background-color 0.4s ease;
}

.status-indicator.online .status-dot-inner { background: #00ff66; }
.status-indicator.online .status-ring {
    border-color: #00ff66;
    opacity: 1;
    animation: pulseRing 1.5s ease-out infinite;
}

.status-indicator.offline .status-dot-inner { background: #ff4444; }

@keyframes pulseRing {
    0%   { transform: scale(0.8);  opacity: 0.9; }
    70%  { transform: scale(1.5);  opacity: 0; }
    100% { transform: scale(0.8);  opacity: 0; }
}

/* ── COMING SOON CARDS ── */
.server-card.coming-soon {
    opacity: 0.72;
    pointer-events: none;
}

.server-card.coming-soon img {
    filter: grayscale(55%) brightness(0.65);
}

.soon-badge {
    position: relative;
    overflow: hidden;
    display: inline-block;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #bbb;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    padding: 10px 28px;
    margin-top: 6px;
}

.soon-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(232,168,56,0.4),
        transparent
    );
    animation: shimmer 2.4s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* ── FOOTER ── */
.contact-section {
    background-color: #08070a;
    color: #f1f1f1;
    padding: 40px 24px 32px;
    text-align: center;
    border-top: 1px solid rgba(232,168,56,0.25);
}

.contact-section h2 {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #e8a838;
}

.contact-section > p {
    font-size: 0.9rem;
    color: #999;
    margin: 0 0 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #d4c8a8;
    text-decoration: none;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(232,168,56,0.08);
    border: 1px solid rgba(232,168,56,0.25);
    border-radius: 8px;
    padding: 10px 20px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.social-btn:hover {
    background: rgba(245,117,54,0.2);
    color: #fff;
    border-color: rgba(245,117,54,0.6);
    box-shadow: 0 0 16px rgba(232,168,56,0.5);
    transform: translateY(-3px);
}

.social-btn svg { flex-shrink: 0; }

.footer-copy {
    font-size: 0.78rem;
    color: #777;
    margin: 0;
}

.footer-copy a {
    color: #e8a838;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-copy a:hover {
    color: #f57536;
}

/* ── TOAST ── */
#toast {
    visibility: hidden;
    min-width: 220px;
    background: rgba(3, 192, 28, 0.85);
    color: #fff;
    text-align: center;
    border-radius: 7px;
    padding: 10px 18px;
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 9999;
    font-size: 0.85rem;
    font-family: 'Inter', Arial, sans-serif;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#toast.show {
    visibility: visible;
    opacity: 1;
}
