/* ============================================================
   LYSILABS — Modern Design System
   Version: 2.0
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --bg-base: #05050f;
    --bg-surface: #0d0d20;
    --bg-elevated: #13132a;
    --bg-card: rgba(255, 255, 255, 0.03);

    --color-primary: #6366f1;
    --color-secondary: #8b5cf6;
    --color-accent: #06b6d4;
    --color-success: #10b981;

    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(99, 102, 241, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.09);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ── Utilities ──────────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

.section-padding {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Reveal animation classes */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-lys-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-brand);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-lys-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: var(--transition);
}

.btn-lys-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

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

.btn-lys-primary:hover {
    color: #fff;
}

.btn-lys-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn-lys-ghost:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

/* ── Navigation ─────────────────────────────────────────────── */
.lys-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}

.lys-nav.scrolled {
    background: rgba(5, 5, 15, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.875rem 0;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    width: 36px;
    height: 36px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-cta {
    margin-left: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-cta-mobile {
    display: none;
}

@media (max-width: 991px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(13, 13, 32, 0.97);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-subtle);
        padding: 1.5rem 2rem 2rem;
        gap: 0.5rem;
    }

    .nav-links.open .nav-cta-mobile {
        display: flex;
        margin-top: 0.75rem;
        justify-content: center;
    }
}

/* ── Hero ───────────────────────────────────────────────────── */
.lys-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

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

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 820px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-typing {
    display: inline;
    color: var(--color-accent);
    border-right: 2px solid var(--color-accent);
    padding-right: 2px;
    animation: blink 0.9s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-metrics {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .hero-content {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hero-metrics {
        gap: 1.5rem;
    }

    .hero-metric {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

.hero-metric-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ── About / Mission ────────────────────────────────────────── */
.lys-about {
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.lys-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-brand);
    opacity: 0.4;
}

.about-flex {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-flex > * {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991px) {
    .about-flex {
        flex-direction: column;
        gap: 3rem;
    }
}

.about-visual {
    position: relative;
}

.about-visual-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
}


.about-tags-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.about-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    flex: 1 1 calc(50% - 0.325rem);
    min-width: 0;
    box-sizing: border-box;
}

.about-tag:hover {
    border-color: var(--border-accent);
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-2px);
}

.about-tag-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.about-tag-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 0;
    line-height: 1.3;
}

@media (max-width: 420px) {
    .about-tags-flex .about-tag {
        flex: 1 1 100%;
    }
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-faq {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    list-style: none;
}

.faq-question::marker,
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: var(--transition);
}

details[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── Services ───────────────────────────────────────────────── */
.lys-services {
    background: var(--bg-base);
}

.services-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.services-header p {
    font-size: 1.05rem;
    margin-top: 1rem;
}

.services-flex {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.services-flex > * {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 0;
}

@media (max-width: 991px) {
    .services-flex > * {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

@media (max-width: 600px) {
    .services-flex > * {
        flex: 1 1 100%;
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

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

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(99, 102, 241, 0.22);
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ── Tech Stack ─────────────────────────────────────────────── */
.lys-tech {
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.lys-tech::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

.tech-header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 3.5rem;
    padding: 20px;
}

.tech-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.tech-badge:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.tech-badge span {
    font-size: 1rem;
}

/* ── Clients ────────────────────────────────────────────────── */
.lys-clients {
    background: var(--bg-base);
}

.clients-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.clients-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 3rem;
}

.client-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.client-name:hover {
    color: var(--text-secondary);
}

/* ── Contact ────────────────────────────────────────────────── */
.lys-contact {
    background: var(--bg-surface);
}

.contact-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.contact-detail-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--border-accent);
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

/* Form */
.contact-form {
    flex: 1.4;
    min-width: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.form-control-lys {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.form-control-lys::placeholder {
    color: var(--text-muted);
}

.form-control-lys:focus {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

select.form-control-lys option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

textarea.form-control-lys {
    resize: vertical;
    min-height: 130px;
}

.form-submit {
    margin-top: 0.75rem;
    width: 100%;
}

/* ── Footer ─────────────────────────────────────────────────── */
.lys-footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

.footer-brand {
    min-width: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 300px;
}

.footer-col {
    min-width: 0;
}

.footer-col h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

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

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-secondary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
}

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

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* ── Toast notification ─────────────────────────────────────── */
.lys-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--color-success);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 340px;
}

.lys-toast.show {
    transform: translateX(0);
}

@media (max-width: 480px) {
    .lys-toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
        transform: translateY(120%);
    }

    .lys-toast.show {
        transform: translateY(0);
    }
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-msg {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   LYSILABS v3.0 — Enhanced Visuals, New Sections & Animations
   ══════════════════════════════════════════════════════════════ */

/* ── Noise overlay ──────────────────────────────────────────── */
.noise-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.028;
    mix-blend-mode: overlay;
}

/* ── Cursor spotlight ───────────────────────────────────────── */
#cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.045) 0%, rgba(139, 92, 246, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

/* ── Hero Split Layout ──────────────────────────────────────── */
.hero-split {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    min-width: 0;
}

.hero-right {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1100px) {
    .hero-right {
        flex: 0.85;
    }
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        gap: 3rem;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .hero-right {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .hero-split {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hero-metrics {
        gap: 1.5rem;
    }

    .hero-metric {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

/* ── Code Card ──────────────────────────────────────────────── */
.code-card {
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    line-height: 1.75;
    position: relative;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.12),
        0 0 80px rgba(99, 102, 241, 0.18),
        0 24px 64px rgba(0, 0, 0, 0.7);
    animation: float 7s ease-in-out infinite;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.code-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 25% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 55%);
    pointer-events: none;
}

.code-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.code-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.code-dot:nth-child(1) {
    background: #ff5f57;
    box-shadow: 0 0 6px rgba(255, 95, 87, 0.5);
}

.code-dot:nth-child(2) {
    background: #febc2e;
    box-shadow: 0 0 6px rgba(254, 188, 46, 0.5);
}

.code-dot:nth-child(3) {
    background: #28c840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
}

.code-filename {
    margin-left: auto;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.06em;
}

.code-body {
    display: block;
    font-style: normal;
}

.code-line {
    display: block;
    white-space: pre;
    min-height: 1.2em;
}

/* Syntax token colors */
.tok-keyword {
    color: #c792ea;
}

.tok-decorator {
    color: #82aaff;
}

.tok-class {
    color: #ffcb6b;
}

.tok-string {
    color: #c3e88d;
}

.tok-comment {
    color: #4a5568;
    font-style: italic;
}

.tok-fn {
    color: #82aaff;
}

.tok-param {
    color: #f78c6c;
}

.tok-type {
    color: #89ddff;
}

.tok-punct {
    color: rgba(255, 255, 255, 0.42);
}

/* Blinking cursor inside code card */
.code-cursor {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background: var(--color-accent);
    vertical-align: text-bottom;
    border-radius: 1px;
    animation: blink 0.9s step-end infinite;
    margin-left: 1px;
}

/* Float animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-14px) rotate(0.6deg);
    }

    66% {
        transform: translateY(-7px) rotate(-0.4deg);
    }
}

/* ── AI Section ─────────────────────────────────────────────── */
.lys-ai {
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(99,102,241,0.04) 50%, var(--bg-base) 100%);
    position: relative;
    overflow: hidden;
}

.lys-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ai-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ai-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.ai-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.ai-statement {
    margin: 0 auto 3.5rem;
    max-width: 800px;
}

.ai-quote {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.ai-quote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 8rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.08;
    font-family: var(--font-display);
    pointer-events: none;
}

.ai-quote p {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1.5;
    margin: 0;
}

.ai-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.ai-pillar {
    flex: 1 1 calc(25% - 1.125rem);
    min-width: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ai-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ai-pillar:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.1);
}

.ai-pillar:hover::before {
    transform: scaleX(1);
}

.ai-pillar-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.ai-pillar h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.ai-pillar p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .ai-pillars .ai-pillar {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

@media (max-width: 600px) {
    .ai-pillars .ai-pillar {
        flex: 1 1 100%;
    }
    .ai-quote {
        padding: 1.75rem 1.5rem;
    }
    .ai-quote p {
        font-size: 1.1rem;
    }
}

.ai-watch {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
}

.ai-watch-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.ai-watch-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.ai-watch-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .ai-watch {
        flex-direction: column;
        padding: 1.75rem;
    }
}

/* ── Process Section ────────────────────────────────────────── */
.lys-process {
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.lys-process::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.process-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.process-header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 5rem;
}

.process-header p {
    margin-top: 1rem;
    font-size: 1.05rem;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.process-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.process-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.22;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    transition: opacity var(--transition);
}

.process-step:hover .process-num {
    opacity: 0.55;
}

.process-step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
    transition: transform var(--transition);
}

.process-step:hover .process-step-icon {
    transform: scale(1.15) translateY(-3px);
}

.process-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.process-step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 220px;
    margin: 0 auto;
}

/* Connector between steps */
.process-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 3.5rem;
    flex-shrink: 0;
    width: 60px;
    gap: 4px;
}

.process-connector-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    opacity: 0.4;
}

.process-connector-arrow {
    color: var(--color-primary);
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.5;
    margin-top: -2px;
}

@media (max-width: 900px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .process-step {
        width: 100%;
        max-width: 380px;
        padding: 1.5rem 2rem;
        text-align: center;
    }

    .process-connector {
        flex-direction: row;
        padding-top: 0;
        width: auto;
        transform: rotate(90deg);
        height: 40px;
    }
}

/* ── Tech Marquee ───────────────────────────────────────────── */
.tech-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.tech-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tech-marquee-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: marquee-left 28s linear infinite;
}

.tech-marquee--reverse .tech-marquee-track {
    animation-name: marquee-right;
    animation-duration: 32s;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

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

/* Override static grid layout for tech badges inside marquee */
.tech-marquee .tech-badge {
    flex-shrink: 0;
}

/* ── Clients Marquee ────────────────────────────────────────── */
.clients-inner {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.clients-marquee-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients-marquee {
    overflow: visible;
}

.clients-marquee-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: marquee-left 22s linear infinite;
}

.client-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.1rem 2rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    cursor: default;
}

.client-card:hover {
    border-color: var(--border-accent);
    background: rgba(99, 102, 241, 0.06);
}

.client-dot {
    color: var(--color-primary);
    font-size: 0.6rem;
    opacity: 0.6;
}

.client-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.client-card:hover .client-name {
    color: var(--text-primary);
}

/* Remove old clients-list styles conflict */
.clients-list {
    display: none;
}