﻿/* ===================================
   SpectralGeo — SPECTACULAR Landing
   Palette: #C4D7B3 (Sage) + #718AA3 (Slate Blue)
   =================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    --blue: #718AA3;
    --blue-dark: #5b7289;
    --blue-light: #8ea5bc;
    --blue-bright: #9dbfde;
    --blue-glow: rgba(113, 138, 163, 0.5);
    --blue-glow-soft: rgba(113, 138, 163, 0.15);

    --green: #C4D7B3;
    --green-dark: #a8c193;
    --green-light: #d6e6c9;
    --green-bright: #e0efd2;
    --green-glow: rgba(196, 215, 179, 0.5);
    --green-glow-soft: rgba(196, 215, 179, 0.15);

    --bg-primary: #060a13;
    --bg-secondary: #0a0f1c;
    --bg-tertiary: #0e1425;
    --bg-card: rgba(20, 30, 52, 0.75);
    /* ↑ lighter, more readable */
    --bg-glass: rgba(113, 138, 163, 0.07);
    --bg-glass-strong: rgba(113, 138, 163, 0.14);
    /* ↑ more visible */

    --text-primary: #f0f4f8;
    /* WCAG AAA on dark bg */
    --text-secondary: #b0bfd0;
    /* ↑ was #94a3b8, now ~6.5:1 */
    --text-muted: #8899aa;
    /* ↑ was #64748b (<3:1), now ~4.6:1 */
    --text-tertiary: #7a8fa3;
    /* new: softer labels */

    --border-subtle: rgba(113, 138, 163, 0.18);
    /* ↑ was 0.08, now visible */
    --border-hover: rgba(113, 138, 163, 0.40);
    --border-glow: rgba(196, 215, 179, 0.28);

    --gradient-main: linear-gradient(135deg, var(--blue), var(--green));
    --gradient-text: linear-gradient(135deg, var(--blue-bright), var(--green-bright));
    --gradient-card: linear-gradient(160deg, rgba(113, 138, 163, 0.06), rgba(196, 215, 179, 0.03));
    --gradient-hero: linear-gradient(160deg, #060a13 0%, #0c1526 30%, #0a1218 60%, #060a13 100%);

    --section-padding: 140px 0;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
    --bg-primary: #f7f9fb;
    --bg-secondary: #eef2f6;
    --bg-tertiary: #e4e9ef;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-glass: rgba(113, 138, 163, 0.05);
    --bg-glass-strong: rgba(113, 138, 163, 0.1);

    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    --border-subtle: rgba(113, 138, 163, 0.15);
    --border-hover: rgba(113, 138, 163, 0.35);
    --border-glow: rgba(196, 215, 179, 0.3);

    --blue-light: #4e6a82;
    --blue-bright: #5b7289;
    --green: #8bb573;
    --green-dark: #6a9450;
    --green-light: #4a7a38;
    --green-bright: #7a9a64;
    --gradient-text: linear-gradient(135deg, #5b7289, #4a7a38);
    --gradient-hero: linear-gradient(160deg, #f7f9fb 0%, #e8eef4 30%, #edf3ea 60%, #f7f9fb 100%);
}

[data-theme="light"] .hero {
    background: var(--gradient-hero);
}

[data-theme="light"] .hero-glow-1 {
    background: rgba(113, 138, 163, 0.12);
}

[data-theme="light"] .hero-glow-2 {
    background: rgba(196, 215, 179, 0.1);
}

[data-theme="light"] .hero-glow-3 {
    background: rgba(113, 138, 163, 0.08);
}

[data-theme="light"] .hero-mesh-bg {
    background:
        radial-gradient(ellipse 30% 50% at 15% 80%, rgba(113, 138, 163, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 25% 40% at 85% 20%, rgba(196, 215, 179, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(113, 138, 163, 0.04) 0%, transparent 70%);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(247, 249, 251, 0.85);
    border-bottom-color: var(--border-subtle);
}

[data-theme="light"] .hero-stats {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(113, 138, 163, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-card-lg {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
    border-color: rgba(196, 215, 179, 0.2);
}

[data-theme="light"] .btn-primary {
    color: #fff;
    box-shadow: 0 4px 20px rgba(113, 138, 163, 0.25);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(113, 138, 163, 0.35);
}

[data-theme="light"] .btn-outline {
    color: var(--text-primary);
    border-color: rgba(113, 138, 163, 0.3);
}

[data-theme="light"] .orbit-center {
    color: #fff;
}

[data-theme="light"] .agro-orbit-ring {
    border-color: rgba(31, 45, 62, 0.32);
}

[data-theme="light"] .agro-orbit-ring-2 {
    border-color: rgba(31, 45, 62, 0.28);
}

[data-theme="light"] .agro-orbit-ring-3 {
    border-color: rgba(31, 45, 62, 0.24);
}

[data-theme="light"] .orbit-ring {
    border-color: rgba(31, 45, 62, 0.3);
}

[data-theme="light"] .orbit-container:hover .orbit-ring {
    border-color: rgba(31, 45, 62, 0.5);
}

[data-theme="light"] .model-icon-wrap svg {
    color: #fff;
}

/* nav-links background only on mobile slide-out menu */

[data-theme="light"] .hamburger-line {
    background: var(--text-primary);
}

[data-theme="light"] .agro-hero-card::after {
    background: radial-gradient(ellipse at center, rgba(196, 215, 179, 0.08), transparent 60%);
}

[data-theme="light"] .section-blob-1 {
    background: radial-gradient(circle, rgba(113, 138, 163, 0.06) 0%, transparent 70%);
}

[data-theme="light"] .section-blob-2 {
    background: radial-gradient(circle, rgba(196, 215, 179, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .section-blob-3 {
    background: radial-gradient(circle, rgba(113, 138, 163, 0.05) 0%, transparent 70%);
}

/* ============================================
   DARK THEME — Accessibility & Contrast Fixes
   ============================================ */

/* Navbar – more opaque so text is always readable */
.navbar.scrolled {
    background: rgba(6, 10, 19, 0.92);
}

/* Section tag — brighter tint in dark mode */
.section-tag {
    color: var(--blue-bright);
    border-color: rgba(113, 138, 163, 0.25);
    background: rgba(113, 138, 163, 0.1);
}

.section-tag-green {
    color: var(--green-light);
    border-color: rgba(196, 215, 179, 0.22);
    background: rgba(196, 215, 179, 0.08);
}

/* section subtitle — boost so it's readable */
.section-subtitle {
    color: var(--text-secondary);
}

/* Footer bottom copyright — was text-muted which was too dark */
.footer-bottom p {
    color: var(--text-secondary);
}

/* Footer links — slightly brighter */
.footer-links a,
.footer-links li {
    color: var(--text-secondary);
}

/* Cookie banner — ensure text is readable on dark bg (dark mode only) */
html:not([data-theme="light"]) .cookie-banner {
    background: rgba(10, 16, 30, 0.97);
    border-top: 1px solid rgba(113, 138, 163, 0.25);
}

.cookie-text p {
    color: var(--text-primary);
}

.cookie-btn-reject {
    color: var(--text-primary);
    border-color: rgba(113, 138, 163, 0.35);
}

/* Timeline year badge — brighter so text pops */
.timeline-year {
    color: var(--green-bright);
    background: rgba(196, 215, 179, 0.12);
    border-color: rgba(196, 215, 179, 0.2);
}

/* RDI tags — more visible */
.rdi-tag {
    color: var(--text-secondary);
    background: rgba(113, 138, 163, 0.14);
    border-color: rgba(113, 138, 163, 0.25);
}

/* Feature details list — boost secondary text */
.feature-details li {
    color: var(--text-secondary);
}

/* About counter labels */
.about-counter-label {
    color: var(--text-secondary);
}

/* Pipeline step descriptions */
.pipeline-step-desc {
    color: var(--text-secondary);
}

/* Collab pills — dark bg only */
html:not([data-theme="light"]) .collab-pill {
    color: var(--text-primary);
    border-color: rgba(113, 138, 163, 0.25);
    background: rgba(20, 30, 52, 0.8);
}

/* Discipline pills */
.discipline-pill {
    color: var(--text-secondary);
    border-color: rgba(113, 138, 163, 0.22);
}

/* Metric label */
.metric-label {
    color: var(--text-secondary);
}

/* Valor desc */
.valor-desc {
    color: var(--text-secondary);
}

/* About location values */
.about-location-label {
    color: var(--text-muted);
}

/* rdi project description text */
.rdi-project-desc {
    color: var(--text-secondary);
}

/* rdi stat label */
.rdi-stat-label {
    color: var(--text-muted);
}

/* Focus visible — keyboard accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link — for screen readers */
.skip-link {
    position: absolute;
    top: -100%;
    left: 12px;
    background: var(--blue);
    color: #fff;
    padding: 8px 18px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 99999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Language Toggle Button */
.lang-toggle {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    border-radius: 60px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-medium);
    color: var(--text-secondary);
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.lang-toggle:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-glass);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-medium);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-glass);
    transform: rotate(30deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-medium);
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

/* Smooth theme transition */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.15;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- ANIMATED GRADIENT TEXT ---------- */
.gradient-text-animated {
    background: linear-gradient(270deg, var(--blue-bright), var(--green-bright), var(--blue-light), var(--green-light));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ====================================
   GLASS CARDS — Animated Border System
   ==================================== */
.glass-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: var(--transition-medium);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 40%, var(--blue-glow-soft) 50%, var(--green-glow-soft) 60%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
    animation: borderRotate 4s linear infinite;
}

.glass-card:hover {
    border-color: transparent;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(113, 138, 163, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

@keyframes borderRotate {
    to {
        --border-angle: 360deg;
    }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.glass-card-lg {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 32, 58, 0.85), rgba(14, 24, 44, 0.65));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(196, 215, 179, 0.18);
    /* ↑ more visible border */
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 60px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-primary);
    box-shadow: 0 4px 24px var(--blue-glow-soft), 0 2px 8px var(--green-glow-soft);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: none;
}

.btn-primary:hover .btn-shine {
    animation: btnShine 0.6s ease;
}

@keyframes btnShine {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 40px var(--blue-glow),
        0 4px 20px var(--green-glow-soft),
        0 0 60px rgba(113, 138, 163, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--bg-glass-strong);
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-lg {
    padding: 20px 44px;
    font-size: 1.05rem;
}

/* ---------- SECTION COMMON ---------- */
.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 60px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    color: var(--blue-light);
    margin-bottom: 24px;
}

.section-tag-green {
    border-color: rgba(196, 215, 179, 0.15);
    color: var(--green-light);
    background: rgba(196, 215, 179, 0.05);
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Floating background blobs */
.section-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    animation: blobFloat 20s ease-in-out infinite;
}

.section-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(113, 138, 163, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -150px;
}

.section-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 215, 179, 0.06) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation-delay: -7s;
}

.section-blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(113, 138, 163, 0.06) 0%, transparent 70%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    animation-delay: -12s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(20px, 20px) scale(1.03);
    }
}

/* ====================================
   NAVBAR
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(6, 10, 19, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .nav-logo {
    gap: 0;
}

.navbar .nav-logo .logo-icon {
    margin-right: 12px;
}

.logo-icon {
    flex-shrink: 0;
    height: 30px;
    width: auto;
    object-fit: contain;
}

.logo-spectral {
    color: var(--text-primary);
}

.logo-geo {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 60px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-agrai-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-agrai-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link-cta {
    color: #fff;
    background: var(--gradient-main);
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(113, 138, 163, 0.28);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover,
.nav-link-cta.active {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(113, 138, 163, 0.34);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-theme-li {
    display: none;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ====================================
   HERO — Full Spectacle
   ==================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Animated mesh background */
.hero-mesh-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 30% 50% at 15% 80%, rgba(113, 138, 163, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 25% 40% at 85% 20%, rgba(196, 215, 179, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(113, 138, 163, 0.02) 0%, transparent 70%);
    opacity: 1;
}

/* Animated glowing blobs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(113, 138, 163, 0.08);
    top: -200px;
    left: -100px;
    animation: heroGlow1 12s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(196, 215, 179, 0.06);
    bottom: -150px;
    right: -100px;
    animation: heroGlow2 15s ease-in-out infinite;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(113, 138, 163, 0.05);
    top: 40%;
    right: 20%;
    animation: heroGlow3 10s ease-in-out infinite;
}

@keyframes heroGlow1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    33% {
        transform: translate(80px, 50px) scale(1.15);
        opacity: 0.8;
    }

    66% {
        transform: translate(-40px, 80px) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes heroGlow2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-60px, -40px) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes heroGlow3 {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: translate(40px, -30px);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 920px;
    padding: 0 24px;
    padding-bottom: 100px;
}

.hero-content> :not(.hero-content-particles) {
    position: relative;
    z-index: 2;
}

.hero-content-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: rgba(113, 138, 163, 0.62);
    box-shadow:
        0 0 10px rgba(113, 138, 163, 0.45),
        0 0 20px rgba(196, 215, 179, 0.2);
    animation: heroContentParticle var(--dur, 9s) ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

@keyframes heroContentParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(0.85);
        opacity: 0.35;
    }

    50% {
        transform: translate(0, -14px) scale(1.25);
        opacity: 0.85;
    }
}

.hero-brand-image {
    display: block;
    width: min(560px, 72vw);
    height: auto;
    margin: 0 auto 26px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.25));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    border-radius: 60px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    color: var(--blue-light);
    margin-bottom: 36px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green-glow);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
    line-height: 1.08;
}

.hero-subtitle {
    position: relative;
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 30px;
    padding-bottom: 30px;
    line-height: 1.8;
    letter-spacing: 0.25px;
    text-shadow: 0 0 18px rgba(113, 138, 163, 0.12);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-subtitle {
        background: linear-gradient(110deg,
                var(--text-secondary) 0%,
                var(--text-primary) 36%,
                var(--green-light) 50%,
                var(--text-primary) 64%,
                var(--text-secondary) 100%);
        background-size: 220% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        animation: heroSubtitleShimmer 9s ease-in-out infinite;
    }
}

.hero-subtitle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: min(76%, 470px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(196, 215, 179, 0),
            rgba(196, 215, 179, 0.95),
            rgba(113, 138, 163, 0.95),
            rgba(196, 215, 179, 0));
    box-shadow: 0 0 14px rgba(196, 215, 179, 0.4);
    animation: heroSubtitleLinePulse 6s ease-in-out infinite;
}

@keyframes heroSubtitleShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes heroSubtitleLinePulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(0.96);
    }

    50% {
        opacity: 0.95;
        transform: translateX(-50%) scaleX(1);
    }
}

[data-theme="light"] .hero-subtitle {
    text-shadow: 0 0 14px rgba(113, 138, 163, 0.16);
}

[data-theme="light"] .hero-subtitle::after {
    background: linear-gradient(90deg,
            rgba(113, 138, 163, 0),
            rgba(113, 138, 163, 0.72),
            rgba(106, 148, 80, 0.85),
            rgba(113, 138, 163, 0));
    box-shadow: 0 0 10px rgba(113, 138, 163, 0.22);
}

.hero-context {
    max-width: 760px;
    margin: 0 auto 32px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Hero Stats — Glassmorphism box */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    padding: 32px 44px;
    background: rgba(14, 20, 37, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--blue), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ====================================
   ABOUT SECTION
   ==================================== */
.about {
    background: var(--bg-secondary);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 18px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 28px;
    border-radius: var(--radius-md);
}

.feature-card:hover {
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.6rem;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass-strong);
}

.feature-card h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ====================================
   AGRO SECTION — The Showstopper
   ==================================== */
.agro {
    background: var(--bg-primary);
    position: relative;
}

.agro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(196, 215, 179, 0.2), transparent);
}

