﻿/* =========================================
   EMV ContÃ¡bil - Design System & Styles
   ========================================= */

:root {
    /* Paleta de Cores (Light Theme Default) */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-text: #0B1F3B;
    /* Navy Blue Base */
    --color-text-light: #5A6B7C;
    --color-navy: #0B1F3B;
    --color-navy-dark: #050E1A;
    --color-gold: #C8A24A;
    --color-gold-light: #E5C578;
    --color-gold-dim: #D4B66A;
    --color-border: #E2E8F0;
    --color-accent-bg: rgba(200, 162, 74, 0.1);

    /* Spacing System (Base 4px/8px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;

    /* Typography */
    --font-heading: 'Georgia', serif;
    /* Toque Editorial Premium */
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Effects */
    --shadow-soft: 0 4px 20px rgba(11, 31, 59, 0.05);
    --shadow-hover: 0 10px 30px rgba(11, 31, 59, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Layout */
    --container-width: 1200px;
    --header-height: 64px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --color-bg: #050E1A;
    /* Quase preto */
    --color-bg-alt: #0B1F3B;
    /* Navy Base */
    --color-text: #F1F5F9;
    --color-text-light: #94A3B8;
    --color-border: #1E293B;
    --color-accent-bg: rgba(200, 162, 74, 0.15);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(200, 162, 74, 0.1);
}

/* =========================================
   Reset & Base
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--header-height);
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4 {
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: var(--color-gold);
    /* Destaque no dark mode */
}

/* Tipografia de Destaque */
h1.display-title {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    letter-spacing: -0.02em;
}

h1.display-title .gold-italic {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    font-weight: 400;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    display: inline-block;
}

