/* ============================================
   LASTRA LANDING PAGE - CSS
   Elegant, Premium Design System
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Color Palette - Refined with Nuance */
    --bg-primary: hsl(40, 15%, 98%);
    --bg-secondary: hsl(40, 12%, 96%);
    --bg-tertiary: hsl(40, 10%, 97%);
    --bg-muted: hsl(40, 10%, 94%);
    --bg-card: hsl(0, 0%, 100%);

    --fg-primary: hsl(30, 8%, 12%);
    --fg-secondary: hsl(30, 6%, 30%);
    --fg-muted: hsl(30, 4%, 50%);

    --color-primary: hsl(0, 0%, 8%);
    --color-accent: hsl(38, 65%, 48%);
    --color-success: hsl(152, 50%, 35%);
    --color-warning: hsl(38, 85%, 48%);
    --color-footer: hsl(0, 0%, 5%);
    --color-footer-text: hsl(0, 0%, 95%);
    --color-footer-muted: hsl(0, 0%, 60%);

    --border-color: hsl(40, 12%, 88%);
    --border-muted: hsl(40, 8%, 92%);

    /* Typography Scale - Refined */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.375rem;
    --text-3xl: 1.75rem;
    --text-4xl: 2.25rem;
    --text-5xl: 2.75rem;
    --text-6xl: 4rem;

    /* Spacing Scale - Harmonious */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;

    /* Shadows - Softer */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.05), 0 10px 20px -5px rgba(0, 0, 0, 0.03);

    /* Container */
    --container-max: 1200px;
    --container-padding: 2rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px;
}

html.no-snap {
    scroll-snap-type: none;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.grid-bg {
    background-image:
        linear-gradient(hsl(40, 15%, 90%) 1px, transparent 1px),
        linear-gradient(90deg, hsl(40, 15%, 90%) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-muted);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
}

.logo-text {
    color: var(--fg-primary);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--fg-secondary);
    position: relative;
}

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

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

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

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: hsl(0, 0%, 15%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--fg-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--color-primary);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--fg-primary);
    border-color: var(--fg-primary);
}

.btn-outline-light:hover {
    background-color: var(--fg-primary);
    color: white;
}

.btn-ghost {
    background-color: transparent;
    color: var(--fg-secondary);
}

.btn-ghost:hover {
    color: var(--fg-primary);
    background-color: var(--bg-secondary);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    padding: var(--space-md) 0;
    background-image:
        linear-gradient(var(--border-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-muted) 1px, transparent 1px);
    background-size: 40px 40px;
    background-color: hsla(40, 15%, 98%, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-muted);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--fg-primary);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: var(--space-xl);
}

.nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.header-cta {
    display: flex;
    gap: var(--space-md);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: var(--space-xl) 0 var(--space-3xl);
    background-image:
        linear-gradient(var(--border-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-muted) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: 2rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xl);
}

.hero-badge svg {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-lg);
    color: var(--fg-primary);
}

.hero-subtitle {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--fg-secondary);
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.hero-note {
    font-size: var(--text-sm);
    color: var(--fg-muted);
}

/* Hero Visual - Dashboard Mockup */
.hero-visual {
    position: relative;
}

.dashboard-mockup {
    background-color: var(--bg-card);
    border: 0.5px solid var(--border-muted);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-muted);
    margin-bottom: 1.5rem;
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-muted);
}

.mockup-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-secondary);
}

.mockup-content {
    display: grid;
    gap: 1rem;
}

/* Stats Row */
.mockup-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mockup-stat-card {
    padding: 1.25rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.mockup-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mockup-stat-card.highlight {
    background: linear-gradient(135deg, hsl(38, 70%, 97%) 0%, hsl(38, 60%, 95%) 100%);
    border-color: var(--color-accent);
    border-width: 2px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--fg-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-value.accent {
    color: var(--color-accent);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-trend.positive {
    color: var(--color-success);
}

.stat-trend svg {
    width: 14px;
    height: 14px;
}

/* Alert Cards */
.mockup-alert-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    background-color: var(--bg-card);
    transition: all 0.3s ease;
}

.mockup-alert-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.mockup-alert-card.critical {
    border-left-color: hsl(0, 65%, 45%);
    background-color: hsl(0, 65%, 98%);
}

.mockup-alert-card.warning {
    border-left-color: var(--color-warning);
    background-color: hsl(38, 92%, 98%);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.alert-header svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mockup-alert-card.critical .alert-header svg {
    color: hsl(0, 65%, 45%);
}

.mockup-alert-card.warning .alert-header svg {
    color: var(--color-warning);
}

.alert-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fg-primary);
    flex: 1;
}

.alert-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: hsl(0, 65%, 45%);
    color: white;
}