/* AgrAI Hero Card */
.agro-hero-card {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 56px;
    border-radius: var(--radius-xl);
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}

.agro-hero-card-content {
    flex: 1 1 55%;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.agro-hero-visual {
    flex: 1 1 45%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    perspective: 900px;
}

.agro-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(196, 215, 179, 0.04), transparent 60%);
    pointer-events: none;
}

.agro-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 60px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(196, 215, 179, 0.12), rgba(113, 138, 163, 0.08));
    border: 1px solid rgba(196, 215, 179, 0.15);
    color: var(--green-light);
    margin-bottom: 20px;
}

.agro-hero-card-content h3 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.agro-hero-card-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.agro-hero-stats {
    display: flex;
    gap: 36px;
}

.agro-hero-cta {
    margin-top: 28px;
}

.agro-stat {
    text-align: center;
}

.agro-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    display: block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agro-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Orbit */
.agro-orbit {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
    will-change: transform, filter;
}

.agro-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(196, 215, 179, 0.1);
    animation: orbitPulse 4s ease-in-out infinite;
    transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.agro-orbit-ring-2 {
    inset: 18%;
    border-color: rgba(113, 138, 163, 0.1);
    animation-delay: 1.2s;
}

.agro-orbit-ring-3 {
    inset: 36%;
    border-color: rgba(196, 215, 179, 0.08);
    animation-delay: 2.4s;
}

.agro-hero-visual:hover .agro-orbit {
    transform: translateY(-4px) rotateX(4deg) rotateY(-4deg) scale(1.02);
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2));
}

.agro-hero-visual:hover .agro-orbit-ring {
    border-color: rgba(196, 215, 179, 0.22);
    box-shadow:
        0 0 22px rgba(196, 215, 179, 0.16),
        inset 0 0 16px rgba(196, 215, 179, 0.12);
}

[data-theme="light"] .agro-hero-visual:hover .agro-orbit-ring {
    border-color: rgba(31, 45, 62, 0.46);
    box-shadow:
        0 0 18px rgba(31, 45, 62, 0.12),
        inset 0 0 12px rgba(31, 45, 62, 0.1);
}

.agro-orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 2;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.agro-orbit-item {
    position: absolute;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(196, 215, 179, 0.3));
}

.agro-orbit-item-1 {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitItem1 8s ease-in-out infinite;
}

.agro-orbit-item-2 {
    bottom: 6%;
    left: 8%;
    animation: orbitItem2 8s ease-in-out 2.6s infinite;
}

.agro-orbit-item-3 {
    bottom: 6%;
    right: 8%;
    animation: orbitItem3 8s ease-in-out 5.2s infinite;
}

@keyframes orbitItem1 {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-16px);
    }
}

@keyframes orbitItem2 {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-12px) translateX(8px);
    }
}

@keyframes orbitItem3 {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-12px) translateX(-8px);
    }
}

/* Agro Cards Grid */
.agro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.agro-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    cursor: default;
}

.agro-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(196, 215, 179, 0.04);
}

.agro-card-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 12px rgba(196, 215, 179, 0.2));
}

.agro-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.agro-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ====================================
   SOLUTIONS — Process Flow
   ==================================== */
.solutions {
    background: var(--bg-secondary);
}

.solutions-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(113, 138, 163, 0.18), transparent 60%),
        radial-gradient(ellipse at 75% 65%, rgba(196, 215, 179, 0.14), transparent 62%),
        linear-gradient(160deg, rgba(10, 16, 30, 0.95), rgba(6, 10, 19, 0.92));
}

.solutions-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05) brightness(0.58);
}

[data-theme="light"] .solutions-video-bg {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(113, 138, 163, 0.14), transparent 60%),
        radial-gradient(ellipse at 75% 65%, rgba(196, 215, 179, 0.12), transparent 62%),
        linear-gradient(160deg, rgba(241, 246, 250, 0.95), rgba(232, 239, 245, 0.92));
}

[data-theme="light"] .solutions-video-bg video {
    filter: saturate(0.88) contrast(1.02) brightness(0.86);
}

.solutions-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(6, 10, 19, 0.82);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

[data-theme="light"] .solutions-overlay {
    background: rgba(247, 249, 251, 0.85);
}

.solutions .container {
    position: relative;
    z-index: 2;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
    z-index: 2;
}

/* ====================================
   AGRO TRANSITION BRIDGE
   ==================================== */
.agro-transition {
    text-align: center;
    position: relative;
}

.agro-transition-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.agro-transition-content {
    max-width: 640px;
    margin: 0 auto;
}

.agro-transition-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.agro-transition-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.agro-transition-logo {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-medium);
}

.agro-transition-logo:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 40px rgba(196, 215, 179, 0.08);
}

.agro-transition-logo img {
    display: block;
    height: 48px;
    width: auto;
}

.agro-transition-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.transition-arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(45deg);
    opacity: 0.3;
    animation: arrowPulseDown 2s ease-in-out infinite;
}

.transition-arrow:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.5;
}

.transition-arrow:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0.7;
}

@keyframes arrowPulseDown {

    0%,
    100% {
        opacity: 0.2;
        transform: rotate(45deg) translateY(0);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) translateY(4px);
    }
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    padding: 40px 28px 32px;
    border-radius: var(--radius-lg);
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    position: relative;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 30px rgba(113, 138, 163, 0.04);
}

.process-number {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.process-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 12px rgba(113, 138, 163, 0.2));
}

.process-step h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sequential card illumination */
.process-flow .process-step {
    opacity: 0.55;
    filter: brightness(0.8);
    animation: cardIlluminate 8s ease-in-out infinite;
    will-change: opacity, filter;
}

.process-flow> :nth-child(1) {
    animation-delay: 0s;
}

.process-flow> :nth-child(3) {
    animation-delay: 2s;
}

.process-flow> :nth-child(5) {
    animation-delay: 4s;
}

.process-flow> :nth-child(7) {
    animation-delay: 6s;
}

@keyframes cardIlluminate {

    0%,
    100% {
        opacity: 0.55;
        filter: brightness(0.8);
        box-shadow: none;
        border-color: var(--border-subtle);
    }

    10%,
    20% {
        opacity: 1;
        filter: brightness(1);
        box-shadow: 0 0 30px rgba(196, 215, 179, 0.1),
            0 0 60px rgba(113, 138, 163, 0.05);
        border-color: var(--border-glow);
    }

    30% {
        opacity: 0.55;
        filter: brightness(0.8);
        box-shadow: none;
        border-color: var(--border-subtle);
    }
}

