@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Oxanium:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   SILENTEGIS — Premium SaaS v7
   Fine Inter body · Oxanium display · stop-motion · minimal palette
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    overflow-x: hidden;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

:root {
    /* CANVAS — neutral premium */
    --canvas:      #F6F6F8;
    --canvas-2:    #EEEEF2;
    --canvas-3:    #E4E4EA;
    --paper:       #FFFFFF;

    /* INK */
    --ink:         #0C0C12;
    --ink-2:       #1A1A24;
    --ink-3:       #2E2E3A;
    --muted:       #5C5C6E;
    --muted-2:     #8A8A9A;
    --line:        rgba(12, 12, 18, 0.08);
    --line-strong: rgba(12, 12, 18, 0.16);

    /* ACCENT — used sparingly */
    --blue:        #5B6BFF;
    --violet:      #7B6CF6;
    --pink:        #A78BFA;
    --accent:      #5B6BFF;
    --accent-2:    #7B6CF6;
    --accent-soft: #E8E6FF;
    --grad:        linear-gradient(135deg, #5B6BFF 0%, #7B6CF6 100%);
    --grad-h:      linear-gradient(90deg, #5B6BFF 0%, #7B6CF6 100%);
    --grad-3:      linear-gradient(135deg, #5B6BFF 0%, #7B6CF6 55%, #A78BFA 100%);
    --grad-soft:   linear-gradient(135deg, rgba(91, 107, 255, 0.08) 0%, rgba(123, 108, 246, 0.08) 100%);

    /* NIGHT — SilentSight (deep, not purple-wash) */
    --night:       #08080E;
    --night-2:     #12121A;
    --night-line:  rgba(255, 255, 255, 0.1);
    --night-line-2:rgba(255, 255, 255, 0.05);
    --night-text:  rgba(255, 255, 255, 0.72);
    --night-mute:  rgba(255, 255, 255, 0.48);

    /* STATUS */
    --signal:      #3FCB94;
    --warn:        #FFB547;
    --alert:       #FF5C8D;

    --display:     "Oxanium", system-ui, sans-serif;
    --body:        "Inter", system-ui, sans-serif;
    --mono:        "JetBrains Mono", monospace;

    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
    --s-9: 56px; --s-10: 72px; --s-11: 96px; --s-12: 128px;

    --r-1: 6px;  --r-2: 12px;  --r-3: 18px;
    --r-4: 24px; --r-5: 32px;  --r-6: 48px;

    --sh-1: 0 1px 2px rgba(26, 24, 64, 0.04);
    --sh-2: 0 8px 24px rgba(26, 24, 64, 0.06), 0 2px 6px rgba(26, 24, 64, 0.04);
    --sh-3: 0 24px 56px rgba(26, 24, 64, 0.09), 0 4px 12px rgba(26, 24, 64, 0.05);
    --sh-4: 0 40px 100px rgba(26, 24, 64, 0.12);

    --ease:        cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft:   cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.16, 1.36, 0.56, 0.95);
    --stop:        steps(6, end);
    --stop-fast:   steps(4, end);
}

::selection { background: var(--violet); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -- KEYFRAMES -------------------------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Stop-motion word reveal */
@keyframes wordReveal {
    0%   { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes stopLineIn {
    0%   { opacity: 0; transform: translateY(1.1em); clip-path: inset(100% 0 0 0); }
    100% { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@keyframes themeWipeDown {
    0%   { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}
@keyframes attackPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(123, 108, 246, 0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(123, 108, 246, 0); }
}

/* Stop-motion section transition */
@keyframes sectionLineDraw {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}
@keyframes sectionMaskUp {
    0%   { clip-path: inset(100% 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

/* Pulse */
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}

/* Border draw */
@keyframes drawBorder {
    0%   { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

/* Scroll reveal generic */
.reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* Stop-motion headline lines */
.stop-reveal .stop-line {
    display: block;
    overflow: hidden;
    opacity: 0;
}
.reveal.is-visible .stop-reveal .stop-line,
.stop-reveal.is-visible .stop-line {
    animation: stopLineIn 0.55s var(--stop) both;
}
.how-head.reveal.is-visible .how-title.stop-reveal .stop-line,
.product-head.reveal.is-visible .product-title.stop-reveal .stop-line {
    animation: stopLineIn 0.55s var(--stop) both;
}
.stop-reveal .stop-line[data-d="1"] { animation-delay: 0.08s; }
.stop-reveal .stop-line[data-d="2"] { animation-delay: 0.22s; }
.stop-reveal .stop-line[data-d="3"] { animation-delay: 0.36s; }
.stop-reveal .stop-line[data-d="4"] { animation-delay: 0.5s; }
.stop-reveal .stop-line[data-d="5"] { animation-delay: 0.64s; }

/* Theme wipe — stop-motion dark transition */
.theme-wipe {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--night);
    transform: scaleY(0);
    transform-origin: top center;
    pointer-events: none;
    will-change: transform;
}
.theme-wipe.is-active {
    animation: themeWipeDown 0.45s var(--stop-fast) forwards;
}

/* -- SECTION TRANSITIONS (stop-motion) -------------------------------- */
.section-divider {
    position: relative;
    height: 1px;
    width: 100%;
    overflow: hidden;
    background: var(--line);
}
.section-divider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-h);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s var(--ease);
}
.section-divider.is-visible::before {
    transform: scaleX(1);
}

.transit {
    position: relative;
    height: 80px;
    overflow: hidden;
}
.transit-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.transit-line {
    width: 80px;
    height: 1px;
    background: var(--line-strong);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1s var(--ease);
}
.transit.is-visible .transit-line { transform: scaleX(1); }
.transit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-h);
    opacity: 0;
    transition: opacity 0.6s var(--ease) 0.5s;
}
.transit.is-visible .transit-dot { opacity: 1; }

/* -- HEADER ----------------------------------------------------------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
    border-bottom: 1px solid transparent;
    animation: fadeIn 0.7s var(--ease) both;
}
.header.is-scrolled {
    background: rgba(246, 246, 248, 0.88);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom-color: var(--line);
}
.header.on-dark {
    background: transparent;
}
.header.on-dark.is-scrolled {
    background: rgba(8, 8, 14, 0.82);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-bottom-color: var(--night-line-2);
}

.header-inner {
    max-width: 1320px;
    height: 84px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-7);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    transition: color 0.4s var(--ease);
}
.brand-logo {
    width: clamp(52px, 6vw, 64px);
    height: clamp(52px, 6vw, 64px);
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}
.footer-brand .brand-logo {
    width: clamp(48px, 5vw, 56px);
    height: clamp(48px, 5vw, 56px);
}
.brand-text {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -0.018em;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}
.brand-text .silent { color: inherit; }
.brand-text .egis {
    background: var(--grad-h);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.header.on-dark .brand { color: #fff; }

.nav { display: flex; justify-content: center; }
.nav ul { display: flex; gap: var(--s-8); }
.nav a {
    font-family: var(--body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink-2);
    transition: color 0.3s var(--ease);
    position: relative;
    padding: 6px 0;
    letter-spacing: -0.005em;
}
.nav a::after {
    content: "";
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1.5px;
    background: var(--grad-h);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header.on-dark .nav a { color: rgba(255, 255, 255, 0.7); }
.header.on-dark .nav a:hover { color: #fff; }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
    letter-spacing: -0.005em;
}
.header-cta:hover {
    background: var(--violet);
    transform: translateY(-1px);
}
.header.on-dark .header-cta { background: #fff; color: var(--ink); }
.header.on-dark .header-cta:hover { background: var(--violet); color: #fff; }
.header-cta svg { width: 12px; height: 12px; }

/* Burger / mobile */
.burger-menu {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--ink);
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 110;
    cursor: pointer;
}
.burger-menu span,
.burger-menu span::before,
.burger-menu span::after {
    content: "";
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    border-radius: 1px;
}
.burger-menu span { position: relative; }
.burger-menu span::before { position: absolute; top: -6px; left: 0; }
.burger-menu span::after  { position: absolute; top: 6px;  left: 0; }
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--canvas);
    z-index: 105;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: var(--s-7) 0; }
.mobile-menu a {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

/* -- HERO (LIGHT — banner palette) ------------------------------------ */
.slide { width: 100%; position: relative; }

#home {
    min-height: 100svh;
    position: relative;
    padding: clamp(120px, 14vh, 160px) clamp(24px, 5vw, 64px) clamp(96px, 12vh, 140px);
    background: var(--canvas);
    overflow: hidden;
}

#home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 72% 8%, rgba(123, 108, 246, 0.04), transparent 62%),
        linear-gradient(180deg, var(--canvas) 0%, #F3F3F6 100%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
    position: relative;
    z-index: 2;
}

.hero-left {
    max-width: 580px;
    padding-right: clamp(0px, 2vw, 24px);
}

/* Stop-motion headline */
.hero-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.5rem, 5.4vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: var(--s-7);
}
.hero-title-line {
    display: block;
}
.hero-title-line + .hero-title-line {
    margin-top: 0.06em;
}
.hero-title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.hero-title .word + .word {
    margin-left: 0.22em;
}
.hero-title .word > span {
    display: inline-block;
    animation: wordReveal 0.5s var(--stop) both;
    transform-origin: top center;
}
.hero-title .word[data-d="1"] > span { animation-delay: 0.18s; }
.hero-title .word[data-d="2"] > span { animation-delay: 0.32s; }
.hero-title .word[data-d="3"] > span { animation-delay: 0.46s; }
.hero-title .word[data-d="4"] > span { animation-delay: 0.6s; }
.hero-title .accent > span {
    display: inline-block;
    color: #3d3a5c;
}

.hero-lead {
    max-width: 54ch;
    font-family: var(--body);
    font-size: clamp(1rem, 1.15vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: var(--s-9);
    letter-spacing: -0.01em;
    animation: fadeUp 1s var(--ease) 0.95s both;
}

.hero-actions {
    display: flex;
    gap: var(--s-4);
    flex-wrap: wrap;
    margin-bottom: var(--s-10);
    animation: fadeUp 1s var(--ease) 1.1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: var(--ink);
    color: #fff;
    font-family: var(--body);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    letter-spacing: -0.01em;
    box-shadow: 0 1px 2px rgba(12, 12, 18, 0.08);
}
.btn:hover {
    background: var(--ink-2);
    color: #fff;
    box-shadow: 0 4px 14px rgba(12, 12, 18, 0.12);
}
.btn-ghost {
    background: var(--paper);
    color: var(--ink-2);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn-ghost:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: var(--sh-1);
}
.btn-arrow {
    width: 12px; height: 12px;
    transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* Hero metrics */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
    margin: 0;
    padding-top: var(--s-8);
    border-top: 1px solid var(--line);
    animation: fadeUp 1s var(--ease) 1.22s both;
}
.hero-metric {
    margin: 0;
    padding-right: var(--s-5);
    border-right: 1px solid var(--line);
}
.hero-metric:last-child {
    padding-right: 0;
    border-right: none;
}
.hero-metric-value {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 6px;
}
.hero-metric-label {
    margin: 0;
    font-family: var(--body);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted-2);
    letter-spacing: 0;
    line-height: 1.35;
}

/* -- HERO RIGHT — product preview ------------------------------------- */
.hero-right {
    position: relative;
    min-height: 0;
    padding-left: clamp(8px, 2vw, 24px);
    padding-top: clamp(4px, 0.8vw, 12px);
    overflow: hidden;
    animation: fadeUp 1.1s var(--ease) 0.4s both;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
}

.hero-visual-halo {
    position: absolute;
    left: 18%;
    right: 0;
    top: 8%;
    bottom: 12%;
    background: radial-gradient(ellipse at 50% 45%, rgba(123, 108, 246, 0.06), transparent 70%);
    filter: blur(56px);
    pointer-events: none;
    z-index: 0;
}

.hero-visual-caption {
    margin: 0;
    width: 100%;
    text-align: right;
    padding-right: 8px;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--muted-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* AI Engine hero animation */
.ai-engine-stage {
    --ai-accent: #5B6BFF;
    --ai-sec: #16B79A;
    --ai-slate: #7E879B;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: var(--ai-stage-h, 420px);
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    margin-top: clamp(-8px, -1vw, 0px);
}
.ai-engine-canvas {
    position: relative;
    width: 760px;
    height: 800px;
    transform-origin: top right;
    flex-shrink: 0;
}
.ai-core-halo {
    position: absolute;
    left: 392px;
    top: 398px;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, color-mix(in oklab, var(--ai-accent) 26%, transparent), transparent 62%);
    filter: blur(6px);
    pointer-events: none;
    opacity: calc(0.35 + var(--ai, 0) * 0.5);
    transition: opacity 0.15s linear;
}
.ai-wires {
    position: absolute;
    inset: 0;
    width: 760px;
    height: 800px;
    overflow: visible;
    pointer-events: none;
}
.ai-wire-base {
    fill: none;
    stroke: rgba(30, 40, 70, 0.14);
    stroke-width: 2;
}
.ai-wire-flow {
    fill: none;
    stroke: var(--ai-accent);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-dasharray: 0.1 17;
}
.ai-wire-flow--sec { stroke: var(--ai-sec); }
.ai-node {
    --na: var(--ai-slate);
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    background: linear-gradient(165deg, #211B36, #130F24);
    border: 1px solid color-mix(in oklab, var(--na) 55%, #2a2440);
    box-shadow:
        0 0 0 1px color-mix(in oklab, var(--na) 22%, transparent),
        0 18px 40px -12px color-mix(in oklab, var(--na) 55%, transparent),
        0 6px 16px -8px rgba(10, 8, 20, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 14px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.ai-chip {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in oklab, var(--na) 16%, rgba(255, 255, 255, 0.04));
    border: 1px solid color-mix(in oklab, var(--na) 40%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ai-chip svg {
    width: 27px;
    height: 27px;
    stroke: var(--na);
}
.ai-nm {
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    margin-top: 11px;
    line-height: 1;
    white-space: nowrap;
}
.ai-tg {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in oklab, var(--na) 52%, #aab);
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}
#aiNodeIn { --na: var(--ai-slate); left: 212px; top: 150px; width: 128px; height: 128px; }
.ai-node--core {
    --na: var(--ai-accent);
    left: 392px;
    top: 398px;
    width: 188px;
    height: 188px;
    border-radius: 30px;
}
.ai-node--core .ai-nm { font-size: 18px; margin-top: 13px; }
.ai-node--core .ai-chip { width: 66px; height: 66px; border-radius: 18px; }
.ai-glow-edge {
    position: absolute;
    inset: -1px;
    border-radius: 30px;
    pointer-events: none;
    box-shadow: 0 0 calc(22px + var(--ai, 0) * 46px) color-mix(in oklab, var(--ai-accent) calc(40% + var(--ai, 0) * 40%), transparent);
    opacity: 0.9;
    transition: box-shadow 0.12s linear;
}
.ai-core {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ai-accent);
}
.ai-ring { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ai-hexA { transform-origin: center; animation: aiSpin 7s linear infinite; }
.ai-hexB { transform-origin: center; animation: aiSpinR 9s linear infinite; }
.ai-pip { transform-origin: center; animation: aiPulse 2.4s ease-in-out infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
@keyframes aiSpinR { to { transform: rotate(-360deg); } }
@keyframes aiPulse {
    0%, 100% { opacity: 0.55; transform: scale(0.78); }
    50% { opacity: 1; transform: scale(1.05); }
}
.ai-node--sec {
    --na: var(--ai-sec);
    left: 600px;
    top: 470px;
    width: 150px;
    height: 160px;
}
.ai-node--sec .ai-chip {
    transition: transform 0.08s linear;
    transform: scale(calc(1 - var(--sec-a, 0) * 0.12)) translateY(calc(var(--sec-a, 0) * 2px));
}
.ai-sec-flash {
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    border: 2px solid var(--ai-sec);
    opacity: calc(var(--sec-a, 0) * 0.9);
    transform: scale(calc(1 + var(--sec-a, 0) * 0.06));
    transition: opacity 0.1s linear, transform 0.1s linear;
    pointer-events: none;
}
.ai-node--del {
    --na: var(--ai-accent);
    left: 360px;
    top: 712px;
    width: 172px;
    height: 160px;
}
.ai-del-check {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in oklab, var(--ai-sec) 18%, rgba(255, 255, 255, 0.04));
    border: 1px solid color-mix(in oklab, var(--ai-sec) 45%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 16px color-mix(in oklab, var(--ai-sec) 35%, transparent);
}
.ai-del-check svg { width: 28px; height: 28px; stroke: var(--ai-sec); }
.ai-del-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 9px;
    font-family: var(--display);
}
.ai-del-count b {
    font-size: 17px;
    font-weight: 700;
    color: var(--ai-sec);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.ai-del-count span {
    font-size: 9px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9aa;
}
.ai-node--del.is-recv { animation: aiRecvPop 0.42s ease; }
.ai-node--del.is-recv .ai-del-check { animation: aiCheckPop 0.42s ease; }
@keyframes aiCheckPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.16); }
    100% { transform: scale(1); }
}
@keyframes aiRecvPop {
    0% { transform: translate(-50%, -50%) scale(1); }
    30% { transform: translate(-50%, -50%) scale(1.04); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
.ai-token-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.ai-token {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    will-change: transform;
    pointer-events: none;
    z-index: 5;
}
.ai-token .ai-spin-wrap { position: absolute; inset: 0; }
.ai-token .ai-face {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #241D3A, #150F28);
    border: 1.5px solid var(--fa);
    box-shadow: 0 0 16px color-mix(in oklab, var(--fa) 55%, transparent), 0 6px 14px -6px rgba(10, 8, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.ai-token .ai-face svg { width: 24px; height: 24px; stroke: var(--fa); }
.ai-face--brief { --fa: var(--ai-slate); }
.ai-face--code { --fa: var(--ai-accent); }
.ai-face--secure { --fa: var(--ai-sec); }
.ai-token[data-stage="brief"] .ai-face--brief { opacity: 1; transform: scale(1); }
.ai-token[data-stage="code"] .ai-face--code { opacity: 1; transform: scale(1); }
.ai-token[data-stage="secure"] .ai-face--secure { opacity: 1; transform: scale(1); }

.hero-visual .preview-frame {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-height: clamp(460px, 48vw, 580px);
    z-index: 1;
    overflow: visible;
}

.preview-frame {
    background: var(--paper);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sh-3);
    border: 1px solid var(--line);
}

/* Preview header */
.preview-bar {
    height: 48px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
}
.preview-dots { display: flex; gap: 5px; }
.preview-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}
.preview-tab {
    margin-left: 4px;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.preview-tab .pip {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 8px var(--signal);
    animation: pulseDot 2s infinite;
}

/* InfraTrace hero — fond transparent, nœuds flottants sur le hero */
.preview-frame--infratrace {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.preview-frame--infratrace .preview-bar {
    background: transparent;
    border-bottom: none;
    justify-content: flex-end;
    padding-right: 4px;
}
.preview-frame--infratrace .preview-dots span {
    background: var(--line-strong);
    opacity: 0.5;
}
.preview-frame--infratrace .preview-tab {
    color: var(--muted-2);
}
.preview-frame--infratrace .preview-tab .pip {
    background: var(--violet);
    box-shadow: 0 0 8px rgba(123, 108, 246, 0.35);
}
.preview-frame--infratrace .preview-body {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 8px 8px;
    overflow: visible;
    background: transparent;
}

.preview-frame--infratrace .infratrace-demo {
    min-height: 420px;
}

.preview-frame--infratrace .infratrace-svg,
.preview-frame--infratrace .infratrace-nodes {
    inset: 28px 8px 40px 56px;
    width: calc(100% - 64px);
    height: calc(100% - 68px);
}

.infratrace-demo {
    --it-node-bg: rgba(15, 18, 35, 0.95);
    --it-violet: #9a70f7;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: transparent;
    overflow: visible;
}

/* Hero preview — cartes espacées, flottantes sur fond clair */
.preview-frame--infratrace .it-node {
    min-width: 100px;
    max-width: 128px;
    padding: 12px 14px;
    box-shadow:
        0 16px 40px rgba(8, 8, 14, 0.14),
        0 4px 12px rgba(8, 8, 14, 0.08);
}
.preview-frame--infratrace .it-node.is-visible {
    transform: translate(-50%, -50%) scale(1);
}
.preview-frame--infratrace .it-cve {
    box-shadow:
        0 12px 28px rgba(8, 8, 14, 0.12),
        0 0 0 1px rgba(220, 38, 38, 0.25);
}
.preview-frame--infratrace .it-node-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 10px;
}
.preview-frame--infratrace .it-node-icon svg {
    width: 22px;
    height: 22px;
}
.preview-frame--infratrace .it-node-name {
    font-size: 0.68rem;
}
.preview-frame--infratrace .it-node-meta {
    font-size: 0.58rem;
}
.preview-frame--infratrace .it-node-badge {
    display: none;
}
.preview-frame--infratrace .it-cve {
    left: 60%;
    right: auto;
    bottom: 2%;
    min-width: 140px;
    padding: 10px 12px;
    font-size: 0.9em;
    transform: translateX(-50%) translateY(10px);
}
.preview-frame--infratrace .it-cve.is-visible {
    transform: translateX(-50%) translateY(0);
}
.preview-frame--infratrace .danger-pulse {
    animation: none;
}
.preview-frame--infratrace .it-node.is-critical.is-visible,
.preview-frame--infratrace .it-node.is-warn.is-visible {
    animation: itNodePop 0.45s var(--stop) forwards;
}

.infratrace-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(154, 112, 247, 0.9), transparent);
    opacity: 0;
    z-index: 4;
    pointer-events: none;
}
.infratrace-demo.is-playing .infratrace-scan {
    animation: infratraceScan 2.8s var(--stop) 0.4s infinite;
}

@keyframes infratraceScan {
    0%   { top: 0; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

.infratrace-svg {
    position: absolute;
    inset: 12px 8px 12px;
    width: calc(100% - 16px);
    height: calc(100% - 24px);
    z-index: 1;
}

.it-link {
    fill: none;
    stroke: #9a70f7;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0;
    stroke-dasharray: var(--len, 400);
    stroke-dashoffset: var(--len, 400);
    marker-end: url(#itArrowViolet);
}
.it-link.is-drawn {
    opacity: 0.85;
    animation: itLinkDraw 0.38s var(--stop) forwards;
}
.it-link[data-kind="hosts"].is-drawn {
    stroke: #f59e0b;
    opacity: 0.9;
}
.it-link-attack {
    stroke: #dc2626;
    stroke-width: 3;
    stroke-dasharray: 8 6;
    opacity: 0;
    marker-end: url(#itArrowRed);
}
.it-link-attack.is-drawn {
    opacity: 0.95;
    animation: itLinkDraw 0.32s var(--stop) forwards, itAttackPulse 1s var(--stop) 0.35s infinite;
}
@keyframes itLinkDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes itAttackPulse {
    0%, 100% { stroke-opacity: 0.75; }
    50%      { stroke-opacity: 1; }
}

.it-attack-pip {
    fill: #dc2626;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.85));
}
.it-attack-pip.is-moving {
    opacity: 1;
    offset-path: path('M 115 342 Q 195 265, 295 200');
    offset-rotate: auto;
    animation: itAttackTravel 1.1s linear infinite;
}
.preview-frame--infratrace .it-attack-pip.is-moving {
    offset-path: path('M 115 342 Q 195 265, 295 200');
}
@keyframes itAttackTravel {
    0%   { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

.infratrace-nodes {
    position: absolute;
    inset: 12px 8px 12px;
    z-index: 2;
    pointer-events: none;
}

.it-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) scale(0.92);
    min-width: 118px;
    max-width: 148px;
    padding: 16px;
    text-align: center;
    background: var(--it-node-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--it-violet);
    border-radius: 12px;
    box-shadow: none;
    opacity: 0;
}
.it-node.is-visible {
    animation: itNodePop 0.45s var(--stop) forwards;
}
@keyframes itNodePop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.82); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.it-node-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: rgba(154, 112, 247, 0.15);
    border: 2px solid rgba(154, 112, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.it-node-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}
.it-product .it-node-icon svg {
    width: 24px;
    height: 24px;
    color: var(--it-violet);
}

.it-node-name {
    display: block;
    font-family: var(--body);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.it-node-meta {
    display: block;
    font-family: var(--body);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.it-node-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    font-family: var(--body);
    font-size: 0.62rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: lowercase;
}
.it-node-badge.is-active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.it-node.is-warn.is-visible {
    animation: itNodePop 0.45s var(--stop) forwards, pulseDangerNodeWarn 2s ease-in-out 0.6s infinite;
}
.it-node.is-warn {
    border: 3px solid #f97316;
}
.it-node.is-warn .it-node-icon {
    background: rgba(249, 115, 22, 0.2);
    border-color: #f97316;
}
.it-node.is-medium {
    border: 3px solid #f59e0b;
}
.it-node.is-medium .it-node-icon {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}
.it-node.is-medium .it-node-icon svg { color: #f59e0b; }

.it-node.is-critical.is-visible {
    animation: itNodePop 0.45s var(--stop) forwards, pulseDangerNode 1.8s ease-in-out 0.5s infinite;
}
.it-node.is-critical {
    border: 3px solid #dc2626;
}
.it-node.is-critical .it-node-icon {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.danger-pulse {
    animation: pulseDangerIcon 1.5s ease-in-out infinite;
}
@keyframes pulseDangerIcon {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px currentColor; }
    50%      { opacity: 0.75; box-shadow: 0 0 24px currentColor, 0 0 36px currentColor; }
}
@keyframes pulseDangerNode {
    0%, 100% { box-shadow: 0 0 16px rgba(220, 38, 38, 0.25); }
    50%      { box-shadow: 0 0 32px rgba(220, 38, 38, 0.45), 0 0 48px rgba(220, 38, 38, 0.2); }
}
@keyframes pulseDangerNodeWarn {
    0%, 100% { box-shadow: 0 0 16px rgba(249, 115, 22, 0.2); }
    50%      { box-shadow: 0 0 32px rgba(249, 115, 22, 0.4); }
}

.it-cve {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    min-width: 152px;
    padding: 12px 14px;
    background: var(--it-node-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 38, 38, 0.45);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.15);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--stop), transform 0.4s var(--stop);
}
.it-cve.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.it-cve-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.it-cve-badge {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 600;
    color: #f87171;
    letter-spacing: 0.12em;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 4px;
}
.it-cve-score {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
    color: #f87171;
}
.it-cve-id {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}
.it-cve-detail {
    font-family: var(--body);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    .infratrace-demo.is-playing .infratrace-scan,
    .it-attack-pip.is-moving,
    .it-node.is-critical,
    .it-node.is-warn,
    .it-link-attack.is-drawn,
    .danger-pulse { animation: none; }
    .it-link.is-drawn { stroke-dashoffset: 0; opacity: 0.85; }
    .it-node { opacity: 1; transform: translate(-50%, -50%); }
    .it-cve { opacity: 1; transform: none; }
}

/* -- TRUST BAND ------------------------------------------------------- */
.trust-band {
    background: var(--paper);
    padding: var(--s-7) clamp(20px, 4vw, 48px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.trust-band-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.trust-band-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    max-width: 200px;
    line-height: 1.55;
}
.trust-band-tools {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 2vw, 24px);
    align-items: center;
}
.tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink-2);
    letter-spacing: -0.01em;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.tool-pill:hover {
    border-color: var(--violet);
    color: var(--ink);
    background: var(--paper);
}
.tool-pill::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--violet);
}

/* -- SECTION TEMPLATE ------------------------------------------------- */
.section {
    padding: clamp(96px, 12vw, 160px) clamp(20px, 4vw, 48px);
    position: relative;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: var(--s-5);
}
.section-eyebrow::before {
    content: "";
    width: 22px; height: 1px;
    background: var(--violet);
}

/* -- HOW IT WORKS ----------------------------------------------------- */
#how {
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
    position: relative;
}

.how-circuit-canvas {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(80px, 13vw, 168px);
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.how-circuit-canvas--left {
    left: 0;
    mask-image: linear-gradient(to right, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%);
}
.how-circuit-canvas--right {
    right: 0;
    mask-image: linear-gradient(to left, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, #000 78%, transparent 100%);
}

.how-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.how-head {
    max-width: 920px;
    margin: 0 auto clamp(56px, 8vw, 96px);
    text-align: center;
}
.how-head .section-eyebrow { justify-content: center; }
.how-head .section-eyebrow::after {
    content: "";
    width: 22px; height: 1px;
    background: var(--violet);
}
.how-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.038em;
    color: var(--ink);
}
.how-intro {
    max-width: 720px;
    margin: var(--s-6) auto 0;
    font-family: var(--body);
    font-size: clamp(0.98rem, 1.2vw, 1.06rem);
    line-height: 1.72;
    color: var(--muted);
    text-align: center;
}

.how-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3vw, 32px);
    margin-bottom: clamp(48px, 6vw, 72px);
}
.how-pillar {
    padding: clamp(28px, 4vw, 36px);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.how-pillar:hover {
    border-color: rgba(123, 108, 246, 0.28);
    box-shadow: var(--sh-2);
}
.how-pillar-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: var(--s-4);
}
.how-pillar-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: var(--s-3);
}
.how-pillar-text {
    font-family: var(--body);
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--muted);
}

/* IA & automatisation block */
.section-ai {
    background: var(--paper);
    padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 48px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.ai-block-container {
    max-width: 1080px;
    margin: 0 auto;
}
.ai-block-head {
    max-width: 780px;
    margin-bottom: clamp(40px, 6vw, 64px);
}
.ai-block-head .section-eyebrow { margin-bottom: var(--s-5); }
.ai-block-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: var(--s-6);
}
.ai-block-title .accent { color: var(--ink-2); }
.ai-block-lead {
    font-family: var(--body);
    font-size: clamp(1rem, 1.15vw, 1.06rem);
    line-height: 1.72;
    color: var(--muted);
}
.ai-block-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}
.ai-block-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}
.ai-block-list li {
    position: relative;
    padding-left: 20px;
    font-family: var(--body);
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--ink-2);
}
.ai-block-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
}
.ai-block-list strong { color: var(--ink); font-weight: 600; }
.ai-block-principle {
    padding: clamp(28px, 4vw, 36px);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}