h2.section-title::after {
    content: none;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.method-section .section-title::after {
    content: none !important;
    display: none !important;
}

.gold-italic {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    font-weight: 400;
    position: relative;
}

.gold-italic::before,
.gold-italic::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    background: none !important;
    text-decoration: none !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   Utilities & Components
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.narrow-container {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.gold-text {
    color: var(--color-gold);
}

/* Utility classes for AnimatedText */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.gap-2 {
    gap: 0.5rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.-bottom-4 {
    bottom: -1rem;
}

.left-0 {
    left: 0;
}

.text-gold-500 {
    color: var(--color-gold);
}

/* Buttons - Glass Effect */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    isolation: isolate;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 28px rgba(8, 35, 74, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 5%;
    inherits: false;
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: white;
    inherits: false;
}

/* Primary Glass - Navy/Gold tint */
.btn-primary {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, rgba(7, 30, 68, 0.92), rgba(11, 31, 59, 0.8));
    color: white;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 34px rgba(8, 35, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .btn-primary {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(214, 179, 98, 0.95), rgba(200, 162, 74, 0.84));
    color: var(--color-navy-dark);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 34px rgba(200, 162, 74, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(7, 30, 68, 0.96), rgba(11, 31, 59, 0.88));
    border-color: var(--color-gold);
    box-shadow: 0 18px 38px rgba(8, 35, 74, 0.34), 0 0 0 1px rgba(200, 162, 74, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

[data-theme="dark"] .btn-primary:hover {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(214, 179, 98, 0.98), rgba(200, 162, 74, 0.9));
}

/* Outline Glass */
.btn-outline {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    border-color: rgba(8, 35, 74, 0.42);
    color: var(--color-navy);
    box-shadow: 0 12px 28px rgba(8, 35, 74, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .btn-outline {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-color: rgba(200, 162, 74, 0.58);
    color: var(--color-gold);
    box-shadow: 0 12px 30px rgba(200, 162, 74, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-outline:hover {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
        linear-gradient(120deg, rgba(8, 35, 74, 0.08), rgba(8, 35, 74, 0.03));
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(8, 35, 74, 0.75);
    box-shadow: 0 16px 36px rgba(8, 35, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .btn-outline:hover {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        linear-gradient(120deg, rgba(200, 162, 74, 0.16), rgba(200, 162, 74, 0.05));
    color: var(--color-gold-light);
    border-color: rgba(200, 162, 74, 0.85);
}

/* Glass Shine Animation */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 48%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.32) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-24deg);
    transition: left 0.55s ease;
    pointer-events: none;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.btn:hover::after {
    left: 150%;
    transition: left 0.75s ease;
}

.btn:active {
    transform: translateY(-1px) scale(0.995);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.35), 0 12px 28px rgba(8, 35, 74, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn>* {
    position: relative;
    z-index: 2;
}

.btn-text {
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    border-bottom-color: var(--color-gold);
    color: var(--color-gold);
}

/* Golden Line Scroll Tracker */
.golden-line-tracker {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--color-gold);
    width: 0%;
    /* JS controlls this */
    z-index: 9999;
    box-shadow: 0 0 10px var(--color-gold);
    transition: width 0.1s linear;
}

/* Background Noise & Shapes */
.background-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    color: var(--color-accent-bg);
    transition: color 0.4s ease;
}

.shape-blob-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vh;
    height: 60vh;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(5deg);
    }
}

/* =========================================
   Header
   ========================================= */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--color-bg);
    /* Opacity managed via backdrop filter if supported, keeping simple solid for now to ensure contrast */
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
}

/* Theme Logic for Logo */
.logo-light,
.logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.main-nav .nav-list {
    display: flex;
    gap: var(--space-4);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--color-text);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

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

.nav-link.cta-link {
    color: var(--color-gold);
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--color-gold);
}

.icon-sun {
    display: block;
}

.icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: block;
}

/* Modern Header Nav */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

[data-theme="dark"] .modern-header {
    background: rgba(5, 14, 26, 0.88);
}

.modern-header.is-hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

.modern-header-inner {
    width: min(1200px, 94%);
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modern-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.modern-logo {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--color-navy);
}

.modern-logo-img {
    display: block;
    height: 56px;
    width: auto;
}

[data-theme="dark"] .modern-logo {
    color: var(--color-gold);
}

.modern-desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-nav-link,
.modern-nav-trigger {
    border: none;
    background: transparent;
    color: var(--color-text-light);
    font-size: 0.94rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.modern-nav-link:hover,
.modern-nav-trigger:hover {
    color: var(--color-navy);
    background: rgba(11, 31, 59, 0.06);
}

[data-theme="dark"] .modern-nav-link:hover,
[data-theme="dark"] .modern-nav-trigger:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.modern-dropdown {
    position: relative;
}

.modern-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .modern-dropdown-content {
    background: #081326;
    border-color: rgba(255, 255, 255, 0.12);
}

.modern-dropdown:hover .modern-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modern-dropdown-content a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    color: var(--color-text);
}

.modern-dropdown-content a:hover {
    background: rgba(11, 31, 59, 0.06);
}

.modern-dropdown-description a {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modern-dropdown-description a span {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.modern-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-btn {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.modern-btn-ghost {
    color: var(--color-text);
    border-color: var(--color-border);
}

.modern-btn-solid {
    color: #ffffff;
    background: #0B1F3B;
}

.modern-mobile-trigger {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 7px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

[data-theme="dark"] .modern-mobile-trigger {
    background: #0B1F3B;
}

.modern-mobile-trigger span {
    width: 100%;
    height: 2px;
    background: var(--color-text);
}

.modern-mobile-panel {
    display: none;
}

.modern-mobile-panel[hidden] {
    display: none !important;
}

.modern-mobile-link,
.modern-mobile-group summary,
.modern-mobile-group a {
    display: block;
    padding: 10px 2px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.modern-mobile-group {
    border-top: 1px solid var(--color-border);
    padding-top: 6px;
}

.modern-mobile-group summary {
    cursor: pointer;
    font-weight: 700;
}

.modern-mobile-group a {
    padding-left: 14px;
    color: var(--color-text-light);
}

.modern-mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

/* =========================================
   Editorial Hero
   ========================================= */
.editorial-hero {
    padding: 0;
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.editorial-hero>#hero-react-root.container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.hero-react-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    min-height: calc(100svh - var(--header-height));
    justify-content: center;
    padding: clamp(20px, 4vw, 48px) clamp(16px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    transform: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 0;
    background: var(--color-bg);
}

.hero-retro-bg {
    --grid-angle: 65deg;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    perspective: 200px;
}

.hero-retro-plane {
    position: absolute;
    inset: 0;
    transform: rotateX(var(--grid-angle));
}

.hero-retro-grid {
    position: absolute;
    background-repeat: repeat;
    background-size: 60px 60px;
    height: 300vh;
    inset: 0 0;
    margin-left: -50%;
    transform-origin: 100% 0 0;
    width: 600vw;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.3) 1px, transparent 0), linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 1px, transparent 0);
    animation: hero-grid-move 18s linear infinite;
}

[data-theme="dark"] .hero-retro-grid {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.2) 1px, transparent 0), linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 1px, transparent 0);
}

.hero-retro-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 90%);
}