.alert-badge.warning {
    background-color: var(--color-warning);
}

.alert-body {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--fg-secondary);
    margin-bottom: 0.5rem;
}

.alert-value {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-success);
}

/* ============================================
   ANIMATED DASHBOARD COMPONENTS
   ============================================ */

/* Mockup Status Indicator */
.mockup-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-success);
    animation: pulse 2s ease-in-out infinite;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contract Preview */
.contract-preview {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    padding: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.contract-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fg-secondary);
}

.contract-header svg {
    width: 14px;
    height: 14px;
}

.contract-body {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
}

.contract-line {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.contract-line.highlight-line {
    opacity: 1;
    background-color: hsl(38, 70%, 96%);
    margin: 0 -0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    animation: highlightPulse 2s ease-in-out 1.2s infinite;
}

.line-number {
    color: var(--fg-muted);
    user-select: none;
    min-width: 1.5rem;
    text-align: right;
}

.line-text {
    color: var(--fg-secondary);
    flex: 1;
}

.extracted-data {
    background-color: hsl(38, 70%, 88%);
    color: var(--fg-primary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    animation: dataExtract 0.4s ease-out 1.8s backwards;
}

/* Extraction Panel */
.extraction-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 2.4s forwards;
}

.extraction-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.extraction-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.extraction-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-muted);
    margin-bottom: 0.375rem;
}

.extraction-value {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg-primary);
}

/* Alert Generation */
.alert-generation {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 3.2s forwards;
}

.alert-generation .mockup-alert-card {
    animation: alertSlideIn 0.5s ease-out 3.5s backwards;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes highlightPulse {

    0%,
    100% {
        background-color: hsl(38, 70%, 96%);
    }

    50% {
        background-color: hsl(38, 70%, 92%);
    }
}

@keyframes dataExtract {
    from {
        background-color: transparent;
        transform: scale(0.95);
    }

    to {
        background-color: hsl(38, 70%, 88%);
        transform: scale(1);
    }
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--text-5xl);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--fg-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--fg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-2xl);
    background-color: transparent;
    border: none;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background-color: var(--bg-card);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card.featured-card {
    background: linear-gradient(135deg, hsl(38, 70%, 97%) 0%, hsl(38, 60%, 95%) 100%);
    border: 1px solid var(--border-muted);
    position: relative;
}

.feature-card.featured-card::before {
    content: 'PROPRIETÁRIO';
    position: absolute;
    top: -12px;
    right: var(--space-lg);
    background-color: var(--color-accent);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    letter-spacing: 0.05em;
}

.feature-card.featured-card .feature-icon {
    background: transparent;
    border-color: var(--color-accent);
}

.feature-card.featured-card .feature-icon svg {
    color: var(--color-accent);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--fg-primary);
    border-radius: 50%;
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5px;
    color: var(--fg-primary);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.feature-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--fg-primary);
}

.feature-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--fg-secondary);
}

/* ============================================
   SOCIAL PROOF SECTION
   ============================================ */
.social-proof {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg,
            var(--bg-secondary) 0%,
            var(--bg-card) 100%);
}

.social-proof-label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    margin-bottom: var(--spacing-lg);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: var(--spacing-2xl);
    padding: var(--space-lg) 0;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fg-muted);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    margin-bottom: var(--spacing-md);
}

.testimonial-quote svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-accent);
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--fg-primary);
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-muted);
}

.author-name {
    font-weight: 600;
    color: var(--fg-primary);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    padding: var(--space-3xl) 0;
    background-color: var(--bg-card);
}

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

.pricing-card {
    padding: var(--space-2xl);
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border-color: var(--color-accent);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2rem;
}

.pricing-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-muted);
}

.pricing-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--fg-primary);
}

.pricing-description {
    font-size: 0.9375rem;
    color: var(--fg-secondary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--spacing-lg);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg-secondary);
    margin-right: 0.25rem;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--fg-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--fg-muted);
    margin-left: 0.25rem;
}

.price-value-custom {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--fg-primary);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--fg-secondary);
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-3xl) 0;
    background-image:
        linear-gradient(var(--border-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-muted) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--fg-primary);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--fg-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-3xl) 0 var(--space-lg);
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--fg-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    color: var(--fg-primary);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--fg-secondary);
}

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

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-muted);
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1023px) {
    :root {
        --container-padding: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

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

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --spacing-3xl: 3rem;
    }

    .header-content {
        padding: 1rem 0;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        border-top: 1px solid var(--border-muted);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--border-muted);
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .stats-grid,
    .features-grid,
    .solutions-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg);
    }

    .feature-item,
    .benefit-card {
        flex-direction: column;
        padding: var(--space-xl);
        text-align: center;
    }

    .feature-icon-box {
        margin: 0 auto;
    }

    .mockup-stats-row {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: var(--spacing-xl) 0;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

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

    .section-title {
        font-size: 2rem;
    }

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

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

/* Dark Footer Redesign */
.footer {
    background-color: var(--color-footer);
    color: var(--color-footer-text);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    border-color: white;
    color: white;
}

.footer-logo .logo-text {
    color: white;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-footer-muted);
    margin-bottom: var(--space-lg);
}