.ai-block-principle p {
    font-family: var(--body);
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--muted);
    font-style: italic;
}

.how-title .accent,
.how-title.stop-reveal .stop-line.accent {
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-7);
    margin-bottom: clamp(64px, 9vw, 96px);
    position: relative;
}
.how-step {
    position: relative;
    padding: clamp(32px, 4vw, 40px);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.how-step:hover {
    border-color: var(--violet);
    transform: translateY(-4px);
}
.how-step-num {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: var(--s-5);
}
.how-step-num strong {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--ink);
    letter-spacing: -0.03em;
}
.how-step-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin-bottom: var(--s-4);
}
.how-step-text {
    font-family: var(--body);
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--muted);
}

/* Schema panel (light card with placeholder) */
.how-schema-panel {
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: clamp(20px, 3vw, 32px);
    padding: clamp(40px, 6vw, 64px);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}

.how-schema-info .section-eyebrow {
    color: var(--accent);
}
.how-schema-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.028em;
    color: var(--ink);
    margin-bottom: var(--s-5);
}
.how-schema-text {
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--s-6);
}
.how-schema-text strong { color: var(--ink); font-weight: 600; }
.how-schema-bullets li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-family: var(--body);
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.6;
}
.how-schema-bullets li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grad);
}

/* Attack flow — premium minimal diagram */
.attack-flow {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: clamp(28px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.attack-flow-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 24px 0 16px;
}
.attack-flow-line {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 1px;
    background: var(--line-strong);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--stop);
}
.attack-flow.is-playing .attack-flow-line,
.attack-flow.is-visible .attack-flow-line { transform: scaleX(1); }
.attack-flow-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s var(--stop), transform 0.35s var(--stop);
}
.attack-flow-node.is-active {
    opacity: 1;
    transform: translateY(0);
}
.attack-flow-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--paper);
    box-shadow: 0 0 0 1px var(--line-strong);
    transition: transform 0.3s var(--stop), background 0.3s var(--stop);
}
.attack-flow-node.is-active .attack-flow-dot {
    transform: scale(1.35);
    animation: attackPulse 1.2s var(--stop) infinite;
}
.attack-flow-dot.is-warn { background: var(--warn); }
.attack-flow-dot.is-critical { background: var(--alert); }
.attack-flow-dot.is-target { background: var(--violet); }
.attack-flow-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.attack-flow-node.is-active .attack-flow-label { color: var(--ink); font-weight: 600; }
.attack-flow-caption {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.attack-flow-step-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--violet);
    letter-spacing: -0.03em;
    line-height: 1;
    min-width: 2ch;
}
.attack-flow-step-text {
    font-family: var(--body);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
}