.process-flow .process-step:hover {
    opacity: 1 !important;
    filter: brightness(1) !important;
    animation-play-state: paused;
}

/* Stagger connector dots to sync with card illumination */
.process-flow> :nth-child(2) .connector-dot {
    animation-delay: 0.8s;
}

.process-flow> :nth-child(4) .connector-dot {
    animation-delay: 2.8s;
}

.process-flow> :nth-child(6) .connector-dot {
    animation-delay: 4.8s;
}

/* Animated Connector */
.process-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    position: relative;
}

.connector-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--blue-glow-soft), var(--green-glow-soft));
}

.connector-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green-glow);
    animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {

    0% {
        transform: translateX(-14px);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform: translateX(14px);
        opacity: 0;
    }
}

/* ====================================
   AI MODELS SECTION
   ==================================== */
.models {
    background: var(--bg-primary);
}

.models::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.model-card {
    padding: 40px 32px 32px;
    border-radius: var(--radius-lg);
    cursor: default;
}

.model-card-glow {
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle, rgba(113, 138, 163, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.model-card:hover {
    transform: translateY(-10px);
}

.model-card:hover .model-card-glow {
    opacity: 1;
}

.model-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 14px;
    box-shadow: 0 8px 24px var(--blue-glow-soft);
    transition: var(--transition-medium);
}

.model-card:hover .model-icon-wrap {
    box-shadow: 0 12px 36px var(--blue-glow);
    transform: scale(1.05);
}

.model-icon-wrap svg {
    width: 100%;
    height: 100%;
    color: var(--bg-primary);
}

.model-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.model-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 18px;
}

.model-features {
    margin-bottom: 22px;
}

.model-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0 4px 22px;
    position: relative;
    line-height: 1.6;
}

.model-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-main);
    box-shadow: 0 0 8px var(--blue-glow-soft);
}

.model-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 60px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    color: var(--blue-light);
    transition: var(--transition-medium);
}

.model-card:hover .model-tag {
    border-color: var(--border-hover);
    color: var(--green-light);
}

/* ====================================
   NEWS SECTION
   ==================================== */
.news {
    background: var(--bg-secondary);
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

/* News Filters */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.news-filter-btn {
    padding: 10px 24px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1.5px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-filter-btn:hover {
    border-color: var(--blue-light);
    color: var(--text-primary);
    background: var(--bg-glass);
}

.news-filter-btn.active {
    background: var(--gradient-main);
    color: var(--bg-primary);
    border-color: transparent;
    box-shadow: 0 4px 20px var(--blue-glow-soft);
}

/* News Badges */
.news-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.news-badge--prensa {
    background: linear-gradient(135deg, rgba(113, 138, 163, 0.15), rgba(113, 138, 163, 0.05));
    border: 1px solid rgba(113, 138, 163, 0.2);
    color: var(--blue-light);
}

.news-badge--proyecto {
    background: linear-gradient(135deg, rgba(196, 215, 179, 0.15), rgba(196, 215, 179, 0.05));
    border: 1px solid rgba(196, 215, 179, 0.2);
    color: var(--green-light);
}

/* News Masonry Grid */
.news-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
}

/* News Item Card */
.news-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 40px var(--blue-glow-soft);
}

.news-item-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-glass-strong);
}

.news-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-item:hover .news-item-media img {
    transform: scale(1.05);
}

.news-item-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-source {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.news-item-title {
    font-size: 1.15rem;
    line-height: 1.45;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.news-item-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.news-item-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-item-logos {
    display: flex;
    gap: 12px;
    align-items: center;
}

.news-item-logos img {
    max-height: 36px;
    width: auto;
    border-radius: 4px;
}

.news-item-legal {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.5;
    opacity: 0.6;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--blue-light);
    letter-spacing: 0.2px;
    margin-top: auto;
}

.news-link::after {
    content: '↗';
    font-size: 0.95rem;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.news-link:hover {
    color: var(--green-light);
}

.news-link:hover::after {
    transform: translateX(2px);
}

.news-item-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.news-item-links .news-link::after {
    content: none;
}

/* News Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.news-page-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-page-btn:hover:not(:disabled) {
    border-color: var(--blue-light);
    color: var(--text-primary);
    background: var(--bg-glass);
}

.news-page-btn.active {
    background: var(--gradient-main);
    color: var(--bg-primary);
    border-color: transparent;
    box-shadow: 0 4px 16px var(--blue-glow-soft);
}

.news-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.news-page-prev,
.news-page-next {
    font-size: 1.3rem;
    width: 42px;
}

[data-theme="light"] .news-page-btn.active {
    color: #fff;
}

/* News CTA */
.news-cta-section {
    margin-top: 80px;
}

.news-cta-card {
    text-align: center;
    padding: 64px 48px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.news-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, var(--blue-glow-soft), transparent 70%),
                radial-gradient(ellipse at 70% 50%, var(--green-glow-soft), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.news-cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.news-cta-text {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
}

/* Hidden items for filter */
.news-item.news-hidden,
.news-featured.news-hidden {
    display: none;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 8px auto 0;
}

/* ====================================
   CONTACT SECTION
   ==================================== */
.contact {
    background: var(--bg-secondary);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-content .section-tag {
    display: inline-block;
    margin-bottom: 20px;
}

.contact-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    font-size: 1.4rem;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass-strong);
}

.contact-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Orbit */
.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
}

.orbit-container {
    position: relative;
    width: 380px;
    height: 380px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
    will-change: transform, filter;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(113, 138, 163, 0.35);
    transition: border-color 0.6s ease;
}

.orbit-container:hover .orbit-ring {
    border-color: rgba(113, 138, 163, 0.55);
}

.contact-visual:hover .orbit-container {
    transform: translateY(-4px) rotateX(3deg) rotateY(3deg) scale(1.02);
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2));
}

.contact-visual:hover .orbit-dot {
    filter: drop-shadow(0 0 10px var(--blue-glow));
}

.orbit-ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: orbitPulse 4s ease-in-out infinite;
}

.orbit-ring-2 {
    width: 65%;
    height: 65%;
    top: 17.5%;
    left: 17.5%;
    animation: orbitPulse 4s ease-in-out 1.2s infinite;
}

.orbit-ring-3 {
    width: 35%;
    height: 35%;
    top: 32.5%;
    left: 32.5%;
    animation: orbitPulse 4s ease-in-out 2.4s infinite;
}

.orbit-center {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--bg-primary);
    box-shadow:
        0 0 40px var(--blue-glow),
        0 0 80px rgba(113, 138, 163, 0.15);
}

.orbit-dot {
    position: absolute;
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--blue-glow-soft));
}

.orbit-dot-1 {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitFloat 6s ease-in-out infinite;
}

.orbit-dot-2 {
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    animation: orbitFloat 6s ease-in-out 1.5s infinite;
}

.orbit-dot-3 {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitFloat 6s ease-in-out 3s infinite;
}

.orbit-dot-4 {
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    animation: orbitFloat 6s ease-in-out 4.5s infinite;
}

@keyframes orbitFloat {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    padding: 80px 0 32px;
    background: var(--bg-primary);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-links li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--green-light);
    padding-left: 6px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ====================================
   ANIMATIONS
   ==================================== */

/* Fade-up entrance */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Orbit pulse */
@keyframes orbitPulse {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.04);
    }
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px 0;
    }

    .models-grid,
    .agro-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agro-hero-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .agro-hero-visual {
        order: -1;
    }

    .agro-orbit {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .agro-hero-stats {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-content .section-title {
        text-align: center;
    }

    .contact-text {
        text-align: center;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(6, 10, 19, 0.97);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        flex-direction: column;
        padding: 100px 36px 36px;
        gap: 4px;
        border-left: 1px solid var(--border-subtle);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.open {
        right: 0;
    }

    [data-theme="light"] .nav-links {
        background: rgba(247, 249, 251, 0.97);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .theme-toggle {
        display: none !important;
    }

    .mobile-theme-li {
        display: block;
    }

    .mobile-theme-toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        margin-top: 16px;
        border-radius: 60px;
        background: var(--bg-glass-strong);
        border: 1px solid var(--border-subtle);
        cursor: pointer;
        color: var(--text-secondary);
        font-size: 0.88rem;
        font-weight: 500;
        transition: var(--transition-fast);
        width: fit-content;
    }

    .mobile-theme-toggle:hover {
        border-color: var(--blue);
        color: var(--text-primary);
    }

    .mobile-theme-toggle svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .nav-link-cta {
        display: inline-flex;
        width: fit-content;
        margin-top: 8px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }

    .hero-brand-image {
        width: min(460px, 88vw);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.02rem;
        padding-bottom: 12px;
        margin-bottom: 30px;
    }

    .hero-subtitle::after {
        width: min(86%, 320px);
    }

    .hero-context {
        font-size: 0.95rem;
        margin-bottom: 26px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        padding: 28px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .agro-grid {
        grid-template-columns: 1fr;
    }

    .agro-hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .process-flow {
        flex-direction: column;
    }

    .process-connector {
        width: auto;
        height: 48px;
        flex-direction: column;
    }

    .connector-line {
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom, var(--blue-glow-soft), var(--green-glow-soft));
    }

    @keyframes connectorPulse {

        0%,
        100% {
            transform: translateY(-12px);
            opacity: 0;
        }

        50% {
            transform: translateY(12px);
            opacity: 1;
        }
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .news-masonry {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .orbit-container {
        width: 260px;
        height: 260px;
    }
}

/* ====================================
   CLIENTS MARQUEE
   ==================================== */
.clients {
    overflow: hidden;
}

.clients-header {
    text-align: center;
    margin-bottom: 48px;
}

.clients-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 44px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(100%) invert(1);
    /* dark bg: invert so dark logos become light */
    transition: opacity 0.4s ease, filter 0.4s ease;
    flex-shrink: 0;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%) invert(1);
}

/* Light theme — no invert, natural logo colours */
[data-theme="light"] .client-logo {
    filter: grayscale(100%);
    opacity: 0.55;
}

[data-theme="light"] .client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* AgrAI transition logo keeps original icon colors in both themes */
.agro-transition-logo img {
    filter: none;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ====================================
   COOKIE CONSENT BANNER
   ==================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 20px 24px;
    background: rgba(6, 10, 19, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-subtle);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hiding {
    transform: translateY(100%);
}

[data-theme="light"] .cookie-banner {
    background: rgba(247, 249, 251, 0.95);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.cookie-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cookie-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.cookie-btn-accept {
    background: var(--gradient-text);
    color: #fff;
}

.cookie-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
}

.cookie-btn-reject:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-text {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ====================================
   PAGE HERO — Subpages
   ==================================== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--bg-secondary);
    overflow: hidden;
    text-align: center;
}

.page-hero-industry {
    padding: 180px 0 100px;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 60% at 20% 50%, rgba(113, 138, 163, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 35% 50% at 80% 40%, rgba(196, 215, 179, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.page-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--text-primary);
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-hero-about {
    background:
        linear-gradient(180deg, rgba(113, 138, 163, 0.18) 0%, rgba(196, 215, 179, 0.12) 52%, var(--bg-secondary) 100%);
}

.page-hero-about .page-hero-bg {
    background:
        radial-gradient(ellipse 42% 62% at 20% 44%, rgba(113, 138, 163, 0.14) 0%, transparent 72%),
        radial-gradient(ellipse 36% 56% at 82% 38%, rgba(196, 215, 179, 0.12) 0%, transparent 72%),
        radial-gradient(ellipse 50% 70% at 50% 78%, rgba(113, 138, 163, 0.09) 0%, transparent 72%);
}

.page-hero-about::after {
    height: 130px;
    background: linear-gradient(to bottom, rgba(6, 10, 19, 0) 0%, rgba(113, 138, 163, 0.12) 60%, rgba(113, 138, 163, 0.2) 100%);
}

.page-hero-green {
    background: var(--bg-primary);
}

.page-hero-contact {
    overflow: hidden;
}

.contact-hero-img-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.contact-hero-img-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.35);
    transform: scale(1.05);
}

[data-theme="light"] .contact-hero-img-bg img {
    filter: blur(3px) brightness(0.6) saturate(0.8);
}

/* ====================================
   PREVIEW CARDS — Index Page
   ==================================== */
.preview-section {
    background: var(--bg-primary);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.preview-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
    position: relative;
}

.preview-card:hover {
    transform: translateY(-10px);
}

.preview-card-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 12px rgba(113, 138, 163, 0.2));
}

