/* =========================================
   Astra Intelligence — Design System
   ========================================= */
:root {
    --deep-space: #0B132B;
    --neon-cyan: #00F0FF;
    --tech-gray: #1C2541;
    --starlight: #F8F9FA;
    --gradient-primary: linear-gradient(135deg, #00F0FF 0%, #0055FF 100%);
    --card-bg: rgba(5, 9, 22, 0.75);
    --border-light: rgba(255, 255, 255, 0.08);
    --text-muted: #94A3B8;
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--deep-space);
    color: var(--starlight);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, .logo { font-family: 'Space Grotesk', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }

/* --- Canvas background --- */
#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* --- HEADER / NAV --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(11, 19, 43, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: height 0.3s ease, background 0.3s ease;
}
header.is-scrolled {
    height: 64px;
    background: rgba(11, 19, 43, 0.9);
}

.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: white; }
.logo-accent { color: var(--neon-cyan); }
.logo-mark line, .logo-mark .logo-link {
    stroke: var(--starlight);
    stroke-width: 2.5;
    stroke-linecap: round;
}
.logo-mark .logo-link { stroke: var(--neon-cyan); }
.logo-mark .logo-star {
    fill: var(--neon-cyan);
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.9));
}

nav#main-nav { display: flex; align-items: center; gap: 32px; }
nav#main-nav a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s; }
nav#main-nav a:not(.nav-cta) { position: relative; padding-bottom: 4px; }
nav#main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
    transition: width 0.25s ease;
}
nav#main-nav a:not(.nav-cta):hover::after, nav#main-nav a.current::after { width: 100%; }
nav#main-nav a:hover, nav#main-nav a.current { color: var(--starlight); }
nav#main-nav a.nav-cta {
    background: var(--gradient-primary);
    color: #041018;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 999px;
}
nav#main-nav a.nav-cta:hover { color: #041018; opacity: 0.9; }

#nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--starlight);
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--gradient-primary); color: #041018; }
.btn-primary:hover { box-shadow: 0 0 30px rgba(0, 240, 255, 0.35); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--starlight); border: 1px solid var(--border-light); }
.btn-outline:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.btn-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.link-arrow { color: var(--neon-cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow:hover { text-decoration: underline; }

/* --- HERO --- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding-top: var(--header-height);
}
.hero-small { min-height: 55vh; }
.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    padding: 40px 32px;
}
/* A soft, edgeless vignette (not a boxed panel) keeps the text legible
   over the animated constellation without fencing it into a rectangle. */
.hero .container::before {
    content: "";
    position: absolute;
    inset: -90px -70px;
    background: radial-gradient(ellipse 68% 62% at center, rgba(3, 7, 18, 0.7) 0%, rgba(3, 7, 18, 0.38) 55%, transparent 78%);
    z-index: -1;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}
.hero-glow-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.55), transparent 70%);
    top: -140px; left: 6%;
    animation: floatBlob 16s ease-in-out infinite;
}
.hero-glow-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.5), transparent 70%);
    bottom: -160px; right: 4%;
    animation: floatBlob 20s ease-in-out infinite reverse;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.08); }
}

.hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); margin-bottom: 20px; line-height: 1.1; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55); }
.hero h1 span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65); }
.eyebrow {
    display: inline-block;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

/* --- HERO ENTRANCE --- */
.hero .container { animation: heroPanelIn 1s ease both; }
.hero .eyebrow { animation: heroFadeUp 0.8s ease both; animation-delay: 0.3s; }
.hero h1 { animation: heroFadeUp 0.8s ease both; animation-delay: 0.45s; }
.hero p { animation: heroFadeUp 0.8s ease both; animation-delay: 0.6s; }
.hero .btn-group { animation: heroFadeUp 0.8s ease both; animation-delay: 0.75s; }
.hero .post-hero-meta { animation: heroFadeUp 0.8s ease both; animation-delay: 0.3s; }

@keyframes heroPanelIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SCROLL CUE --- */
.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.9s both, scrollCueBounce 2.2s ease-in-out 1.7s infinite;
    transition: opacity 0.4s ease;
}
.scroll-cue.is-hidden { opacity: 0 !important; pointer-events: none; }
.scroll-cue i { color: var(--neon-cyan); font-size: 1rem; }
@keyframes scrollCueBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- SECTIONS --- */
.section { padding: 120px 0; }
.section-tight { padding: 60px 0; }
.section-title { text-align: center; font-size: 2.75rem; margin-bottom: 20px; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 60px; font-size: 1.05rem; }
.section-header { margin-bottom: 60px; }
.text-center { text-align: center; }