/* -- SILENTSIGHT (impressive dark showcase) --------------------------- */
.section-dark,
#product {
    background: var(--night);
    color: #fff;
    padding: clamp(96px, 14vw, 200px) clamp(20px, 4vw, 48px);
    position: relative;
    overflow: hidden;
}
#product::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 40% at 50% 0%, rgba(123, 108, 246, 0.12), transparent 70%);
    pointer-events: none;
}

.product-container {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.product-head {
    max-width: 980px;
    margin: 0 auto clamp(56px, 8vw, 88px);
    text-align: center;
}
.product-head .section-eyebrow {
    color: var(--violet);
    justify-content: center;
}
.product-head .section-eyebrow::after {
    content: "";
    width: 22px; height: 1px;
    background: var(--violet);
}
.product-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: var(--s-6);
}
.product-title.stop-reveal .stop-line.accent {
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.product-title .accent {
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.product-subtitle {
    font-family: var(--body);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    font-weight: 300;
    color: var(--night-text);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto var(--s-8);
}
.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product-cta:hover {
    background: var(--violet);
    color: #fff;
    transform: translateY(-2px);
}

/* Big screenshot */
.product-hero-screenshot {
    position: relative;
    margin: 0 auto clamp(96px, 12vw, 160px);
    max-width: 1280px;
    border-radius: clamp(14px, 2vw, 24px);
    overflow: hidden;
    border: 1px solid var(--night-line);
    box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.7);
}
.product-hero-screenshot::before {
    content: "";
    position: absolute;
    inset: -8% 8% 0;
    background: radial-gradient(50% 50% at 50% 0%, rgba(123, 108, 246, 0.2), transparent 70%);
    z-index: -1;
}
.product-hero-screenshot img { width: 100%; display: block; }

/* Product pillars — editorial, sans numérotation */
.product-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 48px);
    margin-bottom: clamp(80px, 10vw, 128px);
    padding-top: var(--s-2);
    border-top: 1px solid var(--night-line);
}
.benefit {
    position: relative;
    padding: 0 clamp(8px, 1.5vw, 20px) 0 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: opacity 0.35s var(--ease);
}
.benefit:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: calc(-1 * clamp(16px, 2vw, 24px));
    width: 1px;
    height: 100%;
    background: var(--night-line);
}
.benefit-glyph {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: var(--s-6);
    color: rgba(154, 112, 247, 0.85);
}
.benefit-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.28rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--s-4);
}
.benefit-text {
    font-family: var(--body);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--night-mute);
    max-width: 32ch;
}
.benefit:hover .benefit-glyph {
    color: #b895f9;
}
.benefit:hover .benefit-title {
    color: #fff;
}

