/* Design system — adaptado do layout Lovable */
:root {
    --background: #0c0f14;
    --foreground: #fafafa;
    --muted-foreground: #9ca8b8;
    --primary: #1190FF;
    --primary-hover: #0d7ae0;
    --primary-foreground: #ffffff;
    --border: rgba(120, 140, 170, 0.35);
    --card: rgba(18, 24, 36, 0.65);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --page-max: 72rem;
    --section-pad-x: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(17, 144, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 144, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(17, 144, 255, 0.12), transparent);
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ——— Navbar ——— */
.site-header {
    position: relative;
    z-index: 100;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 1.5rem var(--section-pad-x);
    font-size: 0.875rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-main {
    height: 2rem;
    width: auto;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link--active {
    color: var(--foreground);
}

.menu-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    background: #0f141c;
    border-left: 1px solid var(--border);
    z-index: 201;
    padding: 5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--foreground);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-menu-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.75rem 0;
}

/* ——— Hero ——— */
.hero {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 4rem var(--section-pad-x) 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title-bold {
    font-weight: 700;
}

.hero-text {
    margin-top: 1.5rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 28rem;
}

.hero-image img {
    width: 100%;
}

/* ——— Pricing ——— */
.pricing {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 4rem var(--section-pad-x) 2.5rem;
    text-align: center;
}

.pricing-lead {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 300;
}

.pricing-title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    margin-top: 0.5rem;
    letter-spacing: -0.03em;
}

.features-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.feature-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
}

.price-row {
    margin-top: 4rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.price-current {
    display: flex;
    align-items: baseline;
    color: var(--foreground);
}

.price-old {
    display: flex;
    align-items: baseline;
    color: var(--muted-foreground);
    opacity: 0.55;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.price-currency {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-right: 0.15em;
}

.price-currency--sm {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.price-amount {
    font-size: clamp(4.5rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.price-amount--sm {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
}

.price-cents {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 300;
}

.price-cents--sm {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 4rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: var(--primary-hover);
    opacity: 0.95;
    transform: translateY(-1px);
}

.payment-note {
    margin-top: 1rem;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.site-copyright {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ——— Footer estendido ——— */
.footer-signature {
    border-top: 1px solid var(--border);
    padding: 2.5rem var(--section-pad-x);
}

.signature-content {
    max-width: var(--page-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s;
}

.signature-content:hover {
    border-color: rgba(17, 144, 255, 0.45);
    transform: translateY(-2px);
}

.signature-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(17, 144, 255, 0.3);
}

.signature-text p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.heart {
    color: #e25555;
}

.signature-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dev-name {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), #4db5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dev-tag {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.main-footer {
    background: rgba(8, 10, 14, 0.92);
    border-top: 1px solid var(--border);
    padding: 2.5rem var(--section-pad-x) 1.5rem;
}

.footer-content {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul li a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--foreground);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--foreground);
    transition: background 0.2s, border-color 0.2s;
}

.social-links a:hover {
    background: rgba(17, 144, 255, 0.12);
    border-color: rgba(17, 144, 255, 0.4);
}

.legal-footer {
    background: rgba(6, 8, 12, 0.95);
    border-top: 1px solid var(--border);
    padding: 1rem var(--section-pad-x);
    text-align: center;
}

.legal-content p {
    color: #5a6578;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

/* ——— Modais ——— */
.modal-sobre-nos {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    overflow: auto;
}

.modal-sobre-nos[hidden] {
    display: none !important;
}

.modal-sobre-nos-content {
    position: relative;
    background: #121820;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem 1.5rem;
    max-width: 420px;
    width: 100%;
    color: var(--foreground);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    animation: modalFadeIn 0.25s ease;
}

.modal-sobre-nos-content--wide {
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-scroll {
    overflow-y: auto;
    text-align: left;
    font-size: 0.9rem;
    color: #d0d8e4;
    line-height: 1.65;
}

.modal-scroll p,
.modal-scroll .faq-item {
    margin-bottom: 1rem;
}

.modal-sobre-nos-content h2 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.modal-sobre-nos-content > p {
    text-align: center;
    color: #d0d8e4;
    font-size: 0.95rem;
}

.modal-sobre-nos-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-sobre-nos-close:hover {
    color: var(--foreground);
}

.modal-email-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modal-email {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.modal-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: var(--primary-hover);
}

.modal-btn--link {
    display: inline-block;
    text-decoration: none;
}

.modal-actions {
    text-align: center;
    margin-top: 1rem;
}

.copiado-msg {
    color: #4ade80;
    font-size: 0.9rem;
}

.modal-list {
    color: #d0d8e4;
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.modal-note {
    color: #fbbf24;
    font-size: 0.88rem;
    margin-top: 1rem;
}

.faq-item {
    margin-bottom: 1.1rem;
    color: #d0d8e4;
    font-size: 0.9rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ——— Responsivo ——— */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .top-nav-links {
        display: none;
    }

    .menu-hamburger {
        display: inline-flex;
    }

    .top-nav {
        justify-content: space-between;
        padding: 1.25rem var(--section-pad-x);
    }

    .price-row {
        gap: 1.25rem;
    }

    .cta-button {
        width: 100%;
        max-width: 20rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .signature-content {
        flex-direction: column;
        text-align: center;
    }

    .signature-link {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .features-pills {
        gap: 0.5rem;
    }

    .feature-pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }
}

/* ——— Compatibilidade com outras páginas (payment, etc.) ——— */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 144, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 144, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
    position: relative;
    z-index: 1;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
}

.navbar-col {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-col.left { justify-content: flex-start; }
.navbar-col.center { justify-content: center; }
.navbar-col.right { justify-content: flex-end; }

.logo {
    max-width: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: auto;
}

.highlight {
    color: var(--primary);
}