.section-decor { position: relative; overflow: hidden; }
.section-decor > .container { position: relative; z-index: 1; }

/* --- SCROLL REVEAL ---
   Elements ignite into view like stars locking into a constellation:
   a soft blur-focus paired with a directional drift. Pair `.reveal`
   with a direction modifier (reveal-left / reveal-right / reveal-down /
   reveal-scale) — default drifts up. Add `.reveal-glow` on top for a
   brief cyan pulse on arrival (reserved for hero-weight cards). */
.reveal {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.reveal-armed { opacity: 0; transform: translateY(32px); filter: blur(6px); }
.reveal.is-revealed { opacity: 1; transform: translateY(0); filter: blur(0); }

.reveal-left.reveal-armed { transform: translateX(-64px); }
.reveal-left.is-revealed { transform: translateX(0); }

.reveal-right.reveal-armed { transform: translateX(64px); }
.reveal-right.is-revealed { transform: translateX(0); }

.reveal-down.reveal-armed { transform: translateY(-32px); }
.reveal-down.is-revealed { transform: translateY(0); }

.reveal-scale.reveal-armed { transform: scale(0.88); }
.reveal-scale.is-revealed { transform: scale(1); }

@keyframes revealPulse {
    0% { box-shadow: 0 0 0 rgba(0, 240, 255, 0); }
    45% { box-shadow: 0 0 36px rgba(0, 240, 255, 0.3); }
    100% { box-shadow: 0 0 0 rgba(0, 240, 255, 0); }
}
.reveal-glow.is-revealed { animation: revealPulse 1.1s ease-out var(--reveal-delay, 0s) both; }

/* --- WATERMARK / FILIGRANE --- */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 15rem);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    letter-spacing: 6px;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* --- ORBIT RINGS --- */
.orbit-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: spinSlow 100s linear infinite;
}
.orbit-rings circle { fill: none; stroke: rgba(0, 240, 255, 0.12); stroke-width: 1; }
@keyframes spinSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- CARDS / TILT --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    perspective: 1000px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-fixed-2 { grid-template-columns: repeat(2, 1fr); }

/* --- BENTO GRID (Nos Expertises) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 24px;
    perspective: 1000px;
}
.bento-feature { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-item-a { grid-column: 3; grid-row: 1; }
.bento-item-b { grid-column: 3; grid-row: 2; }
.bento-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 30px; }
.bento-wide .tilt-content { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.bento-wide .tilt-content > div { flex: 1; min-width: 260px; }
.bento-wide .card-icon-svg { margin-bottom: 0; flex-shrink: 0; }
.bento-feature .card-icon-svg { width: 52px; height: 52px; }
.bento-feature h3 { font-size: 1.75rem; }
.bento-feature.tilt-card { display: flex; }
.bento-feature .tilt-content { display: flex; flex-direction: column; flex: 1; }

/* Small pills used to add texture/detail to bento cards */
.mini-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.bento-feature .mini-tags { margin-top: auto; padding-top: 24px; }
.bento-feature .link-arrow { margin-top: 20px; }

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 4px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.feature-highlights li { position: relative; padding-left: 20px; list-style: none; }
.feature-highlights li::before { content: "—"; position: absolute; left: 0; color: var(--neon-cyan); }

/* Agentic AI architecture schema (constellation diagram) */
.schema-caption {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 26px 0 6px;
}
.ai-schema { width: 100%; height: auto; display: block; margin-bottom: 4px; overflow: visible; }
.ai-schema .schema-line {
    stroke: rgba(0, 240, 255, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 3 5;
    animation: schemaFlow 5s linear infinite;
}
@keyframes schemaFlow { to { stroke-dashoffset: -32; } }
.ai-schema .schema-port { fill: var(--neon-cyan); filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.85)); }
.ai-schema .schema-hub { fill: var(--neon-cyan); animation: schemaHubPulse 2.4s ease-in-out infinite; }
@keyframes schemaHubPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.75)); }
    50% { filter: drop-shadow(0 0 16px rgba(0, 240, 255, 1)); }
}
.ai-schema .schema-ring { fill: none; stroke: var(--neon-cyan); opacity: 0.35; }
.ai-schema .schema-ring-outer { animation: schemaSpin 40s linear infinite; transform-origin: 320px 100px; }
@keyframes schemaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Input/output nodes: icon + label pills anchored to the schema's
   connector ports, cycled by JS through real use cases so the diagram
   reads as a living example rather than one fixed illustration. */
