:root {
    --bg-primary: #F9FAFB;
    --surface: #FFFFFF;
    --border-subtle: #E4E7EC;
    --text-primary: #1D2939;
    --text-secondary: #475467;
    --primary-600: #0B7A6A;
    --primary-700: #085F52;
    --state-success: #16A34A;
    --state-info: #2563EB;
    --shadow-sm: 0 1px 2px rgba(16,24,40,0.08);
    --shadow-md: 0 4px 12px rgba(16,24,40,0.14);
    --shadow-lg: 0 12px 24px rgba(16,24,40,0.18);
}

[data-theme="dark"] {
    --bg-primary: #0F172A;
    --surface: #1E293B;
    --border-subtle: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Header */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 200ms;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 28px;
}

.logo-white {
    color: #085F52;
}

.logo-green {
    background: linear-gradient(135deg, #085F52, #0B7A6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo as mask (recolorable). Uses --logo-color variable */
.logo-image {
    width: 36px;
    height: 36px;
    background-color: var(--logo-color, var(--primary-700));
    -webkit-mask: url('logoPaggme.png') no-repeat center / contain;
    mask: url('logoPaggme.png') no-repeat center / contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
}

.logo-fallback {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: none; /* shown via JS if mask not supported */
}


.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 120ms;
}

.theme-toggle {
    margin-left: auto;
}

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

.btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    font-family: 'Inter', sans-serif;
}

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

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

.btn-primary:active {
    transform: scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-700);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: rgba(11, 122, 106, 0.08);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 120ms;
}

.theme-toggle:hover {
    background: rgba(11, 122, 106, 0.08);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.mockup-card {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.mockup-card h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.mockup-card .value {
    font-family: 'Roboto Mono', monospace;
    font-size: 32px;
    font-weight: 700;
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: 10px;
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-card .number {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--state-success);
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 600ms ease-in-out;
    animation: none;
}

.carousel-slide.active {
    opacity: 1;
    animation: fadeIn 600ms ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    color: var(--primary-700);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    transition: all 200ms;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--surface);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: -80px;
}

.carousel-arrow.next {
    right: -80px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-subtle);
    cursor: pointer;
    transition: all 200ms;
}

.dot.active {
    background: var(--primary-700);
    width: 32px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--primary-600);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px 20px;
    align-items: start;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin: 0;
    font-size: 20px;
}

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

/* Posicionamento: ícone à esquerda ocupando duas linhas, título e descrição à direita empilhados */
.feature-card .feature-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
}
.feature-card h3 {
    grid-column: 2;
    grid-row: 1;
}
.feature-card p {
    grid-column: 2;
    grid-row: 2;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(11, 122, 106, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* How it Works */
.how-it-works {
    background: var(--surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 80px 24px;
}

.steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 48px;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: start;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary-700);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Pricing */
.pricing {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-700);
    box-shadow: var(--shadow-lg);
}

.plan-badge {
    display: inline-block;
    background: rgba(11, 122, 106, 0.12);
    color: var(--primary-700);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-price {
    font-family: 'Roboto Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: 8px;
}

.plan-price span {
    font-size: 18px;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    margin: 32px 0;
}

.plan-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.plan-features li::before {
    content: "✓";
    color: var(--state-success);
    font-weight: 700;
    font-size: 18px;
}

/* CTA Section */
.cta {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    color: white;
    padding: 64px 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.cta-box .btn {
    background: white;
    color: var(--primary-700);
    font-size: 18px;
    padding: 16px 32px;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-700);
    margin-bottom: 16px;
}

.footer-brand-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 120ms;
}

.footer-links a:hover {
    color: var(--primary-700);
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Em telas pequenas, empilha icon + conteúdo nas feature-cards */
    .feature-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .feature-card .feature-icon {
        grid-column: 1;
        grid-row: auto;
        margin-bottom: 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .feature-card, .step, .pricing-card {
    animation: fadeInUp 600ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.feature-card:nth-child(1) { animation-delay: 100ms; }
.feature-card:nth-child(2) { animation-delay: 200ms; }
.feature-card:nth-child(3) { animation-delay: 300ms; }
.feature-card:nth-child(4) { animation-delay: 400ms; }
.feature-card:nth-child(5) { animation-delay: 500ms; }
.feature-card:nth-child(6) { animation-delay: 600ms; }

/* FAQ */
.faq {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 24px;
}

.faq-list details {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.faq-list summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.faq-list details[open] {
    box-shadow: var(--shadow-sm);
}

.faq-list details p {
    margin-top: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-hidden {
    display: none;
}

.faq-toggle-container {
    text-align: center;
    margin-top: 32px;
}

/* Team / Sócios */
.team {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: 24px;
    margin-top: 24px;
    justify-content: center;
}

.partner-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 260px;
}

.partner-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 999px;
    margin-bottom: 12px;
    display: inline-block;
}

.partner-card h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.partner-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}