/* Reset and Base Styles for Links Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(45deg, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    --secondary-gradient: linear-gradient(45deg, #00f2fe, #4facfe);
    --accent-gradient: linear-gradient(45deg, #13f1fc, #0470dc);
    --text-gradient: linear-gradient(45deg, #30CFD0, #330867);
    --primary-color: #4f5bd5;
    --secondary-color: #d62976;
    --accent-color: #fa7e1e;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fafafa;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Simple overflow control for menu */
body.menu-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles - Static positioning */
header {
    background: transparent; /* fundo invisível para ver o hero atrás */
    position: absolute;      /* sobrepõe o topo da página, hero fica por trás */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 8px 0;
}

header .container {
    background: #ffffff; /* pílula branca */
    border-radius: 9999px;
    padding: 10px 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px auto 0;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 6px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login {
    color: #2c3e50;
    background: #f0f2f5;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #e4e6ea;
}

.btn-cadastro {
    background: var(--primary-gradient);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-cadastro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hamburger {
    color: #2c3e50;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

.hamburger:hover {
    background: #f0f2f5;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 110px 16px 32px 16px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0 auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    margin: 8px 0 6px 0;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.98;
    margin: 0 0 6px 0;
    text-align: center;
    color: #f2f7fb;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.hero-cta {
    display: inline-block;
    align-self: center;
    background: var(--primary-gradient);
    color: #fff;
    padding: 14px 22px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    margin: 6px 0 10px 0;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.phone-mockup {
    width: 100%;
}

.phone-screen {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 19.5; /* proporção mais realista de smartphones atuais */
    height: auto;
    margin: 0 auto;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    border: 8px solid #2c3e50;
    position: relative;
    overflow: hidden;
}

/* Conteúdo interno do preview deve preencher a tela do mockup */
.phone-screen iframe,
.phone-screen > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile Full-screen Drawer Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    /* Ensure closed drawer does not block or overlap */
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu-overlay.open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mobile-menu-header .logo h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-menu-close {
    background: transparent;
    border: 0;
    font-size: 28px;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-nav {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-menu-nav a {
    font-size: 22px;
    color: #2c3e50;
    text-decoration: none;
    text-align: center;
    padding: 14px 8px;
    border-bottom: 1px solid #eef2f7;
    transition: color 0.3s ease;
}

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

.mobile-menu-actions {
    margin-top: auto;
    padding-top: 16px;
}

.mobile-menu-actions .btn-cadastro {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 18px;
    border-radius: 9999px;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

/* Sections */
.mini-site-example {
    background: #f7f8fb;
    padding: 48px 0;
}

.mini-site-example .container {
    max-width: 1100px;
    margin: 0 auto;
}

.mini-site-example h2 {
    font-weight: 900;
    font-size: 28px;
    line-height: 1.2;
    color: var(--dark-text);
    text-align: center;
    margin: 0 0 10px 0;
}

.mini-site-example p.section-sub {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 18px;
    color: #5a6b7b;
    font-size: 16px;
    line-height: 1.6;
}

.feature-carousel {
    position: relative;
    margin-top: 10px;
}

.feature-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 6px 16px;
    -webkit-overflow-scrolling: touch;
}

.feature-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    scroll-snap-align: start;
}

.feature-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.feature-card .icon-wrap i {
    color: #fff;
    font-size: 26px;
}

.feature-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--dark-text);
}

.feature-card p {
    margin: 0;
    color: #5a6b7b;
    line-height: 1.6;
}

.feature-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
}

.feature-nav button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #cfd8e3;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-nav button:hover {
    background: #f0f2f5;
}

.feature-nav button:active {
    transform: scale(0.98);
}

/* Modals - hidden by default and full-screen overlay */
.modal,
.modal-overlay,
.modal-terms {
    display: none;            /* hidden by default */
    position: fixed;
    inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;            /* above page content, below any system UI */
    overflow-y: auto;
}

/* Shared modal content card */
.modal .modal-content,
.modal-overlay .modal-content,
.modal-terms .modal-terms-content {
    background: var(--primary-gradient);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 6% auto;          /* centered horizontally */
    padding: 24px;
    width: 90%;
    max-width: 800px;
    position: relative;
    color: #ffffff;
}

/* Close buttons */
.modal .close,
.modal-overlay .close-modal,
.modal-terms .close-terms {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

/* Forms inside auth modals */
.modal .form-group {
    margin-bottom: 12px;
}

.modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    margin-bottom: 10px; /* espaço após campos */
}

.modal input::placeholder {
    color: #7a8aa0;
}

.modal a {
    color: #ffffff;
    text-decoration: underline;
}

/* Estrutura e respiro geral do formulário */
.modal form {
    display: flex;
    flex-direction: column;
    gap: 8px; /* respiro entre blocos quando não houver .form-group */
}

.modal h2,
.modal h3 {
    margin: 0 0 12px 0;
}

/* Linha de checkbox (termos) */
.modal .form-check,
.modal .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 12px 0;
    color: #ffffff;
}