[data-theme="dark"] .hero-retro-fade {
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 90%);
}

@keyframes hero-grid-move {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(60px);
    }
}

.hero-copy,
.hero-actions,
.hero-proof {
    position: relative;
    z-index: 1;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(8, 35, 74, 0.03);
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hero-chip:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

[data-theme="dark"] .hero-chip {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-copy .overline {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    display: block;
    margin-bottom: var(--space-3);
    font-weight: 600;
    transform: translateY(-8px);
}

.hero-title {
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
}

.hero-typing-title {
    display: inline-block;
    min-height: 1.1em;
    position: relative;
}

.hero-typing-title::after {
    content: none;
    display: none;
}

.hero-animated-title {
    position: relative;
    display: inline-block;
    width: max-content;
    padding-bottom: 20px;
    white-space: nowrap;
}

.hero-animated-title-text {
    display: block;
    transform: translateY(-20px);
    opacity: 0;
    animation: hero-title-in 0.6s ease forwards;
    transition: transform 0.25s ease, letter-spacing 0.25s ease;
}

.hero-animated-title:hover .hero-animated-title-text {
    transform: translateY(0) scale(1.03);
    letter-spacing: 0.01em;
}

.hero-animated-underline {
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 100%;
    height: 20px;
    color: var(--color-gold);
    overflow: visible;
    display: block;
    pointer-events: none;
}

.hero-underline-path {
    stroke: var(--color-gold);
    stroke-width: 2.6;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    animation: hero-underline-draw 1.1s ease-in-out forwards;
    filter: drop-shadow(0 2px 4px rgba(200, 162, 74, 0.35));
}

.hero-animated-title:hover .hero-animated-underline {
    transform: scale(1.03);
}

.hero-rotator {
    position: relative;
    display: inline-block;
    min-width: 12ch;
    height: 1.25em;
    line-height: 1.2;
    padding-bottom: 0.08em;
    overflow: hidden;
    color: var(--color-gold);
}

.hero-word {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(120%);
    transition: opacity 0.45s ease, transform 0.45s ease;
    font-weight: 700;
}

.hero-word.is-active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hero-title-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes hero-caret-blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes hero-underline-draw {
    from {
        stroke-dashoffset: 440;
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.hero-subtext {
    max-width: 740px;
    margin: var(--space-2) auto 0;
    color: var(--color-text-light);
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-actions {
    margin-top: clamp(26px, 5vw, 44px);
    display: flex;
    gap: clamp(12px, 2.2vw, 20px);
    align-items: center;
    justify-content: center;
}

.hero-btn {
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.slide-pill-button {
    position: relative;
    min-width: 240px;
    height: 56px;
    padding: 0 22px;
    border: 1px solid rgba(11, 31, 59, 0.18);
    background: #ffffff;
    color: #0B1F3B;
    border-radius: 999px;
    overflow: hidden;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 22px rgba(11, 31, 59, 0.14);
}

.slide-pill-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide-pill-hover {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background: #0B1F3B;
    transform: translateY(110%);
    opacity: 0;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, border-radius 0.3s ease;
}

.slide-pill-button:hover .slide-pill-label,
.slide-pill-button:focus-visible .slide-pill-label {
    transform: translateY(-120%);
    opacity: 0;
}

.slide-pill-button:hover .slide-pill-hover,
.slide-pill-button:focus-visible .slide-pill-hover {
    transform: translateY(0);
    opacity: 1;
    border-radius: 0;
}

.slide-pill-button:focus-visible {
    outline: 2px solid rgba(11, 31, 59, 0.45);
    outline-offset: 2px;
}

[data-theme="dark"] .slide-pill-button {
    border-color: rgba(255, 255, 255, 0.2);
    background: #0b1f3b;
    color: #f8fafc;
}

@property --r {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.gradient-button-wrapper {
    color: #eee;
    text-align: center;
}

.gradient-button-core {
    --color-background: #0B1F3B;
    --color-text: #eeeeee;
    --r: 0deg;
    position: relative;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    height: 56px;
    border: none;
    overflow: hidden;
    background: conic-gradient(from var(--r), #d6b362 0deg, #f2dfaa 75deg, #d6b362 150deg, #6f84a8 245deg, #d6b362 360deg);
    box-shadow: 0 10px 24px rgba(11, 31, 59, 0.22);
}

.gradient-button-core::after {
    content: "";
    display: block;
    position: absolute;
    background: var(--color-background);
    inset: 5px;
    border-radius: 45px;
    z-index: 1;
    transition: opacity 0.3s ease-linear;
}

.gradient-button-label {
    position: relative;
    z-index: 10;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gradient-button-gold {
    --color-background: #C8A24A;
    --color-text: #0B1F3B;
}

.rotatingGradient {
    animation: rotatingGradient 4s linear infinite;
}

.gradient-button-core:hover {
    transform: translateY(-1px);
}

.gradient-button-core:focus-visible {
    outline: 2px solid rgba(200, 162, 74, 0.8);
    outline-offset: 3px;
}

@keyframes rotatingGradient {
    to {
        --r: 360deg;
    }
}

.shiny-cta {
    --shiny-cta-bg: #000000;
    --shiny-cta-bg-subtle: #1a1818;
    --shiny-cta-fg: #ffffff;
    --shiny-cta-highlight: #2563eb;
    --shiny-cta-highlight-subtle: #8484ff;
    --animation: gradient-angle linear infinite;
    --duration: 3s;
    --shadow-size: 2px;
    --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
    isolation: isolate;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    outline-offset: 4px;
    padding: 1rem 2.1rem;
    font-family: "Inter", var(--font-body);
    font-size: 1.02rem;
    line-height: 1.2;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 360px;
    color: var(--shiny-cta-fg);
    background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
        conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
            transparent,
            var(--shiny-cta-highlight) var(--gradient-percent),
            var(--gradient-shine) calc(var(--gradient-percent) * 2),
            var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
            transparent calc(var(--gradient-percent) * 4)) border-box;
    box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
    transition: var(--transition);
    transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
}

.shiny-cta::before,
.shiny-cta::after,
.shiny-cta span::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
}

.shiny-cta:active {
    translate: 0 1px;
}

.shiny-cta::before {
    --size: calc(100% - var(--shadow-size) * 3);
    --position: 2px;
    --space: calc(var(--position) * 2);
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
    border-radius: inherit;
    opacity: 0.4;
}

.shiny-cta::after {
    --animation: shimmer linear infinite;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, var(--shiny-cta-highlight), transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: 0.6;
}

.shiny-cta span {
    z-index: 1;
    position: relative;
}

.shiny-cta span::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
    opacity: 0;
    transition: opacity var(--transition);
    animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

.shiny-cta,
.shiny-cta::before,
.shiny-cta::after {
    animation: var(--animation) var(--duration), var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
}

.shiny-cta:is(:hover, :focus-visible) {
    --gradient-percent: 20%;
    --gradient-angle-offset: 95deg;
    --gradient-shine: var(--shiny-cta-highlight-subtle);
}

.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible)::before,
.shiny-cta:is(:hover, :focus-visible)::after {
    animation-play-state: running;
}

.shiny-cta:is(:hover, :focus-visible) span::before {
    opacity: 1;
}

@keyframes gradient-angle {
    to {
        --gradient-angle: 360deg;
    }
}

@keyframes shimmer {
    to {
        rotate: 360deg;
    }
}

@keyframes breathe {

    from,
    to {
        scale: 1;
    }

    50% {
        scale: 1.2;
    }
}

.hero-btn-primary {
    box-shadow: 0 8px 20px rgba(8, 35, 74, 0.16);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(8, 35, 74, 0.2);
}

.hero-btn-secondary {
    border-color: rgba(8, 35, 74, 0.24);
    background: rgba(8, 35, 74, 0.03);
    box-shadow: none;
}

.hero-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--color-gold);
    background: rgba(175, 145, 72, 0.08);
    box-shadow: 0 8px 20px rgba(8, 35, 74, 0.12);
}

[data-theme="dark"] .hero-btn-secondary {
    border-color: rgba(200, 162, 74, 0.45);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .hero-btn-secondary:hover {
    border-color: rgba(216, 187, 120, 0.9);
    background: rgba(200, 162, 74, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.hero-proof {
    display: none !important;
}

[data-theme="dark"] .hero-proof {
    display: none !important;
}

.stat-number {
    display: none !important;
}

.stat-label {
    display: none !important;
}

/* =========================================
   Manifesto
   ========================================= */
.manifesto-section {
    padding: var(--space-10) 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(175, 145, 72, 0.12), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(8, 35, 74, 0.08), transparent 45%),
        var(--color-bg);
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.4;
    max-width: 800px;
    margin-bottom: var(--space-6);
    color: var(--color-text);
}

.brand-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.brand-pillars .service-card {
    height: 100%;
}

.brand-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(14px, 2vw, 20px);
    padding: clamp(28px, 4vw, 44px) 0;
}



.brand-feature-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 760px;
}

.brand-feature-heading .section-title {
    margin-bottom: 0;
}

.brand-feature-heading p {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.brand-feature-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 26px);
    padding-top: clamp(18px, 3vw, 26px);
}

.brand-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.brand-feature-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(200, 162, 74, 0.16);
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 3px;
}

.brand-feature-item h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--color-navy);
}

