/* 
=============================================
  FGS Classes — Premium Design System v2
  Fixes: Hero 100vh, stats, diagnostico, 
  filtro immersive, footer logo, buttons
=============================================
*/

:root {
    --navy: #1A2B4A;
    --navy-deep: #0F1A2E;
    --navy-light: #243B5C;
    --terracotta: #A84928;
    --terracotta-hover: #C75A32;
    --sand: #F2EBE3;
    --sand-dark: #E8DED3;
    --white: #FFFFFF;
    --text-primary: #0A1628;
    --text-secondary: #4B5B75;
    --text-muted: #8494A7;

    --font: 'Inter', system-ui, -apple-system, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    --glow-terracotta: 0 0 30px rgba(168, 73, 40, 0.4), 0 0 60px rgba(168, 73, 40, 0.15);
    --shadow-card: 0 4px 24px rgba(10, 22, 40, 0.08), 0 1px 3px rgba(10, 22, 40, 0.04);
    --shadow-card-hover: 0 12px 48px rgba(10, 22, 40, 0.15), 0 4px 12px rgba(10, 22, 40, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================== TYPOGRAPHY ================== */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--navy);
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: 1.35rem;
}

.text-white {
    color: var(--white) !important;
}

.text-white-muted {
    color: rgba(242, 235, 227, 0.7);
}

.text-lg {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.text-muted-lg {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--terracotta), #D4714A, var(--terracotta));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

/* ================== LAYOUT ================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    position: relative;
    padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--space-2xl) 0;
    }
}

/* ================== TAGS ================== */
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(168, 73, 40, 0.25);
    border-radius: 100px;
    background: rgba(168, 73, 40, 0.06);
}

.tag-light {
    color: var(--terracotta);
    border-color: rgba(168, 73, 40, 0.3);
    background: rgba(168, 73, 40, 0.1);
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-lg {
    padding: 1.1rem 2.4rem;
    font-size: 1.05rem;
}

.btn-glow {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-hover));
    color: var(--white);
    box-shadow: var(--glow-terracotta);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(168, 73, 40, 0.5), 0 0 80px rgba(168, 73, 40, 0.2);
}

.btn-pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.btn-ghost {
    background: transparent;
    color: var(--sand);
    border: 1px solid rgba(242, 235, 227, 0.25);
}

.btn-ghost:hover {
    background: rgba(242, 235, 227, 0.1);
    border-color: rgba(242, 235, 227, 0.5);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    border-radius: 100px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ================== PARTICLE CANVAS ================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ================== FLOATING CTA ================== */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-med);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

@media (max-width: 767px) {
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .floating-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================== HEADER ================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 0.8rem 0;
    transition: all var(--transition-med);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(15, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.6rem 0;
}

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

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all var(--transition-fast);
}

.site-header.scrolled .logo-img {
    height: 34px;
}

/* ========================================================================
   HERO — Centered Immersive Experience
   ======================================================================== */
.hero {
    min-height: 100vh;
    background: var(--navy-deep);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(168, 73, 40, 0.08), transparent),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(26, 43, 74, 0.8), transparent);
    z-index: 1;
}

/* Dynamic Orb Tracker */
.hero-ambient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 73, 40, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    transition: width 0.3s, height 0.3s;
    /* initial pos */
    top: 50%;
    left: 50%;
}

/* Background Grid Lines for Technical / Premium feel */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-size: 80px 80px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    z-index: 0;
}