/* Modules detailed */
.product-modules-head {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 72px);
}
.product-modules-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.028em;
    color: #fff;
    margin-bottom: var(--s-4);
}
.product-modules-title .accent {
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.product-modules-sub {
    font-family: var(--body);
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    color: var(--night-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

.product-modules {
    display: grid;
    gap: var(--s-7);
}
.product-module {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--night-line-2);
    border-radius: clamp(20px, 2.5vw, 28px);
    padding: clamp(32px, 5vw, 56px);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
    transition: border-color 0.4s var(--ease);
}
.product-module:hover { border-color: rgba(157, 123, 255, 0.35); }
.product-module.is-reverse { direction: rtl; }
.product-module.is-reverse > * { direction: ltr; }

.product-module-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: var(--s-4);
}
.product-module-tag::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet);
}
.product-module-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.028em;
    color: #fff;
    margin-bottom: var(--s-4);
}
.product-module-text {
    font-family: var(--body);
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--night-text);
    margin-bottom: var(--s-5);
}
.product-module-bullets li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-family: var(--body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.74);
}
.product-module-bullets li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--violet);
}
.product-module-media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--night-line-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* -- PACKS ------------------------------------------------------------ */
#packs {
    background: var(--canvas);
    padding: clamp(96px, 12vw, 160px) clamp(20px, 4vw, 48px);
    position: relative;
}
.packs-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.packs-head {
    max-width: 720px;
    margin: 0 auto clamp(56px, 8vw, 80px);
    text-align: center;
}
.packs-head .section-eyebrow { justify-content: center; }
.packs-head .section-eyebrow::after {
    content: "";
    width: 22px; height: 1px; background: var(--violet);
}
.packs-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: var(--s-4);
}
.packs-title .accent {
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.packs-subtitle {
    font-family: var(--body);
    font-size: 1.04rem;
    color: var(--muted);
    line-height: 1.6;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}
.pack {
    position: relative;
    padding: clamp(32px, 4vw, 40px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pack:hover {
    transform: translateY(-6px);
    border-color: var(--violet);
    box-shadow: var(--sh-3);
}
.pack-popular {
    background: linear-gradient(180deg, rgba(157, 123, 255, 0.06) 0%, var(--paper) 100%);
    border-color: rgba(157, 123, 255, 0.3);
    box-shadow: var(--sh-3);
}
.pack-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(157, 123, 255, 0.35);
}
.pack-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.55rem);
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.pack-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: var(--s-5);
}
.pack-price {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.4vw, 2.2rem);
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.028em;
    margin-bottom: 4px;
}
.pack-price span {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
    margin-left: 4px;
}
.pack-price-year {
    font-family: var(--body);
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: var(--s-5);
}
.pack-features {
    margin: 0 0 var(--s-5);
    font-family: var(--body);
    font-size: 0.94rem;
    color: var(--ink-2);
    line-height: 1.65;
}
.pack-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}
.pack-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 6px;
    width: 14px; height: 14px;
    background: var(--violet);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.pack-features li.is-off {
    color: var(--muted-2);
    text-decoration: line-through;
}
.pack-features li.is-off::before {
    background: var(--muted-2);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center/contain no-repeat;
}
.pack-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* -- SERVICES (light grid) -------------------------------------------- */
#services {
    background: var(--paper);
    color: var(--ink);
    padding: clamp(96px, 12vw, 160px) clamp(20px, 4vw, 48px);
    position: relative;
}