.schema-wrap { position: relative; }
.schema-nodes { position: absolute; inset: 0; pointer-events: none; }
.schema-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: rgba(6, 10, 24, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
}
.schema-node-in { transform: translate(calc(-100% - 14px), -50%); }
.schema-node-out { transform: translate(14px, -50%); padding: 6px 6px 6px 14px; flex-direction: row-reverse; }
.schema-node-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.14);
    color: var(--neon-cyan);
    font-size: 11px;
    flex-shrink: 0;
}
.schema-node-label {
    font-size: 0.8rem;
    color: var(--starlight);
    font-weight: 500;
}
.schema-hub-label {
    position: absolute;
    left: 50%;
    top: 73%;
    transform: translate(-50%, 0);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--starlight);
    text-align: center;
    white-space: nowrap;
}
.schema-wrap.is-swapping .schema-node { opacity: 0; }

/* --- CUSTOM SVG ICONS --- */
.card-icon-svg {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    overflow: visible;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}
.card-icon-svg circle { fill: var(--neon-cyan); }
.card-icon-svg circle.ring { fill: none; stroke: var(--neon-cyan); opacity: 0.5; }
.card-icon-svg path,
.card-icon-svg line,
.card-icon-svg rect {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tilt-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.3s;
    transform-style: preserve-3d;
    cursor: default;
}
.tilt-card.is-link { cursor: pointer; }
.tilt-card:hover { border-color: rgba(0, 240, 255, 0.3); }

.tilt-content { transform: translateZ(40px); }

.card-icon {
    font-size: 36px;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.tilt-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.tilt-card p { color: var(--text-muted); font-size: 1rem; }
.tilt-card .link-arrow { margin-top: 20px; }

.tilt-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 240, 255, 0.12), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.tilt-card:hover::before { opacity: 1; }

/* HUD corner brackets, drawn without extra markup */
.tilt-card::after {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.3s;
    background:
        linear-gradient(rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.6)) top left / 12px 2px no-repeat,
        linear-gradient(rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.6)) top left / 2px 12px no-repeat,
        linear-gradient(rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.6)) top right / 12px 2px no-repeat,
        linear-gradient(rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.6)) top right / 2px 12px no-repeat,
        linear-gradient(rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.6)) bottom left / 12px 2px no-repeat,
        linear-gradient(rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.6)) bottom left / 2px 12px no-repeat,
        linear-gradient(rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.6)) bottom right / 12px 2px no-repeat,
        linear-gradient(rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.6)) bottom right / 2px 12px no-repeat;
}
.tilt-card:hover::after { opacity: 1; }

/* --- STORYTELLING / QUOTE --- */
.quote-block {
    border-left: 3px solid var(--neon-cyan);
    padding-left: 30px;
    margin: 50px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    color: var(--starlight);
}
.prose { max-width: 780px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; line-height: 1.9; }
.prose strong { color: var(--starlight); }

/* --- SERVICE DETAIL (Build/Run) --- */
.service-detail {
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 50px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}
.service-detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.service-detail-header .card-icon { margin-bottom: 0; }
.service-detail-header .card-icon-svg { margin-bottom: 0; flex-shrink: 0; }
.service-detail > p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.05rem; max-width: 720px; }

.build-run-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.build-run-col { background: rgba(3, 7, 18, 0.55); border-radius: 16px; padding: 25px; border: 1px solid var(--border-light); }
.build-run-col h4 { color: var(--neon-cyan); margin-bottom: 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.build-run-col p { color: var(--text-muted); }

/* --- ENGAGEMENTS --- */
.engagement-card { display: flex; gap: 24px; align-items: flex-start; }
.engagement-card .card-icon { flex-shrink: 0; margin-top: 4px; }
.engagement-card .card-icon-svg { flex-shrink: 0; margin-top: 4px; }
.engagement-card ul { color: var(--text-muted); display: flex; flex-direction: column; gap: 10px; }
.engagement-card li { position: relative; padding-left: 20px; }
.engagement-card li::before { content: "—"; position: absolute; left: 0; color: var(--neon-cyan); }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--starlight); }
.contact-detail i { color: var(--neon-cyan); width: 20px; }

.form-card label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.form-row { margin-bottom: 22px; }
.form-card input, .form-card select, .form-card textarea {
    width: 100%;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-light);
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--starlight);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
}
.form-card button { width: 100%; }

/* --- LOGO / TOOLS MARQUEE --- */
.logo-marquee-section { overflow: hidden; }
.logo-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}
.logo-track.marquee-reverse { animation-direction: reverse; animation-duration: 38s; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}
.logo-item:hover { opacity: 1; color: var(--starlight); }
.logo-item i {
    font-size: 26px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- STATS BAR --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item .stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-item .stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* --- PROCESS TIMELINE (Notre méthode) --- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}