.hero-container-centered {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding-top: 5rem;
    padding-bottom: var(--space-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(168, 73, 40, 0.08);
    border: 1px solid rgba(168, 73, 40, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--terracotta); }
    50% { opacity: 0.4; transform: scale(0.8); box-shadow: 0 0 0px var(--terracotta); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    color: var(--white);
    margin-bottom: var(--space-md);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 900px;
}

.gradient-shimmer {
    background: linear-gradient(to right, var(--terracotta) 20%, #E88D6A 40%, #E88D6A 60%, var(--terracotta) 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: rgba(242, 235, 227, 0.7);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

/* Hero Stats Bar — Bottom of Hero */
.hero-stats-bar {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Linha sutil cortando o Hero no final */
    padding: var(--space-md) 0; /* Mais espaçamento interno */
    background: rgba(15, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.stat-plus {
    color: var(--terracotta);
    font-size: 1.5rem;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(242, 235, 227, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.stat-sep {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
        padding-bottom: var(--space-sm);
    }
    
    .stat-sep {
        width: 100px;
        height: 1px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

/* Scroll indicator */
.scroll-indicator {
    display: none; /* Escondido para não sobrepor a barra de stats */
}

.mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 3px;
    height: 6px;
    background: var(--terracotta);
    border-radius: 2px;
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ========================================================================
   PROBLEMA — Properly spaced blocks
   ======================================================================== */
.problema {
    background: var(--sand);
}

.problema-header {
    margin-bottom: var(--space-xl);
}

.problema-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
}

.problema-block {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.problema-number {
    font-size: 1rem;
    font-weight: 900;
    color: var(--terracotta);
    flex-shrink: 0;
    padding-top: 0.2rem;
    opacity: 0.6;
}

.problema-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--navy);
}

.problema-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

.problema-insight {
    display: flex;
    gap: var(--space-sm);
    padding: 1.4rem 1.6rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--terracotta);
    box-shadow: var(--shadow-card);
    margin-top: var(--space-sm);
}

.insight-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.problema-insight p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ========================================================================
   MÉTODO
   ======================================================================== */
.metodo {
    background: var(--navy-deep);
    overflow: hidden;
}

.section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-xl);
}

.method-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .method-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.method-card {
    position: relative;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    color: var(--sand);
    transition: all var(--transition-med);
    overflow: hidden;
}

.method-card:hover {
    border-color: rgba(168, 73, 40, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(168, 73, 40, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-med);
    pointer-events: none;
}

.method-card:hover .card-glow {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.card-letter {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--terracotta);
    line-height: 1;
}

.card-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(168, 73, 40, 0.4), transparent);
}

.method-card h3 {
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.method-card p {
    color: rgba(242, 235, 227, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================================================
   FILTRO EXECUTIVO — Immersive animated experience
   ======================================================================== */
.filtro {
    background: var(--white);
    overflow: hidden;
}

.filter-immersive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: var(--space-lg);
    position: relative;
}

@media (min-width: 768px) {
    .filter-immersive {
        grid-template-columns: 1fr auto 1fr;
        min-height: 480px;
    }
}

/* Filter Panels */
.filter-panel {
    position: relative;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-panel-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.filter-panel-content {
    position: relative;
    z-index: 1;
}

/* YES Panel */
.filter-panel-yes {
    border: 1px solid rgba(26, 43, 74, 0.08);
    background: linear-gradient(165deg, rgba(26, 43, 74, 0.03), transparent);
}

.filter-panel-yes .filter-panel-bg {
    background: linear-gradient(165deg, rgba(26, 43, 74, 0.08), rgba(26, 43, 74, 0.02));
}

.filter-panel-yes.active {
    border-color: rgba(26, 43, 74, 0.2);
    box-shadow: 0 20px 80px rgba(26, 43, 74, 0.12);
    transform: scale(1.02);
}

.filter-panel-yes.active .filter-panel-bg {
    opacity: 1;
}

/* NO Panel */
.filter-panel-no {
    border: 1px solid rgba(168, 73, 40, 0.06);
    background: linear-gradient(165deg, rgba(168, 73, 40, 0.02), transparent);
}

.filter-panel-no .filter-panel-bg {
    background: linear-gradient(165deg, rgba(168, 73, 40, 0.06), rgba(168, 73, 40, 0.01));
}

.filter-panel-no.active {
    border-color: rgba(168, 73, 40, 0.15);
    box-shadow: 0 20px 80px rgba(168, 73, 40, 0.08);
    transform: scale(1.02);
}

.filter-panel-no.active .filter-panel-bg {
    opacity: 1;
}

/* Panel Icons */
.filter-panel-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    background: rgba(26, 43, 74, 0.06);
    color: var(--navy);
    transition: all 0.6s ease;
}

.filter-icon-no {
    background: rgba(168, 73, 40, 0.06);
    color: var(--terracotta);
}

.filter-panel.active .filter-panel-icon {
    transform: scale(1.1);
}

.filter-panel-yes.active .filter-panel-icon {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(26, 43, 74, 0.3);
}

.filter-panel-no.active .filter-panel-icon {
    background: var(--terracotta);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(168, 73, 40, 0.3);
}

.filter-panel h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

/* Filter List Items with staggered animation */
.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-item {
    display: flex;
    gap: 0.8rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-panel-no .filter-item {
    transform: translateX(20px);
}

.filter-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.filter-item:last-child {
    border-bottom: none;
}

.filter-item-marker {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.85rem;
    padding-top: 2px;
}

.filter-panel-no .filter-item-marker {
    color: var(--terracotta);
}

/* Divider */
.filter-divider {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
}

@media (min-width: 768px) {
    .filter-divider {
        flex-direction: column;
        padding: 0 var(--space-md);
    }
}

.filter-divider-line {
    flex: 1;
    background: linear-gradient(to bottom, transparent, rgba(168, 73, 40, 0.2), transparent);
    width: 1px;
}

@media (max-width: 767px) {
    .filter-divider-line {
        height: 1px;
        width: auto;
        background: linear-gradient(to right, transparent, rgba(168, 73, 40, 0.2), transparent);
    }
}

.filter-divider-text {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--terracotta);
    background: var(--white);
    padding: 0.6rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 73, 40, 0.15);
    flex-shrink: 0;
}

/* Filter CTA */
.filter-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

.filter-cta-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* ========================================================================
   AUTORIDADE
   ======================================================================== */
.autoridade {
    background: var(--sand);
}

.authority-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .authority-layout {
        grid-template-columns: 0.9fr 1.1fr;
        gap: var(--space-xl);
        align-items: center;
    }
}

.authority-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    z-index: 1; /* Garante que ficará acima das bordas e background */
}

/* Borda decorativa de fundo */
.authority-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px; /* Reduzida a expansão */
    border: 1px solid rgba(168, 73, 40, 0.25);
    border-radius: calc(var(--radius-lg) + 8px); /* Curva acompanhando a foto */
    z-index: -1;
    transition: all var(--transition-med);
}