.modal .form-check input[type="checkbox"],
.modal .checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.modal .form-actions {
    margin-top: 8px; /* separa dos campos acima */
}

/* Auth modal primary actions */
.modal button[type="submit"],
.modal input[type="submit"],
.modal .btn-primary,
.modal .btn-submit {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border-radius: 9999px;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: 10px;
    margin-bottom: 8px; /* separa do texto/links abaixo */
}

.modal button[type="submit"]:hover,
.modal input[type="submit"]:hover,
.modal .btn-primary:hover,
.modal .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}

.modal button[type="submit"]:active,
.modal input[type="submit"]:active,
.modal .btn-primary:active,
.modal .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* Optional secondary action links below forms */
.modal .secondary-action {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #eaf2ff;
    text-decoration: underline;
}

.modal .help,
.modal .helper,
.modal .form-hint {
    margin-top: -2px;
    margin-bottom: 6px;
    color: #eaf2ff;
}

/* Final CTA Section */
.final-cta {
    background: #ffffff;
    padding: 40px 0 64px;
}

.final-cta .container {
    max-width: 960px;
    margin: 0 auto;
}

.big-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 9999px;
    padding: 26px 28px;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
    max-width: 780px;
    margin: 10px auto 0;
    transition: all 0.3s ease;
}

.big-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.final-cta h2 {
    text-align: center;
    margin: 22px auto 8px;
    font-size: 26px;
    line-height: 1.3;
    color: var(--dark-text);
    font-weight: 900;
}

.final-cta p.section-sub {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    color: #5a6b7b;
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    header .container {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 20;
    }

    .nav-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .hamburger {
        order: 2;
        margin-left: auto;
    }

    .auth-buttons .btn-cadastro {
        display: none;
    }

    .auth-buttons .btn-login {
        order: 1;
        font-size: 14px;
        padding: 8px 12px;
    }

    .hero-content h1 {
        margin-bottom: 10px;
    }

    .hero-content p {
        margin-bottom: 14px;
    }

    .hero-content a[href="#cadastro"] {
        margin-top: 6px;
    }
}

@media (max-width: 991px) {
    .main-nav {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .hero {
        padding: 140px 0 56px 0;
    }

    .hero .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .hero-content {
        max-width: 540px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 40px;
        text-align: left;
    }

    .hero-content p {
        font-size: 18px;
        text-align: left;
    }

    .hero-cta {
        align-self: flex-start;
    }

    .phone-mockup {
        max-width: 420px;
        flex-shrink: 0;
    }

    .feature-track {
        grid-auto-columns: 32%;
    }

    .mini-site-example h2 {
        font-size: 36px;
    }

    .big-cta {
        font-size: 28px;
        padding: 32px 36px;
    }
}

/* Footer - Force visibility */
footer {
    background: #2c3e50 !important;
    color: #ecf0f1 !important;
    padding: 40px 0 20px !important;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    clear: both;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

footer .footer-logo h2 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 24px;
}

footer .footer-contact h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 18px;
}

footer p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #ecf0f1;
}

footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2980b9;
}

footer .footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 14px;
    color: #95a5a6;
    text-align: center;
}

@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Hide old elements */
.mini-site-example .phone-screen {
    display: none;
}

.mini-site-example .dashboard-image {
    display: none;
}
