* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0b1220;
    --surface: #111827;
    --surface-soft: #1f2937;
    --border: #1f2937;
    --accent: #22c55e;
    --accent-soft: #4ade80;
    --text: #e5e7eb;
    --muted: #9ca3af;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    width: 100%;
    padding: 14px 32px;
    background-color: #020617;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.topbar-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-soft);
}

.topbar-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background-color: var(--surface);
}

.topbar-pill {
    border-radius: 999px;
    padding: 6px 18px;
    border: none;
    background-color: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.topbar-pill:hover {
    background-color: #1f2937;
    transform: translateY(-1px);
}

.topbar-pill.primary {
    background-color: var(--accent);
    color: #022c22;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

/* Layout principal */
.main {
    flex: 1;
    padding: 110px 32px 32px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

.hero-text {
    max-width: 520px;
}

.hero-text h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #f9fafb;
}

.hero-text p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 14px;
}

.hero-text .destaque {
    color: var(--accent-soft);
    font-weight: bold;
}

/* Área da animação (cards) */
.hero-animation {
    position: relative;
    width: 100%;
    height: 420px;
    margin-top: 40px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner de carregamento (opcional) */
.progress-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #020617, #020617 70%, #000 100%);
    z-index: 5;
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(148, 163, 184, 0.2);
    border-top-color: var(--accent-soft);
    animation: spin 1.1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cards */
.hero-card {
    position: absolute;
    width: 380px;
    height: 240px;
    border-radius: 24px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
    transition: transform 0.2s ease;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card.center {
    z-index: 3;
}

.hero-card.left {
    z-index: 2;
}

.hero-card.right {
    z-index: 1;
}

/* Modal genérico */
/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-overlay.is-open {
    display: flex;
}

/* Modal */
.modal {
    background-color: #111827;
    /* mesma cor dos cards */
    border-radius: 18px;
    padding: 28px 32px;
    min-width: 360px;
    max-width: 430px;
    color: #e5e7eb;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    border: 1px solid #1f2937;
}

/* Título */
.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #f9fafb;
}

/* Botão fechar */
.modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #9ca3af;
    transition: 0.2s;
}

.modal-close:hover {
    color: #f3f4f6;
}

/* Inputs do modal */
.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="password"] {
    width: 100%;
    border: 1px solid #1f2937;
    background-color: #0f172a;
    color: #e5e7eb;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    outline: none;
    transition: border 0.2s ease;
}

.modal-form input[type="text"]:focus,
.modal-form input[type="email"]:focus,
.modal-form input[type="password"]:focus {
    border-color: #22c55e;
}

/* Botão principal */
.modal-form button[type="submit"],
.modal-form input[type="submit"] {
    margin-top: 6px;
    background-color: #22c55e;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 10px;
    color: #022c22;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
    transition: 0.2s;
}

.modal-form button[type="submit"]:hover,
.modal-form input[type="submit"]:hover {
    background-color: #4ade80;
}

/* Texto auxiliar */
.modal-extra {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    color: #9ca3af;
}


footer {
    padding: 10px 24px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}