.brand-feature-item p {
    margin-top: 4px;
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

[data-theme="dark"] .manifesto-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(175, 145, 72, 0.16), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(49, 114, 173, 0.12), transparent 45%),
        var(--color-bg);
}



[data-theme="dark"] .brand-feature-item h3 {
    color: var(--color-text);
}

/* =========================================
   Radar (Cards)
   ========================================= */
.radar-section {
    padding: var(--space-10) 0;
    background-color: var(--color-bg-alt);
}

.radar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
    perspective: 1000px;
    /* For 3D Tilt Effect */
}

.radar-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 14px 34px rgba(8, 35, 74, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.map-outline {
    transition: all 0.5s ease;
}

[data-theme="dark"] .map-outline {
    stroke: var(--color-gold);
}

.radar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(8, 35, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.68);
    border-color: var(--color-gold-dim);
}

.radar-card.highlight {
    border-color: var(--color-gold);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.44)),
        linear-gradient(to bottom, var(--color-bg), var(--color-accent-bg));
}

.card-icon {
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}

[data-theme="dark"] .card-icon {
    color: var(--color-gold);
}

.radar-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.radar-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

.card-link:hover {
    text-decoration: underline;
}

/* =========================================
   Services List (Asymmetrical)
   ========================================= */
/* =========================================
   Services Grid (Cards Premium)
   ========================================= */
