/**
 * Agrorun 2026 Ultra-Modern Premium Design System
 * Version: 1.2
 * Updated: 2026-02-05
 * 
 * TABLE OF CONTENTS:
 * 1. CSS Variables & Theming
 * 2. Accessibility & Base Resets
 * 3. Typography
 * 4. Layout Containers
 * 5. Header & Navigation
 * 6. Buttons & Interactive Elements
 * 7. Hero Section
 * 8. Bento Grid System
 * 9. Content Sections
 * 10. Footer
 * 11. Utilities & Animations
 */

/* ===== 1. CSS VARIABLES & THEMING ===== */
:root {
    /* Brand Colors - Essential Identity */
    --clr-brand: #22C55E;
    --clr-brand-glow: rgba(34, 197, 94, 0.4);
    --clr-brand-dark: #16A34A;
    --clr-brand-light: #86EFAC;

    /* Accent Palette - Functional Colors */
    --clr-accent-blue: #3B82F6;
    --clr-accent-purple: #8B5CF6;
    --clr-accent-orange: #F97316;

    /* Theme Engine - Default: Dark High-Contrast Premium */
    --theme-bg: #0A0F1C;
    --theme-bg-alt: #0F172A;
    --theme-card: rgba(255, 255, 255, 0.03);
    --theme-glass: rgba(255, 255, 255, 0.05);
    --theme-text-header: #FFFFFF;
    --theme-text-main: rgba(255, 255, 255, 0.9);
    --theme-text-muted: rgba(255, 255, 255, 0.6);
    --theme-text-dim: rgba(255, 255, 255, 0.4);
    --theme-border: rgba(255, 255, 255, 0.08);
    --theme-border-hover: rgba(255, 255, 255, 0.15);
    --theme-surface: rgba(255, 255, 255, 0.02);
    --theme-header-bg: rgba(10, 15, 28, 0.8);
    --theme-header-scrolled: rgba(10, 15, 28, 0.95);
    --theme-mobile-menu-bg: rgba(10, 15, 28, 0.98);
    --theme-toggle-color: #FFFFFF;

    /* Legacy Support */
    --clr-bg-dark: var(--theme-bg);
    --clr-bg-card: var(--theme-card);
    --clr-bg-glass: var(--theme-glass);
    --clr-text-white: var(--theme-text-header);
    --clr-text-light: var(--theme-text-main);
    --clr-text-muted: var(--theme-text-muted);
    --clr-text-dim: var(--theme-text-dim);
    --clr-border: var(--theme-border);
    --clr-border-hover: var(--theme-border-hover);
    --clr-surface: var(--theme-surface);

    /* Typography (Constant) */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--clr-brand-glow);

    /* Animation */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --theme-bg: #F8FAFC;
    --theme-bg-alt: #FFFFFF;
    --theme-card: rgba(0, 0, 0, 0.02);
    --theme-glass: rgba(255, 255, 255, 0.7);
    --theme-text-header: #0F172A;
    --theme-text-main: #334155;
    --theme-text-muted: #64748B;
    --theme-text-dim: #94A3B8;
    --theme-border: rgba(0, 0, 0, 0.08);
    --theme-border-hover: rgba(0, 0, 0, 0.15);
    --theme-surface: rgba(0, 0, 0, 0.01);
    --theme-header-bg: rgba(248, 250, 252, 0.8);
    --theme-header-scrolled: rgba(255, 255, 255, 0.95);
    --theme-mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --theme-toggle-color: #0F172A;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--clr-brand);
    color: var(--theme-bg);
    padding: var(--space-md) var(--space-xl);
    z-index: 9999;
    font-weight: 700;
    transition: top 0.3s var(--ease-smooth);
}

.skip-link:focus {
    top: 0;
}

.keyboard-nav *:focus-visible {
    outline: 2px solid var(--clr-brand);
    outline-offset: 4px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background: var(--theme-bg);
    color: var(--theme-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--duration-normal) var(--ease-smooth), color var(--duration-normal) var(--ease-smooth);
}

