/* ═══════════════════════════════════════════════════════════════
   SAT Plus — Shared Components
   Navbar + Footer + Dark Mode
   Loaded on ALL pages.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Variables ─────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #eef2f3;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8ecee;
    --surface: rgba(255, 255, 255, 0.35);
    --surface-hover: rgba(255, 255, 255, 0.50);
    --surface-border: rgba(255, 255, 255, 0.30);
    --surface-border-hover: rgba(255, 255, 255, 0.50);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ED;
    --accent-rgb: 0, 113, 227;
    --gradient-start: #78BE20;
    --gradient-end: #4CAF50;
    --code-bg: #1d1d1f;
    --code-text: #f5f5f7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 60px rgba(120, 190, 32, 0.2);
    --blur: blur(14px);
    --blur-heavy: blur(24px);
    --blur-light: blur(10px);
    --container: 1200px;
    --header-h: 96px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
    --duration: 0.4s;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle 500px at 15% 15%, rgba(120, 190, 32, 0.25), transparent),
        radial-gradient(circle 400px at 85% 25%, rgba(76, 175, 80, 0.18), transparent),
        radial-gradient(circle 350px at 50% 75%, rgba(120, 190, 32, 0.15), transparent),
        radial-gradient(circle 300px at 75% 90%, rgba(34, 139, 34, 0.10), transparent);
    background-attachment: fixed;
    transition: background-color var(--duration) var(--ease-apple),
                color var(--duration) var(--ease-apple);
    overflow-x: hidden;
}

/* ─── Grain Texture Overlay (cinematic dark mode) ────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

[data-theme="dark"] body::after {
    opacity: 0.045;
}

/* ─── Scroll Progress Bar ────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    z-index: 10000;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(120, 190, 32, 0.4);
}

/* ─── Word Reveal (prevents flash) ───────────────────────────── */
.hero-title, .page-title {
    opacity: 1;
}

.word-reveal {
    display: inline-block;
    will-change: transform, opacity;
}

/* Selection */
::selection {
    background: rgba(120, 190, 32, 0.2);
    color: var(--text-primary);
}

/* Smooth scrollbar (webkit) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(120, 190, 32, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(120, 190, 32, 0.4); }

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--gradient-start);
    outline-offset: 3px;
    border-radius: 4px;
}

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

img {
    max-width: 100%;
    display: block;
    transition: transform 0.5s var(--ease-apple), filter 0.5s ease;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Buttons (shared) ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-apple);
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(120, 190, 32, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after { opacity: 1; }

.btn-primary:hover {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 20px rgba(120, 190, 32, 0.1);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

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

/* ─── Glass Card Base ────────────────────────────────────────── */
.glass-card {
    background: var(--surface);
    backdrop-filter: saturate(180%) var(--blur);
    -webkit-backdrop-filter: saturate(180%) var(--blur);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    transition: all var(--duration) var(--ease-apple);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--border-angle, 0deg), rgba(120, 190, 32, 0.5), transparent 30%, rgba(76, 175, 80, 0.3), transparent 60%, rgba(120, 190, 32, 0.5));
    -webkit-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.5s ease;
    pointer-events: none;
    animation: borderRotate 4s linear infinite;
}

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

@keyframes borderRotate {
    to { --border-angle: 360deg; }
}

.glass-header .glass-card::before,
.glass-header .nav-links::before,
.nav-container *::before {
    display: none !important;
}

.glass-card:hover::before { opacity: 1; }

.glass-card:hover {
    background: var(--surface-hover);
    border-color: var(--surface-border-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 0 20px rgba(120, 190, 32, 0.06);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER — Glass Navigation
   ═══════════════════════════════════════════════════════════════ */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: saturate(180%) var(--blur);
    -webkit-backdrop-filter: saturate(180%) var(--blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s var(--ease-apple);
}

.glass-header.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.7);
    height: 80px;
}

.glass-header.scrolled .logo-img {
    height: 56px;
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease-apple), opacity 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.logo-img {
    height: 74px;
    width: auto;
    transition: all 0.4s var(--ease-apple);
}

.footer .logo-img {
    height: 56px;
}