.services-grid-section {
    padding: var(--space-12) 0;
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.category-list-shell {
    margin-top: var(--space-6);
}

.category-list {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.65);
}

.category-item {
    min-height: 172px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    transition: background 0.25s ease;
    cursor: default;
}

.category-item-featured .category-main h3 {
    font-size: 1rem;
}

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

.category-item:hover {
    background: rgba(200, 162, 74, 0.05);
}

.category-corners,
.category-item-icon {
    display: none;
}

.category-main {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 30px;
}

.category-main h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
}

.category-main p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

[data-theme="dark"] .category-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .category-main h3 {
    color: var(--color-text);
}

[data-theme="dark"] .category-list {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.16);
}

@media (min-width: 640px) {
    .category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-item {
        border-right: 1px solid var(--color-border);
    }

    .category-item:nth-child(2n) {
        border-right: none;
    }

    .category-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (min-width: 1024px) {
    .category-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-item {
        border-right: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }

    .category-item:nth-child(2n) {
        border-right: 1px solid var(--color-border);
    }

    .category-item:nth-child(3n) {
        border-right: none;
    }

    .category-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--color-border);
    }

    .category-item:nth-last-child(-n+3) {
        border-bottom: none;
    }
}


.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    box-shadow: 0 14px 34px rgba(8, 35, 74, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 22px 44px rgba(8, 35, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.stat-box::before,
.radar-card::before,
.service-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06));
    pointer-events: none;
    z-index: 0;
}

