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

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00b894;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

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

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

nav a:hover {
    color: var(--primary-color);
}

.hamburger-btn {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.hamburger-icon { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.hamburger-icon span { display: block; width: 100%; height: 3px; background: #fff; border-radius: 2px; transition: all .3s ease; }
.hamburger-btn.active .hamburger-icon span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger-btn.active .hamburger-icon span:nth-child(2) { opacity: 0; }
.hamburger-btn.active .hamburger-icon span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.mobile-nav-overlay { display:none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999; }
.mobile-nav-overlay.active { display:block; }
.mobile-nav { position: fixed; top:0; left:0; width: 75%; max-width: 320px; height: 100%; background: var(--bg-white); box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .3s ease; z-index: 1000; padding: 1rem; padding-top: 4rem; }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav ul { list-style:none; padding:0; margin:0; display:flex; flex-direction: column; gap: 0.75rem; }
.mobile-nav li { padding: 0.5rem 0.5rem; }
.mobile-nav a { color: var(--text-dark); font-weight: 600; text-decoration: none; font-size: 1.05rem; line-height: 1.6; display: flex; align-items: center; gap: 0.6rem; }
.mobile-nav .nav-icon { font-size: 1.2rem; }

.hero {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover {
    background: #009970;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
        justify-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 240px;
    }
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.5), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.server-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.server-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 35px rgba(0, 102, 204, 0.6), inset 0 0 20px rgba(0, 102, 204, 0.1);
    transform: translateY(-3px);
}

.server-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.server-flag {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow);
}

.server-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-ports {
    margin-bottom: 1.5rem;
    text-align: center;
}

.server-ports-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ports-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.port-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 3rem 2rem;
    margin-top: 3rem;
    border-top: none;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-banner {
    background: var(--bg-white);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.ad-space {
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    color: var(--text-light);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-space:empty::before {
    content: 'Espaço para anúncios';
    color: var(--text-light);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.modal-ssh {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-ssh h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.loader {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 1.5rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ssh-account-info {
    text-align: left;
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 1rem 0;
    line-height: 1.6;
    font-size: 0.92rem;
}

.ssh-account-info div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    gap: 0.5rem;
}

.ssh-account-info strong {
    color: var(--text-dark);
    flex-shrink: 0;
    font-size: 0.85rem;
}

.ssh-account-info span {
    color: var(--primary-color);
    font-weight: 600;
    word-break: break-all;
    text-align: right;
    font-size: 0.88rem;
}

.btn-copy {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 0.2rem;
}

.btn-copy:hover {
    background: var(--primary-color);
    color: white;
}

.btn-copy.copied {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.modal-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.75rem;
}

.modal-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; width: 100%; background: none; border: 0; font-size: 1rem; font-weight: 600; color: var(--text-dark); cursor: pointer; text-align: left; }
.faq-toggle { transition: transform 0.2s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.25rem; color: var(--text-light); }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.25rem 1rem; }
.faq-item.open .faq-toggle { transform: rotate(180deg); }

@media (max-width: 768px) {
    .header-container { padding: 1rem; justify-content: center; position: relative; }
    .logo { text-align: center; }
    nav { display: none; }
    .hamburger-btn { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 1rem; top: 0.75rem; }

    .hero { padding: 3rem 1.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .servers-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    nav ul {
        gap: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .modal-ssh {
        padding: 1.25rem 1rem;
        width: 96%;
        max-height: 85vh;
    }

    .modal-ssh h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .ssh-account-info {
        padding: 0.85rem 1rem;
        margin: 0.75rem 0;
        line-height: 1.6;
        font-size: 0.92rem;
    }

    .ssh-account-info div {
        flex-wrap: nowrap;
        gap: 0.3rem;
        padding: 0.25rem 0;
    }

    .ssh-account-info strong {
        font-size: 0.88rem;
        min-width: auto;
        flex-shrink: 0;
    }

    .ssh-account-info span {
        text-align: right;
        width: auto;
        display: inline;
        align-items: baseline;
        gap: 0.3rem;
        word-break: break-all;
        font-size: 0.9rem;
    }

    .btn-copy {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
        flex-shrink: 0;
    }

    .modal-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.92rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .loader {
        width: 40px;
        height: 40px;
        margin: 1rem auto;
    }

    .modal-ssh p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero { padding: 2.5rem 1rem; }
    .hero h1 { font-size: 1.6rem; }

    .modal-ssh {
        padding: 1rem 0.85rem;
        border-radius: 12px;
    }

    .modal-ssh h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .ssh-account-info {
        padding: 0.7rem 0.85rem;
        font-size: 0.88rem;
        line-height: 1.5;
        border-radius: 8px;
    }

    .ssh-account-info span {
        font-size: 0.86rem;
    }

    .ssh-account-info strong {
        font-size: 0.84rem;
    }

    .btn-copy {
        font-size: 0.68rem;
        padding: 0.08rem 0.35rem;
    }
}
