/* ============================================
   RepairMind Landing Page - Advanced Circuit Theme
   ============================================ */

:root {
    /* Colors */
    --bg-dark: #050507;
    --bg-darker: #020203;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    --primary: #00f2ff;
    --primary-dim: #00a8b3;
    --primary-glow: rgba(0, 242, 255, 0.5);
    --secondary: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.5);
    --accent: #ff6b35;

    --text-main: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #606060;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1400px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
}

/* No-JS Fallback for Bots/SEO */
.no-js .hero-logo,
.no-js .hero-description,
.no-js .hero-cta,
.no-js .hero-stats,
.no-js .hero-visual,
.no-js .highlight-line,
.no-js .title-line,
.no-js .scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
}

.no-js .hero-logo.hidden {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   Horizontal Scroll System
   ============================================ */
.horizontal-wrapper {
    position: relative;
    width: 100%;
}

.horizontal-container {
    display: flex;
    flex-wrap: nowrap;
}

/* Horizontal section - ONLY positioning, preserve internal layout */
.horizontal-section {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    /* IMPORTANT: Don't add display/flex here - let sections keep their own layout */
}

/* Progress bar */
.scroll-progress-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 1000;
    overflow: hidden;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.1s ease-out;
}

/* Section indicators */
.section-indicators {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.section-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Scroll hint arrow */
.scroll-hint {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-hint-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
    animation: scrollArrowPulse 1.5s ease-in-out infinite;
}

.scroll-hint-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

@keyframes scrollArrowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: rotate(-45deg) translateX(0);
    }

    50% {
        opacity: 1;
        transform: rotate(-45deg) translateX(5px);
    }
}

/* Mobile: revert to vertical scroll */
@media (max-width: 1024px) {
    .horizontal-container {
        flex-direction: column;
        width: 100%;
    }

    .horizontal-section {
        width: 100%;
        min-height: auto;
    }

    .scroll-progress-bar,
    .section-indicators,
    .scroll-hint {
        display: none;
    }
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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");
    opacity: 0.04;
    pointer-events: none;
    z-index: 2;
}

/* Circuit Container */
#circuit-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

#circuit-svg {
    width: 100%;
    height: 4000px;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.circuit-path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* PCB Trace Layers - 3-layer design like CTA→Brain */
.pcb-trace-border {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pcb-trace-main {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pcb-trace-inner {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.node-group {
    transition: opacity var(--transition-medium);
}

.node-core {
    filter: url(#glow-intense);
}

.node-pulse {
    /* animation: nodePulse 2s ease-in-out infinite; */
    /* DISABLED */
    transform-origin: center;
    display: none;
    /* Hide completely */
}

/* Circuit Solder Pads - Scroll Animation */
#circuit-svg .solder-pad .pad-copper {
    transition: opacity 0.4s ease, filter 0.4s ease;
}

#circuit-svg .solder-pad .pad-ring {
    transition: opacity 0.4s ease, stroke-width 0.3s ease;
}

#circuit-svg .solder-pad .pad-outer {
    transition: filter 0.4s ease;
}

@keyframes nodePulse {

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

    50% {
        transform: scale(2);
        opacity: 0;
    }
}

.chip {
    transition: all var(--transition-medium);
}

.chip.active {
    fill: rgba(0, 242, 255, 0.1);
    stroke-width: 2;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 100;
    transition: all var(--transition-medium);
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

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

.logo-highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.logo-cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

/* Hero SVG Animation */
.hero-svg-container {
    width: 100%;
    max-width: 700px;
    height: auto;
    perspective: 1000px;
}

#hero-brain-svg {
    width: 100%;
    height: auto;
    transform-style: preserve-3d;
}

.brain-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brain-section {
    transition: opacity 0.5s ease;
}

.tech-dot {
    transform-origin: center;
}

/* Brain Glow Animation */
.brain-glow-outer {
    animation: brain-glow-pulse 3s ease-in-out infinite;
}

@keyframes brain-glow-pulse {

    0%,
    100% {
        opacity: 0.15;
        stroke-width: 14;
    }

    50% {
        opacity: 0.25;
        stroke-width: 18;
    }
}

/* Brain Inner Line */
.brain-inner-line {
    animation: brain-inner-pulse 2s ease-in-out infinite;
}

@keyframes brain-inner-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
    overflow: hidden;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover .nav-link-underline {
    transform: scaleX(1);
    transform-origin: left;
}

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

.nav-link.active .nav-link-underline {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Nav Logo (appears on scroll) */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-right: 2rem;
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-logo .logo-highlight {
    color: var(--primary);
}

.nav-logo .logo-cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

.nav-logo.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Hero Logo (hides on scroll) */
.hero-logo {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-logo.hidden {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
}

/* Nav scrolled state - keep transparent */
.glass-nav.scrolled {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

/* CTA Buttons */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    min-width: 140px;
    /* Consistent button width for i18n */
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    color: var(--bg-dark);
    border: none;
}

.cta-button.primary .cta-glow {
    position: absolute;
    inset: -2px;
    background: var(--primary);
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
    transition: opacity var(--transition-medium);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--primary-glow);
}

.cta-button.primary:hover .cta-glow {
    opacity: 0.6;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.cta-button.secondary .cta-border {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--primary), transparent);
    -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 var(--transition-medium);
}

.cta-button.secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

.cta-button.secondary:hover .cta-border {
    opacity: 1;
}

.nav-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
}

