/* ============================================================
   LUNAS SOLUCOES - CSS INSTITUCIONAL v2.0
   Premium Fintech Design
   ============================================================ */

/* ─────────────────────────────────────────
   1. CUSTOM PROPERTIES
   ───────────────────────────────────────── */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-glow: #3b82f6;
    --primary-soft: #dbeafe;
    --primary-faint: #eff6ff;

    --deep: #050d1a;
    --navy: #0b1d36;
    --royal: #0f2847;
    --slate: #1e293b;

    --text: #1e293b;
    --text-mid: #475569;
    --text-light: #64748b;
    --text-faint: #94a3b8;

    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-warm: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --success: #059669;
    --whatsapp: #25D366;
    --whatsapp-hover: #1eba59;
    --amber: #d97706;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);
    --shadow-primary: 0 8px 30px rgba(37,99,235,0.25);
    --shadow-whatsapp: 0 8px 30px rgba(37,211,102,0.3);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1200px;
    --header-h: 80px;
}

/* ─────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.inst-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─────────────────────────────────────────
   3. HEADER
   ───────────────────────────────────────── */

.inst-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all 0.35s var(--ease);
}

.inst-header.scrolled {
    background: rgba(255,255,255,0.96);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.inst-header > .inst-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.inst-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.inst-logo img {
    height: 48px;
    width: auto;
    transition: opacity 0.2s;
}

.inst-logo:hover img {
    opacity: 0.85;
}

/* Nav */
.inst-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.inst-nav-link {
    color: var(--text-mid);
    font-size: 0.925rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    letter-spacing: -0.01em;
}

.inst-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s var(--ease);
}

.inst-nav-link:hover {
    color: var(--primary);
}

.inst-nav-link:hover::after {
    width: 100%;
}

/* Header CTA */
.inst-btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    transition: all 0.25s var(--ease);
    box-shadow: var(--shadow-primary);
}

.inst-btn-header:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(37,99,235,0.3);
    color: #fff !important;
}

/* Mobile toggle */
.inst-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.inst-menu-toggle:hover {
    background: var(--bg-alt);
}

/* ─────────────────────────────────────────
   4. HERO
   ───────────────────────────────────────── */

.inst-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
    background: var(--bg);
}

/* Subtle gradient orbs */
.inst-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.inst-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 65%);
    pointer-events: none;
}

/* Hero grid */
.inst-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero content */
.inst-hero-content {
    max-width: 560px;
}

.inst-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-faint);
    color: var(--primary);
    font-size: 0.813rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    border: 1px solid var(--primary-soft);
    letter-spacing: 0.02em;
}

.inst-hero-content h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.035em;
}

.inst-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

/* Hero actions */
.inst-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 40px;
}

.inst-hero-content .inst-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-whatsapp);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.inst-hero-content .inst-btn-primary:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37,211,102,0.35);
    color: #fff;
}

.inst-hero-content .inst-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-mid);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    transition: all 0.2s var(--ease);
}

.inst-hero-content .inst-btn-secondary:hover {
    color: var(--primary);
    background: var(--primary-faint);
}

/* Trust badges */
.inst-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.inst-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.inst-trust-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Hero image */
.inst-hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inst-hero-image img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform 0.5s var(--ease);
}

.inst-hero-image:hover img {
    transform: scale(1.01);
}

/* ─────────────────────────────────────────
   5. SECTION HEADERS (shared)
   ───────────────────────────────────────── */

.inst-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.inst-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    background: var(--primary-faint);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-soft);
}

.inst-section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.inst-section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ─────────────────────────────────────────
   6. ABOUT
   ───────────────────────────────────────── */

.inst-about {
    padding: 120px 0;
    background: var(--bg);
}

.inst-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.inst-about-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.inst-about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.inst-about-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.inst-about-card:hover::before {
    opacity: 1;
}

.inst-about-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
    transition: all 0.3s var(--ease);
}

.inst-about-card:hover .inst-about-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.inst-about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.inst-about-card p {
    font-size: 0.925rem;
    color: var(--text-light);
    line-height: 1.65;
}

.inst-about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.inst-about-text p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
    padding: 24px 32px;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

/* ─────────────────────────────────────────
   7. SERVICES
   ───────────────────────────────────────── */