[data-theme="dark"] .logo-img {
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-links li {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-apple);
    position: relative;
    padding: 8px 14px;
    background: none;
    border: none;
    box-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 1px;
    background: var(--gradient-start);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-apple);
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--gradient-start);
    font-weight: 600;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    padding: 9px 20px;
    font-size: 13px;
    border-radius: 980px;
    position: relative;
}

.btn-nav::before {
    display: none !important;
}

@media (max-width: 768px) {
    .btn-nav { display: none; }
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0.5px solid var(--surface-border);
    background: var(--surface);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-apple);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--surface-border-hover);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun,
:root:not([data-theme]) .icon-sun { display: none; }
[data-theme="light"] .icon-moon,
:root:not([data-theme]) .icon-moon { display: block; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-burger span {
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-apple);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

[data-theme="dark"] .footer {
    background: rgba(255, 255, 255, 0.03);
}

/* Footer Top — Brand + CTA */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.5;
}

.footer-tagline {
    margin-top: 6px !important;
    font-size: 12px !important;
    color: var(--gradient-start) !important;
    letter-spacing: 0.5px;
}

.footer-cta-block {
    text-align: right;
}

.footer-cta-block p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 13px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--surface-border) 20%, rgba(120, 190, 32, 0.15) 50%, var(--surface-border) 80%, transparent);
    margin: 32px 0;
}

/* Footer Grid */
.footer-grid-6 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    text-align: center;
}

.footer-links ul {
    align-items: center;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-links li {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-links a {
    transition: all 0.25s var(--ease-apple);
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--gradient-start);
    background: rgba(120, 190, 32, 0.06);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 0.5px solid var(--surface-border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-legal a:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   CURSOR GLOW — Subtle green halo following mouse
   ═══════════════════════════════════════════════════════════════ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 190, 32, 0.07), transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
    will-change: transform;
    mix-blend-mode: screen;
}

.cursor-glow.active { opacity: 1; }

@media (max-width: 768px) { .cursor-glow { display: none; } }
@media (hover: none) { .cursor-glow { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   ANIMATED GRADIENT TEXT — Shifting gradient on .text-gradient
   ═══════════════════════════════════════════════════════════════ */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gradient,
.hero-gradient {
    background: linear-gradient(135deg, #78BE20, #4CAF50, #8CD232, #78BE20);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING PARTICLES — Ambient background particles
   ═══════════════════════════════════════════════════════════════ */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(120, 190, 32, 0.25);
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 768px) { .particles-container { display: none; } }
@media (prefers-reduced-motion: reduce) { .particles-container { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   SECTION REVEAL — Sections fade in on scroll
   ═══════════════════════════════════════════════════════════════ */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple);
}

.section-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   STAGGERED CHILDREN — Cards cascade in
   ═══════════════════════════════════════════════════════════════ */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-apple), transform 0.6s var(--ease-apple);
}

.stagger-children.in-view > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.in-view > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.in-view > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.in-view > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.in-view > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.in-view > *:nth-child(8) { transition-delay: 0.56s; }
.stagger-children.in-view > *:nth-child(9) { transition-delay: 0.64s; }

.stagger-children.in-view > * {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   MAGNETIC BUTTONS — Slight pull toward cursor
   ═══════════════════════════════════════════════════════════════ */
.btn {
    transition: all 0.35s var(--ease-apple);
    will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED BORDER GLOW — Spinning conic gradient on hover
   ═══════════════════════════════════════════════════════════════ */
@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderSpin {
    to { --border-angle: 360deg; }
}

.glass-card {
    position: relative;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--border-angle),
        transparent 60%,
        rgba(120, 190, 32, 0.4) 80%,
        rgba(76, 175, 80, 0.2) 90%,
        transparent 100%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderSpin 4s linear infinite;
}

.glass-card:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON RIPPLE — Click ripple effect
   ═══════════════════════════════════════════════════════════════ */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleOut 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleOut {
    to { transform: scale(4); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE — Infinite scrolling ticker
   ═══════════════════════════════════════════════════════════════ */
.marquee-wrap {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.marquee-item:hover { color: var(--gradient-start); }

.marquee-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gradient-start);
    opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX — Full-screen image viewer
   ═══════════════════════════════════════════════════════════════ */
.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-apple), visibility 0.35s;
    cursor: zoom-out;
}

.lb-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lb-img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.4s var(--ease-apple), opacity 0.35s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lb-overlay.open .lb-img {
    transform: scale(1);
    opacity: 1;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-apple);
    z-index: 2;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.20);
    color: white;
    transform: scale(1.1);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-apple);
    z-index: 2;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 980px;
    white-space: nowrap;
    max-width: 80vw;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.lb-counter {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE EFFECTS — Scroll reveal + Shine + Cursor-aware glow
   ═══════════════════════════════════════════════════════════════ */

/* Scroll reveal: images fade up on scroll */
.img-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.img-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Zoomable cursor on hoverable images */
.img-zoomable {
    cursor: zoom-in;
}

/* Shine overlay on hover (for img-showcase images) */
.img-showcase {
    position: relative;
}

.img-showcase .img-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255, 255, 255, 0.12),
        transparent 40%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: inherit;
}