.stat-box::after,
.radar-card::after,
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 46%;
    height: 100%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    transform: skewX(-22deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 1;
}

.stat-box:hover::after,
.radar-card:hover::after,
.service-card:hover::after {
    left: 150%;
}

.stat-box>*,
.radar-card>*,
.service-card>* {
    position: relative;
    z-index: 2;
}

.s-icon {
    background: var(--color-bg);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--color-navy);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

[data-theme="dark"] .s-icon {
    background: var(--color-navy-dark);
    color: var(--color-gold);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover .s-icon {
    background: var(--color-navy);
    color: var(--color-gold);
    border-color: var(--color-navy);
}

[data-theme="dark"] .service-card:hover .s-icon {
    background: var(--color-gold);
    color: var(--color-navy-dark);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
    color: var(--color-navy);
}

[data-theme="dark"] .service-card h3 {
    color: var(--color-text);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mt-6 {
    margin-top: var(--space-6);
}

/* =========================================
   Method Timeline
   ========================================= */
.method-section {
    padding: var(--space-10) 0;
    background-color: var(--color-bg-alt);
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--space-8) auto 0;
    padding-left: 20px;
    /* Mobile first alignment */
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: transparent;
    display: none;
}

.timeline-step {
    position: relative;
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -5px;
    /* (step-padding) + (line-width/2) - (marker-width/2) */
    left: 14px;
    /* Adjusting for padding-left: 20px on parent container */
    left: -6px;
    /* Relative to padding-left set on .timeline-step */
    left: 15px;
    /* Wait, line is at 20px abs. Step has padding-left. */
}

/* Let's fix timeline positioning for responsive using flex/grid logic is safer, but absolute line is requested style */
/* Simplified Timeline logic */

.timeline-step {
    padding-left: 50px;
}

.timeline-line {
    left: 29px;
    /* center of bullet */
    background: transparent;
    display: none;
}

.step-marker {
    width: 12px;
    height: 12px;
    background-color: var(--color-bg);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    position: absolute;
    left: 24px;
    top: 6px;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.timeline-step:hover .step-marker {
    background-color: var(--color-gold);
}

.step-content h4 {
    margin-bottom: var(--space-1);
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* =========================================
   FAQ Accordion
   ========================================= */
.faq-section {
    padding: var(--space-10) 0;
}

.accordion {
    margin-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: var(--space-4) 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--color-gold);
}

.accordion-header .icon-plus {
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .icon-plus {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body {
    padding-bottom: var(--space-4);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* =========================================
   CTA & Form
   ========================================= */
.cta-section {
    padding: var(--space-10) 0;
    position: relative;
    background-color: var(--color-navy-dark);
    color: white;
    overflow: hidden;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(200, 162, 74, 0.15), transparent 60%);
    pointer-events: none;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    position: relative;
    z-index: 2;
}

.cta-text h2.small {
    font-size: 2.5rem;
    color: white;
}

.cta-text p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: var(--space-6);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1rem;
    color: var(--color-gold-light);
    text-decoration: none;
}

.contact-pill:hover {
    color: white;
}

/* Form Styles */
.contact-form {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    color: var(--color-navy);
}

[data-theme="dark"] .contact-form {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: var(--space-3);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-navy);
}

[data-theme="dark"] .form-group label {
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.2);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper .chevron-down {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-text-light);
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-2);
}