.process-timeline::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
}
.process-step { text-align: center; position: relative; }
.process-step .step-node {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--tech-gray);
    border: 2px solid var(--neon-cyan);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    position: relative;
    z-index: 1;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* --- TRAJECTORY SCROLL INDICATOR --- */
.trajectory {
    position: fixed;
    left: 32px;
    top: 120px;
    bottom: 120px;
    width: 2px;
    z-index: 50;
    pointer-events: none;
}
.trajectory-track { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.06); }
.trajectory-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.9), 0 0 26px rgba(0, 240, 255, 0.5);
    transition: top 0.1s linear;
}

/* --- BLOG --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card .tilt-content { display: flex; flex-direction: column; height: 100%; }
.blog-card-image {
    width: 100%;
    height: 160px;
    border-radius: 14px;
    margin-bottom: 20px;
    background: var(--tech-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-image svg { width: 44px; height: 44px; opacity: 0.8; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 0.85rem; color: var(--text-muted); }
.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
}
.tag-badge.tag-actualite { background: rgba(0, 85, 255, 0.12); color: #7ea8ff; border-color: rgba(0, 85, 255, 0.3); }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.blog-card p { color: var(--text-muted); flex-grow: 1; }
.blog-card .link-arrow { margin-top: 20px; }
.blog-empty { text-align: center; color: var(--text-muted); padding: 60px 0; grid-column: 1 / -1; }

/* Single post page */
.post-hero-meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.post-content { max-width: 760px; margin: 0 auto; color: var(--text-muted); font-size: 1.08rem; line-height: 1.9; }
.post-content h2 { color: var(--starlight); font-size: 1.6rem; margin: 40px 0 16px; }
.post-content p { margin-bottom: 20px; }
.post-content ul { margin: 0 0 20px 0; display: flex; flex-direction: column; gap: 10px; }
.post-content li { position: relative; padding-left: 22px; }
.post-content li::before { content: "—"; position: absolute; left: 0; color: var(--neon-cyan); }
.post-content strong { color: var(--starlight); }
.post-back { display: block; text-align: center; margin-top: 60px; }
.post-source-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--neon-cyan); }

/* --- CTA SECTION --- */
.cta-section {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding: 100px 0;
}
.cta-section h2 { font-size: 2.5rem; margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 36px; }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border-light); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { margin-bottom: 18px; font-size: 1rem; }
.footer-grid p { color: var(--text-muted); margin-top: 16px; max-width: 320px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { color: var(--text-muted); transition: color 0.2s; }
.footer-grid a:hover { color: var(--neon-cyan); }
.footer-bottom { border-top: 1px solid var(--border-light); padding: 24px 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
    .trajectory { display: none; }
}

@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .bento-feature, .bento-item-a, .bento-item-b, .bento-wide {
        grid-column: auto;
        grid-row: auto;
    }
    .bento-wide .tilt-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .grid-fixed-2 { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: 1fr; gap: 50px; }
    .process-timeline::before { display: none; }
}

@media (max-width: 768px) {
    .hero .container { padding: 32px 20px; }
    .hero .container::before { inset: -50px -24px; }
    .hero h1 { font-size: 2.75rem; }
    .section-title { font-size: 2.1rem; }
    .section { padding: 80px 0; }

    #nav-toggle { display: flex; align-items: center; justify-content: center; }

    nav#main-nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: min(320px, 80vw);
        height: calc(100vh - var(--header-height));
        background: rgba(11, 19, 43, 0.97);
        backdrop-filter: blur(10px);
        border-left: 1px solid var(--border-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        gap: 26px;
        transition: right 0.3s ease;
    }
    nav#main-nav.nav-open { right: 0; }
    nav#main-nav a.nav-cta { margin-top: 10px; }

    .service-detail { padding: 30px; }
    .engagement-card { flex-direction: column; }
    .schema-node { padding: 5px 10px 5px 5px; gap: 6px; }
    .schema-node-out { padding: 5px 5px 5px 10px; }
    .schema-node-icon { width: 20px; height: 20px; font-size: 9px; }
    .schema-node-label { font-size: 0.7rem; }
    .schema-hub-label { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track, .hero-glow, .orbit-rings, .reveal,
    .ai-schema .schema-line, .ai-schema .schema-ring-outer, .ai-schema .schema-hub,
    .hero .container, .hero .eyebrow, .hero h1, .hero p, .hero .btn-group, .hero .post-hero-meta,
    .scroll-cue { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; box-shadow: none !important; }
    .reveal.reveal-armed { opacity: 1 !important; transform: none !important; }
}