.services-container {
    max-width: 1320px;
    margin: 0 auto;
}

.services-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(56px, 8vw, 80px);
}
.services-head .section-eyebrow { justify-content: center; }
.services-head .section-eyebrow::after {
    content: "";
    width: 22px; height: 1px; background: var(--violet);
}
.services-head-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.services-head-title .accent {
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
}

.service-card {
    position: relative;
    padding: clamp(28px, 4vw, 36px);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--violet);
    box-shadow: var(--sh-2);
}
.service-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--s-7);
}
.service-card-num {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--violet);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.service-card-price {
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--ink);
    padding: 6px 12px;
    background: var(--paper);
    border-radius: 999px;
    letter-spacing: -0.01em;
}
.service-card-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.2vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin-bottom: var(--s-3);
}
.service-card-desc {
    font-family: var(--body);
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--s-5);
}
.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink);
    transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.service-card-link svg {
    width: 12px; height: 12px;
    transition: transform 0.3s var(--ease);
}
.service-card:hover .service-card-link {
    color: var(--violet);
    gap: 12px;
}
.service-card:hover .service-card-link svg { transform: translate(2px, -2px); }

.services-cta {
    margin-top: var(--s-10);
    padding: clamp(40px, 6vw, 72px);
    background: var(--ink);
    color: #fff;
    border-radius: 26px;
    display: grid;
    grid-template-columns: 1.4fr auto;
    align-items: center;
    gap: var(--s-7);
    position: relative;
    overflow: hidden;
}
.services-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 100% at 50% 100%, rgba(123, 108, 246, 0.15), transparent 70%);
    pointer-events: none;
}
.services-cta > * { position: relative; z-index: 1; }
.services-cta-text {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.022em;
}
.services-cta-text small {
    display: block;
    font-family: var(--body);
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--s-3);
    letter-spacing: -0.005em;
}
.services-cta .btn {
    background: #fff;
    color: var(--ink);
}
.services-cta .btn:hover { background: var(--violet); color: #fff; }

/* -- MISSION ---------------------------------------------------------- */
#mission {
    background: var(--canvas);
    color: var(--ink);
    padding: clamp(96px, 12vw, 140px) clamp(20px, 4vw, 48px);
    position: relative;
    overflow: hidden;
}
#mission::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 50% at 50% 50%, rgba(123, 108, 246, 0.05), transparent 70%);
    pointer-events: none;
}
.mission-container {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.mission-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: var(--s-5);
}
.mission-eyebrow::before, .mission-eyebrow::after {
    content: "";
    width: 22px; height: 1px; background: var(--violet);
}
.mission-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.028em;
    color: var(--ink);
    margin-bottom: var(--s-6);
}
.mission-title .accent {
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mission-text {
    font-family: var(--body);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.7;
    color: var(--muted);
}
.mission-pillars {
    list-style: none;
    max-width: 720px;
    margin: var(--s-8) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    text-align: left;
}
.mission-pillars li {
    position: relative;
    padding-left: 22px;
    font-family: var(--body);
    font-size: clamp(0.98rem, 1.2vw, 1.06rem);
    line-height: 1.65;
    color: var(--muted);
}
.mission-pillars li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--violet);
}
.mission-pillars strong { color: var(--ink); font-weight: 600; }