.authority-img-wrapper:hover::before {
    inset: -8px;
    border-color: rgba(168, 73, 40, 0.5);
    background: rgba(168, 73, 40, 0.03); /* Leve fundo no hover */
}

.authority-img {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Mudar aspectRatio para ficar mais natural e menos esticado */
    aspect-ratio: 3 / 4; 
    object-fit: cover;
    object-position: center 20%; /* Focar mais no rosto e ombros */
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.1);
    transition: all var(--transition-med);
}

.authority-img-wrapper:hover .authority-img {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.15);
}

/* O Badge com o logo FGS flutuante */
.authority-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1rem; /* Mais respiro */
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.12);
    z-index: 10;
    border: 1px solid rgba(26, 43, 74, 0.05);
}

.authority-logo {
    width: 60px; /* Logo um pouco menor para ficar mais premium */
    height: auto;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--space-md);
}

.credential {
    display: flex;
    gap: var(--space-sm);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(26, 43, 74, 0.08);
    transition: all var(--transition-fast);
}

.credential:last-child {
    border-bottom: none;
}

.credential:hover {
    padding-left: 0.5rem;
}

.credential-marker {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--terracotta);
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.credential strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.credential p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Foto Exterior (Social Proof) */
.authority-experience {
    margin-top: var(--space-md);
    width: 100%;
}

.experience-img-wrapper {
    position: relative;
    width: 100%;
    /* Aspect ratio de landscape para não tomar muito espaço vertical e caber bem o lifestyle */
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
    transition: all var(--transition-med);
}

.experience-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.15);
}

.experience-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ajusta ao centro da foto */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-img-wrapper:hover .experience-img {
    transform: scale(1.05); /* Efeito sutil de zoom in ao passar o mouse */
}

.experience-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 46, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    pointer-events: none;
}

.experience-tag {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
}

/* ========================================================================
   APLICAÇÃO
   ======================================================================== */
.aplicacao {
    background: var(--navy-deep);
    position: relative;
    overflow: hidden;
}