/* =========================================
   AtuaÃ§Ã£o Nacional
   ========================================= */
.national-section {
    padding: var(--space-12) 0;
    overflow: hidden;
    position: relative;
    background-color: var(--color-bg);
}

.national-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 1024px) {
    .national-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* Map Visual */
.national-map-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brazil-map {
    width: 100%;
    max-width: 540px;
    height: auto;
    shape-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
    text-rendering: geometricPrecision;
    overflow: visible;
    animation: mapFloat 6s ease-in-out infinite;
}

.map-country {
    opacity: 1;
    filter: drop-shadow(0 8px 18px rgba(6, 29, 67, 0.12));
}

.map-node {
    animation: nodeBlink 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(200, 162, 74, 0.45));
}

.map-route {
    fill: none;
    stroke: #C8A24A;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 7 9;
    opacity: 0.9;
    animation: routeFlow 2.6s linear infinite;
}

.route-north {
    animation-delay: 0s;
}

.route-northeast {
    animation-delay: 0.35s;
}

.route-south {
    animation-delay: 0.7s;
}

.route-signal {
    fill: #C8A24A;
    opacity: 0.95;
    filter: drop-shadow(0 0 6px rgba(200, 162, 74, 0.7));
}

.map-outline {
    stroke-linejoin: round;
    color: var(--color-border);
}

[data-theme="dark"] .map-outline {
    color: #1E293B;
    stroke-width: 1.5;
}

/* Pulse Animation */
.pin-center {
    animation: pinGlow 2s infinite ease-in-out;
}

.pin-pulse,
.pin-pulse-2 {
    transform-origin: center;
    transform-box: fill-box;
    animation: pulseWave 3s infinite ease-out;
}

.pin-pulse-2 {
    animation-delay: 1s;
}

@keyframes pulseWave {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes pinGlow {

    0%,
    100% {
        fill: var(--color-gold);
    }

    50% {
        fill: white;
    }
}

@keyframes mapFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes routeFlow {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -32;
    }
}

@keyframes nodeBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.75;
    }
}

/* Content Side */
.national-content {
    padding-left: 0;
}

.gold-overline {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.national-text p {
    margin-bottom: var(--space-4);
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.national-text strong {
    color: var(--color-text);
    font-weight: 600;
}

[data-theme="dark"] .national-text strong {
    color: white;
}

.national-stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.n-stat {
    display: flex;
    flex-direction: column;
}

.n-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1;
}

[data-theme="dark"] .n-value {
    color: white;
}

.n-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-top: var(--space-1);
    letter-spacing: 0.05em;
}

.n-separator {
    width: 1px;
    height: 50px;
    background-color: var(--color-border);
}

/* Footer */
.site-footer {
    padding: var(--space-8) 0 var(--space-6);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: var(--space-8);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-logo img {
    height: 40px;
    /* Adjusted size for balanced look */
    width: auto;
}

.footer-desc {
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-3);
}