.preview-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.preview-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.preview-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    color: var(--blue-light);
    font-size: 1.2rem;
    margin-top: 18px;
    transition: var(--transition-medium);
}

.preview-card:hover .preview-card-arrow {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
    transform: translateX(6px);
}

@media (max-width: 1024px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   ABOUT PAGE — Counters & Features
   ==================================== */
.about-page {
    background: var(--bg-primary);
    padding-top: clamp(72px, 9vh, 120px);
    padding-bottom: clamp(72px, 9vh, 120px);
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 60px;
}

/* About Hero Block — intro + counters with blurred bg */
.about-hero-block {
    position: relative;
    width: 100%;
    margin: 0 auto 48px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 64px 48px;
}

.about-hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.about-hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.2);
    transform: scale(1.15);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(14, 22, 35, 0.66) 0%, rgba(10, 18, 30, 0.6) 46%, rgba(8, 15, 26, 0.56) 100%);
}

/* Dark theme — overlay much darker so text is legible over the image */
html:not([data-theme="light"]) .about-hero-overlay {
    background: linear-gradient(180deg, rgba(6, 10, 19, 0.88) 0%, rgba(6, 10, 19, 0.82) 46%, rgba(6, 10, 19, 0.78) 100%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* About Intro — centered text */
.about-intro-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.about-intro-text-center {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .about-hero-block {
        padding: 40px 20px;
    }
}

.about-intro-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-intro-text .about-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-intro-text p {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .about-intro-bg {
        padding: 48px 24px;
    }
}

.about-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.about-counter-item {
    text-align: center;
    padding: 36px 20px;
    border-radius: var(--radius-lg);
}

.about-counter-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.about-counter-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card-large {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
}

.feature-card-large:hover {
    transform: translateY(-6px);
}

.feature-icon-large {
    font-size: 2.4rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(113, 138, 163, 0.2));
}

.feature-card-large h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card-large>p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-details {
    list-style: none;
    padding: 0;
}

.feature-details li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 5px 0 5px 22px;
    position: relative;
    line-height: 1.6;
}

.feature-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-main);
    box-shadow: 0 0 8px var(--blue-glow-soft);
}

@media (max-width: 1024px) {
    .about-counters {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-counters {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   TIMELINE
   ==================================== */
.about-timeline {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 100vh;
    padding: clamp(56px, 8vh, 96px) clamp(24px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

/* --- Floating Particles --- */
.timeline-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.tl-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: tlFloat linear infinite;
}

/* Sizes, positions & delays for each particle */
.tl-particle-1 {
    width: 6px;
    height: 6px;
    background: var(--blue-bright);
    left: 8%;
    top: 10%;
    animation-duration: 14s;
    animation-delay: 0s;
}

.tl-particle-2 {
    width: 4px;
    height: 4px;
    background: var(--green);
    left: 85%;
    top: 15%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.tl-particle-3 {
    width: 8px;
    height: 8px;
    background: var(--blue-glow);
    left: 15%;
    top: 40%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.tl-particle-4 {
    width: 3px;
    height: 3px;
    background: var(--green-light);
    left: 90%;
    top: 50%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.tl-particle-5 {
    width: 5px;
    height: 5px;
    background: var(--blue-light);
    left: 5%;
    top: 65%;
    animation-duration: 20s;
    animation-delay: 3s;
}

.tl-particle-6 {
    width: 7px;
    height: 7px;
    background: var(--green-glow);
    left: 80%;
    top: 75%;
    animation-duration: 15s;
    animation-delay: 5s;
}

.tl-particle-7 {
    width: 4px;
    height: 4px;
    background: var(--blue-bright);
    left: 25%;
    top: 85%;
    animation-duration: 17s;
    animation-delay: 1.5s;
}

.tl-particle-8 {
    width: 6px;
    height: 6px;
    background: var(--green-bright);
    left: 70%;
    top: 30%;
    animation-duration: 13s;
    animation-delay: 6s;
}

.tl-particle-9 {
    width: 3px;
    height: 3px;
    background: var(--blue);
    left: 50%;
    top: 5%;
    animation-duration: 19s;
    animation-delay: 0.5s;
}

.tl-particle-10 {
    width: 5px;
    height: 5px;
    background: var(--green);
    left: 40%;
    top: 90%;
    animation-duration: 14s;
    animation-delay: 7s;
}

.tl-particle-11 {
    width: 8px;
    height: 8px;
    background: var(--blue-glow-soft);
    left: 60%;
    top: 55%;
    animation-duration: 22s;
    animation-delay: 2.5s;
}

.tl-particle-12 {
    width: 4px;
    height: 4px;
    background: var(--green-glow-soft);
    left: 35%;
    top: 20%;
    animation-duration: 16s;
    animation-delay: 8s;
}

.tl-particle-13 {
    width: 6px;
    height: 6px;
    background: var(--blue);
    left: 12%;
    top: 22%;
    animation-duration: 15s;
    animation-delay: 1.8s;
}

.tl-particle-14 {
    width: 3px;
    height: 3px;
    background: var(--green-bright);
    left: 92%;
    top: 32%;
    animation-duration: 21s;
    animation-delay: 4.6s;
}

.tl-particle-15 {
    width: 7px;
    height: 7px;
    background: var(--blue-light);
    left: 18%;
    top: 58%;
    animation-duration: 13s;
    animation-delay: 2.2s;
}

.tl-particle-16 {
    width: 4px;
    height: 4px;
    background: var(--green-light);
    left: 74%;
    top: 12%;
    animation-duration: 17s;
    animation-delay: 6.4s;
}

.tl-particle-17 {
    width: 5px;
    height: 5px;
    background: var(--blue-bright);
    left: 58%;
    top: 82%;
    animation-duration: 19s;
    animation-delay: 0.9s;
}

.tl-particle-18 {
    width: 8px;
    height: 8px;
    background: var(--green-glow);
    left: 30%;
    top: 72%;
    animation-duration: 12s;
    animation-delay: 3.7s;
}

.tl-particle-19 {
    width: 3px;
    height: 3px;
    background: var(--blue-glow-soft);
    left: 4%;
    top: 46%;
    animation-duration: 24s;
    animation-delay: 5.1s;
}

.tl-particle-20 {
    width: 6px;
    height: 6px;
    background: var(--green);
    left: 84%;
    top: 64%;
    animation-duration: 14s;
    animation-delay: 7.4s;
}

.tl-particle-21 {
    width: 4px;
    height: 4px;
    background: var(--blue-light);
    left: 46%;
    top: 26%;
    animation-duration: 18s;
    animation-delay: 2.9s;
}

.tl-particle-22 {
    width: 7px;
    height: 7px;
    background: var(--green-glow-soft);
    left: 66%;
    top: 42%;
    animation-duration: 16s;
    animation-delay: 8.2s;
}

.tl-particle-23 {
    width: 5px;
    height: 5px;
    background: var(--blue-glow);
    left: 26%;
    top: 8%;
    animation-duration: 20s;
    animation-delay: 1.1s;
}

.tl-particle-24 {
    width: 3px;
    height: 3px;
    background: var(--green);
    left: 96%;
    top: 86%;
    animation-duration: 22s;
    animation-delay: 6.8s;
}

.tl-particle-25 {
    width: 4px;
    height: 4px;
    background: var(--blue-bright);
    left: 38%;
    top: 38%;
    animation-duration: 15s;
    animation-delay: 4.1s;
}

.tl-particle-26 {
    width: 6px;
    height: 6px;
    background: var(--green-light);
    left: 52%;
    top: 68%;
    animation-duration: 18s;
    animation-delay: 5.6s;
}

.tl-particle-27 {
    width: 3px;
    height: 3px;
    background: var(--blue-glow-soft);
    left: 72%;
    top: 24%;
    animation-duration: 21s;
    animation-delay: 2.3s;
}

.tl-particle-28 {
    width: 7px;
    height: 7px;
    background: var(--green-glow);
    left: 14%;
    top: 78%;
    animation-duration: 16s;
    animation-delay: 7.1s;
}

.tl-particle-29 {
    width: 5px;
    height: 5px;
    background: var(--blue-light);
    left: 88%;
    top: 44%;
    animation-duration: 19s;
    animation-delay: 3.4s;
}

.tl-particle-30 {
    width: 4px;
    height: 4px;
    background: var(--green-bright);
    left: 48%;
    top: 14%;
    animation-duration: 17s;
    animation-delay: 6.2s;
}

@keyframes tlFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.5);
    }

    10% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.4;
        transform: translateY(-60px) translateX(20px) scale(1);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-120px) translateX(-15px) scale(0.3);
    }
}

/* Ambient glow blobs behind the timeline */
.about-timeline::before,
.about-timeline::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    z-index: 0;
}

.about-timeline::before {
    width: 350px;
    height: 350px;
    top: 5%;
    left: -10%;
    background: var(--blue-glow-soft);
    animation: tlGlow 10s ease-in-out infinite alternate;
}

.about-timeline::after {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: -8%;
    background: var(--green-glow-soft);
    animation: tlGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes tlGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(25px, -20px) scale(1.15);
        opacity: 0.8;
    }
}

/* Ensure timeline content stays above particles */
.about-timeline .section-title,
.about-timeline .timeline {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), var(--green), var(--blue));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-main);
    box-shadow: 0 0 16px var(--blue-glow);
    z-index: 2;
}

.timeline-content {
    padding: 28px 32px;
    border-radius: var(--radius-md);
}

.timeline-content:hover {
    transform: translateX(8px);
}