/* Refined Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--theme-bg);
    pointer-events: none;
    z-index: -1;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--theme-text-header);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-normal) var(--ease-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

main {
    min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    background: var(--theme-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--theme-border);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.site-header.scrolled {
    height: 70px;
    background: var(--theme-header-scrolled);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 var(--space-md);
    }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.site-logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--clr-text-white);
    letter-spacing: -0.02em;
    line-height: 1;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter var(--duration-normal) var(--ease-smooth);
}

[data-theme="light"] .footer-logo-img {
    filter: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.nav-link:hover {
    color: var(--clr-text-white);
    background: var(--clr-bg-glass);
}

.nav-link.active {
    color: var(--clr-brand);
    background: rgba(34, 197, 94, 0.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--theme-text-header);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-smooth);
    transform-origin: center;
}

.mobile-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--theme-toggle-color);
    transition: all var(--duration-normal) var(--ease-smooth);
    padding: 0;
}

.theme-toggle:hover {
    background: var(--theme-glass);
    border-color: var(--theme-border-hover);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--theme-mobile-menu-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-3xl);
        transition: right var(--duration-slow) var(--ease-smooth);
        border-left: 1px solid var(--theme-border);
        z-index: 1000;
        visibility: visible;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-md);
    }

    .nav-link {
        font-size: 1.25rem;
        padding: var(--space-md) var(--space-lg);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    text-decoration: none;
}

.btn-primary {
    background: var(--clr-brand);
    color: var(--clr-bg-dark);
    box-shadow: 0 4px 20px var(--clr-brand-glow);
}

.btn-primary:hover {
    background: var(--clr-brand-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--clr-brand-glow);
}

.btn-secondary {
    background: var(--clr-bg-glass);
    color: var(--clr-text-white);
    border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
    background: var(--clr-bg-card);
    border-color: var(--clr-border-hover);
    transform: translateY(-2px);
}

.btn-header {
    background: var(--clr-brand);
    color: var(--clr-bg-dark);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px var(--clr-brand-glow);
}

.btn-header:hover {
    background: var(--clr-brand-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-header {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .btn-header {
        padding: 0.6rem;
    }

    .btn-header span {
        display: none;
    }

    .btn-header .btn-icon {
        margin: 0;
        width: 18px;
        height: 18px;
    }
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-xl);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--clr-brand-glow);
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--clr-brand);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s var(--ease-smooth);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
    line-height: 1.1;
    animation: fadeInUp 0.6s var(--ease-smooth) 0.1s both;
}

.hero-title span {
    color: var(--clr-brand);
}

.hero-description {
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    animation: fadeInUp 0.6s var(--ease-smooth) 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s var(--ease-smooth) 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BENTO GRID ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-lg);
    margin: var(--space-3xl) 0;
}

.bento-item {
    position: relative;
    background: var(--theme-bg-alt);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--clr-border-hover);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.bento-item:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bento-item:hover::before {
    opacity: 1;
}

/* Bento Grid Item Spans */
.bento-item[style*="span 4"] {
    grid-column: span 4;
}

/* Bento Grid Utility Classes (Premium Code Practice) */
.col-span-12 {
    grid-column: span 12 !important;
}

.col-span-8 {
    grid-column: span 8 !important;
}

.col-span-7 {
    grid-column: span 7 !important;
}

.col-span-6 {
    grid-column: span 6 !important;
}

.col-span-5 {
    grid-column: span 5 !important;
}

.col-span-4 {
    grid-column: span 4 !important;
}

.row-span-2 {
    grid-row: span 2 !important;
}

@media (max-width: 1200px) {

    .col-span-8,
    .col-span-7 {
        grid-column: span 8 !important;
    }

    .col-span-6,
    .col-span-5,
    .col-span-4 {
        grid-column: span 4 !important;
    }
}

@media (max-width: 768px) {

    .col-span-12,
    .col-span-8,
    .col-span-7,
    .col-span-6,
    .col-span-5,
    .col-span-4 {
        grid-column: span 1 !important;
    }

    .row-span-2 {
        grid-row: span 1 !important;
    }
}