.inst-services {
    padding: 120px 0;
    background: var(--bg-alt);
    position: relative;
}

.inst-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.inst-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Last 2 cards centered */
.inst-services-grid .inst-service-card:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: auto;
    margin-right: 0;
}

.inst-service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.inst-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.inst-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.inst-service-card:hover::after {
    transform: scaleX(1);
}

.inst-service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    transition: all 0.3s var(--ease);
}

.inst-service-card:hover .inst-service-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

.inst-service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.inst-service-card > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 20px;
}

.inst-service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inst-service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-mid);
    font-weight: 500;
}

.inst-service-features li i {
    color: var(--success);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   8. STATS
   ───────────────────────────────────────── */

.inst-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 50%, var(--deep) 100%);
    position: relative;
    overflow: hidden;
}

.inst-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(37,99,235,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.inst-stats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.inst-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.inst-stat-item {
    text-align: center;
}

.inst-stat-number {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.inst-stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ─────────────────────────────────────────
   9. HOW IT WORKS (STEPS)
   ───────────────────────────────────────── */

.inst-how {
    padding: 120px 0;
    background: var(--bg);
}

.inst-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Connector line */
.inst-steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-soft), var(--primary), var(--primary-soft));
    z-index: 0;
    opacity: 0.5;
}

.inst-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.inst-step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    transition: all 0.35s var(--ease);
    position: relative;
}

.inst-step:hover .inst-step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
    transform: scale(1.08);
}

.inst-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.inst-step-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────
   10. WHY US
   ───────────────────────────────────────── */

.inst-why {
    padding: 120px 0;
    background: var(--bg-alt);
}

.inst-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.inst-why-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.35s var(--ease);
}

.inst-why-card:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.inst-why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 20px;
    transition: all 0.3s var(--ease);
}

.inst-why-card:hover .inst-why-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
    transform: rotate(5deg) scale(1.05);
}

.inst-why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.inst-why-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─────────────────────────────────────────
   11. FAQ
   ───────────────────────────────────────── */

.inst-faq {
    padding: 120px 0;
    background: var(--bg);
}

.inst-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.inst-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg);
    transition: all 0.3s var(--ease);
}

.inst-faq-item:hover {
    border-color: var(--primary-soft);
}

.inst-faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}

.inst-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    background: transparent;
    gap: 16px;
    transition: color 0.2s;
}

.inst-faq-question:hover {
    color: var(--primary);
}

.inst-faq-question i {
    font-size: 0.85rem;
    color: var(--text-faint);
    transition: all 0.35s var(--ease);
    flex-shrink: 0;
}

.inst-faq-item.active .inst-faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.inst-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.inst-faq-item.active .inst-faq-answer {
    max-height: 300px;
}

.inst-faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.925rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ─────────────────────────────────────────
   12. CTA BANNER
   ───────────────────────────────────────── */

.inst-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inst-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 60%);
    transform: translateX(-50%);
    pointer-events: none;
}

.inst-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.inst-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.inst-cta > .inst-container > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.inst-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-whatsapp);
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.inst-btn-cta:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(37,211,102,0.4);
    color: #fff;
}

/* ─────────────────────────────────────────
   13. CONTACT
   ───────────────────────────────────────── */

.inst-contact {
    padding: 120px 0;
    background: var(--bg-alt);
}

.inst-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Contact info */
.inst-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inst-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
}

.inst-contact-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.inst-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.inst-contact-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.inst-contact-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.inst-contact-item p a {
    color: var(--primary);
    font-weight: 500;
}

/* Contact form */
.inst-contact-form-wrapper {
    /* wrapper for form */
}

.inst-contact-form {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.inst-contact-form h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.inst-form-group {
    margin-bottom: 18px;
}

.inst-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.inst-form-group input,
.inst-form-group textarea,
.inst-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.925rem;
    color: var(--text);
    background: var(--bg);
    transition: all 0.2s var(--ease);
    outline: none;
}

.inst-form-group input:focus,
.inst-form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.inst-form-group input::placeholder,
.inst-form-group textarea::placeholder {
    color: var(--text-faint);
}

.inst-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.inst-btn-form {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-primary);
    margin-top: 8px;
}