.footer-title {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: var(--space-lg);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-footer-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: var(--color-footer-muted);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-xl);
}

.footer-bottom-info {
    max-width: 600px;
}

.footer-copyright {
    font-size: var(--text-xs);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-xs);
}

.footer-disclaimer {
    font-size: var(--text-xs);
    line-height: 1.6;
    color: var(--color-footer-muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
    font-size: var(--text-xs);
}

.footer-bottom-links a {
    color: var(--color-footer-muted);
}

.footer-bottom-links a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Global Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Snap Section Logic */
.snap-section {
    height: 100vh;
    min-height: 700px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2vh 0 !important;
    overflow: hidden;
}

.footer {
    scroll-snap-align: end;
}

/* Pricing Refactor for 100vh */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-features {
    margin: var(--space-md) 0;
    font-size: var(--text-sm);
}

.pricing-features li {
    margin-bottom: var(--space-xs);
}

.price-value {
    font-size: var(--text-3xl);
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }

    .snap-section {
        height: auto;
        min-height: 100vh;
    }
}

/* Specific Section Adjustments for Density */
.features-grid {
    gap: var(--space-lg);
}

.pricing-grid {
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-lg);
}

.pricing-card {
    padding: var(--space-xl) var(--space-lg);
}

/* Responsive Fix for height-constrained screens */
@media (max-height: 800px) {
    .section-title {
        font-size: var(--text-3xl);
    }

    .hero-title {
        font-size: 4rem;
    }

    .features-grid,
    .pricing-grid {
        gap: var(--space-md);
    }
}

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

/* Workflow Visualization */
.workflow-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.workflow-steps {
    margin-top: var(--space-3xl);
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 2px;
    height: calc(100% + var(--space-xl));
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.step-icon {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.step-content h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--fg-secondary);
}

/* ROI & Predictability */
.roi-section {
    padding: var(--space-4xl) 0;
}

.roi-card {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-muted);
    text-align: center;
    transition: all 0.4s ease;
}

.roi-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-xl);
}

.number-large {
    font-size: var(--text-5xl);
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

/* Legal Content Adjustments */
.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-content a.back-link {
    text-decoration: none;
}

/* ============================================
   SOLUTION PAGES COMMON STYLES
   ============================================ */
.solution-hero {
    padding: var(--space-4xl) 0;
    overflow: hidden;
    position: relative;
    color: white;
}

/* Specific Hero Theme Gradients */
.hero-juridico {
    background: linear-gradient(135deg, hsl(0, 0%, 5%) 0%, hsl(0, 0%, 15%) 100%);
}

.hero-financeiro {
    background: linear-gradient(135deg, hsl(38, 65%, 48%) 0%, hsl(38, 50%, 40%) 100%);
}

.hero-compliance {
    background: linear-gradient(135deg, hsl(152, 50%, 35%) 0%, hsl(152, 60%, 20%) 100%);
}

.hero-suprimentos {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--fg-primary);
}

.solution-hero .hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-financeiro .hero-badge,
.hero-compliance .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-suprimentos .hero-badge {
    background: var(--bg-card);
    color: var(--fg-primary);
    border-color: var(--border-muted);
}

/* Feature & Benefit Cards */
.feature-item,
.benefit-card,
.compliance-card {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-muted);
    transition: all 0.4s ease;
}

.feature-item:hover,
.benefit-card:hover,
.compliance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.feature-item:hover {
    transform: scale(1.02);
}

.compliance-card {
    border-left: 4px solid var(--color-success);
}

.compliance-card:hover {
    transform: translateX(10px);
}

.feature-icon-box {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Legal Content Page Styling */
.legal-content {
    padding: var(--space-4xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-xl);
}

.legal-content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.legal-content p,
.legal-content ul {
    color: var(--fg-secondary);
    margin-bottom: var(--space-md);
}

.legal-content ul {
    padding-left: var(--space-xl);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
    font-weight: 600;
    color: var(--color-accent);
}

/* Decorations & Blobs */
.floating-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, hsla(38, 65%, 48%, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: floating 10s ease-in-out infinite;
}

@keyframes floating {

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

    50% {
        transform: translate(-20px, 40px);
    }
}