.timeline-year {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--green-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(196, 215, 179, 0.08);
    border-radius: 60px;
    border: 1px solid rgba(196, 215, 179, 0.12);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -26px;
    }
}

/* ====================================
   AGRICULTURE PAGE — Crop Types
   ==================================== */
.agro-page {
    background: var(--bg-primary);
}

.agro-gis-viewer {
    margin: 40px 0 88px;
    background: linear-gradient(165deg, rgba(139, 195, 74, 0.04) 0%, rgba(70, 212, 124, 0.02) 50%, transparent 100%);
    border: 1px solid rgba(139, 195, 74, 0.1);
    border-radius: var(--radius-xl, 24px);
    padding: 48px 36px 36px;
    position: relative;
    overflow: hidden;
}

.agro-gis-viewer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green, #8bc34a), #46d47c, var(--accent, #f5d56a));
    opacity: 0.7;
}

.agro-gis-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 195, 74, 0.12);
    border: 1px solid rgba(139, 195, 74, 0.24);
    color: var(--green, #8bc34a);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 0 auto 20px;
    width: fit-content;
}

.agro-gis-header {
    margin-bottom: 32px;
    text-align: center;
}

.agro-gis-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.7;
}

.agro-gis-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-radius: var(--radius-lg, 16px);
    margin-bottom: 16px;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}

.agro-gis-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.agro-gis-controls label {
    color: var(--text-primary);
    font-weight: 600;
}


.agro-gis-select {
    appearance: none;
    border: 1px solid var(--border-hover);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 10px 36px 10px 12px;
    cursor: pointer;
    outline: none;
}

.agro-gis-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(196, 215, 179, 0.2);
}

.agro-gis-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.agro-gis-status {
    font-size: 0.82rem;
    color: var(--text-primary);
    background: rgba(139, 195, 74, 0.12);
    border: 1px solid rgba(139, 195, 74, 0.24);
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}

.agro-gis-status.is-error {
    background: rgba(220, 53, 69, 0.14);
    border-color: rgba(220, 53, 69, 0.28);
    color: #f8d5db;
}

.agro-gis-legend-label {
    color: var(--text-muted);
}

.agro-gis-legend-scale {
    width: 190px;
    height: 11px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.agro-map-wrapper {
    position: relative;
}

.agro-mini-map {
    height: 520px;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid rgba(139, 195, 74, 0.15);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.22),
        0 8px 20px rgba(113, 138, 163, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.agro-mini-map .leaflet-control-zoom a {
    background: rgba(10, 16, 28, 0.86);
    color: #fff;
    border-color: rgba(196, 215, 179, 0.2);
}

.agro-mini-map .leaflet-control-attribution {
    background: rgba(8, 12, 20, 0.72);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .agro-gis-viewer {
    background: linear-gradient(165deg, rgba(139, 195, 74, 0.06) 0%, rgba(70, 212, 124, 0.03) 50%, transparent 100%);
    border-color: rgba(139, 195, 74, 0.18);
}

[data-theme="light"] .agro-gis-badge {
    background: rgba(139, 195, 74, 0.1);
    border-color: rgba(139, 195, 74, 0.22);
}

[data-theme="light"] .agro-mini-map {
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.10),
        0 8px 18px rgba(113, 138, 163, 0.12);
    border-color: rgba(139, 195, 74, 0.2);
}

[data-theme="light"] .agro-mini-map .leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.92);
    color: #1a2332;
    border-color: rgba(113, 138, 163, 0.28);
}

[data-theme="light"] .agro-mini-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.86);
    color: #435266;
}

[data-theme="light"] .agro-date-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #203045;
    border-color: rgba(113, 138, 163, 0.35);
}

[data-theme="light"] .agro-date-btn:hover {
    border-color: rgba(70, 95, 120, 0.52);
}

[data-theme="light"] .agro-date-btn.is-active {
    background: linear-gradient(135deg, rgba(225, 236, 248, 0.98), rgba(200, 218, 236, 0.98));
    color: #102031;
    border-color: rgba(70, 95, 120, 0.62);
    box-shadow: 0 5px 12px rgba(70, 95, 120, 0.2);
}

[data-theme="light"] .agro-gis-status {
    background: rgba(139, 195, 74, 0.14);
    border-color: rgba(46, 139, 64, 0.3);
    color: #254034;
}

[data-theme="light"] .agro-gis-status.is-error {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.3);
    color: #8f1f2c;
}

.agro-mini-map .leaflet-popup-content-wrapper {
    background: rgba(8, 12, 20, 0.92);
    color: #eef4fb;
    border: 1px solid rgba(196, 215, 179, 0.16);
}

.agro-mini-map .leaflet-popup-tip {
    background: rgba(8, 12, 20, 0.92);
}

[data-theme="light"] .agro-mini-map .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.96);
    color: #1f2d3e;
    border: 1px solid rgba(113, 138, 163, 0.22);
}

[data-theme="light"] .agro-mini-map .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.96);
}

/* ── Agro Parcel Panel (centered overlay) ── */

.agro-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 560px;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    overflow-y: auto;
    background: rgba(8, 12, 20, 0.94);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(139, 195, 74, 0.15);
    border-radius: 20px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: agroPanelIn 0.25s ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 195, 74, 0.25) transparent;
}

.agro-panel::-webkit-scrollbar {
    width: 6px;
}

.agro-panel::-webkit-scrollbar-track {
    background: transparent;
    margin: 12px 0;
}

.agro-panel::-webkit-scrollbar-thumb {
    background: rgba(139, 195, 74, 0.22);
    border-radius: 999px;
}

.agro-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 195, 74, 0.4);
}

@keyframes agroPanelIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.agro-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.agro-panel-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.agro-panel-content {
    padding: 0;
}

.agro-pp {
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    line-height: 1.5;
    padding: 28px 28px 22px;
}

.agro-pp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    padding-right: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agro-pp-parcel {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.agro-pp-crop {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(139, 195, 74, 0.9);
    background: rgba(139, 195, 74, 0.1);
    border: 1px solid rgba(139, 195, 74, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
}

.agro-pp-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.agro-pp-metric {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.agro-pp-metric-val {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.agro-pp-metric-val::after {
    content: '/100';
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.45;
    margin-left: 2px;
}

.agro-pp-vigor { color: #46d47c; }
.agro-pp-stress { color: #5c74be; }

.agro-pp-metric-lbl {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.agro-pp-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
}

/* Predictions — 3 columns */
.agro-pp-preds {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.agro-pp-pred {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 10px;
}

.agro-pp-pred-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: rgba(255, 255, 255, 0.35);
}

.agro-pp-pred-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
}

.agro-pp-pred-val small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.5;
}

.agro-pp-pred-lbl {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agro-pp-disease-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 2px;
}

.agro-pp-disease-tag {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(214, 69, 63, 0.12);
    border: 1px solid rgba(214, 69, 63, 0.25);
    color: #f5a09b;
}

.agro-pp-disease-ok {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(70, 212, 124, 0.7);
}

.agro-pp-chart {
    display: block;
    width: 100%;
    height: 160px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    box-sizing: border-box;
}

.agro-pp-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.agro-pp-leg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.agro-pp-leg-line {
    display: inline-block;
    width: 16px;
    height: 2.5px;
    border-radius: 2px;
}

.agro-pp-leg-dashed {
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
    background: none !important;
    height: 0;
}

.agro-pp-demo {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.22);
    font-style: italic;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Light theme panel */
[data-theme="light"] .agro-panel {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(139, 195, 74, 0.2);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

[data-theme="light"] .agro-panel-close {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .agro-panel-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .agro-pp-parcel { color: var(--text-primary); }
[data-theme="light"] .agro-pp-header { border-bottom-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .agro-pp-metric { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .agro-pp-metric-lbl,
[data-theme="light"] .agro-pp-section-title { color: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .agro-pp-pred { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .agro-pp-pred-val { color: var(--text-primary); }
[data-theme="light"] .agro-pp-pred-lbl { color: var(--text-muted); }
[data-theme="light"] .agro-pp-pred-icon { stroke: var(--text-muted); }
[data-theme="light"] .agro-pp-leg-item { color: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .agro-pp-demo { color: rgba(0, 0, 0, 0.22); border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .agro-pp-chart { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.06); }

@media (max-width: 600px) {
    .agro-panel {
        width: calc(100% - 16px);
        border-radius: 16px;
    }

    .agro-pp {
        padding: 20px 16px 16px;
    }

    .agro-pp-preds {
        grid-template-columns: 1fr;
    }
}

.crop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.crop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-medium);
}

.crop-item:hover {
    transform: translateY(-6px);
}

.crop-emoji {
    font-size: 2.4rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(196, 215, 179, 0.2));
}

.crop-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .agro-gis-viewer {
        padding: 28px 16px 24px;
        border-radius: 16px;
    }

    .agro-mini-map {
        height: 420px;
    }

    .agro-gis-toolbar {
        padding: 14px;
    }

    .agro-gis-legend-scale {
        width: 130px;
    }

    .crop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================
   INDUSTRY INTRO — Section
   ==================================== */
.industry-services {
    background: var(--bg-primary);
    padding: 96px 0 56px;
}

.industry-intro {
    padding: 72px 0 40px;
    position: relative;
    overflow: hidden;
}

.industry-intro-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.industry-intro-header {
    text-align: center;
    margin-bottom: 60px;
}

.industry-intro-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Intro Cards */
.industry-intro-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.industry-intro-card {
    position: relative;
    padding: 40px 32px 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-medium);
    overflow: hidden;
}

.industry-intro-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.industry-intro-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: introIconFloat 4s ease-in-out infinite;
}

.industry-intro-card:nth-child(2) .industry-intro-card-icon {
    animation-delay: -1.3s;
}

.industry-intro-card:nth-child(3) .industry-intro-card-icon {
    animation-delay: -2.6s;
}

@keyframes introIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.industry-intro-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-weight: 700;
}

.industry-intro-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Inner glow effect on cards */
.industry-intro-card-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.industry-intro-card:nth-child(2) .industry-intro-card-glow {
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
}

.industry-intro-card:nth-child(3) .industry-intro-card-glow {
    background: radial-gradient(circle, rgba(113, 138, 163, 0.35) 0%, transparent 70%);
}

.industry-intro-card:hover .industry-intro-card-glow {
    opacity: 1;
}

/* Highlight callout */
.industry-intro-highlight {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 40px 36px 80px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
}

.industry-intro-highlight:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 40px var(--blue-glow-soft);
}

.industry-intro-highlight-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 4px 0 0 4px;
}

.industry-intro-highlight-icon {
    position: absolute;
    left: 28px;
    top: 36px;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.industry-intro-highlight p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.industry-intro-highlight p strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Industry Intro Responsive */
@media (max-width: 900px) {
    .industry-intro-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .industry-intro-highlight {
        padding: 32px 28px 32px 72px;
    }
}

@media (max-width: 600px) {
    .industry-services {
        padding: 72px 0 32px;
    }

    .industry-intro {
        padding: 56px 0 20px;
    }

    .industry-intro-lead {
        font-size: 1rem;
    }

    .industry-intro-card {
        padding: 32px 24px 28px;
    }

    .industry-intro-highlight {
        padding: 28px 20px 28px 60px;
    }

    .industry-intro-highlight-icon {
        left: 18px;
        font-size: 1.5rem;
    }

    .industry-intro-highlight p {
        font-size: 0.95rem;
    }
}

/* ====================================
   SERVICES SHOWCASE — Accordion Style
   ==================================== */
.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-medium);
    cursor: pointer;
}

.service-item:hover {
    border-color: var(--border-hover);
}

.service-item.active {
    border-color: transparent;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 40px var(--blue-glow-soft);
}

.service-item.active::before {
    opacity: 1;
    animation: borderRotate 4s linear infinite;
}

.service-item-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    user-select: none;
}

.service-item-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-medium);
}