[data-theme="dark"] .footer-heading {
    color: var(--color-text);
}

.footer-links,
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a,
.contact-list li a,
.contact-item {
    color: var(--color-text-light);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-links li a:hover,
.contact-list li a:hover {
    color: var(--color-navy);
}

[data-theme="dark"] .footer-links li a:hover,
[data-theme="dark"] .contact-list li a:hover {
    color: var(--color-gold);
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.social-icon,
.contact-icon {
    flex-shrink: 0;
    color: var(--color-navy);
    /* Brand color for icons */
    transition: color 0.2s ease;
}

[data-theme="dark"] .social-icon,
[data-theme="dark"] .contact-icon {
    color: var(--color-text-light);
}

.contact-item:hover .contact-icon,
.footer-links li a:hover .social-icon,
.social-links a:hover .social-icon {
    color: var(--color-gold);
}

.contact-item.address-item {
    align-items: flex-start;
    line-height: 1.5;
    /* Matches text line height */
}

.contact-item.address-item .contact-icon {
    margin-top: 3px;
    /* Visual adjustment based on 1.5 LH and 20px icon */
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
}

@media (min-width: 600px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}


/* Responsive Media Queries */
@media (max-width: 900px) {
    :root {
        --header-height: 60px;
    }

    .editorial-hero {
        min-height: auto;
    }

    .brand-pillars {
        grid-template-columns: 1fr;
    }

    .brand-feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

    .modern-header-inner {
        height: 60px;
    }

    .modern-logo-img {
        height: 48px;
    }

    .modern-mobile-trigger {
        display: inline-flex;
    }

    .modern-desktop-nav,
    .modern-right {
        display: none;
    }

    .modern-mobile-panel {
        display: block;
        width: min(1200px, 94%);
        margin: 0 auto;
        padding: 0 0 14px;
    }

    /* National Section Mobile */
    .national-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .national-content {
        padding-left: 0;
        margin-top: var(--space-6);
    }

    .national-stats {
        justify-content: center;
    }

    .desk-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .hero-react-shell {
        min-height: calc(100svh - var(--header-height));
        gap: var(--space-4);
        align-items: stretch;
        text-align: center;
    }

    .hero-copy .overline {
        letter-spacing: 0.12em;
        font-size: 0.72rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 32px;
        gap: 14px;
    }

    .hero-btn {
        width: 100%;
        max-width: 340px;
    }

    .hero-title {
        max-width: none;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .timeline {
        margin-left: 0;
        padding-left: 0;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    h1.display-title {
        font-size: 1.6rem;
    }
}

@media (min-width: 901px) {
    .mobile-only {
        display: none;
    }

    /* Horizontal Timeline Override for Desktop if desired, keeping vertical for consistency per prompt "method EMV" */
    .timeline {
        display: flex;
        justify-content: space-between;
        max-width: 100%;
        padding: 40px 0 0 0;
    }

    .timeline-line {
        display: none;
    }

    .timeline-step {
        padding-left: 0;
        padding-top: 40px;
        flex: 1;
        text-align: center;
    }

    .step-marker {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
}

/* Global pseudo-element reset removed as it breaks shine effects */

/* =========================================
   Velocity Scroll Styles
   ========================================= */
.velocity-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    opacity: 0.3;
    padding: var(--space-4) 0;
}

[data-theme="dark"] .velocity-text {
    color: var(--color-gold);
    opacity: 0.4;
}

.parallax-text-item {
    margin-right: var(--space-8);
}

/* =========================================
   Scroll Animations
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* Pulsating Animation for Main Buttons */
@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 163, 102, 0.4);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(198, 163, 102, 0);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 163, 102, 0);
        transform: scale(1);
    }
}

.slide-pill-button,
.modern-btn-solid {
    animation: btn-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.slide-pill-button:hover,
.modern-btn-solid:hover {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .slide-pill-button,
    .modern-btn-solid {
        animation: none;
    }
}