.aplicacao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translateX(-50%) translateY(-50%);
    background: radial-gradient(ellipse, rgba(168, 73, 40, 0.1), transparent 70%);
    pointer-events: none;
}

/* Timeline */
.steps-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .steps-timeline {
        flex-direction: row;
        justify-content: center;
    }
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1.2rem 1.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all var(--transition-med);
    min-width: 220px;
}

.timeline-step:hover {
    border-color: rgba(168, 73, 40, 0.3);
    background: rgba(168, 73, 40, 0.06);
    transform: translateY(-4px);
}

.timeline-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--terracotta);
    flex-shrink: 0;
    line-height: 1;
}

.timeline-content h4 {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.timeline-content p {
    font-size: 0.8rem;
    color: rgba(242, 235, 227, 0.45);
    margin: 0;
}

.timeline-connector {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(168, 73, 40, 0.4), transparent);
}

@media (min-width: 768px) {
    .timeline-connector {
        width: 48px;
        height: 2px;
        background: linear-gradient(to right, rgba(168, 73, 40, 0.4), transparent);
    }
}

/* Form */
.form-container {
    max-width: 700px; /* Mesma largura da configuração Typeform para não estourar no PC */
    margin: 0 auto;
    position: relative;
    /* Adicionando borda sutil no contêiner se quiser isolar do fundo */
}

.form-placeholder {
    width: 100%;
    /* Na screenshot, altura do formulário = 600px */
    height: 600px;
    background: transparent; /* Se usar transparência, o fundo do site aparece */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.typeform-widget {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

/* ========================================================================
   FORM SUCCESS ANIMATION
   ======================================================================== */
.form-success {
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.form-success.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.success-content {
    text-align: center;
    padding: var(--space-lg);
}

.success-content h3 {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.success-content>p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

/* Animated Checkmark */
.success-check {
    margin: 0 auto var(--space-md);
    width: 80px;
    height: 80px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--terracotta);
    stroke-miterlimit: 10;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--terracotta);
    fill: none;
    animation: circle-draw 0.6s ease-in-out 0.2s forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    animation: check-draw 0.4s ease-in-out 0.7s forwards;
}

@keyframes circle-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes check-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Success Steps */
.success-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.success-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 100px;
}

.success-step span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.success-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.success-step-icon.active {
    background: var(--terracotta);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(168, 73, 40, 0.3);
}

.success-step-icon.pending {
    background: rgba(26, 43, 74, 0.06);
    color: var(--text-muted);
    border: 1px dashed rgba(26, 43, 74, 0.15);
}

.success-step-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--terracotta), rgba(26, 43, 74, 0.1));
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

/* ========================================================================
   FOOTER — Logo fully white
   ======================================================================== */
.site-footer {
    background: #060D18;
    padding: var(--space-md) 0;
}

.footer-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.footer-logo {
    width: 80px;
    opacity: 0.4;
    /* Make entire logo white including "CLASSES" text */
    filter: brightness(0) invert(1);
}

.site-footer p {
    font-size: 0.8rem;
    color: rgba(242, 235, 227, 0.25);
    margin: 0;
}

/* ================== REVEAL ANIMATIONS ================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="100"] {
    transition-delay: 0.1s;
}

.reveal[data-delay="150"] {
    transition-delay: 0.15s;
}

.reveal[data-delay="200"] {
    transition-delay: 0.2s;
}

.reveal[data-delay="250"] {
    transition-delay: 0.25s;
}

.reveal[data-delay="300"] {
    transition-delay: 0.3s;
}

.reveal[data-delay="400"] {
    transition-delay: 0.4s;
}

.reveal[data-delay="500"] {
    transition-delay: 0.5s;
}

.reveal[data-delay="600"] {
    transition-delay: 0.6s;
}

.reveal[data-delay="800"] {
    transition-delay: 0.8s;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 767px) {
    .authority-badge-float {
        bottom: -0.5rem;
        right: 0.5rem;
    }

    .section-intro {
        margin-bottom: var(--space-lg);
    }

    .hero-container-centered {
        padding-top: 5rem;
        padding-bottom: var(--space-lg);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
}