.service-item.active .service-item-icon {
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: 0 4px 20px var(--blue-glow-soft);
}

.service-item-info {
    flex: 1;
    min-width: 0;
}

.service-item-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: var(--transition-fast);
}

.service-item-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--blue-light);
    opacity: 0.7;
}

.service-item-toggle {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.service-item.active .service-item-toggle {
    transform: rotate(180deg);
    color: var(--blue-light);
}

/* Expandable body */
.service-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 28px;
}

.service-item.active .service-item-body {
    max-height: 300px;
    padding: 0 28px 28px;
}
/* Service item with embedded video - wider max-height */
.service-item.active .service-item-body--has-video {
    max-height: 600px;
}

/* Two-column layout: text | video */
.service-item-body--has-video {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.service-item-text {
    flex: 1 1 0;
    min-width: 0;
}

/* Video panel - compact, right side */
.service-item-video-panel {
    flex: 0 0 240px;
    width: 240px;
}

.service-item-video-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35),
                0 0 0 1px rgba(255,255,255,0.04) inset;
    aspect-ratio: 16/9;
}

.service-item-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* "Demo en vivo" badge */
.service-item-video-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 60px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Pulsing red dot */
.service-video-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f04;
    box-shadow: 0 0 6px #f04;
    animation: pulseDot 1.4s ease-in-out infinite;
    flex-shrink: 0;
    display: inline-block;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.75); }
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
    .service-item-body--has-video {
        flex-direction: column;
    }
    .service-item-video-panel {
        flex: none;
        width: 100%;
    }
}

.service-item-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.service-item-body p strong {
    color: var(--text-primary);
}

.service-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item-features li {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--blue-light);
    padding: 6px 16px;
    border-radius: 60px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 600px) {
    .service-item-header {
        padding: 18px 20px;
        gap: 14px;
    }

    .service-item-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .service-item-info h3 {
        font-size: 1rem;
    }

    .service-item.active .service-item-body {
        padding: 0 20px 20px;
    }

    .service-item-features {
        flex-direction: column;
    }

    .service-item-features li {
        white-space: normal;
    }
}

/* ====================================
   INDUSTRY PAGE — Sectors & Benefits
   ==================================== */
.industry-page {
    background: var(--bg-primary);
    padding: 96px 0 140px;
}

.industry-sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-sector-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-medium);
}

.industry-sector-card:hover {
    transform: translateY(-8px);
}

.industry-sector-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 12px rgba(113, 138, 163, 0.2));
}

.industry-sector-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.industry-sector-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition-medium);
}

.benefit-item:hover {
    transform: translateY(-6px);
}

.benefit-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 12px;
}

.benefit-item h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .industry-sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .industry-sectors-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .industry-page {
        padding: 80px 0 100px;
    }
}

/* ====================================
   MODELS PAGE — Tech Stack
   ==================================== */
.models-page {
    background: var(--bg-primary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-medium);
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.tech-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================
   NEWS PAGE — Featured Article
   ==================================== */
.news-page {
    background: var(--bg-primary);
}

.news-featured {
    margin-bottom: 8px;
}

.news-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 0 48px var(--blue-glow-soft);
}

.news-featured-media {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}

.news-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-featured-card:hover .news-featured-media img {
    transform: scale(1.04);
}

.news-featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.news-featured-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-featured-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, rgba(255, 180, 50, 0.15), rgba(255, 140, 0, 0.08));
    border: 1px solid rgba(255, 180, 50, 0.25);
    color: #f5b740;
    width: fit-content;
}

.news-featured-title {
    font-size: 1.55rem;
    color: var(--text-primary);
    line-height: 1.35;
    font-weight: 800;
}

.news-featured-excerpt {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

@media (max-width: 768px) {
    .news-featured-card {
        grid-template-columns: 1fr;
    }

    .news-featured-media {
        min-height: 220px;
    }

    .news-featured-content {
        padding: 28px;
    }
}

/* ====================================
   CONTACT PAGE
   ==================================== */
.contact-page {
    background: var(--bg-primary);
}

/* --- Contact Form --- */
.contact-form-section {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    padding: 40px;
    border-radius: var(--radius-lg, 20px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 14px 18px;
    border-radius: var(--radius-sm, 10px);
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow-soft);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%238899aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 24px;
    }
}

/* ====================================
   SPECTACULAR HERO BACKGROUNDS
   ==================================== */

/* --- 1. ABOUT: Living Network (Gradient Mesh) --- */
.hero-bg-about {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg-about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(113, 138, 163, 0.15), transparent 50%),
        radial-gradient(circle at 10% 10%, rgba(196, 215, 179, 0.15), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(113, 138, 163, 0.1), transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(196, 215, 179, 0.1), transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(113, 138, 163, 0.15), transparent 40%);
    filter: blur(60px);
    animation: livingMesh 20s ease-in-out infinite alternate;
    opacity: 0.8;
}

.hero-bg-about::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(113, 138, 163, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 138, 163, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

@keyframes livingMesh {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-2%, 2%) scale(1.1) rotate(2deg);
    }

    100% {
        transform: translate(2%, -2%) scale(1) rotate(-1deg);
    }
}


/* --- 2. AGRICULTURE: Digital Wind (Field Scan) --- */
.hero-bg-agro {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Base green tint */
.hero-bg-agro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(196, 215, 179, 0.15), transparent 70%);
}

/* The "Field" Lines */
.hero-bg-agro::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(90deg,
            transparent 0,
            transparent 48px,
            rgba(196, 215, 179, 0.08) 49px,
            transparent 50px);
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: fieldMove 20s linear infinite;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* Glowing dots simulating sensors */
.hero-bg-agro .sensor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    opacity: 0;
    animation: sensorBlink 4s infinite;
}

@keyframes fieldMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -100px 0;
    }
}

@keyframes sensorBlink {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}


/* --- 3. MODELS IA: Neural Pulse (Cyber Matrix) --- */
.hero-bg-models {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #020408;
    /* Darker base for models page */
}

/* Grid Floor */
.hero-bg-models::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(113, 138, 163, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 138, 163, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(60deg);
    animation: gridScroll 15s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* The Pulse Wave */
.hero-bg-models::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(113, 138, 163, 0.1) 40%, transparent 70%);
    animation: neuralPulse 6s ease-in-out infinite;
}

@keyframes gridScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 60px;
    }
}

@keyframes neuralPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ====================================
   SPECTACULAR HERO BACKGROUNDS
   ==================================== */

/* ---------- ABOUT PAGE — Constellation / Aurora ---------- */
.hero-bg-about {
    background:
        radial-gradient(ellipse 50% 70% at 25% 50%, rgba(113, 138, 163, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 75% 40%, rgba(196, 215, 179, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 50% 80%, rgba(113, 138, 163, 0.06) 0%, transparent 70%);
}

/* Orbital rings */
.about-orbital {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(113, 138, 163, 0.12);
    pointer-events: none;
}

.about-orbital-1 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: aboutOrbitSpin 30s linear infinite;
}

.about-orbital-2 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(196, 215, 179, 0.1);
    animation: aboutOrbitSpin 22s linear infinite reverse;
}

.about-orbital-3 {
    width: 650px;
    height: 650px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: dashed;
    border-color: rgba(113, 138, 163, 0.06);
    animation: aboutOrbitSpin 45s linear infinite;
}

@keyframes aboutOrbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Aurora glow blobs */
.about-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    mix-blend-mode: screen;
}

.about-aurora-1 {
    width: 400px;
    height: 300px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(113, 138, 163, 0.18) 0%, transparent 70%);
    animation: auroraFloat1 12s ease-in-out infinite;
}

.about-aurora-2 {
    width: 350px;
    height: 250px;
    top: 30%;
    right: 5%;
    background: radial-gradient(circle, rgba(196, 215, 179, 0.14) 0%, transparent 70%);
    animation: auroraFloat2 15s ease-in-out infinite;
}

.about-aurora-3 {
    width: 300px;
    height: 200px;
    bottom: 10%;
    left: 30%;
    background: radial-gradient(circle, rgba(157, 191, 222, 0.12) 0%, transparent 70%);
    animation: auroraFloat3 18s ease-in-out infinite;
}

@keyframes auroraFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    33% {
        transform: translate(60px, -30px) scale(1.15);
        opacity: 1;
    }

    66% {
        transform: translate(-30px, 20px) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes auroraFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    40% {
        transform: translate(-50px, 40px) scale(1.2);
        opacity: 0.9;
    }

    70% {
        transform: translate(30px, -20px) scale(0.85);
        opacity: 0.5;
    }
}

@keyframes auroraFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(40px, -30px) scale(1.1);
        opacity: 0.8;
    }
}

/* Constellation stars */
.about-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(113, 138, 163, 0.6);
    box-shadow:
        0 0 6px rgba(113, 138, 163, 0.4),
        0 0 20px rgba(113, 138, 163, 0.15);
    pointer-events: none;
    animation: starTwinkle 3s ease-in-out infinite;
}

.about-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 138, 163, 0.15) 0%, transparent 70%);
    animation: starRipple 4s ease-out infinite;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes starRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Light theme — boosted contrast */