.img-showcase:hover .img-shine {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   NEON PULSE — Dark mode breathing glow
   ═══════════════════════════════════════════════════════════════ */
@keyframes neonBreathe {
    0%, 100% { box-shadow: 0 0 20px rgba(120, 190, 32, 0.05), inset 0 1px 0 rgba(255,255,255,0.05); }
    50% { box-shadow: 0 0 30px rgba(120, 190, 32, 0.12), 0 0 60px rgba(120, 190, 32, 0.04), inset 0 1px 0 rgba(255,255,255,0.08); }
}

[data-theme="dark"] .glass-card,
[data-theme="dark"] .bento-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .info-card {
    animation: neonBreathe 5s ease-in-out infinite;
}

[data-theme="dark"] .glass-card:nth-child(2n) { animation-delay: -1.5s; }
[data-theme="dark"] .glass-card:nth-child(3n) { animation-delay: -3s; }

@keyframes neonBorderPulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.10); }
    50% { border-color: rgba(120, 190, 32, 0.20); }
}

[data-theme="dark"] .bento-card,
[data-theme="dark"] .stat-card {
    animation: neonBreathe 5s ease-in-out infinite, neonBorderPulse 5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED HERO GRID — Pulsing radar-style grid
   ═══════════════════════════════════════════════════════════════ */
@keyframes gridPulse {
    0%, 100% { opacity: 0.5; background-size: 60px 60px; }
    50% { opacity: 0.8; background-size: 62px 62px; }
}

.hero-bg-grid {
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridSweep {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

[data-theme="dark"] .hero-bg-grid {
    animation: gridPulse 4s ease-in-out infinite, gridSweep 8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   TEXT SCRAMBLE — Decode effect styles
   ═══════════════════════════════════════════════════════════════ */
.scramble-char {
    transition: opacity 0.1s ease;
}

.scramble-char.decoding {
    color: var(--gradient-start);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL TEXT HIGHLIGHT — Words reveal on scroll
   ═══════════════════════════════════════════════════════════════ */
.scroll-highlight-word {
    display: inline;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.scroll-highlight-word.lit {
    color: var(--text-primary);
}

[data-theme="dark"] .scroll-highlight-word { color: rgba(255,255,255,0.15); }
[data-theme="dark"] .scroll-highlight-word.lit { color: #f5f5f7; }

/* ═══════════════════════════════════════════════════════════════
   KINETIC TITLE — Hero title deform on scroll
   ═══════════════════════════════════════════════════════════════ */
.kinetic-title {
    transition: letter-spacing 0.1s ease, transform 0.1s ease;
    will-change: letter-spacing, transform;
}

/* ═══════════════════════════════════════════════════════════════
   HORIZONTAL SCROLL — Side-scrolling gallery
   ═══════════════════════════════════════════════════════════════ */
.hscroll-section {
    position: relative;
    overflow: hidden;
}

.hscroll-track {
    display: flex;
    gap: 20px;
    padding: 0 40px;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hscroll-track .img-showcase {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
    margin: 0;
}

.hscroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0;
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hscroll-hint svg {
    width: 16px; height: 16px;
    animation: hscrollArrow 1.5s ease-in-out infinite;
}

@keyframes hscrollArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

@media (max-width: 768px) {
    .hscroll-track { padding: 0 20px; gap: 14px; }
    .hscroll-track .img-showcase { min-width: 280px; max-width: 280px; }
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO PORTRAIT — HeyGen-ready phone mockup player
   ═══════════════════════════════════════════════════════════════ */
.video-portrait {
    position: relative;
    width: 280px;
    aspect-ratio: 9 / 16;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.video-portrait video,
.video-portrait iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.video-portrait-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(160deg, rgba(120, 190, 32, 0.08), rgba(0, 0, 0, 0.6));
    text-align: center;
    padding: 32px;
}

.video-portrait-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--gradient-start);
    opacity: 0.6;
}

.video-portrait-placeholder p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.video-portrait-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gradient-start);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 190, 32, 0.2);
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Glow ring around phone */
.video-portrait::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 36px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 60%, rgba(120, 190, 32, 0.3) 80%, transparent 100%);
    z-index: -1;
    animation: borderSpin 6s linear infinite;
    opacity: 0.5;
}

.video-portrait:hover::after { opacity: 1; }

/* Landscape 16:9 video (présentation narrée, sous-titres incrustés) */
.video-landscape {
    position: relative;
    width: 460px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.video-landscape video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border: 0;
    display: block;
}
.video-landscape .video-portrait-badge { z-index: 3; }
.video-landscape::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 60%, rgba(120, 190, 32, 0.3) 80%, transparent 100%);
    z-index: -1;
    animation: borderSpin 6s linear infinite;
    opacity: 0.5;
}
.video-landscape:hover::after { opacity: 1; }

/* Section layout with video */
.video-section-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .video-section-grid { grid-template-columns: 1fr; justify-items: center; }
    .video-portrait { width: 220px; }
}