/* -- TOOLS STRIP (infinite scroll) ------------------------------------ */
@keyframes toolsMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tools-strip {
    background: var(--ink);
    padding: var(--s-7) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.tools-strip-label {
    text-align: center;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: var(--s-5);
}
.tools-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tools-marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
    width: max-content;
    padding: var(--s-3) var(--s-6);
    animation: toolsMarquee 42s linear infinite;
}
.tools-marquee-track img {
    height: clamp(36px, 5vw, 52px);
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.82;
    filter: grayscale(1) brightness(1.15);
    transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.tools-marquee-track img:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
}
@media (prefers-reduced-motion: reduce) {
    .tools-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
    .tools-marquee-track img[aria-hidden="true"] { display: none; }
}

/* -- FOOTER (aligned with canvas — no stark white break) -------------- */
footer {
    background: var(--canvas);
    color: var(--ink);
    padding: clamp(80px, 10vw, 120px) clamp(20px, 4vw, 48px) clamp(28px, 3vw, 40px);
    border-top: 1px solid var(--line);
    position: relative;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-h);
    opacity: 0.35;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--s-9);
    padding-bottom: var(--s-9);
    border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 360px; }
.footer-brand .brand { color: var(--ink); margin-bottom: var(--s-5); }
.footer-brand p {
    font-family: var(--body);
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--s-5);
}
.footer-brand-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s var(--ease);
}
.footer-brand-cta:hover { background: var(--violet); }