/* Main Content */
#content {
    position: relative;
    z-index: 10;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: var(--section-padding) 5%;
    display: flex;
    align-items: center;
    position: relative;
}

.section-content {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding-top: 30px;
    align-items: flex-start;
}

.hero-section .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* CTA buttons container */
.hero-cta {
    position: relative;
    display: inline-flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Hero SVG Overlay for connections between elements */
.hero-overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

/* Solder Pad Styles */
.solder-pad {
    transition: transform 0.3s ease;
}

.pad-copper {
    transition: filter 0.3s ease;
}

/* Energy particle on trace */
.energy-particle {
    filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #00f2ff) drop-shadow(0 0 12px #00f2ff);
}

.energy-particle.violet {
    filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #a855f7) drop-shadow(0 0 12px #7000ff);
}

/* Hero Logo (moved from header) */
.hero-logo {
    position: absolute;
    top: 20px;
    left: 5%;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 5.5rem;
    letter-spacing: 4px;
    z-index: 10;
}

.hero-logo .logo-text {
    color: var(--text-main);
}

.hero-logo .logo-highlight {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-logo .logo-cursor {
    color: var(--primary);
    animation: cursor-blink 1s step-end infinite;
    margin-left: 2px;
}

@media (max-width: 768px) {
    .hero-logo {
        font-size: 2.8rem;
    }
}

.hero-badge {
    position: absolute;
    top: 85px;
    right: 12%;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 30px;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes pulse {

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

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

.hero-content {
    margin-top: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-line {
    display: block;
    opacity: 1;
    /* Made visible for debugging */
}

.highlight-line {
    color: var(--primary);
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
}

.highlight-text {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 40px var(--primary-glow);
}

.highlight-glow {
    position: absolute;
    inset: -10px -20px;
    background: var(--primary);
    filter: blur(40px);
    opacity: 0.2;
    z-index: 0;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 13rem;
    /* Increased spacing after removing H1 title */
    margin-bottom: 1.5rem;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
}

.text-highlight {
    color: var(--text-main);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.cta-icon {
    font-size: 0.7rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.stat {
    text-align: left;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
}

/* Module Navigation Links (Interactive) */
.module-link {
    cursor: pointer;
    text-decoration: none;
}

.module-box-interactive rect {
    transition: fill 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

.module-box-interactive text {
    transition: fill 0.3s ease;
}

.module-link:hover .module-box-interactive rect {
    fill: rgba(0, 242, 255, 0.3);
    stroke-width: 2;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

.module-link:hover .module-box-interactive rect[stroke="#7000ff"] {
    fill: rgba(112, 0, 255, 0.3);
    filter: drop-shadow(0 0 8px rgba(112, 0, 255, 0.5));
}

.module-link:hover .module-box-interactive text {
    fill: #fff;
}

.visual-container {
    position: relative;
}

.visual-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
}

.visual-frame.large {
    border-radius: 12px;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    z-index: 10;
}

.frame-corner.top-left {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.frame-corner.top-right {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bottom-left {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.frame-corner.bottom-right {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.visual-img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.8);
    transition: filter var(--transition-medium);
}

.visual-frame:hover .visual-img {
    filter: saturate(1);
}

.visual-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanline 3s linear infinite;
    opacity: 0.5;
}

@keyframes scanline {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.visual-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.2;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

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

    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 30%);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2s;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--glass-border), transparent);
    position: relative;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes scrollDot {

    0%,
    100% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 50px;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

/* Section Headers */
.section-header {
    text-align: left;
    margin-bottom: 4rem;
}

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

.section-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-badge.purple {
    background: rgba(112, 0, 255, 0.1);
    border-color: rgba(112, 0, 255, 0.2);
    color: var(--secondary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title.large {
    font-size: 3.5rem;
}

.title-highlight {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.title-highlight.purple {
    color: var(--secondary);
    text-shadow: 0 0 30px var(--secondary-glow);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    max-width: 500px;
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0;
}

.process-step {
    position: relative;
}

.step-card {
    position: relative;
    width: 280px;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.step-card:hover::before,
.process-step.active .step-card::before {
    opacity: 1;
}

.step-card:hover,
.process-step.active .step-card {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: 0;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.step-icon svg {
    width: 40px;
    height: 40px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.process-arrow {
    color: var(--primary);
    opacity: 0.5;
}

.process-arrow svg {
    width: 40px;
    height: 24px;
}

/* Feature Visual */
.feature-visual {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.feature-visual .visual-frame {
    max-width: 1000px;
    width: 100%;
}

/* ========================================
   MAGIC CYCLE - Le Flux Magique Section
   ======================================== */
.magic-cycle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.cycle-step {
    position: relative;
}

.cycle-card {
    position: relative;
    width: 200px;
    height: 220px;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cycle-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.cycle-card:hover::before,
.cycle-step.active .cycle-card::before {
    opacity: 1;
}

.cycle-card:hover,
.cycle-step.active .cycle-card {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cycle-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: 0;
}

.cycle-number {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.cycle-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.cycle-icon.cyan {
    color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.cycle-icon.purple {
    color: var(--accent);
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.cycle-icon svg {
    width: 28px;
    height: 28px;
}

.cycle-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.cycle-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.cycle-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    color: #fff;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.cycle-arrow {
    color: var(--primary);
    opacity: 0.5;
    flex-shrink: 0;
}

.cycle-arrow svg {
    width: 30px;
    height: 20px;
}

/* Magic Highlight Box */
.magic-highlight {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.08), rgba(138, 43, 226, 0.08));
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.magic-highlight-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    color: #fff;
}

.magic-highlight-icon svg {
    width: 32px;
    height: 32px;
}

.magic-highlight-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.magic-highlight-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.magic-highlight-content strong {
    color: var(--primary);
}

/* Magic Cycle Responsive */
@media (max-width: 1200px) {
    .magic-cycle {
        gap: 0.5rem;
    }

    .cycle-card {
        width: 180px;
        padding: 1.25rem 0.75rem;
    }

    .cycle-arrow svg {
        width: 24px;
    }
}

@media (max-width: 900px) {
    .magic-cycle {
        flex-direction: column;
        gap: 1rem;
    }

    .cycle-card {
        width: 260px;
    }

    .cycle-arrow {
        transform: rotate(90deg);
    }

    .magic-highlight {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

/* Split Section */
.split-section .section-content.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.split-text {
    padding-right: 2rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.feature-list li:hover {
    color: var(--text-main);
    padding-left: 0.5rem;
}

.feature-icon {
    color: var(--secondary);
    font-size: 0.8rem;
}

.split-visual .visual-frame {
    max-width: 550px;
}

/* Parallax 3D Image Effect */
.parallax-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.parallax-3d-img {
    max-width: 550px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 242, 255, 0.1);
}

.parallax-3d-img:hover {
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 242, 255, 0.2);
}

/* Full Page Background Section (DNA/Traceability) */
.fullpage-bg-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.fullpage-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.fullpage-bg-image .fullpage-img {
    max-width: none;
    width: auto;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.fullpage-bg-overlay {
    display: none;
    /* Removed - no overlay gradient */
}

.fullpage-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 5rem 8%;
}

.fullpage-text-box {
    max-width: 550px;
    padding: 2rem;
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.fullpage-text-box .section-title {
    font-size: 3.5rem;
}

.fullpage-text-box .section-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .fullpage-text-box {
        max-width: 100%;
    }

    .fullpage-text-box .section-title {
        font-size: 2.5rem;
    }
}

/* Bento Grid */
.bento-section {
    padding: var(--section-padding) 5%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.bento-card .card-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: border-color var(--transition-medium);
    pointer-events: none;
}

.bento-card:hover .card-border {
    border-color: var(--primary);
}

.bento-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.bento-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card .card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bento-card .card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: all var(--transition-medium);
}

.bento-card:hover .card-bg img {
    opacity: 0.5;
    transform: scale(1.05);
}

.bento-card .card-content,
.bento-card h3,
.bento-card p {
    position: relative;
    z-index: 1;
}

.bento-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   Ecosystem Section (New Design)
   ============================================ */
.ecosystem-section {
    padding: var(--section-padding) 5%;
    align-items: flex-start;
    padding-top: 70px;
    padding-bottom: 40px;
}

.ecosystem-section .section-header {
    margin-bottom: 0;
}

.ecosystem-section .section-title.large {
    font-size: 2.8rem;
}

.ecosystem-section .section-subtitle {
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.eco-card {
    position: relative;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.eco-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.eco-card:hover .eco-card-glow {
    opacity: 1;
}

.eco-card:hover .eco-card-glow.purple {
    opacity: 1;
}

.eco-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.eco-card-glow.purple {
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.eco-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all var(--transition-medium);
}

.eco-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
}

.eco-icon.purple {
    background: rgba(112, 0, 255, 0.1);
    border-color: rgba(112, 0, 255, 0.3);
}

.eco-icon.purple svg {
    stroke: var(--secondary);
}

.eco-card:hover .eco-icon {
    transform: scale(1.1);
    background: rgba(0, 242, 255, 0.2);
}

.eco-card:hover .eco-icon.purple {
    background: rgba(112, 0, 255, 0.2);
}

.eco-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.eco-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Ecosystem Highlight (bottom banner) */
.ecosystem-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(112, 0, 255, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* Globe SVG Icon */
.highlight-icon.globe-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon.globe-icon svg {
    width: 100%;
    height: 100%;
    animation: globe-float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.3));
}

@keyframes globe-float {

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

    50% {
        transform: translateY(-3px) scale(1.02);
    }
}

.highlight-icon.globe-icon .globe-ring {
    animation: globe-pulse 3s ease-in-out infinite;
}

@keyframes globe-pulse {

    0%,
    100% {
        stroke-width: 2;
        opacity: 1;
    }

    50% {
        stroke-width: 2.5;
        opacity: 0.8;
    }
}

.highlight-icon.globe-icon .connection {
    stroke-dasharray: 50;
}

.highlight-icon.globe-icon .node {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Hover effect */
.ecosystem-highlight:hover .globe-icon svg {
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.5));
    animation: globe-float-hover 2s ease-in-out infinite;
}

@keyframes globe-float-hover {

    0%,
    100% {
        transform: translateY(0) scale(1.05);
    }

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

.highlight-content h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.highlight-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Beta Section */
.beta-section {
    background: linear-gradient(180deg, transparent 0%, rgba(112, 0, 255, 0.05) 50%, transparent 100%);
    align-items: flex-start;
    padding-top: 100px;
}

.beta-container {
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.beta-badge-large {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(112, 0, 255, 0.1);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.beta-pulse {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: betaPulse 2s ease-out infinite;
}

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

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

.beta-cards {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.beta-card {
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(112, 0, 255, 0.2);
    border-radius: 12px;
    text-align: left;
    transition: all var(--transition-medium);
    min-height: 200px;
    overflow: hidden;
}

.beta-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    background: rgba(112, 0, 255, 0.05);
}

.beta-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.beta-icon {
    font-size: 1.5rem;
}

.beta-icon-svg {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(112, 0, 255, 0.15);
    color: var(--secondary);
}

.beta-icon-svg.cyan {
    background: rgba(0, 242, 255, 0.15);
    color: var(--primary);
}

.beta-icon-svg svg {
    width: 24px;
    height: 24px;
}

.beta-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: rgba(112, 0, 255, 0.2);
    border-radius: 4px;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.beta-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.beta-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.beta-tag.purple {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(112, 0, 255, 0.3));
    color: #c084fc;
    border: 1px solid rgba(138, 43, 226, 0.4);
}

.beta-card.coming-soon {
    border-color: rgba(138, 43, 226, 0.3);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(112, 0, 255, 0.02));
}

.beta-card.coming-soon:hover {
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
}

/* Beta Coming Soon Text */
.beta-coming-soon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.beta-coming-soon-text .coming-dots {
    color: var(--primary);
    opacity: 0.6;
    letter-spacing: 0.3em;
    animation: pulseDots 2s ease-in-out infinite;
}

.beta-coming-soon-text .coming-text {
    background: linear-gradient(90deg,
            var(--primary) 0%,
            #a855f7 50%,
            var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.beta-coming-soon-text .coming-sparkle {
    color: var(--secondary);
    font-size: 1.5rem;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes pulseDots {

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

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes sparkle {

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

    25% {
        opacity: 1;
        transform: rotate(15deg) scale(1.2);
    }

    50% {
        opacity: 0.8;
        transform: rotate(0deg) scale(1.1);
    }

    75% {
        opacity: 1;
        transform: rotate(-15deg) scale(1.2);
    }
}

/* Footer */
.footer {
    padding: 4rem 5% 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-partners {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partners-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
}

.partner-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.partner-link:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 3rem auto 0;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin-bottom: 2rem;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

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

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

    .bento-card.featured {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }
}

@media (max-width: 968px) {
    .hero-section .section-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

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

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

    .hero-visual {
        margin-top: 2rem;
    }

    .split-section .section-content.split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-text {
        padding-right: 0;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .process-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .beta-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Background elements mobile */
    #circuit-container {
        display: none;
    }

    .bg-grid {
        opacity: 0.5;
    }

    /* Hero Mobile Fixes */
    .hero-section {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 2rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Override position:absolute on logo and badge */
    .hero-logo {
        order: 1;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .hero-badge {
        order: 2;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 0 auto 1rem;
        justify-content: center;
    }

    .hero-title {
        order: 3;
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-description {
        order: 4;
        font-size: 0.95rem;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        order: 5;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-stats {
        order: 6;
    }

    /* Force visibility on mobile (animations may not trigger) */
    .hero-title,
    .hero-title .title-line,
    .hero-description,
    .hero-cta,
    .hero-stats {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-cta .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .stat {
        min-width: 80px;
        text-align: center;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Hide brain SVG on mobile */
    .hero-visual {
        display: none;
    }

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

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

    .bento-card.featured {
        grid-column: span 1;
        height: 350px;
    }

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

    .eco-card {
        padding: 1.5rem;
    }

    .ecosystem-highlight {
        flex-direction: column;
        text-align: center;
    }

    .ecosystem-highlight .highlight-icon.globe-icon {
        width: 50px;
        height: 50px;
        display: flex;
    }

    .ecosystem-highlight .highlight-icon.globe-icon svg {
        width: 100%;
        height: 100%;
    }

    /* ===== SECTION GENERAL MOBILE ===== */
    .section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .section-content {
        padding: 0 0.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .section-title.large {
        font-size: 1.8rem;
    }

    .section-subtitle,
    .section-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .section-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    /* ===== ECOSYSTEM SECTION MOBILE ===== */
    .ecosystem-section {
        padding-top: 2rem;
    }

    .ecosystem-section .section-title.large {
        font-size: 1.5rem;
        word-break: break-word;
    }

    .eco-card {
        padding: 1.25rem;
    }

    .eco-card h3 {
        font-size: 1rem;
    }

    .eco-card p {
        font-size: 0.85rem;
    }

    .eco-icon {
        width: 40px;
        height: 40px;
    }

    /* ===== MAGIC CYCLE (AUTOFACTURE) MOBILE ===== */
    .feature-section {
        padding-top: 2rem;
    }

    .magic-cycle {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .cycle-card {
        width: 100%;
        max-width: 300px;
        padding: 1rem;
    }

    .cycle-arrow {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }

    .cycle-arrow svg {
        width: 24px;
        height: 16px;
    }

    .cycle-number {
        font-size: 0.8rem;
    }

    .cycle-title {
        font-size: 0.9rem;
    }

    .cycle-desc {
        font-size: 0.75rem;
    }

    .cycle-icon {
        width: 36px;
        height: 36px;
    }

    .cycle-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }

    /* Auto-stock result mobile */
    .autostock-result {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .autostock-result h4 {
        font-size: 0.9rem;
    }

    .result-items {
        gap: 0.5rem;
    }

    .result-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* ===== TRACEABILITY SECTION MOBILE ===== */
    .fullpage-bg-section {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .fullpage-bg-image {
        opacity: 0.3;
    }

    .fullpage-content {
        padding: 1rem 0.5rem;
    }

    .fullpage-text-box {
        max-width: 100%;
        text-align: center;
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        box-sizing: border-box;
    }

    .fullpage-text-box .section-badge {
        font-size: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .fullpage-text-box .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .fullpage-text-box .section-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        padding: 0;
    }

    .feature-list {
        text-align: left;
        padding-left: 0;
        margin: 0;
    }

    .feature-list li {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        padding: 0;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .feature-icon {
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    /* ===== AI BETA SECTION MOBILE ===== */
    .beta-section {
        padding: 3rem 1rem;
        padding-top: 2rem;
    }

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

    .beta-badge-large {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .beta-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .beta-card {
        padding: 1rem;
    }

    .beta-card h4 {
        font-size: 0.9rem;
    }

    .beta-card p {
        font-size: 0.8rem;
    }

    .beta-icon {
        width: 32px;
        height: 32px;
    }

    /* ===== FOOTER MOBILE ===== */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-partners {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* ===== HORIZONTAL SCROLL DISABLED ON MOBILE ===== */
    .horizontal-section {
        width: 100%;
        min-width: auto;
    }

    #horizontal-container {
        display: block;
        width: 100%;
        overflow: visible;
    }

    #horizontal-wrapper {
        display: block;
        width: 100%;
        transform: none !important;
    }
}

/* PCB Trace & Solder Point Styles */
.pcb-trace {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.solder-point {
    animation: solder-pulse 2s ease-in-out infinite;
}

.solder-start {
    animation-delay: 0s;
}

.solder-end {
    animation-delay: 0.5s;
}

@keyframes solder-pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.energy-particle {
    filter: drop-shadow(0 0 8px #fff);
}

/* CTA to Brain connection animation */
.cta-particle {
    filter: drop-shadow(0 0 12px #00f2ff) drop-shadow(0 0 20px #fff);
}

.cta-particle-reverse {
    filter: drop-shadow(0 0 8px #00f2ff);
    opacity: 0.7;
}

/* Brain Particles - Interactive */
.brain-particle {
    filter: drop-shadow(0 0 3px currentColor);
    transition: opacity 0.3s ease;
}

.tech-dot {
    filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 10px currentColor);
}

/* Animated Brain Sections */
.animated-section {
    animation: section-pulse 3s ease-in-out infinite;
}

.animated-section:nth-child(2) {
    animation-delay: 1s;
}

.animated-section:nth-child(3) {
    animation-delay: 2s;
}

@keyframes section-pulse {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.4;
    }
}

/* Hero brain visible on all devices - circuit has bridge connection only */

/* ============================================
   Autofacture PCB Overlay
   ============================================ */
.autofacture-pcb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

/* Autofacture section - ensure relative positioning and proper stacking */
#autofacture {
    position: relative;
    align-items: flex-start;
    padding-top: 100px;
}

#autofacture .section-header {
    margin-bottom: 2rem;
}

#autofacture .section-content {
    position: relative;
    z-index: 3;
}

.af-trace-border {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.af-trace-main {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.af-trace-inner {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.af-solder-pad {
    transition: transform 0.3s ease;
}

.af-solder-pad .pad-copper {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.af-solder-pad.active .pad-copper {
    filter: url(#af-pcb-glow) brightness(1.3);
}

.af-solder-pad.active .pad-ring {
    opacity: 1;
    stroke-width: 2;
}

/* ============================================
   Capacitor Burn Animation
   ============================================ */

/* Burning state for capacitor */
.smd-capacitor.burning .cap-body {
    animation: cap-burn-body 1.5s ease-out;
}

.smd-capacitor.burning .cap-pad {
    animation: cap-burn-pad 1.5s ease-out;
}

.smd-capacitor.burning .burn-effects {
    animation: burn-effects-show 1.5s ease-out;
}

.smd-capacitor.burning .spark {
    animation: spark-flicker 0.3s ease-in-out infinite;
}

.smd-capacitor.burning .smoke.s1 {
    animation: smoke-rise 1.5s ease-out;
}

.smd-capacitor.burning .smoke.s2 {
    animation: smoke-rise 1.5s ease-out 0.1s;
}

.smd-capacitor.burning .smoke.s3 {
    animation: smoke-rise 1.5s ease-out 0.2s;
}

/* Capacitor body burns orange then back */
@keyframes cap-burn-body {
    0% {
        stroke: currentColor;
        fill: #1a1a2e;
    }

    20% {
        stroke: #ff6600;
        fill: #3d1a0a;
    }

    40% {
        stroke: #ff4400;
        fill: #4d1a0a;
    }

    100% {
        stroke: currentColor;
        fill: #1a1a2e;
    }
}

/* Pads glow orange */
@keyframes cap-burn-pad {
    0% {
        fill: currentColor;
    }

    20% {
        fill: #ff8800;
    }

    40% {
        fill: #ffaa00;
    }

    100% {
        fill: currentColor;
    }
}

/* Burn effects fade in and out */
@keyframes burn-effects-show {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    60% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
    }
}

/* Sparks flicker */
@keyframes spark-flicker {

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

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

/* Smoke rises and fades */
@keyframes smoke-rise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    20% {
        opacity: 0.5;
        transform: translateY(-5px) scale(0.8);
    }

    50% {
        opacity: 0.4;
        transform: translateY(-15px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(1.5);
    }
}

/* ============================================
   Phone Glitch Animation
   ============================================ */

/* Glitching state for phone */
.phone-icon.glitching .phone-screen {
    animation: phone-screen-glitch 0.8s ease-out;
}

.phone-icon.glitching .phone-frame {
    animation: phone-frame-shake 0.8s ease-out;
}

.phone-icon.glitching .glitch-effects {
    animation: phone-glitch-show 0.8s ease-out;
}

.phone-icon.glitching .glitch-line {
    animation: glitch-line-flicker 0.8s ease-out;
}

.phone-icon.glitching .glitch-line.gl1 {
    animation-delay: 0ms;
}

.phone-icon.glitching .glitch-line.gl2 {
    animation-delay: 100ms;
}

.phone-icon.glitching .glitch-line.gl3 {
    animation-delay: 200ms;
}

.phone-icon.glitching .glitch-block {
    animation: glitch-block-flash 0.8s ease-out;
}

.phone-icon.glitching .glitch-flash {
    animation: glitch-flash-pulse 0.8s ease-out;
}

/* Phone screen flickers */
@keyframes phone-screen-glitch {

    0%,
    100% {
        stroke-opacity: 1;
    }

    10% {
        stroke-opacity: 0.3;
        stroke: #ff00ff;
    }

    20% {
        stroke-opacity: 1;
        stroke: currentColor;
    }

    30% {
        stroke-opacity: 0.5;
        stroke: #00ffff;
    }

    40% {
        stroke-opacity: 1;
    }

    60% {
        stroke-opacity: 0.2;
        stroke: #ff0066;
    }

    70% {
        stroke-opacity: 0.8;
    }
}

/* Phone frame shakes slightly */
@keyframes phone-frame-shake {

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

    10% {
        transform: translateX(-1px);
    }

    20% {
        transform: translateX(1px);
    }

    30% {
        transform: translateX(-0.5px);
    }

    40% {
        transform: translateX(0.5px);
    }

    50% {
        transform: translateX(-1px);
    }

    60% {
        transform: translateX(0);
    }
}

/* Show glitch effects overlay */
@keyframes phone-glitch-show {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    70% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}

/* Glitch lines flicker horizontally */
@keyframes glitch-line-flicker {
    0% {
        opacity: 0;
        transform: translateX(0) scaleX(0.3);
    }

    15% {
        opacity: 1;
        transform: translateX(-2px) scaleX(1);
    }

    30% {
        opacity: 0.5;
        transform: translateX(3px) scaleX(0.8);
    }

    45% {
        opacity: 1;
        transform: translateX(-1px) scaleX(1.1);
    }

    60% {
        opacity: 0.3;
        transform: translateX(2px) scaleX(0.6);
    }

    75% {
        opacity: 0.8;
        transform: translateX(0) scaleX(1);
    }

    100% {
        opacity: 0;
        transform: translateX(0) scaleX(0.3);
    }
}

/* Glitch blocks flash and shift */
@keyframes glitch-block-flash {

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

    20% {
        opacity: 0.6;
        transform: translateX(-3px);
    }

    40% {
        opacity: 0.3;
        transform: translateX(2px);
    }

    60% {
        opacity: 0.5;
        transform: translateX(-1px);
    }

    80% {
        opacity: 0.2;
        transform: translateX(1px);
    }
}

/* Screen flash pulse */
@keyframes glitch-flash-pulse {

    0%,
    100% {
        opacity: 0;
    }

    15% {
        opacity: 0.4;
    }

    30% {
        opacity: 0.1;
    }

    45% {
        opacity: 0.5;
    }

    60% {
        opacity: 0.2;
    }

    75% {
        opacity: 0.3;
    }
}

/* ============================================
   IC Chip LED Animation
   ============================================ */

/* LED blinking state */
.has-led.led-active .led-indicator {
    animation: led-blink 0.15s ease-out;
}

.has-led.led-active .led-glow {
    animation: led-glow-pulse 0.15s ease-out;
}

/* LED blink animation */
@keyframes led-blink {
    0% {
        fill: #00ff00;
        opacity: 0.3;
    }

    50% {
        fill: #00ff00;
        opacity: 1;
    }

    100% {
        fill: #00ff00;
        opacity: 0.3;
    }
}

/* LED glow pulse */
@keyframes led-glow-pulse {
    0% {
        opacity: 0;
        r: 6;
    }

    50% {
        opacity: 0.6;
        r: 10;
    }

    100% {
        opacity: 0;
        r: 6;
    }
}

/* ============================================
   Invoice Stamp Animation
   ============================================ */

/* Stamp appearing state */
.invoice-icon.stamped .stamp {
    animation: stamp-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Stamp appear with bounce */
@keyframes stamp-appear {
    0% {
        opacity: 0;
        transform: translate(5px, 18px) rotate(-12deg) scale(2);
    }

    60% {
        opacity: 1;
        transform: translate(5px, 18px) rotate(-12deg) scale(0.9);
    }

    80% {
        transform: translate(5px, 18px) rotate(-12deg) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translate(5px, 18px) rotate(-12deg) scale(1);
    }
}

/* Stamp fade out */
.invoice-icon.stamp-fade .stamp {
    animation: stamp-fade 0.5s ease-out forwards;
}

@keyframes stamp-fade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ============================================
   Language Selector (i18n)
   ============================================ */

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    filter: grayscale(50%);
}

.lang-btn:hover {
    opacity: 0.8;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

@media (max-width: 768px) {
    .lang-selector {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }

    .lang-btn {
        font-size: 1rem;
        padding: 0.25rem 0.4rem;
    }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 7, 0.98);
    border-top: 1px solid rgba(0, 242, 255, 0.3);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 255, 0.1);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-glow);
}

.cookie-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.cookie-btn-accept:hover {
    box-shadow: 0 0 30px var(--primary-glow), 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.cookie-btn-refuse {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.cookie-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--glass-border-hover);
}

/* Cookie Banner Mobile */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }

    .cookie-title {
        font-size: 0.9rem;
    }

    .cookie-desc {
        font-size: 0.85rem;
    }

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

    .cookie-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
    }
}