.inst-btn-form:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.3);
}

/* ─────────────────────────────────────────
   14. FOOTER
   ───────────────────────────────────────── */

.inst-footer {
    background: var(--deep);
    padding: 64px 0 0;
    color: rgba(255,255,255,0.5);
}

.inst-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.inst-footer-about {
    /* Brand column */
}

.inst-footer-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    margin-bottom: 16px;
}

.inst-footer-about > p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin-bottom: 20px;
}

.inst-footer-social {
    display: flex;
    gap: 10px;
}

.inst-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
}

.inst-footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.inst-footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.inst-footer-contact-title {
    margin-top: 24px !important;
}

.inst-footer-col ul li {
    margin-bottom: 4px;
}

.inst-footer-col a {
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s var(--ease);
}

.inst-footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.inst-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 28px 0;
    text-align: center;
}

.inst-footer-legal {
    margin-bottom: 8px;
}

.inst-footer-legal p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.8;
}

.inst-footer-legal p strong {
    color: rgba(255,255,255,0.6);
}

.inst-footer-copy p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}

/* ─────────────────────────────────────────
   15. SCROLL ANIMATIONS
   ───────────────────────────────────────── */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Animate sections on scroll via IntersectionObserver */
.inst-about-card,
.inst-service-card,
.inst-step,
.inst-why-card,
.inst-faq-item,
.inst-contact-item {
    animation: fadeInUp 0.5s var(--ease-out) both;
}

/* Stagger delays */
.inst-about-card:nth-child(2),
.inst-service-card:nth-child(2),
.inst-why-card:nth-child(2) { animation-delay: 0.08s; }
.inst-about-card:nth-child(3),
.inst-service-card:nth-child(3),
.inst-why-card:nth-child(3) { animation-delay: 0.16s; }
.inst-service-card:nth-child(4),
.inst-why-card:nth-child(4) { animation-delay: 0.24s; }
.inst-service-card:nth-child(5),
.inst-why-card:nth-child(5) { animation-delay: 0.32s; }
.inst-why-card:nth-child(6) { animation-delay: 0.4s; }

.inst-step:nth-child(2) { animation-delay: 0.1s; }
.inst-step:nth-child(3) { animation-delay: 0.2s; }
.inst-step:nth-child(4) { animation-delay: 0.3s; }

/* ─────────────────────────────────────────
   16. RESPONSIVE - Tablet
   ───────────────────────────────────────── */

@media (max-width: 1024px) {
    .inst-nav {
        display: none;
    }

    .inst-btn-header {
        display: none;
    }

    .inst-menu-toggle {
        display: flex;
    }

    /* Hero */
    .inst-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .inst-hero-content {
        max-width: 100%;
    }

    .inst-hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

    .inst-hero-trust {
        justify-content: center;
    }

    .inst-hero-image {
        max-width: 420px;
        margin: 0 auto;
    }

    /* About */
    .inst-about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Services */
    .inst-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inst-services-grid .inst-service-card:nth-child(4) {
        margin-left: 0;
    }

    /* Stats */
    .inst-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Steps */
    .inst-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inst-steps-grid::before {
        display: none;
    }

    /* Why */
    .inst-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .inst-contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .inst-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .inst-footer-about {
        grid-column: 1 / -1;
    }
}

/* ─────────────────────────────────────────
   17. RESPONSIVE - Mobile
   ───────────────────────────────────────── */

