/* ─────────────────────────────────────────────
   Design Tokens
───────────────────────────────────────────── */
:root {
    --green:         #29c926;
    --green-dim:     rgba(41, 201, 38, 0.12);
    --green-glow:    rgba(41, 201, 38, 0.18);
    --green-border:  rgba(41, 201, 38, 0.35);
    --green-dark:    #1fa31c;

    --bg:            #0b0f1a;
    --bg-soft:       #0f1521;
    --bg-card:       rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    --border:        rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);

    --text:          #e8edf5;
    --text-muted:    #7a8a9e;
    --text-faint:    #4a5568;

    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     18px;
    --radius-xl:     24px;
}

/* ─────────────────────────────────────────────
   Reset & Base
───────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Ubuntu', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ─────────────────────────────────────────────
   Navbar
───────────────────────────────────────────── */
#navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo span { color: var(--green); }

.logo--small { font-size: 1rem; }

#navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
}

#navbar ul li a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

#navbar ul li a:hover {
    color: var(--text);
    background: var(--bg-card);
}

.btn-nav {
    background: var(--green-dim) !important;
    color: var(--green) !important;
    border: 1px solid var(--green-border);
    font-weight: 600 !important;
}

.btn-nav:hover {
    background: rgba(41, 201, 38, 0.20) !important;
    color: var(--green) !important;
}

/* ─────────────────────────────────────────────
   Hero
───────────────────────────────────────────── */
#home {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);

    /* Subtle grid pattern */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* Terminal cursor block — follows mouse */
.term-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 19px;
    background: var(--green);
    border-radius: 1px;
    pointer-events: none;
    z-index: 10;
    visibility: hidden;
    will-change: transform;
    box-shadow: 0 0 8px rgba(41, 201, 38, 0.9), 0 0 20px rgba(41, 201, 38, 0.35);
}

.term-cursor.visible {
    visibility: visible;
    animation: term-blink 1s step-end infinite;
}

@keyframes term-blink {
    0%, 49%  { opacity: 1; }
    50%, 99% { opacity: 0; }
}

/* Mouse spotlight — ilumina o grid ao redor do cursor */
#home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        420px circle at var(--mx, -9999px) var(--my, -9999px),
        rgba(41, 201, 38, 0.09),
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Radial green glow from center-top */
.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(41, 201, 38, 0.10) 0%, transparent 65%);
    pointer-events: none;
    animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.7; }
    50%       { opacity: 1; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 0;
}

.hero-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid var(--green-border);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

#home h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1.5px;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto 22px;
}

.accent { color: var(--green); }

#home > .hero-inner > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 0 var(--green-glow);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--green-glow);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--text-muted);
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--border-strong);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
    background: var(--bg-card);
}

/* ─────────────────────────────────────────────
   Section Utilities
───────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: var(--text);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}

/* ─────────────────────────────────────────────
   Services
───────────────────────────────────────────── */
#servicos {
    padding: 100px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, var(--green-dim), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--green-border);
    box-shadow: 0 0 0 1px var(--green-border), 0 8px 32px rgba(41, 201, 38, 0.07);
}

.card:hover::after { opacity: 1; }

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--green-dim);
    border: 1px solid var(--green-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 1.1rem;
    color: var(--green);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─────────────────────────────────────────────
   Methodology
───────────────────────────────────────────── */
#metodologia {
    padding: 100px 0;
    background: var(--bg);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step {
    flex: 1;
    padding: 0 32px;
    position: relative;
    text-align: center;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(41, 201, 38, 0.07);
    line-height: 1;
    margin-bottom: -8px;
    letter-spacing: -2px;
    user-select: none;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.step-divider {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--border-strong), transparent);
    margin-top: 40px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   Benefits
───────────────────────────────────────────── */
#beneficios {
    padding: 100px 0;
    background: #f8f9fb;
    border-top: 1px solid #e5e7eb;
}

#beneficios .section-header--light h2 {
    color: #1a1a2e;
}

#beneficios .section-header--light p {
    color: #555e6d;
}

.section-tag--dark {
    color: var(--green-dark);
    background: rgba(41, 201, 38, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.benefit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.benefit-card:hover {
    border-color: rgba(41, 201, 38, 0.4);
    box-shadow: 0 4px 20px rgba(41, 201, 38, 0.08);
    transform: translateY(-4px);
}

.benefit-card i {
    font-size: 1.6rem;
    color: var(--green-dark);
}

.benefit-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

/* ─────────────────────────────────────────────
   CTA Section
───────────────────────────────────────────── */
.cta-section {
    padding: 100px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner .section-tag { margin-bottom: 20px; }

.cta-inner h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.25;
}

.cta-inner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i { font-size: 1.3rem; }

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

/* ─────────────────────────────────────────────
   Contact
───────────────────────────────────────────── */
#contato {
    padding: 100px 0;
    background: var(--bg);
}

#contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#contact-form input,
#contact-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: var(--text-faint);
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--green-border);
    background: var(--bg-card-hover);
}

#contact-form textarea {
    height: 140px;
    resize: vertical;
}

.form-status {
    font-size: 0.9rem;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
footer {
    padding: 28px 0;
    background: #05070a;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

footer p {
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #home h1 { letter-spacing: -0.8px; }

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

    .steps-grid { flex-direction: column; align-items: center; gap: 8px; }
    .step { padding: 16px 12px; }
    .step-divider { display: none; }

    .footer-inner { flex-direction: column; text-align: center; }
}

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions a { width: 100%; max-width: 320px; text-align: center; }
}