.footer-col h4 {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-2);
    margin-bottom: var(--s-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a {
    font-family: var(--body);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
}
.footer-col a:hover { color: var(--violet); }

.footer-bottom {
    max-width: 1320px;
    margin: var(--s-6) auto 0;
    padding-top: var(--s-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-3);
    font-family: var(--body);
    font-size: 0.78rem;
    color: var(--muted-2);
}
.footer-left, .footer-right { all: unset; display: inline-flex; align-items: center; gap: var(--s-3); }
.footer-copyright, .footer-hours { color: var(--muted-2); }
.footer-link { color: var(--muted); transition: color 0.3s var(--ease); }
.footer-link:hover { color: var(--violet); }
.email-link {
    background: var(--ink) !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-family: var(--body) !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    width: max-content !important;
    transition: background 0.3s var(--ease) !important;
}
.email-link:hover { background: var(--violet) !important; }

/* -- POPUPS ----------------------------------------------------------- */
.popup-overlay, .audit-popup-overlay, .dev-popup-overlay, .lab-popup-overlay, .custom-alert-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(26, 24, 64, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center; justify-content: center;
    padding: var(--s-5);
    animation: fadeIn 0.3s var(--ease);
}
.popup-content, .audit-popup-content, .dev-popup-content, .lab-popup-content, .custom-alert-content {
    background: var(--paper);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--sh-4);
    border: 1px solid var(--line);
    animation: fadeUp 0.5s var(--ease-spring);
}
.audit-popup-content, .dev-popup-content, .lab-popup-content { max-width: 880px; }
.popup-header, .audit-popup-header, .dev-popup-header, .lab-popup-header, .custom-alert-header {
    padding: var(--s-5) var(--s-7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.popup-header h3, .audit-popup-header h3, .dev-popup-header h3, .lab-popup-header h3, .custom-alert-header h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink);
    letter-spacing: -0.018em;
}
.popup-close, .audit-popup-close, .dev-popup-close, .lab-popup-close, .custom-alert-close {
    width: 36px; height: 36px;
    border-radius: 999px;
    background: var(--canvas);
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.popup-close:hover, .audit-popup-close:hover, .dev-popup-close:hover, .lab-popup-close:hover, .custom-alert-close:hover {
    background: var(--ink);
    color: #fff;
}
.devis-form {
    padding: var(--s-7);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
}
.devis-form .form-group:nth-child(5),
.devis-form .form-group:nth-child(6),
.devis-form .form-group:nth-child(7),
.devis-form .form-group:nth-child(8),
.devis-form .form-actions { grid-column: 1 / -1; }
.form-group label {
    display: block;
    font-family: var(--body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--body);
    font-size: 0.92rem;
    color: var(--ink);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--violet);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(157, 123, 255, 0.14);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--s-3);
    margin-top: var(--s-3);
}
.btn-cancel {
    padding: 12px 22px;
    background: var(--canvas);
    color: var(--ink);
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-cancel:hover { background: var(--canvas-2); }
.btn-submit {
    padding: 12px 22px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-submit:hover { background: var(--violet); }
.btn-submit:disabled { opacity: 0.5; cursor: wait; }
.custom-alert-content { max-width: 480px; }
.custom-alert-body { padding: var(--s-5) var(--s-7); }
.custom-alert-body p { font-family: var(--body); font-size: 0.95rem; line-height: 1.65; color: var(--muted); }
.custom-alert-actions { padding: 0 var(--s-7) var(--s-5); display: flex; justify-content: flex-end; }
.btn-alert-confirm {
    padding: 10px 22px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.88rem;
}
.btn-alert-confirm:hover { background: var(--violet); }
.custom-alert-content.success .custom-alert-header h3 { color: var(--signal); }
.custom-alert-content.error   .custom-alert-header h3 { color: var(--alert); }
.custom-alert-content.warning .custom-alert-header h3 { color: var(--warn); }

.audit-popup-body, .dev-popup-body, .lab-popup-body { padding: var(--s-7); }
.audit-section, .lab-section, .lab-intro, .dev-popup-body .project-showcase { margin-bottom: var(--s-7); }
.audit-section:last-child, .lab-section:last-child { margin-bottom: 0; }
.audit-section h4, .lab-section h4 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--line);
    letter-spacing: -0.015em;
}
.audit-grid, .lab-components, .deliverables-grid, .use-cases, .delivery-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-3);
}
.audit-item, .deliverable-item, .component-item, .use-case-item, .delivery-item {
    padding: var(--s-4);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.3s var(--ease);
}
.audit-item:hover, .deliverable-item:hover, .component-item:hover,
.use-case-item:hover, .delivery-item:hover { border-color: var(--violet); }
.audit-info h5, .deliverable-item h5, .component-item h5, .use-case-item h5, .delivery-item h5 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.audit-info p, .deliverable-item p, .component-item p, .use-case-item p, .delivery-item p {
    font-family: var(--body);
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}
.analysis-list, .features-list { display: flex; flex-direction: column; gap: var(--s-3); }
.analysis-item, .feature-item {
    display: flex;
    gap: var(--s-3);
    padding: var(--s-3);
    background: var(--canvas);
    border-radius: 10px;
}
.analysis-bullet, .feature-bullet {
    width: 8px; height: 8px;
    background: var(--violet);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.analysis-text strong, .feature-text strong {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--ink);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.analysis-text p, .feature-text p {
    font-family: var(--body);
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.5;
}
.audit-popup-footer, .dev-popup-footer, .lab-popup-footer {
    padding: var(--s-5) var(--s-7);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}
.audit-popup-cta, .dev-popup-cta, .lab-popup-cta {
    padding: 12px 24px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.9rem;
}
.audit-popup-cta:hover, .dev-popup-cta:hover, .lab-popup-cta:hover { background: var(--violet); }

.project-showcase {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) 1.1fr;
    gap: var(--s-7);
    align-items: start;
}
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}
.project-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-thumb:hover {
    border-color: var(--violet);
    transform: translateY(-2px);
    box-shadow: var(--sh-2);
}
.project-thumb img {
    width: 100%;
    display: block;
}
.project-details h4 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: var(--s-4);
    letter-spacing: -0.02em;
}
.project-description {
    font-family: var(--body);
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: var(--s-5);
}
.tech-stack h5, .info-section h5 {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: var(--s-3);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-5); }
.tech-tag {
    padding: 5px 11px;
    background: var(--accent-soft);
    color: var(--ink);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 600;
}
.project-info-grid { display: grid; gap: var(--s-5); }
.info-list { display: flex; flex-direction: column; gap: var(--s-3); }
.info-item strong {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--ink);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.info-item p {
    font-family: var(--body);
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.5;
}

/* -- LEGACY CLEANUP --------------------------------------------------- */
.glitch::before, .glitch::after { display: none !important; }
.glitch { animation: none !important; background: transparent !important; color: inherit !important; }
.home-lines, .security-apps-btn, .role-rotator, .role-chip, .hero-role,
.portrait, .portrait-stage, .portrait-frame, .portrait-ring, .floating-card,
.hero-trust, .smart-glass, .code-rain-container,
.cyber-grid, .grid-item, .cyber-code, .floating-elements, .floating-icon,
.about-visual, .about-header, .about-content, .about-title, .about-subtitle,
.content-section, .section-number, .section-content,
.services-carousel, .services-header, .services-title, .services-subtitle,
.service-display, .service-content, .service-info, .service-visual,
.service-name, .service-description, .service-link, .service-image,
.service-svg, .service-details, .service-title, .service-price, .service-cta,
.service-navigation, .nav-indicator, .nav-arrows, .nav-arrow,
.hero-bg, .orb, .wave-layer, .particles, .particle, .marquee, .marquee-track,
.product-preview, .preview-tag,
.metric-card, .metric-grid, .preview-chart, .bar, .scroll-indicator,
.footer-wordmark, .footer-wordmark-text, .hero-meta, .hero-meta-item,
.service-row, .service-num, .service-arrow,
.section-head, .section-head-title, .section-head-count,
.pillar, .pillar-num, .pillar-title, .pillar-text,
.about-eyebrow, .about-lead, .about-side, .about-main, .about-grid,
.about-orb, .values-list, .value-tag, .contact-link,
.tabs-list, .tab, .tab-num, .tab-panels, .tab-panel, .tab-panel-info,
.tab-panel-name, .tab-panel-desc, .tab-panel-features, .tab-panel-meta,
.tab-panel-meta-item, .tab-panel-visual, .tab-panel-visual-static,
.visual-glyph, .solution-tabs,
.brand-head, .brand-title, .brand-stats, .stat, .stat-value, .stat-label,
.brand-grid, .brand-pillar, .brand-pillar-num, .brand-pillar-title, .brand-pillar-text,
.owlhunts-section, .silentsight-section, .silentsight-container, .silentsight-hero,
.silentsight-hero-title, .silentsight-brand, .silentsight-hero-subtitle,
.silentsight-hero-screenshot, .silentsight-screenshot-img,
.silentsight-showcase, .silentsight-section-title, .silentsight-title-line,
.silentsight-section-desc, .silentsight-feature-block, .silentsight-feature-block-card,
.silentsight-feature-with-img, .silentsight-feature-reverse,
.silentsight-feature-block-content, .silentsight-feature-block-media,
.silentsight-feature-block-title, .silentsight-feature-block-text,
.silentsight-feature-screenshot, .silentsight-packs, .silentsight-packs-grid,
.silentsight-pack, .silentsight-pack-popular, .silentsight-pack-popular-badge,
.silentsight-pack-name, .silentsight-pack-badge, .silentsight-pack-price,
.silentsight-pack-price-year, .silentsight-pack-features, .silentsight-pack-feature-off,
.silentsight-pack-tag, .silentsight-mission, .silentsight-mission-intro,
.silentsight-mission-text, .silentsight-pillars, .silentsight-pillar,
.silentsight-pillar-title {
    display: none !important;
}