/* Bento Dark Variant */
.bento-item--highlight {
    background: var(--clr-brand);
    border-color: var(--clr-brand);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.bento-item--highlight h3,
.bento-item--highlight p {
    color: #0A0F1C;
}

.bento-item--dark {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .bento-item--dark {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bento-item--dark h2,
[data-theme="light"] .bento-item--dark p,
[data-theme="light"] .bento-item--dark h4 {
    color: #0F172A;
}

/* Bento Item Content */
.bento-item h3 {
    margin-bottom: var(--space-md);
}

.bento-item h4 {
    margin-bottom: var(--space-sm);
    color: var(--clr-text-white);
}

.bento-item p {
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* Stats in Bento */
.bento-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.bento-stat h4 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-brand);
    margin-bottom: var(--space-xs);
}

.bento-stat p {
    font-weight: 600;
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--clr-border);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.feature-list li strong {
    color: var(--clr-brand);
}

/* Icon Boxes */
.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 10rem 0 var(--space-3xl);
    text-align: center;
    position: relative;
}

.page-header h1 {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s var(--ease-smooth);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s var(--ease-smooth) 0.1s both;
}

/* ===== SECTION STYLES ===== */
section {
    padding: var(--space-3xl) 0;
}

.section-title {
    margin-bottom: var(--space-3xl);
    text-align: center;
}

/* ===== CARDS ===== */
.card {
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-title {
    color: var(--clr-brand);
    margin-bottom: var(--space-md);
}

/* ===== FORM STYLES ===== */
input,
textarea,
select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--theme-text-header);
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--duration-normal) var(--ease-smooth);
}

input::placeholder,
textarea::placeholder {
    color: var(--theme-text-dim);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--clr-brand);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    background: var(--theme-surface);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--clr-text-light);
}

/* ===== CONTACT SECTION ===== */
.contact-info-item {
    margin-bottom: var(--space-xl);
}

.contact-info-item h4 {
    color: var(--clr-brand);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.contact-info-item p,
.contact-info-item a {
    color: var(--clr-text-muted);
    font-size: 1rem;
}

.contact-info-item a:hover {
    color: var(--clr-brand);
}

.contact-phone {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--clr-text-white) !important;
}

/* ===== VALUES LIST ===== */
.values-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.values-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1rem;
}

.values-list li strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(34, 197, 94, 0.2);
    color: var(--clr-brand);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--theme-bg-alt);
    border-top: 1px solid var(--theme-border);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
    position: relative;
}

[data-theme="light"] .site-footer {
    background: #FFFFFF;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--clr-brand);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--clr-text-white);
    margin-bottom: var(--space-md);
}

.footer-logo:hover {
    color: var(--clr-brand);
}

.footer-tagline {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Footer Social Links */
.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    color: var(--clr-text-muted);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.social-link:hover {
    background: var(--clr-brand);
    border-color: var(--clr-brand);
    color: #0A0F1C;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Links */
.footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-text-white);
    margin-bottom: var(--space-lg);
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links ul li a,
.footer-legal ul li a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--clr-brand);
    padding-left: var(--space-sm);
}

/* Footer Contact */
.footer-contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-contact p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-contact .contact-link {
    display: block;
    color: var(--clr-text-light);
    font-weight: 500;
    margin-top: var(--space-sm);
}

.footer-contact .contact-link:hover {
    color: var(--clr-brand);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--clr-border);
    font-size: 0.85rem;
    color: var(--clr-text-dim);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--duration-normal) var(--ease-smooth);
}

[data-theme="light"] .whatsapp-float {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* ===== 404 PAGE ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    color: var(--clr-brand);
    line-height: 1;
    opacity: 0.3;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    padding-bottom: var(--space-4xl);
}

.legal-content .bento-item {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h4 {
    color: var(--clr-brand);
    margin: var(--space-xl) 0 var(--space-md);
}

.legal-content p {
    margin-bottom: var(--space-md);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .bento-item[style*="span 12"],
    .bento-item[style*="span 8"] {
        grid-column: span 8;
    }

    .bento-item[style*="span 6"],
    .bento-item[style*="span 7"] {
        grid-column: span 4;
    }

    .bento-item[style*="span 4"],
    .bento-item[style*="span 5"] {
        grid-column: span 4;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .bento-item,
    .bento-item[style*="span"] {
        grid-column: span 1 !important;
    }

    .bento-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .page-header {
        padding: 8rem 0 var(--space-2xl);
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

/* Hover effects for interactive elements */
@media (hover: hover) {
    .bento-item:hover {
        background: var(--theme-glass);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .site-header,
    .site-footer,
    .whatsapp-float {
        display: none;
    }
}