[data-theme="light"] .hero-bg-about {
    background:
        radial-gradient(ellipse 50% 70% at 25% 50%, rgba(113, 138, 163, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 75% 40%, rgba(196, 215, 179, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 50% 80%, rgba(113, 138, 163, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .page-hero-about {
    background:
        linear-gradient(180deg, rgba(236, 243, 250, 0.98) 0%, rgba(232, 241, 232, 0.95) 52%, rgba(229, 236, 244, 0.96) 100%);
}

[data-theme="light"] .page-hero-about .page-hero-bg {
    background:
        radial-gradient(ellipse 42% 62% at 20% 44%, rgba(113, 138, 163, 0.2) 0%, transparent 72%),
        radial-gradient(ellipse 36% 56% at 82% 38%, rgba(196, 215, 179, 0.16) 0%, transparent 72%),
        radial-gradient(ellipse 50% 70% at 50% 78%, rgba(113, 138, 163, 0.13) 0%, transparent 72%);
}

[data-theme="light"] .page-hero-about::after {
    background: linear-gradient(to bottom, rgba(247, 249, 251, 0) 0%, rgba(223, 233, 241, 0.84) 62%, rgba(218, 228, 238, 0.95) 100%);
}

[data-theme="light"] .about-hero-overlay {
    background: linear-gradient(180deg, rgba(236, 243, 250, 0.84) 0%, rgba(241, 246, 251, 0.78) 46%, rgba(245, 248, 252, 0.74) 100%);
}

[data-theme="light"] .about-aurora-1 {
    background: radial-gradient(circle, rgba(90, 120, 155, 0.22) 0%, transparent 70%);
}

[data-theme="light"] .about-aurora-2 {
    background: radial-gradient(circle, rgba(140, 185, 110, 0.18) 0%, transparent 70%);
}

[data-theme="light"] .about-aurora-3 {
    background: radial-gradient(circle, rgba(120, 165, 200, 0.16) 0%, transparent 70%);
}

[data-theme="light"] .about-orbital {
    border-color: rgba(90, 120, 155, 0.18);
}

[data-theme="light"] .about-orbital-3 {
    border-color: rgba(90, 120, 155, 0.12);
}

[data-theme="light"] .about-star {
    background: rgba(90, 120, 155, 0.6);
    box-shadow: 0 0 8px rgba(90, 120, 155, 0.4), 0 0 24px rgba(90, 120, 155, 0.15);
}

/* ---------- AGRICULTURE PAGE — Sensor Grid / Scan ---------- */
.hero-bg-agro {
    background:
        radial-gradient(ellipse 45% 65% at 30% 50%, rgba(196, 215, 179, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 70% 35%, rgba(113, 138, 163, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 50% 80%, rgba(168, 193, 147, 0.06) 0%, transparent 70%);
}

/* Sensor dots with pulse + ripple */
.sensor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(196, 215, 179, 0.7);
    box-shadow:
        0 0 8px rgba(196, 215, 179, 0.5),
        0 0 24px rgba(196, 215, 179, 0.15);
    pointer-events: none;
    animation: sensorPulse 3s ease-in-out infinite;
}

.sensor-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(196, 215, 179, 0.4);
    animation: sensorRipple 3s ease-out infinite;
}

.sensor-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(196, 215, 179, 0.25);
    animation: sensorRipple 3s ease-out infinite 1s;
}

@keyframes sensorPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes sensorRipple {
    0% {
        width: 6px;
        height: 6px;
        opacity: 0.8;
    }

    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

/* Grid pattern overlay */
.agro-grid-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(196, 215, 179, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 215, 179, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: agroGridShift 20s linear infinite;
}

@keyframes agroGridShift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 60px;
    }
}

/* Topographic contour lines */
.agro-topo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 300px 200px at 25% 55%, transparent 50%, rgba(196, 215, 179, 0.04) 50%, rgba(196, 215, 179, 0.04) 51%, transparent 51%),
        radial-gradient(ellipse 400px 280px at 25% 55%, transparent 50%, rgba(196, 215, 179, 0.035) 50%, rgba(196, 215, 179, 0.035) 51%, transparent 51%),
        radial-gradient(ellipse 500px 350px at 25% 55%, transparent 50%, rgba(196, 215, 179, 0.03) 50%, rgba(196, 215, 179, 0.03) 51%, transparent 51%),
        radial-gradient(ellipse 250px 180px at 72% 40%, transparent 50%, rgba(113, 138, 163, 0.035) 50%, rgba(113, 138, 163, 0.035) 51%, transparent 51%),
        radial-gradient(ellipse 350px 250px at 72% 40%, transparent 50%, rgba(113, 138, 163, 0.025) 50%, rgba(113, 138, 163, 0.025) 51%, transparent 51%);
    animation: topoShift 25s ease-in-out infinite;
}

@keyframes topoShift {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.03) translateY(-8px);
    }
}

/* Scan line effect */
.agro-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(196, 215, 179, 0.05) 15%,
            rgba(196, 215, 179, 0.25) 50%,
            rgba(196, 215, 179, 0.05) 85%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(196, 215, 179, 0.15), 0 0 60px rgba(196, 215, 179, 0.05);
    pointer-events: none;
    animation: scanSweep 6s ease-in-out infinite;
}

@keyframes scanSweep {
    0% {
        top: -2px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Light theme — boosted contrast */
[data-theme="light"] .hero-bg-agro {
    background:
        radial-gradient(ellipse 45% 65% at 30% 50%, rgba(100, 165, 70, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 70% 35%, rgba(90, 140, 60, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 50% 80%, rgba(126, 170, 100, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .sensor-dot {
    background: rgba(80, 145, 50, 0.7);
    box-shadow: 0 0 10px rgba(80, 145, 50, 0.45), 0 0 30px rgba(80, 145, 50, 0.15);
}

[data-theme="light"] .sensor-dot::before {
    border-color: rgba(80, 145, 50, 0.4);
}

[data-theme="light"] .sensor-dot::after {
    border-color: rgba(80, 145, 50, 0.25);
}

[data-theme="light"] .agro-grid-pattern {
    background-image:
        linear-gradient(rgba(80, 145, 50, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 145, 50, 0.07) 1px, transparent 1px);
}

[data-theme="light"] .agro-scanline {
    background: linear-gradient(90deg, transparent 0%, rgba(80, 145, 50, 0.08) 15%, rgba(80, 145, 50, 0.3) 50%, rgba(80, 145, 50, 0.08) 85%, transparent 100%);
    box-shadow: 0 0 25px rgba(80, 145, 50, 0.15), 0 0 70px rgba(80, 145, 50, 0.05);
}

[data-theme="light"] .agro-leaf {
    border-color: rgba(80, 145, 50, 0.25);
    background: rgba(80, 145, 50, 0.06);
}

/* ---------- MODELS IA PAGE — Neural Network / Circuit ---------- */
.hero-bg-models {
    background:
        radial-gradient(ellipse 45% 65% at 20% 45%, rgba(113, 138, 163, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 80% 50%, rgba(157, 191, 222, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 55% 70% at 50% 85%, rgba(113, 138, 163, 0.06) 0%, transparent 70%);
}

/* Circuit grid pattern */
.models-circuit-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(113, 138, 163, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 138, 163, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
    animation: circuitShift 15s linear infinite;
}

@keyframes circuitShift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 0;
    }
}

/* Neural nodes with glow */
.neural-node {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(113, 138, 163, 0.7);
    box-shadow:
        0 0 8px rgba(113, 138, 163, 0.5),
        0 0 25px rgba(113, 138, 163, 0.2);
    pointer-events: none;
    animation: nodeGlow 3.5s ease-in-out infinite;
}

.neural-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1px solid rgba(113, 138, 163, 0.3);
    animation: nodeRipple 3.5s ease-out infinite;
}

.neural-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1px solid rgba(157, 191, 222, 0.2);
    animation: nodeRipple 3.5s ease-out infinite 1.2s;
}

@keyframes nodeGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(113, 138, 163, 0.3), 0 0 25px rgba(113, 138, 163, 0.1);
    }

    50% {
        opacity: 1;
        transform: scale(1.6);
        box-shadow: 0 0 12px rgba(113, 138, 163, 0.6), 0 0 40px rgba(113, 138, 163, 0.3);
    }
}

@keyframes nodeRipple {
    0% {
        width: 5px;
        height: 5px;
        opacity: 0.7;
    }

    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* Data flow lines */
.models-dataflow {
    position: absolute;
    pointer-events: none;
    overflow: hidden;
}

.models-dataflow-1 {
    top: 30%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(113, 138, 163, 0.2), transparent);
    animation: dataflowH 8s ease-in-out infinite;
}

.models-dataflow-2 {
    top: 0;
    bottom: 0;
    left: 65%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(157, 191, 222, 0.15), transparent);
    animation: dataflowV 10s ease-in-out infinite 2s;
}

.models-dataflow-3 {
    top: 70%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 215, 179, 0.12), transparent);
    animation: dataflowH 12s ease-in-out infinite 4s;
}

.models-dataflow-1::after,
.models-dataflow-3::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 60px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(113, 138, 163, 0.5), transparent);
    box-shadow: 0 0 12px rgba(113, 138, 163, 0.3);
    animation: dataParticleH 4s linear infinite;
}

.models-dataflow-2::after {
    content: '';
    position: absolute;
    left: -2px;
    width: 5px;
    height: 60px;
    border-radius: 3px;
    background: linear-gradient(180deg, transparent, rgba(157, 191, 222, 0.4), transparent);
    box-shadow: 0 0 12px rgba(157, 191, 222, 0.25);
    animation: dataParticleV 5s linear infinite;
}

@keyframes dataflowH {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes dataflowV {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes dataParticleH {
    from {
        left: -60px;
    }

    to {
        left: 100%;
    }
}

@keyframes dataParticleV {
    from {
        top: -60px;
    }

    to {
        top: 100%;
    }
}

/* Ambient glow blobs */
.models-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    mix-blend-mode: screen;
}

.models-glow-1 {
    width: 450px;
    height: 350px;
    top: 5%;
    left: 10%;
    background: radial-gradient(circle, rgba(113, 138, 163, 0.15) 0%, transparent 70%);
    animation: modelsGlowFloat 14s ease-in-out infinite;
}

.models-glow-2 {
    width: 380px;
    height: 280px;
    bottom: 5%;
    right: 10%;
    background: radial-gradient(circle, rgba(157, 191, 222, 0.12) 0%, transparent 70%);
    animation: modelsGlowFloat 18s ease-in-out infinite 5s;
}

@keyframes modelsGlowFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    40% {
        transform: translate(40px, -25px) scale(1.15);
        opacity: 0.9;
    }

    70% {
        transform: translate(-20px, 15px) scale(0.9);
        opacity: 0.5;
    }
}