/* -- LEGAL PAGE ------------------------------------------------------- */
body.legal-page {
    background: var(--canvas);
    color: var(--ink);
    min-height: 100vh;
}
body.legal-page .header {
    background: rgba(246, 246, 248, 0.92);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--line);
}
body.legal-page .header .brand { color: var(--ink); }
body.legal-page .nav a { color: var(--ink-2); }

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--s-7);
    font-family: var(--body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.legal-back svg {
    width: 14px;
    height: 14px;
    transform: rotate(180deg);
}
.legal-back:hover {
    color: var(--ink);
    gap: 14px;
}

.legal-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 120px clamp(20px, 5vw, 72px) clamp(80px, 10vw, 140px);
}
.legal-hero {
    width: 100%;
    margin-bottom: clamp(48px, 8vw, 80px);
    padding-bottom: clamp(40px, 6vw, 64px);
    border-bottom: 1px solid var(--line);
}
.legal-hero .section-eyebrow { margin-bottom: var(--s-4); }
.legal-hero h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: var(--s-5);
    max-width: none;
}
.legal-hero h1 .accent {
    background: var(--grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.legal-hero-lead {
    font-family: var(--body);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    font-weight: 300;
    line-height: 1.72;
    color: var(--muted);
    max-width: none;
    width: 100%;
}
.legal-toolbar {
    width: 100%;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.legal-lang {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    background: transparent;
    border: none;
    border-radius: 0;
}
.legal-lang-btn {
    padding: 10px 20px;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--muted);
    border: 1px solid var(--line);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.legal-lang-btn:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}
.legal-lang-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.legal-lang-content {
    display: none;
    width: 100%;
}
.legal-lang-content.is-active { display: block; }

/* Sommaire */
.legal-index {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4) var(--s-8);
    width: 100%;
    margin-bottom: clamp(56px, 8vw, 96px);
    padding-bottom: var(--s-7);
    border-bottom: 1px solid var(--line);
}
.legal-index a {
    font-family: var(--body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}
.legal-index a:hover { color: var(--ink); }

/* Sections numérotées */
.legal-section {
    width: 100%;
    padding: clamp(56px, 8vw, 96px) 0;
    border-top: 1px solid var(--line);
}
.legal-lang-content > .legal-index + .legal-section,
.legal-lang-content > .legal-section:first-child {
    border-top: none;
}
.legal-section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: clamp(16px, 3vw, 32px);
    margin-bottom: clamp(32px, 5vw, 48px);
}
.legal-section-num {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted-2);
    letter-spacing: 0.12em;
}
.legal-section-head h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.032em;
    color: var(--ink);
    margin: 0;
}
.legal-section-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 48px);
}
@media (min-width: 900px) {
    .legal-section-body {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(40px, 5vw, 56px) clamp(48px, 6vw, 80px);
    }
    .legal-part:only-child,
    .legal-section-body > .legal-part:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}
.legal-part h3 {
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 var(--s-4);
}
.legal-part p {
    font-family: var(--body);
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 var(--s-4);
}
.legal-part p:last-child { margin-bottom: 0; }
.legal-part p strong { color: var(--ink); font-weight: 600; }
.legal-part a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
    transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.legal-part a:hover {
    color: var(--ink-2);
    text-decoration-color: var(--ink);
}
.legal-part ul {
    margin: 0;
    padding-left: 1.15em;
    list-style: disc;
}
.legal-part li {
    font-family: var(--body);
    font-size: clamp(0.98rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 0.5em;
    padding-left: 0.2em;
}
.legal-part li::marker { color: var(--muted-2); }
.legal-note {
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    font-size: clamp(0.98rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: var(--muted);
}
.legal-note-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 0.35em;
}
.legal-footer-actions {
    width: 100%;
    margin-top: clamp(56px, 8vw, 96px);
    padding-top: var(--s-8);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
}
.legal-meta {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.legal-page footer {
    width: 100%;
    padding: var(--s-7) clamp(20px, 5vw, 72px);
    border-top: 1px solid var(--line);
}
.legal-page .footer-mini {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    font-family: var(--body);
    font-size: 0.8rem;
    color: var(--muted-2);
}
.legal-page .footer-mini a {
    color: var(--ink);
    font-weight: 500;
    transition: color 0.3s var(--ease);
}
.legal-page .footer-mini a:hover { color: var(--violet); }

@media (max-width: 640px) {
    .legal-main { padding-top: 100px; }
    .legal-index { flex-direction: column; gap: var(--s-3); }
    .legal-section-head { grid-template-columns: 1fr; gap: var(--s-2); }
    .legal-footer-actions { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1024px) and (max-width: 1400px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.9fr);
        gap: clamp(28px, 4vw, 52px);
    }
    .hero-right {
        padding-left: clamp(4px, 1.5vw, 16px);
    }
}

/* -- RESPONSIVE ------------------------------------------------------- */
@media (max-width: 1023px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .nav, .header-cta { display: none; }
    .burger-menu { display: flex; }

    .hero-inner { grid-template-columns: 1fr; gap: var(--s-9); }
    .hero-left { max-width: none; padding-right: 0; }
    .hero-title { line-height: 1.15; }
    .hero-title .word { overflow: visible; }
    .hero-metrics {
        grid-template-columns: 1fr;
        gap: var(--s-5);
    }
    .hero-metric {
        padding-right: 0;
        border-right: none;
        padding-bottom: var(--s-5);
        border-bottom: 1px solid var(--line);
    }
    .hero-metric:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .trust-band-inner { grid-template-columns: 1fr; gap: var(--s-5); }

    .how-circuit-canvas { display: none; }

    .how-pillars { grid-template-columns: 1fr; }
    .ai-block-grid { grid-template-columns: 1fr; }

    .hero-right,
    .ai-engine-stage {
        display: none !important;
    }

    .product-benefits {
        grid-template-columns: 1fr;
        gap: var(--s-8);
        padding-top: var(--s-6);
    }
    .benefit {
        padding: 0 0 var(--s-6);
        border-bottom: 1px solid var(--night-line);
    }
    .benefit:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
    .benefit:not(:last-child)::after {
        display: none;
    }
    .benefit-text { max-width: none; }
    .product-module { grid-template-columns: 1fr; direction: ltr; }
    .product-module.is-reverse > * { direction: ltr; }
    .product-module.is-reverse .product-module-media { order: -1; }

    .packs-grid { grid-template-columns: 1fr; }
    .services-list { grid-template-columns: 1fr; }
    .services-cta { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .project-showcase { grid-template-columns: 1fr; }
    .devis-form { grid-template-columns: 1fr; }
    .devis-form .form-group { grid-column: 1 / -1 !important; }
}

@media (max-width: 1023px), (orientation: landscape) and (max-height: 520px) {
    .hero-right,
    .ai-engine-stage {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hero-title {
        line-height: 1.2;
    }
    .hero-title-line {
        overflow: visible;
    }
    .hero-title .word {
        display: block;
        overflow: visible;
        padding-bottom: 0.1em;
    }
    .hero-title .word + .word {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    #home { padding: 110px 5vw 60px; }
    .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}