@media (max-width: 768px) {
    :root {
        --header-h: 68px;
    }

    .inst-container {
        padding: 0 16px;
    }

    /* Hero */
    .inst-hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 40px);
        padding-bottom: 60px;
    }

    .inst-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .inst-hero-content .inst-btn-primary,
    .inst-hero-content .inst-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Sections */
    .inst-about,
    .inst-services,
    .inst-how,
    .inst-why,
    .inst-faq,
    .inst-contact {
        padding: 80px 0;
    }

    .inst-stats {
        padding: 60px 0;
    }

    .inst-cta {
        padding: 80px 0;
    }

    .inst-section-header {
        margin-bottom: 40px;
    }

    /* Services */
    .inst-services-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .inst-stats-grid {
        gap: 24px;
    }

    .inst-stat-number {
        font-size: 2.25rem;
    }

    /* Steps */
    .inst-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .inst-step {
        display: flex;
        text-align: left;
        gap: 16px;
        align-items: flex-start;
    }

    .inst-step-number {
        width: 56px;
        height: 56px;
        font-size: 1.15rem;
        margin: 0;
        flex-shrink: 0;
    }

    .inst-step-content p {
        max-width: 100%;
        margin: 0;
    }

    /* Why */
    .inst-why-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .inst-faq-question {
        padding: 18px 20px;
        font-size: 0.925rem;
    }

    .inst-faq-answer p {
        padding: 0 20px 18px;
        font-size: 0.875rem;
    }

    /* Contact form */
    .inst-contact-form {
        padding: 28px;
    }

    /* Footer */
    .inst-footer-grid {
        grid-template-columns: 1fr;
    }

    .inst-footer-about {
        grid-column: auto;
    }

    .inst-footer-bottom {
        text-align: center;
    }

    /* Logo */
    .inst-logo img {
        height: 38px;
    }
}

/* ─────────────────────────────────────────
   18. RESPONSIVE - Micro
   ───────────────────────────────────────── */

@media (max-width: 480px) {
    .inst-about-card,
    .inst-service-card,
    .inst-why-card {
        padding: 28px 22px;
    }

    .inst-contact-form {
        padding: 22px;
    }

    .inst-stat-number {
        font-size: 2rem;
    }

    .inst-logo img {
        height: 34px;
    }
}

/* ─────────────────────────────────────────
   19. PRINT
   ───────────────────────────────────────── */

@media print {
    .inst-header,
    .inst-menu-toggle,
    .inst-cta,
    .modal-overlay {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .inst-hero {
        min-height: auto;
        padding-top: 20px;
    }

    .inst-about,
    .inst-services,
    .inst-how,
    .inst-why,
    .inst-faq,
    .inst-contact {
        padding: 30px 0;
    }

    .inst-stats {
        background: #eee;
    }

    .inst-stat-number {
        color: #000;
    }

    .inst-service-card,
    .inst-about-card,
    .inst-why-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .inst-footer {
        background: #f5f5f5;
        color: #333;
    }
}

/* ─────────────────────────────────────────
   20. REDUCED MOTION
   ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}


/* ============================================================
   PART 2: LEGAL PAGES (Privacidade + Termos)
   ============================================================ */

/* ─────────────────────────────────────────
   21. LEGAL HEADER
   ───────────────────────────────────────── */

.legal-header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

/* For termos.html (uses .header-inner) */
.legal-header .header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* For privacidade.html (no inner wrapper) */
.legal-header .logo {
    display: flex;
    align-items: center;
}

.legal-header .logo img,
.legal-header img {
    height: 42px;
    width: auto;
}

/* Both page variants */
.legal-header .back-link,
.legal-header .btn-back {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.2s var(--ease);
}

.legal-header .back-link:hover,
.legal-header .btn-back:hover {
    background: var(--primary-faint);
    color: var(--primary-hover);
}

/* ─────────────────────────────────────────
   22. LEGAL PAGE CONTAINER
   ───────────────────────────────────────── */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
}

/* ─────────────────────────────────────────
   23. LEGAL TITLE - termos.html variant
   ───────────────────────────────────────── */

.legal-page .page-title {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.legal-page .page-title h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.legal-page .page-title .subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.legal-page .page-title .last-update {
    display: inline-block;
    margin-top: 1rem;
    padding: 6px 16px;
    background: var(--primary-faint);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.83rem;
    font-weight: 600;
    border: 1px solid var(--primary-soft);
}

/* ─────────────────────────────────────────
   24. LEGAL TITLE - privacidade.html variant
   ───────────────────────────────────────── */

.legal-page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.legal-page-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.legal-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    font-size: 0.88rem;
    color: var(--text-light);
}

.legal-page-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-page-meta i {
    color: var(--primary);
}

/* ─────────────────────────────────────────
   25. LEGAL TABLE OF CONTENTS
   ───────────────────────────────────────── */

.legal-toc {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
}

.legal-toc h2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
    display: block;
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    columns: 2;
    column-gap: 2rem;
}