/* Light theme — boosted contrast */
[data-theme="light"] .hero-bg-models {
    background:
        radial-gradient(ellipse 45% 65% at 20% 45%, rgba(70, 110, 155, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 80% 50%, rgba(100, 150, 200, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 55% 70% at 50% 85%, rgba(70, 110, 155, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .neural-node {
    background: rgba(70, 110, 155, 0.65);
    box-shadow: 0 0 10px rgba(70, 110, 155, 0.4), 0 0 30px rgba(70, 110, 155, 0.15);
}

[data-theme="light"] .neural-node::before {
    border-color: rgba(70, 110, 155, 0.35);
}

[data-theme="light"] .neural-node::after {
    border-color: rgba(100, 150, 200, 0.25);
}

[data-theme="light"] .models-circuit-grid {
    background-image:
        linear-gradient(rgba(70, 110, 155, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 110, 155, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .models-glow-1 {
    background: radial-gradient(circle, rgba(70, 110, 155, 0.16) 0%, transparent 70%);
}

[data-theme="light"] .models-glow-2 {
    background: radial-gradient(circle, rgba(100, 150, 200, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .models-dataflow-1 {
    background: linear-gradient(90deg, transparent, rgba(70, 110, 155, 0.2), transparent);
}

[data-theme="light"] .models-dataflow-2 {
    background: linear-gradient(180deg, transparent, rgba(100, 150, 200, 0.15), transparent);
}

[data-theme="light"] .models-dataflow-3 {
    background: linear-gradient(90deg, transparent, rgba(80, 145, 50, 0.1), transparent);
}

/* ====================================
   AGRICULTURE — Leaf & Field Row Elements
   ==================================== */

/* Floating leaf shapes via CSS */
.agro-leaf {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    border-radius: 0 50% 0 50%;
    border: 1.5px solid rgba(196, 215, 179, 0.3);
    background: rgba(196, 215, 179, 0.06);
    animation: leafFloat 8s ease-in-out infinite;
}

.agro-leaf::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(196, 215, 179, 0.2);
    transform: rotate(45deg);
}

@keyframes leafFloat {

    0%,
    100% {
        transform: rotate(var(--leaf-rotation, 0deg)) translateY(0) scale(1);
        opacity: 0.5;
    }

    25% {
        transform: rotate(var(--leaf-rotation, 0deg)) translateY(-12px) scale(1.05);
        opacity: 0.8;
    }

    50% {
        transform: rotate(var(--leaf-rotation, 0deg)) translateY(-6px) scale(0.95);
        opacity: 0.6;
    }

    75% {
        transform: rotate(var(--leaf-rotation, 0deg)) translateY(-15px) scale(1.02);
        opacity: 0.75;
    }
}

/* Crop field row pattern */
.agro-field-rows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(165deg,
            transparent,
            transparent 30px,
            rgba(196, 215, 179, 0.025) 30px,
            rgba(196, 215, 179, 0.025) 31px);
    mask-image: radial-gradient(ellipse 70% 60% at 65% 70%, black 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 70%, black 10%, transparent 60%);
    animation: fieldRowsShift 20s linear infinite;
}

@keyframes fieldRowsShift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 60px;
    }
}

[data-theme="light"] .agro-field-rows {
    background: repeating-linear-gradient(165deg,
            transparent,
            transparent 30px,
            rgba(80, 145, 50, 0.05) 30px,
            rgba(80, 145, 50, 0.05) 31px);
}

/* ====================================
   NEWS PAGE — Ticker / Press hero
   ==================================== */
.hero-bg-news {
    background:
        radial-gradient(ellipse 50% 65% at 30% 45%, rgba(113, 138, 163, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 45% 60% at 70% 55%, rgba(196, 215, 179, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 55% 75% at 50% 80%, rgba(157, 191, 222, 0.06) 0%, transparent 70%);
}

/* Text grid background */
.news-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 23px,
            rgba(113, 138, 163, 0.03) 23px,
            rgba(113, 138, 163, 0.03) 24px);
    mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 15%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 15%, transparent 65%);
}

/* Horizontal ticker lines */
.news-ticker-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    overflow: hidden;
}

.news-ticker-line-1 {
    top: 25%;
    background: linear-gradient(90deg, transparent, rgba(113, 138, 163, 0.15), transparent);
    animation: tickerPulse 7s ease-in-out infinite;
}

.news-ticker-line-2 {
    top: 55%;
    background: linear-gradient(90deg, transparent, rgba(196, 215, 179, 0.1), transparent);
    animation: tickerPulse 9s ease-in-out infinite 2s;
}

.news-ticker-line-3 {
    top: 80%;
    background: linear-gradient(90deg, transparent, rgba(157, 191, 222, 0.12), transparent);
    animation: tickerPulse 11s ease-in-out infinite 4s;
}

.news-ticker-line::after {
    content: '';
    position: absolute;
    top: -1px;
    width: 80px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(113, 138, 163, 0.4), transparent);
    box-shadow: 0 0 10px rgba(113, 138, 163, 0.2);
    animation: tickerParticle 5s linear infinite;
}

@keyframes tickerPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes tickerParticle {
    from {
        left: -80px;
    }

    to {
        left: 100%;
    }
}

/* Typing cursor dots */
.news-cursor {
    position: absolute;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: rgba(113, 138, 163, 0.5);
    pointer-events: none;
    animation: cursorBlink 1.2s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 0.6;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Ink splash glows */
.news-ink {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    mix-blend-mode: screen;
}

.news-ink-1 {
    width: 380px;
    height: 280px;
    top: 10%;
    left: 8%;
    background: radial-gradient(circle, rgba(113, 138, 163, 0.14) 0%, transparent 70%);
    animation: inkFloat 13s ease-in-out infinite;
}

.news-ink-2 {
    width: 320px;
    height: 240px;
    bottom: 8%;
    right: 12%;
    background: radial-gradient(circle, rgba(196, 215, 179, 0.1) 0%, transparent 70%);
    animation: inkFloat 17s ease-in-out infinite 4s;
}

@keyframes inkFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    40% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.8;
    }

    70% {
        transform: translate(-15px, 10px) scale(0.92);
        opacity: 0.45;
    }
}

/* Light theme — News boosted contrast */
[data-theme="light"] .hero-bg-news {
    background:
        radial-gradient(ellipse 50% 65% at 30% 45%, rgba(70, 110, 155, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 45% 60% at 70% 55%, rgba(100, 165, 70, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 55% 75% at 50% 80%, rgba(100, 150, 200, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .news-grid-bg {
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 23px,
            rgba(70, 110, 155, 0.05) 23px,
            rgba(70, 110, 155, 0.05) 24px);
}

[data-theme="light"] .news-ticker-line-1 {
    background: linear-gradient(90deg, transparent, rgba(70, 110, 155, 0.22), transparent);
}

[data-theme="light"] .news-ticker-line-2 {
    background: linear-gradient(90deg, transparent, rgba(80, 145, 50, 0.16), transparent);
}

[data-theme="light"] .news-ticker-line-3 {
    background: linear-gradient(90deg, transparent, rgba(100, 150, 200, 0.18), transparent);
}

[data-theme="light"] .news-cursor {
    background: rgba(70, 110, 155, 0.55);
}

[data-theme="light"] .news-ink-1 {
    background: radial-gradient(circle, rgba(70, 110, 155, 0.18) 0%, transparent 70%);
}

[data-theme="light"] .news-ink-2 {
    background: radial-gradient(circle, rgba(80, 145, 50, 0.14) 0%, transparent 70%);
}

[data-theme="light"] .news-item:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 30px rgba(113, 138, 163, 0.1);
}

[data-theme="light"] .news-badge--prensa {
    background: linear-gradient(135deg, rgba(113, 138, 163, 0.12), rgba(113, 138, 163, 0.04));
    border-color: rgba(113, 138, 163, 0.2);
    color: #5a7a96;
}

[data-theme="light"] .news-badge--proyecto {
    background: linear-gradient(135deg, rgba(80, 145, 50, 0.1), rgba(80, 145, 50, 0.04));
    border-color: rgba(80, 145, 50, 0.2);
    color: #4a8c30;
}

[data-theme="light"] .news-featured-badge {
    background: linear-gradient(135deg, rgba(230, 160, 30, 0.12), rgba(230, 140, 0, 0.06));
    border-color: rgba(230, 160, 30, 0.25);
    color: #b8860b;
}

[data-theme="light"] .news-filter-btn.active {
    color: #fff;
}

[data-theme="light"] .news-featured-card:hover {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1), 0 0 40px rgba(113, 138, 163, 0.08);
}

[data-theme="light"] .news-cta-card::before {
    opacity: 0.15;
}

/* ===================================
   HOMEPAGE — About Us (Mission & Vision)
   =================================== */
.about-home {
    position: relative;
    overflow: hidden;
}

.about-home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-home-image {
    position: relative;
}

.about-home-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.about-home-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-home-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-home-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 19, 0.5) 100%);
    pointer-events: none;
}

[data-theme="light"] .about-home-image-overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(247, 249, 251, 0.4) 100%);
}

.about-home-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-home-card {
    position: relative;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-medium);
}

.about-home-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-home-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.about-home-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-home-card:hover .about-home-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-home-card-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.about-home-card-decoration {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--gradient-main);
    opacity: 0.04;
    transition: var(--transition-medium);
}

.about-home-card:hover .about-home-card-decoration {
    transform: scale(1.4);
    opacity: 0.08;
}

/* ===================================
   HOMEPAGE — News Summary
   =================================== */
.news-home {
    position: relative;
    overflow: hidden;
}

.news-home-video-bg {
    position: absolute;
    inset: -60px;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.news-home-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    /* 16:9 aspect ratio coverage — ensures no black bars */
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: none;
}

.news-home-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(6, 10, 19, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

[data-theme="light"] .news-home-overlay {
    background: rgba(225, 231, 238, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.news-home>.container {
    position: relative;
    z-index: 2;
}

.news-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.news-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.24);
    transition: var(--transition-medium);
}

.news-home-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.44),
        0 10px 26px rgba(113, 138, 163, 0.26);
}

[data-theme="light"] .news-home-card:hover {
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.2),
        0 8px 20px rgba(113, 138, 163, 0.22);
}

.news-home-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.news-home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-home-card:hover .news-home-card-img img {
    transform: scale(1.08);
}

.news-home-card-body {
    padding: 24px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-home-card-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--gradient-main);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    width: fit-content;
}

.news-home-card-badge--logo {
    background: none;
    padding: 0;
    margin-bottom: 14px;
}

.news-home-card-badge--logo img {
    height: 18px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(0.85);
}

[data-theme="light"] .news-home-card-badge--logo img {
    filter: brightness(0) invert(0.25);
}

.news-home-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.news-home-card:hover h4 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-home-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
}

.news-home-card-date {
    display: block;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.news-home-card-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: var(--transition-medium);
    opacity: 0;
    transform: translateX(-8px);
}

.news-home-card:hover .news-home-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--green);
}

.news-home-cta {
    text-align: center;
}

/* ===================================
   HOMEPAGE — Call to Action
   =================================== */
.cta-home {
    position: relative;
}

.cta-home-wrapper {
    position: relative;
    padding: 80px 60px;
    border-radius: var(--radius-xl);
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    text-align: center;
}

.cta-home-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.cta-home-glow-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: var(--blue-glow-soft);
    animation: ctaFloat 8s ease-in-out infinite;
}

.cta-home-glow-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -80px;
    background: var(--green-glow-soft);
    animation: ctaFloat 8s ease-in-out infinite reverse;
}

@keyframes ctaFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.cta-home-content {
    position: relative;
    z-index: 1;
}

.cta-home-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-home-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 36px;
}

.cta-home-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Reverse Marquee */
.clients-marquee-reverse {
    margin-top: 24px;
}

.clients-track-reverse {
    animation: marqueeScrollReverse 60s linear infinite;
}

.clients-track-reverse:hover {
    animation-play-state: paused;
}

@keyframes marqueeScrollReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===================================
   RESPONSIVE — New Sections
   =================================== */
@media (max-width: 900px) {
    .about-home-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-home-image-wrapper {
        aspect-ratio: 16 / 9;
    }

    .news-home-grid {
        grid-template-columns: 1fr;
    }

    .cta-home-wrapper {
        padding: 56px 28px;
    }

    .cta-home-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .about-home-card {
        padding: 28px 24px;
    }

    .cta-home-title {
        font-size: 1.5rem;
    }

    .cta-home-subtitle {
        font-size: 0.95rem;
    }

    .cta-home-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}