/* Marquee dark mode edge fades */
[data-theme="dark"] .marquee-wrap::before {
    background: linear-gradient(to right, #0a0a0c, transparent);
}
[data-theme="dark"] .marquee-wrap::after {
    background: linear-gradient(to left, #0a0a0c, transparent);
}

/* Cursor glow brighter in dark mode */
[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(120, 190, 32, 0.10), transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --bg-primary: #0a0a0c;
    --bg-secondary: #111113;
    --bg-tertiary: #161618;
    --surface: rgba(255, 255, 255, 0.10);
    --surface-hover: rgba(255, 255, 255, 0.16);
    --surface-border: rgba(255, 255, 255, 0.15);
    --surface-border-hover: rgba(255, 255, 255, 0.28);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #8e8e93;
    --accent: #78BE20;
    --accent-hover: #8CD232;
    --accent-rgb: 120, 190, 32;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 80px rgba(120, 190, 32, 0.2);
    --code-bg: #0a0a0a;
    --code-text: #f5f5f7;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(circle 600px at 15% 15%, rgba(120, 190, 32, 0.20), transparent),
        radial-gradient(circle 500px at 85% 30%, rgba(76, 175, 80, 0.14), transparent),
        radial-gradient(circle 400px at 45% 80%, rgba(120, 190, 32, 0.12), transparent),
        radial-gradient(circle 300px at 60% 50%, rgba(34, 139, 34, 0.08), transparent);
}

[data-theme="dark"] .glass-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

[data-theme="dark"] .nav-links {
    background: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

[data-theme="dark"] .glass-header.scrolled {
    background: rgba(10, 10, 12, 0.40);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .glass-card {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(120, 190, 32, 0.06);
}

[data-theme="dark"] .btn-primary {
    background: #f5f5f7;
    color: #000000;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgba(120, 190, 32, 0.2);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--text-tertiary);
}

[data-theme="dark"] .form-group select option {
    background: #1c1c1e;
    color: var(--text-primary);
}

[data-theme="dark"] ::selection {
    background: rgba(120, 190, 32, 0.3);
    color: #f5f5f7;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Shared
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.35);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        padding: 16px 24px;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }

    .nav-burger { display: flex; }

    .footer-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-cta-block { text-align: center; }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .footer-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        text-align: center;
    }
}

/* ─── Accessibilité — lien d'évitement clavier ─────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--gradient-start, #78BE20);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ─── Accessibilité — respect de prefers-reduced-motion ────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    /* Sans animation, le diaporama hero (slides opacity:0 par défaut)
       deviendrait noir → on garde la 1ʳᵉ image visible en statique. */
    .hero-slideshow .hero-slide:first-child { opacity: 1 !important; }
}