.legal-toc ol li {
    counter-increment: toc;
    margin-bottom: 6px;
    break-inside: avoid;
}

.legal-toc ol li a {
    color: var(--text-mid);
    font-size: 0.92rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    padding: 3px 0;
    transition: all 0.2s var(--ease);
}

.legal-toc ol li a::before {
    content: counter(toc) ".";
    display: inline-block;
    min-width: 1.75rem;
    color: var(--primary);
    font-weight: 700;
}

.legal-toc ol li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* ─────────────────────────────────────────
   26. LEGAL CONTENT
   ───────────────────────────────────────── */

.legal-content {
    line-height: 1.8;
    color: var(--text-mid);
}

/* Termos: sections wrapped in <section> */
.legal-content section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    margin-bottom: 16px;
    transition: box-shadow 0.2s var(--ease);
}

.legal-content section:hover {
    box-shadow: var(--shadow-sm);
}

.legal-content section:target {
    box-shadow: 0 0 0 2px rgba(37,99,235,0.12), var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    display: block;
    letter-spacing: -0.01em;
}

/* When h2 is inside a section, no top margin needed */
.legal-content section h2 {
    margin-top: 0;
}

.legal-content h2 .section-number {
    color: var(--primary);
    margin-right: 0.5rem;
    font-weight: 800;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate);
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
    color: var(--text-mid);
    font-size: 0.95rem;
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-content strong {
    color: var(--navy);
    font-weight: 700;
}

.legal-content a {
    color: var(--primary);
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Highlight box */
.legal-content .highlight-box,
.highlight-box {
    background: var(--primary-faint);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    font-size: 0.93rem;
    color: var(--primary-dark);
    line-height: 1.7;
}

.legal-content .highlight-box strong,
.highlight-box strong {
    color: var(--primary-dark);
}

.legal-content .highlight-box a {
    color: var(--primary);
}

/* Definition list (privacidade) */
.legal-content .definition-list dt,
.legal-content dl dt {
    font-weight: 700;
    color: var(--navy);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.legal-content .definition-list dd,
.legal-content dl dd {
    margin-left: 0;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-mid);
}

/* ─────────────────────────────────────────
   27. LEGAL FOOTER
   ───────────────────────────────────────── */

.legal-footer {
    background: var(--deep);
    color: rgba(255,255,255,0.5);
    padding: 3rem 2rem;
    margin-top: 0;
}

.legal-footer .footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* privacidade variant */
.legal-footer .footer-company,
.legal-footer .company-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.legal-footer .company-info {
    font-size: 0.85rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.45);
}

.legal-footer .company-info a {
    color: var(--primary-glow);
    text-decoration: none;
}

.legal-footer .company-info a:hover {
    text-decoration: underline;
}

.legal-footer p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.3rem;
}

.legal-footer .footer-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-footer .footer-links a {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.legal-footer .footer-links a:hover {
    color: #fff;
}

/* ─────────────────────────────────────────
   28. BACK TO TOP BUTTON
   ───────────────────────────────────────── */

.back-to-top,
.btn-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    z-index: 99;
}

.back-to-top.visible,
.btn-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.btn-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

/* ─────────────────────────────────────────
   29. LEGAL PAGES RESPONSIVE
   ───────────────────────────────────────── */

@media (max-width: 768px) {
    .legal-header {
        padding: 0.8rem 1rem;
    }

    .legal-header .logo img,
    .legal-header img {
        height: 34px;
    }

    .legal-page {
        padding: 1.5rem 1rem 3rem;
    }

    .legal-page .page-title h1,
    .legal-page-title {
        font-size: 1.6rem;
    }

    .legal-page-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .legal-toc {
        padding: 1.25rem 1.5rem;
    }

    .legal-toc ol {
        columns: 1;
    }

    .legal-content section {
        padding: 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.15rem;
        margin-top: 2rem;
    }

    .legal-footer {
        padding: 2rem 1rem;
    }

    .legal-footer .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .legal-page .page-title h1,
    .legal-page-title {
        font-size: 1.35rem;
    }

    .legal-content h2 {
        font-size: 1.05rem;
    }

    .legal-content section {
        padding: 1.25rem 1rem;
    }
}
