/* ============================================
   WEB360 — IT/Cloud/Dev Aesthetic
   Mix dark hero + light sections + code editor UI
   ============================================ */
:root {
    --primary:       #4285f4;
    --primary-dark:  #2e73b8;
    --primary-light: #6ea8fe;
    --accent:        #FF5D0D;
    --green:         #34d399;
    --purple:        #a78bfa;
    --yellow:        #fbbf24;
    --red:           #f87171;
    --dark:          #0a0a0a;
    --dark-2:        #111111;
    --dark-3:        #1a1a1a;
    --surface:       #161616;
    --cream:         #EAE4E1;
    --off-white:     #F7F5F3;
    --gray:          #8b949e;
    --gray-dim:      #484f58;
    --border:        #262626;
    --border-subtle: #333;
    --white:         #ffffff;
    --font:          'Montserrat', sans-serif;
    --mono:          'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
@media (min-width: 1024px) { html { font-size: clamp(14px, 1.05vw, 17px); } }

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--off-white);
    line-height: 1.7;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: var(--dark);
}

.loader-panels { position: absolute; inset: 0; display: flex; }

.loader-panel { flex: 1; background: var(--dark-2); transform: scaleX(0); }

.loader-center { position: relative; z-index: 2; text-align: center; }

.loader-bar-wrap {
    width: 180px; height: 3px; background: var(--border);
    border-radius: 10px; overflow: hidden; margin: 0 auto;
}

.loader-bar { height: 100%; width: 0; background: var(--primary); border-radius: 10px; }

.loader-text {
    margin-top: 14px; font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 3px; color: var(--gray); opacity: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0; transition: all 0.5s var(--ease);
}

.navbar.on-dark .navbar-link { color: rgba(255,255,255,0.7); }
.navbar.on-dark .navbar-link:hover { color: var(--white); }
.navbar.on-dark .logo-text { color: var(--white); }
.navbar.on-dark .navbar-toggle span { background: var(--white); }

.navbar.scrolled {
    background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
    padding: 14px 0; box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.navbar.scrolled .navbar-link { color: var(--dark) !important; }
.navbar.scrolled .navbar-link:hover { color: var(--primary) !important; }
.navbar.scrolled .logo-text { color: var(--dark) !important; }

.navbar-container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { z-index: 1002; }

/* Navbar logos — light for dark hero, color for scrolled */
.nav-logo-light, .nav-logo-color {
    height: 36px;
    width: auto;
    transition: opacity 0.4s;
}

.nav-logo-color { display: none; }

/* On dark hero: show white logo */
.navbar.on-dark .nav-logo-light { display: block; opacity: 1; }
.navbar.on-dark .nav-logo-color { display: none; }

/* When scrolled (light bg): show color logo */
.navbar.scrolled .nav-logo-light { display: none; }
.navbar.scrolled .nav-logo-color { display: block; opacity: 1; }

/* Default (not on dark, not scrolled) — show color */
.navbar:not(.on-dark):not(.scrolled) .nav-logo-light { display: none; }
.navbar:not(.on-dark):not(.scrolled) .nav-logo-color { display: block; }

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

.navbar-menu { display: flex; align-items: center; gap: 0; }

.navbar-link {
    padding: 10px 16px; font-size: 0.78rem; font-weight: 500;
    color: var(--dark); position: relative; transition: color 0.3s;
    letter-spacing: 0.2px;
}

.navbar-link::after {
    content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px;
    height: 1.5px; background: var(--primary);
    transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}

.navbar-link:hover::after,
.navbar-item.active .navbar-link::after { transform: scaleX(1); transform-origin: left; }

.dropdown-icon { font-size: 0.5rem; margin-left: 4px; transition: transform 0.3s; }
.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown-icon { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--white); border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; padding: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.35s var(--ease);
}

.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-menu a {
    display: block; padding: 10px 14px; font-size: 0.78rem; color: var(--gray);
    border-radius: 8px; transition: all 0.3s;
}

.dropdown-menu a:hover { background: var(--off-white); color: var(--dark); }

.dropdown-sub-icon { font-size: 0.45rem; margin-left: auto; opacity: 0.4; }

.has-sub { position: relative; }
.has-sub > a { display: flex !important; align-items: center; gap: 8px; }

.dropdown-sub {
    position: absolute; left: 100%; top: -6px;
    min-width: 200px;
    background: var(--white); border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; padding: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    opacity: 0; visibility: hidden; transform: translateX(8px);
    transition: all 0.35s var(--ease);
    list-style: none;
}

.has-sub:hover > .dropdown-sub {
    opacity: 1; visibility: visible; transform: translateX(0);
}

/* Beam CTA */
.btn-beam {
    position: relative; padding: 10px 26px; font-size: 0.75rem; font-weight: 600;
    color: var(--white); background: var(--primary); border: none;
    border-radius: 50px; cursor: pointer; font-family: var(--font);
    transition: all 0.4s var(--ease);
}

.btn-beam:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66,133,244,0.25);
}

.navbar-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; z-index: 1001; padding: 8px;
}

.navbar-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.4s; }
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 34px; border-radius: 50px; font-family: var(--font);
    font-weight: 600; font-size: 0.85rem; border: none; cursor: pointer;
    transition: all 0.4s var(--ease); letter-spacing: 0.3px;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(66,133,244,0.2); }

.btn-outline-dark { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.15); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

.btn-sm { padding: 12px 26px; font-size: 0.78rem; }

/* ============================================
   HERO — Dark, centered logo, clouds
   ============================================ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--dark); overflow: hidden;
}

.hero-clouds { position: absolute; inset: 0; pointer-events: none; }

.cloud { position: absolute; border-radius: 50%; filter: blur(120px); will-change: transform; }

.cloud-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(66,133,244,0.15) 0%, transparent 70%);
    top: -10%; left: -5%; animation: drift1 18s ease-in-out infinite;
}
.cloud-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 70%);
    bottom: -5%; right: 0; animation: drift2 22s ease-in-out infinite;
}
.cloud-3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(52,211,153,0.08) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    animation: drift3 20s ease-in-out infinite;
}

@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,30px) scale(1.1)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,-20px) scale(1.05)} }
@keyframes drift3 { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-45%,-55%) scale(1.1)} }

/* Grid overlay */
.hero-grid {
    position: absolute; inset: 0;
    pointer-events: auto;
}

.hero-grid canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-wrapper {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 0 40px;
    pointer-events: none;
}
.hero-wrapper a, .hero-wrapper button, .hero-wrapper .hero-terminal {
    pointer-events: auto;
}

.hero-accent {
    display: none;
}

.hero-logo-wrap { position: relative; margin-bottom: 36px; will-change: transform; }

/* Hero big logo image */
.hero-logo-img {
    width: clamp(280px, 48vw, 580px);
    height: auto;
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem); color: var(--gray);
    max-width: 500px; line-height: 1.9; margin-bottom: 36px;
}

/* Terminal-style tagline */
.hero-terminal {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 24px;
    font-family: var(--mono); font-size: 0.78rem;
    color: var(--gray); margin-bottom: 36px;
    display: inline-flex; align-items: center; gap: 10px;
}

.hero-terminal .prompt { color: var(--green); }
.hero-terminal .cmd { color: var(--cream); }
.hero-terminal .cursor {
    display: inline-block; width: 8px; height: 16px;
    background: var(--primary); border-radius: 1px;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
    position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 5;
}

.scroll-indicator-text { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gray-dim); }

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

@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(0.5);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} }

/* ============================================
   CODE EDITOR WINDOW — reusable component
   ============================================ */
.editor-window {
    background: var(--dark-2); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
}

.editor-topbar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: var(--dark);
    border-bottom: 1px solid var(--border);
}

.editor-dot {
    width: 11px; height: 11px; border-radius: 50%;
}

.editor-dot.red { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.4); }
.editor-dot.yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255,189,46,0.4); }
.editor-dot.green { background: #28ca42; box-shadow: 0 0 6px rgba(40,202,66,0.4); }

.editor-tab {
    margin-left: 12px; font-family: var(--mono); font-size: 0.68rem;
    color: var(--gray); padding: 4px 12px; border-radius: 6px;
    background: var(--dark-2);
}

.editor-tab.active { color: var(--cream); background: var(--surface); }

.editor-body {
    padding: 20px; font-family: var(--mono); font-size: 0.75rem;
    line-height: 1.9; color: var(--gray); overflow-x: auto;
}

.editor-line {
    display: flex; gap: 16px;
}

.line-num {
    color: var(--gray-dim); min-width: 24px; text-align: right;
    user-select: none;
}

.line-content { color: var(--cream); }

/* Syntax colors */
.syn-key { color: var(--purple); }
.syn-str { color: var(--green); }
.syn-func { color: var(--primary-light); }
.syn-num { color: var(--yellow); }
.syn-comment { color: var(--gray-dim); font-style: italic; }
.syn-tag { color: var(--red); }
.syn-attr { color: var(--yellow); }

/* ============================================
   TERMINAL WINDOW — reusable component
   ============================================ */
.terminal-window {
    background: var(--dark); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
}

.terminal-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-bottom: 1px solid var(--border);
}

.terminal-title {
    font-family: var(--mono); font-size: 0.65rem; color: var(--gray-dim);
    letter-spacing: 1px;
}

.terminal-body {
    padding: 20px; font-family: var(--mono); font-size: 0.75rem; line-height: 2;
}

.terminal-line { color: var(--gray); }
.terminal-line .prompt { color: var(--green); }
.terminal-line .output { color: var(--cream); }
.terminal-line .success { color: var(--green); }
.terminal-line .info { color: var(--primary-light); }

/* ============================================
   SECTION — Intro (off-white)
   ============================================ */
.section-intro { position: relative; padding: 140px 0; background: var(--off-white); overflow: hidden; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.intro-editor { position: relative; }

.experience-badge {
    position: absolute; bottom: -16px; right: -16px;
    background: var(--primary); color: var(--white);
    padding: 16px 22px; border-radius: 12px; text-align: center;
    box-shadow: 0 12px 35px rgba(66,133,244,0.2); z-index: 2;
}

.experience-number { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.experience-text { font-size: 0.6rem; opacity: 0.85; margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }

.intro-content { padding: 10px 0; }

.section-badge {
    display: inline-block; padding: 5px 16px;
    background: rgba(66,133,244,0.08); color: var(--primary);
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    border-radius: 50px; margin-bottom: 18px;
}

.cmd-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--cream);
    margin-bottom: 18px;
}

.cmd-badge .cmd-prompt {
    color: var(--green);
    margin-right: 6px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 18px; color: var(--dark);
    letter-spacing: -0.5px;
}

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

.section-subtitle { font-size: 0.9rem; color: var(--gray); line-height: 1.9; margin-bottom: 28px; }

.intro-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 32px; }

.intro-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; font-weight: 500; color: var(--dark);
}

.intro-list li i { color: var(--green); font-size: 0.7rem; }

/* ============================================
   SERVICES — Friendly interactive shell
   ============================================ */
.section-services {
    padding: 140px 0; background: var(--off-white);
    position: relative; overflow: hidden;
}

.section-header { text-align: center; max-width: 600px; margin: 0 auto 70px; }

/* Shell container */
.shell-container {
    max-width: 900px;
    margin: 0 auto;
}

.shell-window {
    background: #1e2028;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.12),
        0 0 0 1px rgba(255,255,255,0.06);
}

.shell-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #171a20;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.shell-topbar-title {
    flex: 1;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: #6b7280;
    letter-spacing: 0.5px;
}

/* Command tabs — the clickable services */
.shell-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.shell-cmd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: #9ca3b0;
    font-family: var(--mono);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    font-weight: 500;
}

.shell-cmd-btn:hover {
    background: rgba(66,133,244,0.1);
    border-color: rgba(66,133,244,0.2);
    color: var(--primary-light);
}

.shell-cmd-btn.active {
    background: rgba(66,133,244,0.15);
    border-color: rgba(66,133,244,0.35);
    color: var(--white);
    box-shadow: 0 0 20px rgba(66,133,244,0.08);
}

.shell-cmd-btn i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.shell-cmd-btn.active i {
    opacity: 1;
    color: var(--primary-light);
}

/* Shell output area */
.shell-output {
    padding: 24px;
    min-height: 260px;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 2;
}

.shell-output-prompt {
    color: var(--green);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shell-output-prompt .path { color: var(--primary-light); }
.shell-output-prompt .dollar { color: var(--green); }
.shell-output-prompt .typed-service { color: var(--cream); }

/* Service response */
.shell-response {
    display: none;
    animation: shellFadeIn 0.4s var(--ease);
}

.shell-response.active {
    display: block;
}

@keyframes shellFadeIn {
    from { opacity: 0; transform: translateY(8px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.shell-resp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.shell-resp-icon {
    width: 44px;
    height: 44px;
    background: rgba(66,133,244,0.12);
    border: 1px solid rgba(66,133,244,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shell-resp-icon i {
    font-size: 1.1rem;
    color: var(--primary-light);
}

.shell-resp-title {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.shell-resp-line {
    color: #9ca3b0;
    padding: 2px 0;
}

.shell-resp-line .label {
    color: var(--yellow);
}

.shell-resp-line .value {
    color: var(--cream);
}

.shell-resp-line .check {
    color: var(--green);
}

.shell-resp-features {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shell-resp-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.15);
    border-radius: 6px;
    font-size: 0.68rem;
    color: var(--green);
}

.shell-resp-cta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.shell-resp-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.35s var(--ease);
}

.shell-resp-cta a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66,133,244,0.2);
}

/* Friendly hint below shell */
.shell-hint {
    text-align: center;
    margin-top: 24px;
    font-size: 0.78rem;
    color: var(--gray);
}

.shell-hint i { color: var(--primary); margin-right: 6px; }

/* ============================================
   MARQUEE STATS (accent strip)
   ============================================ */
.stats-marquee { padding: 60px 0; background: var(--primary); overflow: hidden; }

.stats-marquee .marquee-track {
    display: flex; gap: 40px; animation: marquee 20s linear infinite; width: max-content;
}

.marquee-item { display: flex; align-items: center; gap: 14px; white-space: nowrap; flex-shrink: 0; }
.marquee-number { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.marquee-label { font-size: 0.72rem; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 2px; }
.marquee-dot { width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%; flex-shrink: 0; }

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

/* ============================================
   AI SECTION — dark futuristic
   ============================================ */
.section-ai {
    position: relative; padding: 140px 0;
    background: linear-gradient(165deg, #070b14 0%, #0d1117 40%, #0a0f1a 100%);
    overflow: hidden;
}

.section-ai canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; opacity: 0.4;
}

.ai-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
    position: relative; z-index: 2;
}

.ai-badge {
    background: rgba(167,139,250,0.12) !important;
    color: var(--purple) !important;
}

.ai-badge i { margin-right: 6px; }

.ai-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800; line-height: 1.15;
    color: var(--white); margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.ai-highlight {
    background: linear-gradient(135deg, var(--purple), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-desc {
    font-size: 0.9rem; color: var(--gray);
    line-height: 1.9; margin-bottom: 36px;
}

.ai-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }

.ai-feature {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px;
    opacity: 1; /* fallback si GSAP ne se déclenche pas */
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    transition: all 0.4s var(--ease);
}

.ai-feature:hover {
    background: rgba(167,139,250,0.06);
    border-color: rgba(167,139,250,0.15);
    transform: translateX(6px);
}

.ai-feature-icon {
    width: 42px; height: 42px; min-width: 42px;
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--purple);
}

.ai-feature h4 {
    font-size: 0.88rem; font-weight: 700;
    color: var(--white); margin-bottom: 4px;
}

.ai-feature p {
    font-size: 0.78rem; color: var(--gray);
    line-height: 1.7; margin: 0;
}

.btn-ai {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 34px; border-radius: 50px;
    font-family: var(--font); font-weight: 600; font-size: 0.85rem;
    border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--purple), var(--primary));
    color: var(--white);
    transition: all 0.4s var(--ease);
    letter-spacing: 0.3px;
}

.btn-ai:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(167,139,250,0.25);
}

/* AI Visual — Chat prompt window */
.ai-visual { position: relative; }

.ai-prompt-window {
    background: #12151c;
    border: 1px solid rgba(167,139,250,0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 60px rgba(167,139,250,0.05);
}

.ai-prompt-topbar {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 20px;
    background: #0e1018;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ai-prompt-title {
    flex: 1; text-align: center;
    font-family: var(--mono); font-size: 0.68rem;
    color: var(--gray-dim); letter-spacing: 0.5px;
}

.ai-prompt-body {
    padding: 24px; min-height: 220px;
}

.ai-msg {
    margin-bottom: 18px;
}

.ai-msg-label {
    display: inline-block;
    font-family: var(--mono); font-size: 0.65rem;
    font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 8px;
}

.ai-msg.user .ai-msg-label { color: var(--primary-light); }
.ai-msg.assistant .ai-msg-label { color: var(--purple); }
.ai-msg.assistant .ai-msg-label i { margin-right: 4px; }

.ai-msg.user p {
    font-size: 0.85rem; color: var(--cream);
    background: rgba(66,133,244,0.08);
    border: 1px solid rgba(66,133,244,0.12);
    border-radius: 12px; padding: 14px 18px;
    display: inline-block; line-height: 1.6;
}

.ai-msg.assistant p {
    font-size: 0.82rem; color: #b0b8c8;
    line-height: 1.8; margin: 0;
    font-family: var(--mono);
}

.ai-cursor {
    color: var(--purple);
    animation: blink 1s step-end infinite;
    font-weight: 700;
}

.ai-prompt-input {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.78rem; color: var(--gray-dim);
}

.ai-prompt-input i { color: var(--purple); opacity: 0.5; }

.ai-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 20px; justify-content: center;
}

.ai-tag {
    padding: 5px 14px;
    background: rgba(167,139,250,0.06);
    border: 1px solid rgba(167,139,250,0.12);
    border-radius: 20px;
    font-size: 0.68rem; font-family: var(--mono);
    color: var(--purple); letter-spacing: 0.5px;
}

/* ============================================
   PORTFOLIO (off-white, with terminal)
   ============================================ */
.section-portfolio { padding: 140px 0; background: var(--off-white); }

.portfolio-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.portfolio-card {
    position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
    background: var(--white); border: 1px solid rgba(0,0,0,0.06);
}

.portfolio-card img {
    width: 100%; height: 200px; object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.portfolio-card:hover img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px; opacity: 0; transition: opacity 0.4s;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* Folder grid */
.folder-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.folder-item {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.folder-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border-color: rgba(66,133,244,0.2);
}

.folder-item.active {
    border-color: var(--primary);
    background: rgba(66,133,244,0.03);
}

.folder-icon {
    width: 46px; height: 46px; min-width: 46px;
    background: rgba(66,133,244,0.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--primary);
    transition: all 0.3s;
}

.folder-item:hover .folder-icon,
.folder-item.active .folder-icon {
    background: var(--primary); color: var(--white);
}

.folder-name {
    font-family: var(--mono);
    font-size: 0.82rem; font-weight: 600;
    color: var(--dark);
}

.folder-item.active .folder-name { color: var(--primary); }

/* Terminal link line */
.terminal-link {
    color: var(--primary-light) !important;
    text-decoration: underline;
    cursor: pointer;
}

.terminal-link:hover { color: var(--white) !important; }

.portfolio-tag {
    display: inline-block; padding: 3px 10px; background: var(--primary);
    color: var(--white); font-size: 0.6rem; font-weight: 700;
    border-radius: 20px; margin-bottom: 6px; width: fit-content;
    text-transform: uppercase; letter-spacing: 1px;
}

.portfolio-title { font-size: 0.95rem; font-weight: 700; color: var(--white); }

.portfolio-terminal { position: sticky; top: 120px; }

/* ============================================
   TESTIMONIAL (cream)
   ============================================ */
.section-testimonial { padding: 120px 0; background: var(--cream); }

.testimonials-wrapper { max-width: 700px; margin: 0 auto; text-align: center; }

.testimonial-card { position: relative; padding: 40px; }

.testimonial-card::before {
    content: '\201C'; font-size: 6rem; color: var(--primary); opacity: 0.12;
    font-family: Georgia, serif; position: absolute; top: 0;
    left: 50%; transform: translateX(-50%); line-height: 1;
}

.testimonial-text { font-size: 1.05rem; line-height: 1.9; color: var(--gray); font-style: italic; margin-bottom: 24px; }
.testimonial-author { font-weight: 700; color: var(--dark); }
.testimonial-role { font-size: 0.78rem; color: var(--primary); margin-top: 3px; }

/* ============================================
   CTA (dark + beam)
   ============================================ */
.cta-section { padding: 120px 0; text-align: center; background: var(--dark); position: relative; overflow: hidden; }

.cta-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(66,133,244,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66,133,244,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.cta-content { position: relative; z-index: 2; }
.cta-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--cream); margin-bottom: 16px; line-height: 1.2; letter-spacing: -0.5px; }
.cta-text { font-size: 0.9rem; color: var(--gray); max-width: 480px; margin: 0 auto 36px; line-height: 1.8; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER (off-white)
   ============================================ */
.footer { background: var(--off-white); border-top: 1px solid rgba(0,0,0,0.05); color: var(--dark); }
.footer-wave { display: none; }
.footer-main { padding: 60px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo-img { height: 38px; width: auto; }
.footer-desc { margin-top: 12px; font-size: 0.78rem; color: var(--gray); line-height: 1.8; }

.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a {
    width: 36px; height: 36px; background: var(--cream); border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; color: var(--gray); transition: all 0.4s;
}
.footer-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.footer-heading {
    font-size: 0.72rem; font-weight: 700; margin-bottom: 16px; color: var(--dark);
    text-transform: uppercase; letter-spacing: 2px; padding-bottom: 10px; position: relative;
}
.footer-heading::after { content:''; position:absolute; bottom:0; left:0; width:20px; height:2px; background:var(--primary); }
.footer-links a { display:block; font-size:0.78rem; color:var(--gray); padding:4px 0; transition:all 0.3s; }
.footer-links a:hover { color:var(--dark); padding-left:6px; }
.footer-contact li { display:flex; gap:10px; margin-bottom:10px; font-size:0.78rem; color:var(--gray); }
.footer-contact i { color:var(--primary); margin-top:3px; }
.footer-contact a:hover { color:var(--primary); }
.footer-bottom { border-top:1px solid rgba(0,0,0,0.05); padding:16px 0; text-align:center; font-size:0.7rem; color:var(--gray); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position:fixed; bottom:30px; right:30px; width:42px; height:42px;
    background:var(--primary); color:var(--white); border:none;
    border-radius:12px; cursor:pointer; font-size:0.8rem;
    opacity:0; visibility:hidden; transform:translateY(20px);
    transition:all 0.4s; z-index:99;
}
.back-to-top.visible { opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover { transform:translateY(-4px); }

.section { padding: 100px 0; }
.section h1 { font-size: 2.5rem; margin-bottom: 16px; }

/* ============================================
   PAGE BANNER — simple inner page banner
   ============================================ */
.page-banner {
    position: relative; padding: 130px 0 50px;
    background: var(--dark); overflow: hidden;
}

.page-banner-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(66,133,244,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66,133,244,0.04) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse at bottom center, black 10%, transparent 65%);
}

.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px; font-size: 0.72rem;
    position: relative; z-index: 2;
}

.breadcrumb a { color: var(--gray); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb-sep { color: var(--gray-dim); }
.breadcrumb-current { color: var(--primary-light); }

.page-banner-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
    color: var(--white); line-height: 1.15;
    letter-spacing: -0.5px; position: relative; z-index: 2;
    margin-bottom: 12px;
}

.page-banner-desc {
    font-size: 0.9rem; color: var(--gray);
    line-height: 1.8; margin-bottom: 18px;
    position: relative; z-index: 2;
}

.banner-terminal {
    position: relative; z-index: 2;
}

/* Banner with 3D character beside */
.page-banner--char { padding: 140px 0 60px; }

.banner-with-char {
    display: flex; align-items: center; gap: 30px;
    position: relative; z-index: 2;
}

.banner-char-left { flex: 1; }

.banner-char-right { flex-shrink: 0; }

.banner-char-right .srv-hero-character {
    width: clamp(180px, 22vw, 370px);
}

/* Banner with animated grid canvas (inner pages) */
.page-banner--grid {
    padding: 140px 0 70px;
    position: relative;
}

.page-banner--grid .hero-grid {
    position: absolute; inset: 0;
    pointer-events: auto;
}

.page-banner--grid .hero-grid canvas {
    width: 100%; height: 100%; display: block;
}

.page-banner--grid .container {
    position: relative; z-index: 2;
    pointer-events: none;
}

.page-banner--grid .container a,
.page-banner--grid .container .banner-terminal {
    pointer-events: auto;
}

/* ============================================
   SERVICE HERO BANNER — full like homepage, snap scroll
   ============================================ */
.srv-hero-banner {
    position: relative;
    height: 100vh;
    display: flex; align-items: center;
    background: var(--dark);
    overflow: hidden;
}

.srv-hero-banner .hero-grid {
    position: absolute; inset: 0;
    pointer-events: auto;
}

.srv-hero-banner .hero-grid canvas {
    width: 100%; height: 100%; display: block;
}

.srv-hero-banner .container {
    position: relative; z-index: 2;
    pointer-events: none;
    width: 100%;
}

.srv-hero-banner .container a,
.srv-hero-banner .container .banner-terminal {
    pointer-events: auto;
}

.srv-hero-banner-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.srv-hero-banner-left {
    flex: 1;
}

.srv-hero-logo {
    width: clamp(140px, 20vw, 220px);
    height: auto;
    margin-bottom: 28px;
}

.srv-hero-banner-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.srv-hero-banner-desc {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: var(--gray);
    max-width: 500px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.srv-hero-banner-right {
    flex-shrink: 0;
}

.srv-hero-character {
    width: clamp(300px, 35vw, 500px);
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
    will-change: transform;
    transition: transform 0.4s var(--ease);
}

/* Wiggle class added by JS on hover */
.srv-hero-character.wiggle {
    animation: charWiggle 0.6s ease-in-out !important;
}

@keyframes charWiggle {
    0% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-14px) rotate(-4deg); }
    40% { transform: translateX(12px) rotate(3deg); }
    60% { transform: translateX(-8px) rotate(-2deg); }
    80% { transform: translateX(5px) rotate(1deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

/* Float — gentle up/down + slight rotate */
.srv-hero-character--float {
    animation: charFloat 5s ease-in-out infinite;
}
@keyframes charFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-18px) rotate(1.5deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

/* Circle — orbiting motion */
.srv-hero-character--circle {
    animation: charCircle 8s ease-in-out infinite;
}
@keyframes charCircle {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(15px, -20px); }
    50%  { transform: translate(0, -10px) rotate(2deg); }
    75%  { transform: translate(-15px, -20px); }
    100% { transform: translate(0, 0); }
}

/* Swing — pendulum left/right */
.srv-hero-character--swing {
    transform-origin: top center;
    animation: charSwing 4s ease-in-out infinite;
}
@keyframes charSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(4deg); }
    75% { transform: rotate(-4deg); }
}

/* Bounce — soft bouncing */
.srv-hero-character--bounce {
    animation: charBounce 3s ease-in-out infinite;
}
@keyframes charBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.03); }
}

/* ============================================
   SERVICE INTRO — full width, image overlaps banner
   ============================================ */
.srv-intro {
    padding: 60px 0 80px;
    background: var(--off-white);
    position: relative;
}

.srv-intro-layout {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 40px;
    align-items: start;
}

.srv-intro-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800; color: var(--dark);
    line-height: 1.2; margin-bottom: 18px;
}

.srv-intro-text p {
    font-size: 0.88rem; color: var(--gray);
    line-height: 1.9; margin-bottom: 14px;
}

.srv-intro-img {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -160px; /* pulls image up into the dark banner */
    z-index: 3;
}

.srv-intro-img img {
    max-width: 480px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15));
}

/* ============================================
   ABOUT — Main content
   ============================================ */
.about-main { padding: 100px 0; background: var(--off-white); }

.about-main-grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 60px; align-items: center;
}

/* ============================================
   ABOUT — Offer (services + engagement)
   ============================================ */
.about-offer { padding: 100px 0; background: var(--white); }

.about-offer-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-bottom: 50px;
}

.about-offer-card {
    padding: 30px 24px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    transition: all 0.4s var(--ease);
}

.about-offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border-color: rgba(66,133,244,0.15);
}

.about-offer-icon {
    width: 48px; height: 48px;
    background: rgba(66,133,244,0.08);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--primary);
    margin-bottom: 16px;
    transition: all 0.4s var(--ease);
}

.about-offer-card:hover .about-offer-icon {
    background: var(--primary);
    color: var(--white);
}

.about-offer-card h3 {
    font-size: 0.92rem; font-weight: 700; color: var(--dark);
    margin-bottom: 8px;
}

.about-offer-card p {
    font-size: 0.8rem; color: var(--gray); line-height: 1.8; margin: 0;
}

.about-engagement-text {
    max-width: 800px; margin: 0 auto;
    text-align: center;
}

/* ============================================
   SERVICE PAGES — hero image + intro
   ============================================ */
.srv-hero { padding: 80px 0; background: var(--off-white); }

.srv-hero-layout {
    display: grid; grid-template-columns: 0.4fr 1fr;
    gap: 50px; align-items: center;
}

.srv-hero-img { display: flex; justify-content: center; }

.srv-hero-img img {
    max-width: 300px; width: 100%; height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

.srv-hero-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800; color: var(--dark);
    line-height: 1.2; margin-bottom: 18px;
}

.srv-hero-text p {
    font-size: 0.9rem; color: var(--gray);
    line-height: 1.9;
}

/* ============================================
   SERVICE PAGES — split layout (content + sticky form)
   ============================================ */
.srv-main { padding: 60px 0 80px; background: var(--white); }

.srv-split {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 50px;
    align-items: start;
}

/* Scrollable content (left) */
.srv-content h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 800; color: var(--dark);
    line-height: 1.25; margin-bottom: 16px;
}

.srv-content p {
    font-size: 0.88rem; color: var(--gray);
    line-height: 1.9; margin-bottom: 12px;
}

.srv-block { padding: 10px 0; }

.srv-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 36px 0;
}

.srv-block-header {
    display: flex; align-items: baseline; gap: 14px;
    margin-bottom: 14px;
}

.srv-block-num {
    font-family: var(--mono);
    font-size: 2.5rem; font-weight: 800;
    color: rgba(66,133,244,0.1);
    line-height: 1; letter-spacing: -2px;
}

.srv-block-header h3 {
    font-size: 1.2rem; font-weight: 800; color: var(--dark);
}

.srv-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}

.srv-tags span {
    padding: 4px 12px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 6px;
    font-size: 0.68rem; font-family: var(--mono);
    color: var(--dark); font-weight: 500;
}

.srv-list {
    margin-top: 18px; display: flex; flex-direction: column; gap: 10px;
}

.srv-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.85rem; color: var(--dark); font-weight: 500;
}

.srv-list li i {
    width: 28px; height: 28px; min-width: 28px;
    background: rgba(66,133,244,0.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: var(--primary);
}

.srv-steps {
    margin-top: 20px; display: flex; flex-direction: column; gap: 18px;
    list-style: none;
}

.srv-steps li { display: flex; gap: 14px; align-items: flex-start; }

.srv-step-num {
    width: 34px; height: 34px; min-width: 34px;
    background: var(--primary); color: var(--white);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; font-family: var(--mono);
}

.srv-steps h4 {
    font-size: 0.88rem; font-weight: 700; color: var(--dark);
    margin-bottom: 2px;
}

.srv-steps p { font-size: 0.8rem; color: var(--gray); line-height: 1.7; margin: 0; }

/* Fullpage mode — no sidebar */
.srv-split--full { grid-template-columns: 1fr; }

/* Sticky sidebar (right) */
.srv-sidebar {
    position: sticky;
    top: 90px;
}

.srv-form-sticky {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

.srv-form-header {
    padding: 28px 28px 4px;
}

.srv-form-header h3 {
    font-size: 1.1rem; font-weight: 800; color: var(--white);
    margin-bottom: 6px;
}

.srv-form-header p {
    font-size: 0.78rem; color: var(--gray); margin: 0;
    line-height: 1.6;
}

.srv-form {
    padding: 20px 28px;
}

.srv-form-group { margin-bottom: 14px; }

.srv-form-group label {
    display: block; font-size: 0.68rem; font-weight: 600;
    color: var(--gray); margin-bottom: 5px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.srv-form-group input,
.srv-form-group select,
.srv-form-group textarea {
    width: 100%; padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--cream);
    font-family: var(--font);
    font-size: 0.82rem;
    transition: border-color 0.3s;
    outline: none;
}

.srv-form-group input::placeholder,
.srv-form-group textarea::placeholder { color: var(--gray-dim); }

.srv-form-group input:focus,
.srv-form-group select:focus,
.srv-form-group textarea:focus { border-color: var(--primary); }

.srv-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.srv-form-group select option { background: var(--dark-2); color: var(--cream); }
.srv-form-group textarea { resize: vertical; min-height: 80px; }

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

.srv-form-footer {
    padding: 16px 28px 22px;
    border-top: 1px solid var(--border);
}

.srv-form-contact {
    display: flex; flex-direction: column; gap: 8px;
}

.srv-form-contact a {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--gray);
    transition: color 0.3s;
}

.srv-form-contact a:hover { color: var(--primary-light); }
.srv-form-contact a i { color: var(--primary); font-size: 0.72rem; }

/* ============================================
   FULLPAGE CONTACT FORM (alternative layout)
   ============================================ */
.srv-contact-full {
    padding: 90px 0;
    background: var(--dark);
}

.srv-contact-full-layout {
    display: grid; grid-template-columns: 0.8fr 1.2fr;
    gap: 60px; align-items: start;
}

.srv-contact-full-info h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800; color: var(--white);
    line-height: 1.2; margin-bottom: 16px;
}

.srv-contact-full-info > p {
    font-size: 0.88rem; color: var(--gray);
    line-height: 1.8; margin-bottom: 30px;
}

.srv-form-contact-list {
    display: flex; flex-direction: column; gap: 14px;
}

.srv-form-contact-list a,
.srv-form-contact-list span {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: var(--gray);
}

.srv-form-contact-list a:hover { color: var(--primary-light); }
.srv-form-contact-list i { color: var(--primary); width: 18px; text-align: center; }

.srv-form--large {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px;
}

.srv-form-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-lg {
    padding: 18px 40px; font-size: 0.9rem;
}

/* ============================================
   IDE LAYOUT — VS Code style (light default)
   ============================================ */
.ide-wrapper {
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    min-height: 100vh;
}

/* Snap scroll — hero or IDE, like turning a page */
.srv-snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
    position: fixed;
    inset: 0;
    z-index: 90;
    scroll-behavior: smooth;
}

.srv-snap-container .srv-hero-banner {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    flex-shrink: 0;
}

.srv-snap-container .ide-wrapper {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.srv-snap-container .ide-body {
    flex: 1;
    min-height: 0;
}

.srv-snap-container .ide-content {
    overflow-y: auto;
}

/* Navbar transition for snap */
body:has(.srv-snap-container) .navbar {
    z-index: 95;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

body:has(.srv-snap-container) .footer {
    display: none;
}

body:has(.srv-snap-container) .back-to-top {
    display: none;
}

/* IDE slide-up animation when snapping */
.ide-wrapper {
    transition: none;
}

.ide-wrapper.ide-reveal .ide-topbar {
    animation: ideSlideDown 0.6s var(--ease) both;
}

.ide-wrapper.ide-reveal .ide-sidebar {
    animation: ideSlideRight 0.6s var(--ease) 0.1s both;
}

.ide-wrapper.ide-reveal .ide-content {
    animation: ideFadeIn 0.7s var(--ease) 0.2s both;
}

.ide-wrapper.ide-reveal .ide-chat {
    animation: ideSlideLeft 0.6s var(--ease) 0.15s both;
}

.ide-wrapper.ide-reveal .ide-statusbar {
    animation: ideSlideUp 0.5s var(--ease) 0.3s both;
}

@keyframes ideSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ideSlideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ideSlideLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ideFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ideSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Top bar */
.ide-topbar {
    display: flex; align-items: center;
    padding: 10px 16px;
    background: var(--off-white);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    gap: 16px;
    flex-shrink: 0;
    z-index: 10;
}

.ide-topbar-dots { display: flex; gap: 6px; }

.ide-topbar-tabs { flex: 1; }

.ide-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px;
    background: var(--white);
    border-radius: 6px 6px 0 0;
    font-family: var(--mono); font-size: 0.72rem;
    color: var(--dark);
    border: 1px solid rgba(0,0,0,0.08);
    border-bottom: 2px solid var(--primary);
}

.ide-tab i { color: var(--primary); font-size: 0.65rem; }

.ide-topbar-actions {
    font-family: var(--mono);
    display: flex; align-items: center; gap: 12px;
}

.ide-theme-toggle {
    width: 30px; height: 30px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    color: var(--gray);
    font-size: 0.72rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}

.ide-theme-toggle:hover {
    background: rgba(66,133,244,0.1);
    color: var(--primary);
}

.ide-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.68rem; color: var(--gray);
}

/* IDE Body — 3 columns */
.ide-body {
    display: grid;
    grid-template-columns: 220px 1fr 340px;
    min-height: calc(100vh - 100px);
}

/* LEFT SIDEBAR */
.ide-sidebar {
    background: var(--off-white);
    border-right: 1px solid rgba(0,0,0,0.06);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.ide-sidebar-title {
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ide-sidebar-title i { color: var(--primary); }

.ide-nav {
    display: flex; flex-direction: column;
    flex: 1;
}

.ide-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--gray);
    transition: all 0.2s;
    border-left: 2px solid transparent;
    cursor: pointer;
}

.ide-nav-item:hover {
    background: rgba(0,0,0,0.03);
    color: var(--dark);
}

.ide-nav-item.active {
    background: rgba(66,133,244,0.06);
    color: var(--primary);
    border-left-color: var(--primary);
}

.ide-nav-item i {
    width: 16px; text-align: center;
    font-size: 0.7rem; opacity: 0.5;
}

.ide-nav-item.active i { opacity: 1; color: var(--primary); }

.ide-sidebar-img {
    padding: 20px;
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.ide-sidebar-img img {
    max-width: 160px; width: 100%;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.1));
}

/* CENTER CONTENT */
.ide-content {
    padding: 40px 50px;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: var(--white);
}

.ide-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ide-section:last-child { border-bottom: none; margin-bottom: 0; }

.ide-section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 0.68rem;
    color: var(--gray); margin-bottom: 16px;
}

.ide-section-badge i { color: var(--primary); }

.ide-section-num {
    font-family: var(--mono);
    font-size: 4rem; font-weight: 800;
    color: rgba(66,133,244,0.07);
    line-height: 1; margin-bottom: -10px;
    letter-spacing: -3px;
}

.ide-section h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 800; color: var(--dark);
    line-height: 1.25; margin-bottom: 18px;
}

.ide-section p {
    font-size: 0.86rem; color: var(--gray);
    line-height: 2; margin-bottom: 14px;
}

.ide-list {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 18px;
}

.ide-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.84rem; color: var(--dark);
}

.ide-check { color: var(--green); font-size: 0.8rem; }

.ide-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}

.ide-tags span {
    padding: 4px 12px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    font-size: 0.68rem; font-family: var(--mono);
    color: var(--primary);
}

.ide-steps { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }

.ide-step {
    display: flex; gap: 14px; align-items: flex-start;
}

.ide-step-num {
    width: 32px; height: 32px; min-width: 32px;
    background: var(--primary); color: var(--white);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; font-family: var(--mono);
}

.ide-step h4 {
    font-size: 0.88rem; font-weight: 700; color: var(--dark);
    margin-bottom: 3px;
}

.ide-step p {
    font-size: 0.8rem; color: var(--gray); line-height: 1.7; margin: 0;
}

/* RIGHT SIDEBAR — Chat */
.ide-chat {
    background: var(--off-white);
    border-left: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.ide-chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: var(--white);
}

.ide-chat-avatar {
    width: 38px; height: 38px;
    background: rgba(66,133,244,0.1);
    border: 1px solid rgba(66,133,244,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; color: var(--primary);
}

.ide-chat-name {
    font-size: 0.82rem; font-weight: 700; color: var(--dark);
}

.ide-chat-status {
    font-size: 0.62rem; color: var(--green);
    display: flex; align-items: center; gap: 4px;
}

.ide-chat-status i { font-size: 5px; }

.ide-chat-messages {
    flex: 1; padding: 16px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 12px;
}

.ide-chat-msg {
    max-width: 90%;
}

.ide-chat-msg.bot p {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px 12px 12px 4px;
    padding: 12px 16px;
    font-size: 0.78rem;
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
}

.ide-chat-msg.user {
    align-self: flex-end;
}

.ide-chat-msg.user p {
    background: var(--primary);
    border-radius: 12px 12px 4px 12px;
    padding: 12px 16px;
    font-size: 0.78rem;
    color: var(--white);
    line-height: 1.6;
    margin: 0;
}

/* Chat form */
.ide-chat-form {
    padding: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    overflow-y: auto;
}

.ide-chat-field {
    margin-bottom: 8px;
}

.ide-chat-field input,
.ide-chat-field select,
.ide-chat-field textarea {
    width: 100%; padding: 10px 14px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    color: var(--dark);
    font-family: var(--font);
    font-size: 0.78rem;
    outline: none;
    transition: border-color 0.3s;
}

.ide-chat-field input::placeholder,
.ide-chat-field textarea::placeholder {
    color: var(--gray);
}

.ide-chat-field input:focus,
.ide-chat-field select:focus,
.ide-chat-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66,133,244,0.08);
}

.ide-chat-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.ide-chat-field select option { background: var(--white); color: var(--dark); }

.ide-chat-field textarea { resize: none; min-height: 60px; }

/* Captcha */
.ide-captcha-field {
    display: flex; align-items: center; gap: 8px;
}

.ide-captcha-label {
    font-size: 0.72rem; font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    min-width: 110px;
}

.ide-captcha-field input {
    width: 80px !important;
    text-align: center;
}

/* Follow-up input */
.ide-chat-followup {
    padding: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.ide-chat-followup-row {
    display: flex; gap: 8px;
}

.ide-chat-followup-row input {
    flex: 1; padding: 10px 14px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    color: var(--dark);
    font-family: var(--font);
    font-size: 0.78rem;
    outline: none;
}

.ide-chat-followup-row input:focus { border-color: var(--primary); }

.ide-chat-send-sm {
    width: 40px; height: 40px;
    background: var(--primary); color: var(--white);
    border: none; border-radius: 10px;
    cursor: pointer; font-size: 0.78rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}

.ide-chat-send-sm:hover { background: var(--primary-dark); }

/* Typing indicator */
.ide-chat-typing {
    display: flex; gap: 4px; padding: 10px 16px;
}

.ide-chat-typing span {
    width: 6px; height: 6px; background: var(--primary);
    border-radius: 50%; opacity: 0.4;
    animation: typingDot 1.2s ease-in-out infinite;
}

.ide-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ide-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.ide-chat-followup-service {
    margin-bottom: 8px;
}

.ide-chat-followup-service select {
    width: 100%; padding: 8px 12px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    color: var(--dark);
    font-family: var(--font);
    font-size: 0.72rem;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.ide-chat-followup-service select:focus { border-color: var(--primary); }

.ide-chat-blocked {
    text-align: center; padding: 8px 0;
}

.ide-chat-blocked p {
    font-size: 0.72rem; color: var(--gray);
    background: rgba(248,113,113,0.06);
    border: 1px solid rgba(248,113,113,0.12);
    padding: 10px 14px; border-radius: 8px;
    margin: 0;
}

/* Dark theme follow-up */
.ide-dark .ide-chat-followup { border-color: rgba(255,255,255,0.06); }
.ide-dark .ide-chat-followup-service select {
    background: #1e1e2e; border-color: rgba(255,255,255,0.06); color: var(--cream);
}
.ide-dark .ide-chat-followup-row input {
    background: #1e1e2e; border-color: rgba(255,255,255,0.06); color: var(--cream);
}
.ide-dark .ide-captcha-label { color: var(--primary-light); }

/* Chat reset/logout button */
.chat-reset-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background: none; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    font-family: var(--font); font-size: 0.7rem;
    color: var(--gray); cursor: pointer;
    transition: all 0.3s;
}

.chat-reset-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(248,113,113,0.04);
}

.ide-chat-send {
    width: 100%;
    padding: 11px;
    background: var(--primary);
    color: var(--white);
    border: none; border-radius: 10px;
    font-family: var(--font);
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s var(--ease);
}

.ide-chat-send:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(66,133,244,0.2);
}

/* Status bar */
.ide-statusbar {
    display: flex; justify-content: space-between;
    padding: 5px 16px;
    background: var(--primary);
    font-family: var(--mono);
    font-size: 0.62rem;
    color: rgba(255,255,255,0.85);
    flex-shrink: 0;
}

.ide-statusbar-left,
.ide-statusbar-right {
    display: flex; gap: 16px; align-items: center;
}

.ide-statusbar i { margin-right: 3px; }

/* IDE Footer (inside content) */
.ide-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.ide-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 24px;
}

.ide-footer-logo {
    height: 32px; width: auto; margin-bottom: 10px;
}

.ide-footer p {
    font-size: 0.75rem; color: var(--gray);
    line-height: 1.7; margin: 0;
}

.ide-footer h4 {
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--dark); margin-bottom: 10px;
}

.ide-footer a {
    display: block; font-size: 0.78rem;
    color: var(--gray); padding: 3px 0;
    transition: color 0.3s;
}

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

.ide-footer-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.68rem; color: var(--gray);
    text-align: center;
    padding-bottom: 10px;
}

/* Dark theme footer */
.ide-dark .ide-footer { border-color: rgba(255,255,255,0.04); }
.ide-dark .ide-footer h4 { color: var(--cream); }
.ide-dark .ide-footer a { color: var(--gray); }
.ide-dark .ide-footer a:hover { color: var(--primary-light); }
.ide-dark .ide-footer-bottom { border-color: rgba(255,255,255,0.04); }

/* ============================================
   IDE DARK THEME — toggled via .ide-dark class
   ============================================ */
.ide-dark .ide-topbar {
    background: #181825;
    border-color: rgba(255,255,255,0.06);
}

.ide-dark .ide-tab {
    background: #1e1e2e;
    color: var(--cream);
    border-color: rgba(255,255,255,0.06);
    border-bottom-color: var(--primary);
}

.ide-dark .ide-theme-toggle {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
    color: var(--gray);
}

.ide-dark .ide-theme-toggle:hover {
    background: rgba(66,133,244,0.15);
    color: var(--primary-light);
}

.ide-dark .ide-sidebar {
    background: #181825;
    border-color: rgba(255,255,255,0.06);
}

.ide-dark .ide-sidebar-title {
    color: var(--gray-dim);
    border-color: rgba(255,255,255,0.04);
}

.ide-dark .ide-sidebar-title i { color: var(--primary-light); }

.ide-dark .ide-nav-item { color: var(--gray); }
.ide-dark .ide-nav-item:hover { background: rgba(255,255,255,0.03); color: var(--cream); }
.ide-dark .ide-nav-item.active { background: rgba(66,133,244,0.08); color: var(--primary-light); }
.ide-dark .ide-nav-item.active i { color: var(--primary-light); }

.ide-dark .ide-content { background: #1e1e2e; }
.ide-dark .ide-section { border-color: rgba(255,255,255,0.04); }
.ide-dark .ide-section h2 { color: var(--cream); }
.ide-dark .ide-section p { color: var(--gray); }
.ide-dark .ide-section-badge { color: var(--gray-dim); }
.ide-dark .ide-section-badge i { color: var(--primary-light); }
.ide-dark .ide-section-num { color: rgba(66,133,244,0.06); }
.ide-dark .ide-list li { color: var(--cream); }
.ide-dark .ide-tags span {
    background: rgba(66,133,244,0.06);
    border-color: rgba(66,133,244,0.12);
    color: var(--primary-light);
}
.ide-dark .ide-step h4 { color: var(--cream); }

.ide-dark .ide-chat {
    background: #181825;
    border-color: rgba(255,255,255,0.06);
}

.ide-dark .ide-chat-header {
    background: #16161e;
    border-color: rgba(255,255,255,0.06);
}

.ide-dark .ide-chat-avatar {
    background: rgba(66,133,244,0.12);
    border-color: rgba(66,133,244,0.2);
    color: var(--primary-light);
}

.ide-dark .ide-chat-name { color: var(--cream); }

.ide-dark .ide-chat-msg.bot p {
    background: rgba(66,133,244,0.08);
    border-color: rgba(66,133,244,0.12);
    color: var(--cream);
}

.ide-dark .ide-chat-form { border-color: rgba(255,255,255,0.06); }

.ide-dark .ide-chat-field input,
.ide-dark .ide-chat-field select,
.ide-dark .ide-chat-field textarea {
    background: #1e1e2e;
    border-color: rgba(255,255,255,0.06);
    color: var(--cream);
}

.ide-dark .ide-chat-field input::placeholder,
.ide-dark .ide-chat-field textarea::placeholder { color: var(--gray-dim); }

.ide-dark .ide-chat-field input:focus,
.ide-dark .ide-chat-field select:focus,
.ide-dark .ide-chat-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66,133,244,0.1);
}

.ide-dark .ide-chat-field select option { background: #1e1e2e; color: var(--cream); }

.ide-dark .ide-sidebar-img img { filter: drop-shadow(0 10px 25px rgba(0,0,0,0.4)); }

/* ============================================
   MAIL CLIENT LAYOUT
   ============================================ */
.mail-wrapper {
    background: var(--white);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.mail-topbar {
    display: flex; align-items: center;
    padding: 10px 16px;
    background: var(--off-white);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    gap: 16px;
    flex-shrink: 0;
}

.mail-topbar-dots { display: flex; gap: 6px; }

.mail-topbar-search {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    font-size: 0.78rem; color: var(--gray);
    max-width: 400px;
}

.mail-topbar-search i { font-size: 0.7rem; opacity: 0.4; }

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

.mail-body {
    display: grid;
    grid-template-columns: 220px 1fr 340px;
    flex: 1;
    min-height: 0;
}

/* Mail sidebar */
.mail-sidebar {
    background: var(--off-white);
    border-right: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    overflow-y: auto;
}

.mail-compose-btn {
    display: flex; align-items: center; gap: 8px;
    margin: 0 14px 16px;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border: none; border-radius: 50px;
    font-family: var(--font);
    font-size: 0.8rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.mail-compose-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(66,133,244,0.2);
}

.mail-folders {
    display: flex; flex-direction: column;
    flex: 1;
}

.mail-folder {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    font-size: 0.8rem; color: var(--gray);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.mail-folder:hover { background: rgba(0,0,0,0.03); color: var(--dark); }

.mail-folder.active {
    background: rgba(66,133,244,0.06);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.mail-folder i { width: 16px; text-align: center; font-size: 0.78rem; }

.mail-folder-count {
    margin-left: auto;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6rem; font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.mail-sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.mail-storage-bar {
    width: 100%; height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 10px; overflow: hidden;
    margin-bottom: 6px;
}

.mail-storage-fill {
    height: 100%; background: var(--primary);
    border-radius: 10px;
}

.mail-storage span {
    font-size: 0.65rem; color: var(--gray);
}

/* Mail content */
.mail-content {
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 20px 30px;
    background: var(--white);
}

.mail-section {
    margin-bottom: 16px;
}

.mail-message {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
}

.mail-message:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.mail-message--unread {
    border-left: 3px solid var(--primary);
}

.mail-msg-header {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mail-msg-avatar {
    width: 42px; height: 42px; min-width: 42px;
    background: rgba(66,133,244,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 800;
    color: var(--primary);
}

.mail-msg-info { flex: 1; }

.mail-msg-from {
    font-size: 0.85rem; font-weight: 700; color: var(--dark);
    margin-bottom: 2px;
}

.mail-msg-subject {
    font-size: 0.75rem; color: var(--gray);
}

.mail-msg-time {
    font-size: 0.68rem; color: var(--gray); white-space: nowrap;
}

.mail-msg-body {
    padding: 22px;
}

.mail-msg-body p {
    font-size: 0.86rem; color: var(--gray);
    line-height: 2; margin-bottom: 14px;
}

.mail-msg-body p:last-child { margin-bottom: 0; }

/* Features grid inside a mail */
.mail-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mail-feature {
    display: flex; gap: 12px; align-items: flex-start;
}

.mail-feature-icon {
    width: 36px; height: 36px; min-width: 36px;
    background: rgba(66,133,244,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; color: var(--primary);
}

.mail-feature h4 {
    font-size: 0.85rem; font-weight: 700; color: var(--dark);
    margin-bottom: 3px;
}

.mail-feature p {
    font-size: 0.78rem !important; color: var(--gray) !important;
    line-height: 1.7 !important; margin: 0 !important;
}

.mail-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}

.mail-tags span {
    padding: 5px 14px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 6px;
    font-size: 0.7rem; font-family: var(--mono);
    color: var(--dark);
}

/* Steps inside a mail */
.mail-steps {
    display: flex; flex-direction: column; gap: 18px;
}

.mail-step {
    display: flex; gap: 14px; align-items: flex-start;
}

.mail-step-num {
    width: 34px; height: 34px; min-width: 34px;
    background: var(--primary); color: var(--white);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; font-family: var(--mono);
}

.mail-step h4 {
    font-size: 0.88rem; font-weight: 700; color: var(--dark);
    margin-bottom: 3px;
}

.mail-step p {
    font-size: 0.8rem !important; color: var(--gray) !important;
    line-height: 1.7 !important; margin: 0 !important;
}

/* Mail status bar */
.mail-statusbar {
    display: flex; justify-content: space-between;
    padding: 5px 16px;
    background: var(--primary);
    font-family: var(--mono);
    font-size: 0.62rem;
    color: rgba(255,255,255,0.85);
    flex-shrink: 0;
}

/* Snap for mail (if used) */
.srv-snap-container .mail-wrapper {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.srv-snap-container .browser-wrapper {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Dark theme for mail */
.mail-wrapper.ide-dark { background: #1e1e2e; }
.mail-wrapper.ide-dark .mail-topbar { background: #181825; border-color: rgba(255,255,255,0.06); }
.mail-wrapper.ide-dark .mail-topbar-search { background: #1e1e2e; border-color: rgba(255,255,255,0.06); color: var(--gray); }
.mail-wrapper.ide-dark .mail-sidebar { background: #181825; border-color: rgba(255,255,255,0.06); }
.mail-wrapper.ide-dark .mail-folder { color: var(--gray); }
.mail-wrapper.ide-dark .mail-folder:hover { background: rgba(255,255,255,0.03); color: var(--cream); }
.mail-wrapper.ide-dark .mail-folder.active { background: rgba(66,133,244,0.08); color: var(--primary-light); }
.mail-wrapper.ide-dark .mail-sidebar-footer { border-color: rgba(255,255,255,0.06); }
.mail-wrapper.ide-dark .mail-storage-bar { background: rgba(255,255,255,0.06); }
.mail-wrapper.ide-dark .mail-content { background: #1e1e2e; }
.mail-wrapper.ide-dark .mail-message { background: #222639; border-color: rgba(255,255,255,0.06); }
.mail-wrapper.ide-dark .mail-msg-header { border-color: rgba(255,255,255,0.04); }
.mail-wrapper.ide-dark .mail-msg-from { color: var(--cream); }
.mail-wrapper.ide-dark .mail-msg-body p { color: var(--gray); }
.mail-wrapper.ide-dark .mail-feature h4, .mail-wrapper.ide-dark .mail-step h4 { color: var(--cream); }
.mail-wrapper.ide-dark .mail-tags span { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); color: var(--cream); }

/* ============================================
   BROWSER WINDOW LAYOUT — tabs + content + chat
   ============================================ */
.browser-wrapper {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

/* Simple centered layout for browser window */
.browser-simple-layout {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 40px;
}

/* Cmd-badge row outside the window */
.browser-cmd-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 18px;
}

.browser-cmd-link {
    cursor: pointer;
    border: 1px solid var(--border);
    opacity: 0.5;
    transition: all 0.3s var(--ease);
}

.browser-cmd-link:hover { opacity: 0.8; }

.browser-cmd-link.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(66,133,244,0.15);
}

/* Animated grid background (same as hero) */
.browser-wrapper .browser-bg-grid {
    position: absolute; inset: 0;
    pointer-events: auto;
    z-index: 1;
}

.browser-wrapper .browser-bg-grid canvas {
    width: 100%; height: 100%; display: block;
}

.browser-wrapper > .hero-clouds {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
}

/* (removed broken sidebar layout) */

.browser-split {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 0;
    flex: 1;
}

/* Browser window (macOS style) */
.browser-main {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    overflow: hidden;
}

/* Chrome bar with dots + URL */
.browser-chrome {
    display: flex; align-items: center;
    padding: 12px 16px;
    background: var(--off-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    gap: 14px;
    flex-shrink: 0;
}

.browser-chrome-dots { display: flex; gap: 6px; }

.browser-url-bar {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 7px 16px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    font-size: 0.75rem; color: var(--gray);
    max-width: 400px;
}

.browser-url-bar i { font-size: 0.6rem; color: var(--green); }

.browser-chrome-actions { display: flex; gap: 10px; }

/* Tabs row */
.browser-tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: var(--off-white);
    overflow-x: auto;
    flex-shrink: 0;
}

.browser-tab {
    display: flex; align-items: center; gap: 7px;
    padding: 12px 20px;
    font-family: var(--font);
    font-size: 0.75rem; font-weight: 500;
    color: var(--gray);
    background: none; border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.25s;
}

.browser-tab:hover { color: var(--dark); }

.browser-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--white);
    font-weight: 600;
}

.browser-tab i { font-size: 0.7rem; opacity: 0.6; }
.browser-tab.active i { opacity: 1; }

/* Content panels */
.browser-content {
    padding: 40px;
}

/* When used as tabs (hide/show) */
.browser-content--tabs .browser-panel {
    display: none;
    animation: browserFadeIn 0.35s ease;
}

.browser-content--tabs .browser-panel.active { display: block; }

@keyframes browserFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* When used as scroll (all visible) */
.browser-content--scroll .browser-panel {
    display: block;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.browser-content--scroll .browser-panel:last-child {
    border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}

.browser-panel h2 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 800; color: var(--dark);
    line-height: 1.25; margin-bottom: 20px;
}

.browser-panel p {
    font-size: 0.88rem; color: var(--gray);
    line-height: 2; margin-bottom: 14px;
}

/* Features grid */
.browser-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-top: 10px;
}

.browser-feat {
    display: flex; gap: 12px; align-items: flex-start;
}

.browser-feat-icon {
    width: 38px; height: 38px; min-width: 38px;
    background: rgba(66,133,244,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--primary);
}

.browser-feat h4 {
    font-size: 0.85rem; font-weight: 700; color: var(--dark);
    margin-bottom: 3px;
}

.browser-feat p {
    font-size: 0.78rem !important; line-height: 1.7 !important; margin: 0 !important;
}

/* Tags */
.browser-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}

.browser-tags span {
    padding: 5px 14px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    font-size: 0.7rem; font-family: var(--mono);
    color: var(--dark);
}

/* Steps */
.browser-steps {
    display: flex; flex-direction: column; gap: 18px; margin-top: 14px;
}

.browser-step {
    display: flex; gap: 14px; align-items: flex-start;
}

.browser-step-num {
    width: 34px; height: 34px; min-width: 34px;
    background: var(--primary); color: var(--white);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; font-family: var(--mono);
}

.browser-step h4 {
    font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 3px;
}

.browser-step p {
    font-size: 0.8rem !important; line-height: 1.7 !important; margin: 0 !important;
}

/* Chat sidebar inside browser layout */
.browser-split .ide-chat {
    border-left: none;
    background: var(--off-white);
    border-radius: 14px;
    overflow: hidden;
    max-height: calc(100vh - 80px);
}

/* Dark theme for browser window */
.browser-wrapper.ide-dark { background: var(--dark); }
.browser-wrapper.ide-dark .browser-main { background: #1e1e2e; border-color: rgba(255,255,255,0.06); box-shadow: 0 25px 80px rgba(0,0,0,0.4); }
.browser-wrapper.ide-dark .browser-chrome { background: #181825; border-color: rgba(255,255,255,0.06); }
.browser-wrapper.ide-dark .browser-url-bar { background: #1e1e2e; border-color: rgba(255,255,255,0.06); color: var(--gray); }
.browser-wrapper.ide-dark .browser-tabs { background: #181825; border-color: rgba(255,255,255,0.06); }
.browser-wrapper.ide-dark .browser-tab { color: var(--gray); }
.browser-wrapper.ide-dark .browser-tab:hover { color: var(--cream); }
.browser-wrapper.ide-dark .browser-tab.active { color: var(--primary-light); background: #1e1e2e; }
.browser-wrapper.ide-dark .browser-content { background: #1e1e2e; }
.browser-wrapper.ide-dark .browser-panel h2 { color: var(--cream); }
.browser-wrapper.ide-dark .browser-panel p { color: var(--gray); }
.browser-wrapper.ide-dark .browser-feat h4, .browser-wrapper.ide-dark .browser-step h4 { color: var(--cream); }
.browser-wrapper.ide-dark .browser-tags span { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); color: var(--cream); }
.browser-wrapper.ide-dark .browser-split .ide-chat { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

/* ============================================
   BROWSER PANEL — rich content components
   ============================================ */

/* Hero row: text left + visual right */
.bp-hero-row {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 40px; align-items: start;
    margin-bottom: 30px;
}

.bp-hero-text h2 { margin-bottom: 18px; }
.bp-hero-text p { margin-bottom: 12px; }

/* Inbox preview widget */
.bp-inbox-preview {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
}

.bp-inbox-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.2s;
}

.bp-inbox-item:last-child { border-bottom: none; }
.bp-inbox-item--active { background: rgba(66,133,244,0.04); }

.bp-inbox-dot {
    width: 8px; height: 8px; min-width: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.bp-inbox-dot--read { background: transparent; border: 1.5px solid var(--gray); opacity: 0.3; }

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

.bp-inbox-from {
    font-size: 0.78rem; font-weight: 600; color: var(--dark);
    display: block; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bp-inbox-subj {
    font-size: 0.72rem; color: var(--gray);
    display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bp-inbox-time { font-size: 0.65rem; color: var(--gray); white-space: nowrap; }

/* Addresses grid */
.bp-addresses { margin-top: 10px; }
.bp-addresses h3 {
    font-size: 0.95rem; font-weight: 700; color: var(--dark);
    margin-bottom: 16px;
}

.bp-address-list {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bp-address {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 10px;
    font-size: 0.8rem; font-weight: 600; color: var(--dark);
    font-family: var(--mono);
}

.bp-address i { color: var(--primary); font-size: 0.75rem; }

.bp-hint {
    font-size: 0.75rem !important; color: var(--gray) !important;
    margin-top: 12px !important; font-style: italic;
}

/* Advantages grid */
.bp-adv-grid {
    display: flex; flex-direction: column; gap: 22px;
    margin-top: 10px;
}

.bp-adv {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    transition: all 0.3s var(--ease);
}

.bp-adv:hover {
    transform: translateX(6px);
    border-color: rgba(66,133,244,0.15);
    box-shadow: 0 6px 25px rgba(0,0,0,0.03);
}

.bp-adv-icon {
    width: 42px; height: 42px; min-width: 42px;
    background: rgba(66,133,244,0.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--primary);
}

.bp-adv h4 {
    font-size: 0.88rem; font-weight: 700; color: var(--dark);
    margin-bottom: 4px;
}

.bp-adv p {
    font-size: 0.8rem !important; line-height: 1.7 !important; margin: 0 !important;
}

/* Spec card */
.bp-spec-card {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 6px 0;
    overflow: hidden;
}

.bp-spec-row {
    display: flex; justify-content: space-between;
    padding: 12px 20px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.bp-spec-row:last-child { border-bottom: none; }

.bp-spec-label { color: var(--gray); }
.bp-spec-val { font-weight: 600; color: var(--dark); }

/* Migration from */
.bp-migration-from {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}

.bp-migration-from span {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    font-size: 0.82rem; font-weight: 600; color: var(--dark);
}

.bp-migration-from i { font-size: 1rem; color: var(--primary); }

/* Process steps */
.bp-process {
    display: flex; flex-direction: column; gap: 24px;
    margin-top: 14px;
}

.bp-proc-step {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 22px 24px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    transition: all 0.3s var(--ease);
}

.bp-proc-step:hover {
    transform: translateX(6px);
    border-color: rgba(66,133,244,0.15);
}

.bp-proc-num {
    width: 40px; height: 40px; min-width: 40px;
    background: var(--primary); color: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 800; font-family: var(--mono);
}

.bp-proc-content h4 {
    font-size: 0.92rem; font-weight: 700; color: var(--dark);
    margin-bottom: 4px;
}

.bp-proc-content p {
    font-size: 0.82rem !important; line-height: 1.8 !important; margin: 0 !important;
}

/* Character at bottom of browser */
.browser-character {
    display: flex; justify-content: center;
    padding: 10px 20px 0;
    margin-top: auto;
    pointer-events: none;
}

.browser-character img {
    max-width: 140px; height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
}

/* Dark theme for panel components */
.browser-wrapper.ide-dark .bp-inbox-preview { background: #222639; border-color: rgba(255,255,255,0.06); }
.browser-wrapper.ide-dark .bp-inbox-item { border-color: rgba(255,255,255,0.04); }
.browser-wrapper.ide-dark .bp-inbox-item--active { background: rgba(66,133,244,0.06); }
.browser-wrapper.ide-dark .bp-inbox-from { color: var(--cream); }
.browser-wrapper.ide-dark .bp-address { background: #222639; border-color: rgba(255,255,255,0.06); color: var(--cream); }
.browser-wrapper.ide-dark .bp-addresses h3 { color: var(--cream); }
.browser-wrapper.ide-dark .bp-adv { background: #222639; border-color: rgba(255,255,255,0.06); }
.browser-wrapper.ide-dark .bp-adv:hover { border-color: rgba(66,133,244,0.2); }
.browser-wrapper.ide-dark .bp-adv h4 { color: var(--cream); }
.browser-wrapper.ide-dark .bp-spec-card { background: #222639; border-color: rgba(255,255,255,0.06); }
.browser-wrapper.ide-dark .bp-spec-row { border-color: rgba(255,255,255,0.04); }
.browser-wrapper.ide-dark .bp-spec-val { color: var(--cream); }
.browser-wrapper.ide-dark .bp-migration-from span { background: #222639; border-color: rgba(255,255,255,0.06); color: var(--cream); }
.browser-wrapper.ide-dark .bp-proc-step { background: #222639; border-color: rgba(255,255,255,0.06); }
.browser-wrapper.ide-dark .bp-proc-step:hover { border-color: rgba(66,133,244,0.2); }
.browser-wrapper.ide-dark .bp-proc-content h4 { color: var(--cream); }

/* ============================================
   CMD-BADGE TABS (outside the window)
   ============================================ */
/* ============================================
   MESSAGERIE — Mailbox preview window
   ============================================ */
.msg-preview {
    padding: 0 0 80px;
    background: var(--off-white);
}

.msg-preview-window {
    max-width: 1100px;
    margin: -40px auto 0;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.msg-preview-body {
    display: grid;
    grid-template-columns: 160px 260px 1fr;
    min-height: 360px;
}

/* Mini sidebar */
.msg-preview-sidebar {
    background: var(--off-white);
    border-right: 1px solid rgba(0,0,0,0.06);
    padding: 12px 0;
}

.msg-mini-compose {
    display: flex; align-items: center; gap: 6px;
    margin: 0 10px 12px;
    padding: 8px 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.7rem; font-weight: 600;
}

.msg-mini-folder {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    font-size: 0.72rem; color: var(--gray);
    border-left: 2px solid transparent;
}

.msg-mini-folder.active {
    background: rgba(66,133,244,0.05);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.msg-mini-folder i { width: 14px; text-align: center; font-size: 0.68rem; }
.msg-mini-folder span { margin-left: auto; font-size: 0.6rem; background: var(--primary); color: var(--white); padding: 1px 6px; border-radius: 10px; }

/* Mail list */
.msg-preview-list {
    border-right: 1px solid rgba(0,0,0,0.06);
}

.msg-preview-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    cursor: default;
    overflow: hidden;
}
.msg-preview-item > div:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; }

.msg-preview-item.active { background: rgba(66,133,244,0.04); }

.msg-preview-dot {
    width: 8px; height: 8px; min-width: 8px;
    background: var(--primary); border-radius: 50%;
    margin-top: 5px;
}

.msg-preview-dot.read { background: transparent; border: 1.5px solid var(--gray); opacity: 0.3; }

.msg-preview-from { font-size: 0.75rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.msg-preview-subj { font-size: 0.72rem; color: var(--dark); margin-bottom: 3px; }
.msg-preview-excerpt { font-size: 0.68rem; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.msg-preview-time { font-size: 0.62rem; color: var(--gray); white-space: nowrap; margin-left: auto; }

/* Email content */
.msg-preview-content { padding: 24px; }

.msg-email-header {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 18px;
}

.msg-email-avatar {
    width: 40px; height: 40px; min-width: 40px;
    background: rgba(66,133,244,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 800; color: var(--primary);
}

.msg-email-from { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.msg-email-to { font-size: 0.7rem; color: var(--gray); }
.msg-email-date { margin-left: auto; font-size: 0.68rem; color: var(--gray); }

.msg-email-body h3 {
    font-size: 1.1rem; font-weight: 800; color: var(--dark);
    margin-bottom: 14px;
}

.msg-email-body p {
    font-size: 0.84rem; color: var(--gray);
    line-height: 1.9; margin-bottom: 12px;
}

.msg-email-body ul {
    margin: 12px 0; padding-left: 18px;
}

.msg-email-body li {
    font-size: 0.82rem; color: var(--dark);
    line-height: 2; list-style: disc;
}

.msg-email-body strong { color: var(--dark); }

/* ============================================
   IDE README PREVIEW WINDOW
   ============================================ */
.ide-preview-tabs {
    flex: 1; display: flex; gap: 2px; margin-left: 10px;
}

.ide-preview-tab {
    padding: 6px 16px;
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--gray-dim);
    border-radius: 6px 6px 0 0;
    display: flex; align-items: center; gap: 6px;
}

.ide-preview-tab.active {
    background: var(--dark-2);
    color: var(--cream);
}

.ide-preview-tab i { font-size: 0.6rem; }

.ide-readme {
    display: flex;
    background: var(--dark-2);
    min-height: 340px;
}

.ide-readme-content {
    flex: 1;
    padding: 28px 32px;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 2.2;
}

.ide-readme-line {
    min-height: 1.8em;
}

.ide-rm-h1 {
    font-size: 1.3rem; font-weight: 800;
    color: var(--cream);
}

.ide-rm-h2 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--primary-light);
}

.ide-rm-text { color: var(--gray); }

.ide-rm-li {
    color: var(--cream);
}

.ide-rm-li::before {
    content: '';
}

.ide-rm-code {
    padding: 4px 12px;
    background: rgba(66,133,244,0.08);
    border: 1px solid rgba(66,133,244,0.12);
    border-radius: 6px;
    color: var(--green);
    font-size: 0.78rem;
}

.ide-rm-comment {
    color: var(--gray-dim);
    font-style: italic;
}

/* Minimap */
.ide-readme-minimap {
    width: 60px;
    background: rgba(255,255,255,0.02);
    border-left: 1px solid rgba(255,255,255,0.04);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ide-minimap-block {
    width: 100%; height: 30px;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
}

.ide-minimap-block.short { height: 14px; }

/* IDE README — Light theme */
.ide-preview-tabs-light {
    flex: 1; display: flex; gap: 0; margin-left: 10px;
}

.ide-ptab {
    padding: 7px 18px;
    font-family: var(--mono); font-size: 0.72rem;
    color: var(--gray);
    display: flex; align-items: center; gap: 6px;
    border-bottom: 2px solid transparent;
}

.ide-ptab.active {
    color: var(--dark);
    font-weight: 600;
    border-bottom-color: var(--primary);
    background: var(--white);
}

.ide-ptab i { font-size: 0.62rem; opacity: 0.5; }
.ide-ptab.active i { opacity: 1; color: var(--primary); }

.ide-readme-light {
    display: flex;
    background: var(--white);
    min-height: 340px;
}

.ide-readme-content-light {
    flex: 1;
    padding: 30px 36px;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 2.2;
}

.ide-rl { min-height: 1.8em; }

.ide-rl-h1 {
    font-size: 1.3rem; font-weight: 800;
    color: var(--dark);
}

.ide-rl-h2 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--primary);
}

.ide-rl-text { color: var(--gray); }

.ide-rl-li { color: var(--dark); }

.ide-rl-code {
    padding: 4px 12px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.78rem;
}

.ide-rl-comment {
    color: var(--gray); opacity: 0.5;
    font-style: italic;
}

.ide-minimap-light {
    width: 60px;
    background: var(--off-white);
    border-left: 1px solid rgba(0,0,0,0.04);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ide-mm {
    width: 100%; height: 30px;
    background: rgba(0,0,0,0.04);
    border-radius: 3px;
}

.ide-mm.short { height: 14px; }

/* ============================================
   SERVICES INDEX PAGE
   ============================================ */
.services-index-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-index-card {
    display: block;
    padding: 36px 30px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 18px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-index-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease);
}

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

.service-index-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border-color: rgba(66,133,244,0.15);
}

.service-index-icon {
    width: 56px; height: 56px;
    background: rgba(66,133,244,0.08);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.4s;
}

.service-index-card:hover .service-index-icon {
    background: var(--primary); color: var(--white);
    transform: scale(1.05);
}

.service-index-card h3 {
    font-size: 1.1rem; font-weight: 800; color: var(--dark);
    margin-bottom: 10px;
}

.service-index-card p {
    font-size: 0.84rem; color: var(--gray);
    line-height: 1.8; margin-bottom: 16px;
}

.service-index-link {
    font-size: 0.78rem; font-weight: 600; color: var(--primary);
    display: flex; align-items: center; gap: 6px;
    transition: gap 0.3s;
}

.service-index-card:hover .service-index-link { gap: 12px; }

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio-filter {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin-bottom: 40px;
}

.portfolio-filter-btn {
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.78rem; font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio-filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.portfolio-filter-btn.active {
    background: var(--primary); color: var(--white);
    border-color: var(--primary);
}

.portfolio-page-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-page-card {
    position: relative; border-radius: 14px;
    overflow: hidden; cursor: pointer;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s var(--ease);
}

.portfolio-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.portfolio-page-card img {
    width: 100%; height: 220px;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.portfolio-page-card:hover img { transform: scale(1.05); }

.portfolio-page-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 22px;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-page-card:hover .portfolio-page-overlay { opacity: 1; }

.portfolio-page-tag {
    display: inline-block; padding: 4px 12px;
    background: var(--primary); color: var(--white);
    font-size: 0.6rem; font-weight: 700;
    border-radius: 20px; margin-bottom: 6px;
    width: fit-content; text-transform: uppercase; letter-spacing: 1px;
}

.portfolio-page-title {
    font-size: 1rem; font-weight: 700; color: var(--white);
}

.portfolio-page-card.hide {
    display: none;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1.3fr;
    gap: 50px; align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800; color: var(--dark);
    margin-bottom: 14px;
}

.contact-info > p {
    font-size: 0.88rem; color: var(--gray);
    line-height: 1.8; margin-bottom: 30px;
}

.contact-details {
    display: flex; flex-direction: column; gap: 18px;
    margin-bottom: 30px;
}

.contact-detail {
    display: flex; gap: 14px; align-items: center;
}

.contact-detail-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: rgba(66,133,244,0.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--primary);
}

.contact-detail span {
    font-size: 0.7rem; color: var(--gray);
    text-transform: uppercase; letter-spacing: 1px;
    display: block; margin-bottom: 2px;
}

.contact-detail a, .contact-detail p {
    font-size: 0.88rem; color: var(--dark);
    font-weight: 600; margin: 0;
}

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

.contact-map {
    border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    height: 200px;
}

.contact-map iframe {
    width: 100%; height: 100%; border: 0;
}

.contact-form-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.04);
}

.contact-form-card h3 {
    font-size: 1.1rem; font-weight: 800; color: var(--dark);
    margin-bottom: 6px;
}

.contact-form-card > p {
    font-size: 0.78rem; color: var(--gray);
    margin-bottom: 24px;
}

.contact-form-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-group { margin-bottom: 16px; }

.contact-form-group label {
    display: block; font-size: 0.72rem; font-weight: 600;
    color: var(--gray); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%; padding: 12px 16px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    color: var(--dark);
    font-family: var(--font); font-size: 0.85rem;
    outline: none; transition: border-color 0.3s;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66,133,244,0.08);
}

.contact-form-group textarea { resize: vertical; min-height: 120px; }

.contact-captcha {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}

.contact-captcha label {
    font-size: 0.78rem; font-weight: 600; color: var(--primary);
    white-space: nowrap;
}

.contact-captcha input { width: 80px; text-align: center; }

/* ============================================
   CONTACT — Email compose window
   ============================================ */
.contact-compose-section {
    padding: 0 0 60px;
    background: var(--off-white);
}

.contact-compose-window {
    max-width: 900px;
    margin: -30px auto 0;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.contact-compose-body {
    padding: 0;
}

.contact-chat-area {
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 30px 0;
    max-height: 300px; overflow-y: auto;
}

.contact-chat-area:empty { padding: 0; }
.contact-compose-body #ideChatMessages { min-height: 200px; }

.contact-email-form {
    padding: 0;
}

.contact-email-field {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.contact-email-field label {
    font-size: 0.78rem; font-weight: 600; color: var(--gray);
    min-width: 40px;
}

.contact-email-field input,
.contact-email-field select {
    flex: 1; padding: 8px 0;
    background: none; border: none;
    font-family: var(--font); font-size: 0.88rem;
    color: var(--dark); outline: none;
}

.contact-email-field input::placeholder { color: var(--gray); opacity: 0.5; }

.contact-email-row {
    flex: 1; display: flex; gap: 16px;
}

.contact-email-row input { flex: 1; }

.contact-email-to {
    font-size: 0.88rem; color: var(--dark); font-weight: 500;
}

.contact-email-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
    cursor: pointer;
}

.contact-email-separator {
    height: 1px;
    background: rgba(0,0,0,0.06);
}

.contact-email-message {
    padding: 0;
}

.contact-email-message textarea {
    width: 100%;
    padding: 24px 30px;
    border: none; background: none;
    font-family: var(--font);
    font-size: 0.9rem; line-height: 1.8;
    color: var(--dark);
    resize: vertical;
    min-height: 200px;
    outline: none;
}

.contact-email-message textarea::placeholder { color: var(--gray); opacity: 0.4; }

.contact-email-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 30px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: var(--off-white);
}

.contact-email-captcha {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.78rem; font-weight: 600; color: var(--primary);
}

.contact-email-captcha input {
    width: 70px; padding: 8px 12px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center; outline: none;
    color: var(--dark);
}

.contact-email-captcha input:focus { border-color: var(--primary); }

/* Contact info cards */
.contact-info-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-info-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    transition: all 0.3s var(--ease);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.04);
}

.contact-info-card .msg-adv-icon { margin: 0 auto 14px; }

.contact-info-card h4 {
    font-size: 0.82rem; font-weight: 700; color: var(--dark);
    margin-bottom: 6px;
}

.contact-info-card a,
.contact-info-card p {
    font-size: 0.8rem; color: var(--gray); margin: 0; line-height: 1.6;
}

.contact-info-card a:hover { color: var(--primary); }

/* Map section */
.contact-map-section {
    line-height: 0;
}

/* Chat messages inside compose window */
.contact-chat-area .ide-chat-msg.bot p {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px 12px 12px 4px;
    padding: 12px 16px;
    font-size: 0.78rem; color: var(--dark);
    line-height: 1.6; margin: 0;
}

.contact-chat-area .ide-chat-msg.user p {
    background: var(--primary);
    border-radius: 12px 12px 4px 12px;
    padding: 12px 16px;
    font-size: 0.78rem; color: var(--white);
    line-height: 1.6; margin: 0;
}

.contact-chat-area .ide-chat-msg.user { align-self: flex-end; }

/* Follow-up inside compose window */
.contact-compose-body .ide-chat-followup {
    padding: 14px 30px 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.contact-compose-body .ide-chat-followup-row input {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--dark);
}

/* ============================================
   MESSAGERIE — Content sections
   ============================================ */
.msg-section { padding: 100px 0; background: var(--off-white); }
.msg-section--alt { background: var(--white); }

.msg-section-header {
    text-align: center; max-width: 650px; margin: 0 auto 50px;
}

.msg-section-header .cmd-badge { margin-bottom: 14px; }

/* Advantages grid */
.msg-adv-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.msg-adv-card {
    padding: 30px 24px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    transition: all 0.4s var(--ease);
    text-align: center;
}

.msg-adv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border-color: rgba(66,133,244,0.15);
}

.msg-adv-icon {
    width: 50px; height: 50px;
    background: rgba(66,133,244,0.08);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--primary);
    margin: 0 auto 16px;
    transition: all 0.4s;
}

.msg-adv-card:hover .msg-adv-icon { background: var(--primary); color: var(--white); }

.msg-adv-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.msg-adv-card p { font-size: 0.8rem; color: var(--gray); line-height: 1.8; margin: 0; }

/* ============================================
   SOLUTIONS — Dark section (AI style)
   ============================================ */
.msg-solutions-dark {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(165deg, #070b14 0%, #0d1117 40%, #0a0f1a 100%);
    overflow: hidden;
}

.msg-solutions-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; opacity: 0.3;
}

.msg-sol-layout {
    position: relative; z-index: 2;
}

.msg-sol-badge {
    background: rgba(66,133,244,0.12) !important;
    color: var(--primary-light) !important;
}

.msg-sol-badge i { margin-right: 6px; }

.msg-sol-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800; line-height: 1.15;
    color: var(--white); margin-bottom: 16px;
}

.msg-sol-highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.msg-sol-desc {
    font-size: 0.9rem; color: var(--gray);
    line-height: 1.9; margin-bottom: 50px;
    max-width: 600px;
}

.msg-sol-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.msg-sol-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 32px 28px;
    transition: all 0.4s var(--ease);
}

.msg-sol-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(66,133,244,0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.msg-sol-card-top {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}

.msg-sol-card-name {
    font-size: 1rem; font-weight: 700; color: var(--white);
}

.msg-sol-card p {
    font-size: 0.84rem; color: var(--gray);
    line-height: 1.9; margin-bottom: 20px;
}

.msg-sol-card-specs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 18px;
}

.msg-sol-card-specs > div {
    display: flex; justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    font-size: 0.75rem;
}

.msg-sol-card-specs span { color: var(--gray); }
.msg-sol-card-specs strong { color: var(--cream); }

.msg-sol-card-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
}

.msg-sol-card-tags span {
    padding: 4px 12px;
    background: rgba(52,211,153,0.06);
    border: 1px solid rgba(52,211,153,0.12);
    border-radius: 6px;
    font-size: 0.68rem; font-family: var(--mono);
    color: var(--green);
}

/* ============================================
   PLANS — AI-style layout (text left + list right)
   ============================================ */
.plans-ai-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.plans-ai-text {
    position: sticky;
    top: 100px;
}

.plans-ai-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plans-ai-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    transition: all 0.4s var(--ease);
}

.plans-ai-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(66,133,244,0.2);
    transform: translateX(6px);
}

.plans-ai-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: rgba(66,133,244,0.1);
    border: 1px solid rgba(66,133,244,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-light);
}

.plans-ai-item:hover .plans-ai-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.plans-ai-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.plans-ai-item p {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.7;
    margin: 0 0 10px;
}

.plans-ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plans-ai-tags span {
    padding: 3px 10px;
    background: rgba(52,211,153,0.06);
    border: 1px solid rgba(52,211,153,0.12);
    border-radius: 6px;
    font-size: 0.65rem;
    font-family: var(--mono);
    color: var(--green);
}

/* Tech badges below plans */
.plans-ai-tech-badges {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 24px;
    position: relative; z-index: 2;
}

.plans-ai-tech-badges span {
    padding: 5px 14px;
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.15);
    border-radius: 20px;
    font-size: 0.7rem; font-family: var(--mono);
    color: var(--purple); letter-spacing: 0.3px;
}

/* Process 4 steps — 2x2 grid */
.msg-process-4 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.msg-process-4 .msg-proc {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: left;
    transition: all 0.4s var(--ease);
}

.msg-process-4 .msg-proc:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.04);
    border-color: rgba(66,133,244,0.15);
}

.msg-process-4 .msg-proc-num {
    margin: 0 0 14px;
}

.msg-process-4 .msg-proc-line { display: none; }

.msg-process-4 .msg-proc h4 { text-align: left; }
.msg-process-4 .msg-proc p { text-align: left; }

/* ============================================
   LOGO CAROUSELS — partners & clients
   ============================================ */
.logo-carousel-section {
    padding: 80px 0 40px;
    background: var(--off-white);
    overflow: hidden;
}

.logo-carousel-section--alt {
    padding: 40px 0 80px;
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-carousel-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}

.logo-carousel-track--reverse {
    animation: logoScrollReverse 30s linear infinite;
}

.logo-carousel-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.logo-carousel-item img {
    max-height: 45px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s var(--ease);
}

.logo-carousel-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.logo-carousel-item a {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* ============================================
   SCROLL CHARACTER — appears beside sections
   ============================================ */
.scroll-character {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.6s var(--ease), opacity 0.4s;
    opacity: 0;
}

.scroll-character.visible { opacity: 1; }

.scroll-character img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 12px 25px rgba(0,0,0,0.1));
}

/* Mirror when on the left */
.scroll-character.side-left img {
    transform: scaleX(-1);
}

@media (max-width: 1200px) {
    .scroll-character { display: none; }
}

@media (max-width: 1024px) {
    .plans-ai-layout { grid-template-columns: 1fr; gap: 40px; }
    .plans-ai-text { position: static; }
}

@media (max-width: 768px) {
    .msg-process-4 { grid-template-columns: 1fr !important; }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

.product-detail-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-detail-block h2 {
    margin-bottom: 18px;
}

.product-detail-block h3 {
    font-size: 1rem; font-weight: 700; color: var(--dark);
    margin: 10px 0 14px;
}

.product-features-list {
    display: flex; flex-direction: column; gap: 12px;
}

.product-features-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.88rem; color: var(--dark); line-height: 1.6;
}

.product-features-list li i {
    color: var(--green); margin-top: 3px; font-size: 0.8rem;
}

.product-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.product-tag {
    padding: 6px 16px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    font-size: 0.75rem; font-family: var(--mono);
    color: var(--dark); font-weight: 500;
    display: flex; align-items: center; gap: 6px;
}

.product-tag i { color: var(--primary); }

.product-tag--delivery {
    background: rgba(66,133,244,0.06);
    border-color: rgba(66,133,244,0.12);
    color: var(--primary);
}

.product-note {
    font-size: 0.78rem; color: var(--gray);
    font-style: italic; margin-top: 12px;
}

/* Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.product-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.product-gallery-item:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.product-gallery-item img {
    width: 100%; height: 180px;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.product-gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.product-lightbox {
    position: fixed; inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.product-lightbox.open { display: flex; }

.product-lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: lbFadeIn 0.3s ease;
}

@keyframes lbFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.product-lightbox-close {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%;
    color: white; font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}

.product-lightbox-close:hover { background: rgba(255,255,255,0.2); }

.product-lightbox-prev,
.product-lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%;
    color: white; font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}

.product-lightbox-prev { left: 24px; }
.product-lightbox-next { right: 24px; }
.product-lightbox-prev:hover,
.product-lightbox-next:hover { background: rgba(255,255,255,0.2); }

.product-lightbox-counter {
    position: absolute; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem; color: rgba(255,255,255,0.6);
    font-family: var(--mono);
}

/* Sidebar */
.product-detail-sidebar {
    position: sticky;
    top: 100px;
}

.product-sidebar-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.product-sidebar-img {
    max-width: 200px; max-height: 150px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 4px;
}

.product-sidebar-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.65rem; font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-sidebar-card h3 {
    font-size: 1.1rem; font-weight: 800;
    color: var(--dark); margin: 0;
}

.product-sidebar-price {
    display: flex; flex-direction: column;
    align-items: center; gap: 2px;
}

.product-price-label {
    font-size: 0.65rem; color: var(--gray);
    font-family: var(--mono);
}

.product-price-amount {
    font-size: 2.2rem; font-weight: 800;
    color: var(--primary);
    font-family: var(--mono);
    line-height: 1;
}

.product-price-suffix {
    font-size: 0.72rem; color: var(--gray); font-weight: 600;
}

.product-price-old {
    font-size: 0.78rem; color: var(--gray);
    text-decoration: line-through;
}

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

.product-sidebar-phone {
    font-size: 0.78rem; color: var(--gray);
    display: flex; align-items: center; gap: 6px;
    transition: color 0.3s;
}

.product-sidebar-phone:hover { color: var(--primary); }

.product-back-link {
    display: flex; align-items: center; gap: 6px;
    margin-top: 16px;
    font-size: 0.78rem; color: var(--gray);
    transition: color 0.3s;
}

.product-back-link:hover { color: var(--primary); }

@media (max-width: 1024px) {
    .product-detail-layout { grid-template-columns: 1fr; }
    .product-detail-sidebar { position: static; }
}

/* ============================================
   BLOG
   ============================================ */
.blog-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin-bottom: 40px;
}

.blog-filter-btn {
    padding: 8px 20px;
    background: var(--white); border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50px;
    font-family: var(--font); font-size: 0.78rem; font-weight: 600;
    color: var(--gray); cursor: pointer; transition: all 0.3s;
}

.blog-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.blog-filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Blog card — browser window style */
.blog-card-browser {
    display: block;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.blog-card-browser:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* Chrome bar */
.blog-card-chrome {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: var(--off-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.blog-card-dots { display: flex; gap: 5px; }

.blog-card-url {
    flex: 1;
    font-family: var(--mono); font-size: 0.65rem;
    color: var(--gray);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.blog-card-cat-badge {
    padding: 3px 10px;
    background: var(--primary); color: var(--white);
    font-size: 0.58rem; font-weight: 700;
    border-radius: 20px; text-transform: uppercase;
    letter-spacing: 0.5px; white-space: nowrap;
}

/* Image */
.blog-card-browser .blog-card-img {
    height: 190px; overflow: hidden;
    background: var(--off-white);
}

.blog-card-browser .blog-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.blog-card-browser:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--gray); opacity: 0.15;
}

/* Body */
.blog-card-browser .blog-card-body { padding: 20px; }

.blog-card-browser .blog-card-body h3 {
    font-size: 0.95rem; font-weight: 700; color: var(--dark);
    margin-bottom: 8px; line-height: 1.4;
}

.blog-card-browser .blog-card-body p {
    font-size: 0.8rem; color: var(--gray);
    line-height: 1.7; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.blog-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.04);
    font-size: 0.7rem; color: var(--gray);
}

.blog-card-author { font-weight: 600; color: var(--dark); }
.blog-card-author i, .blog-card-date i { margin-right: 4px; color: var(--primary); }

/* Article detail */
.blog-article-layout {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 50px; align-items: start;
}

.blog-article-hero {
    border-radius: 16px; overflow: hidden;
    margin-bottom: 28px;
}

.blog-article-hero img {
    width: 100%; max-height: 400px; object-fit: cover;
}

.blog-article-meta {
    display: flex; flex-wrap: wrap; gap: 18px;
    margin-bottom: 20px;
    font-size: 0.78rem; color: var(--gray);
}

.blog-article-meta i { color: var(--primary); margin-right: 5px; }

.blog-article-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800; color: var(--dark);
    line-height: 1.3; margin-bottom: 28px;
}

.blog-article-content {
    font-size: 0.92rem; color: var(--dark);
    line-height: 2;
}

.blog-article-content h2 { font-size: 1.4rem; font-weight: 800; margin: 28px 0 14px; }
.blog-article-content h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; }
.blog-article-content p { margin-bottom: 16px; }
.blog-article-content ul, .blog-article-content ol { margin: 14px 0; padding-left: 24px; }
.blog-article-content li { margin-bottom: 6px; }
.blog-article-content img { max-width: 100%; border-radius: 10px; margin: 16px 0; }
.blog-article-content code { background: var(--off-white); padding: 2px 8px; border-radius: 4px; font-family: var(--mono); font-size: 0.85rem; }
.blog-article-content pre { background: var(--dark); color: var(--cream); padding: 20px; border-radius: 10px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; margin: 16px 0; }
.blog-article-content blockquote { border-left: 3px solid var(--primary); padding-left: 18px; margin: 16px 0; color: var(--gray); font-style: italic; }

.blog-article-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 30px; padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.blog-tag {
    padding: 5px 14px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    font-size: 0.72rem; font-family: var(--mono);
    color: var(--dark);
}

/* Blog sidebar */
.blog-sidebar {
    position: sticky; top: 100px;
}

.blog-sidebar-card {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
}

.blog-sidebar-card h4 {
    font-size: 0.82rem; font-weight: 700; color: var(--dark);
    margin-bottom: 12px;
}

.blog-sidebar-card a {
    display: block; font-size: 0.8rem; color: var(--gray);
    padding: 5px 0; transition: color 0.3s;
}

.blog-sidebar-card a:hover { color: var(--primary); }

.blog-sidebar-card p {
    font-size: 0.8rem; color: var(--gray); line-height: 1.7;
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .blog-article-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SHELL TABS — interactive service tabs in dark section
   ============================================ */
.shell-tabs-window {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.shell-tabs-topbar {
    display: flex; align-items: center;
    padding: 12px 16px;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.shell-tabs-topbar .sw-dots { display: flex; gap: 6px; }

.shell-tabs-title {
    flex: 1; text-align: center;
    font-family: var(--mono); font-size: 0.68rem;
    color: var(--gray-dim); letter-spacing: 0.5px;
}

.shell-tabs-nav {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.shell-tab-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: var(--gray);
    font-family: var(--mono); font-size: 0.72rem;
    cursor: pointer; transition: all 0.3s var(--ease);
    font-weight: 500;
}

.shell-tab-btn:hover {
    background: rgba(66,133,244,0.08);
    border-color: rgba(66,133,244,0.15);
    color: var(--primary-light);
}

.shell-tab-btn.active {
    background: rgba(66,133,244,0.12);
    border-color: rgba(66,133,244,0.3);
    color: var(--white);
    box-shadow: 0 0 15px rgba(66,133,244,0.08);
}

.shell-tab-btn i { font-size: 0.78rem; opacity: 0.6; }
.shell-tab-btn.active i { opacity: 1; color: var(--primary-light); }

.shell-tabs-content {
    padding: 20px 24px;
    min-height: 220px;
    font-family: var(--mono); font-size: 0.78rem;
    line-height: 2;
}

.shell-tabs-prompt {
    color: var(--green); margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}

.shell-tabs-prompt .path { color: var(--primary-light); }
.shell-tabs-prompt .dollar { color: var(--green); }
.shell-tabs-prompt .typed { color: var(--cream); }

.shell-tab-panel {
    display: none;
    animation: shellFadeIn 0.35s var(--ease);
}

.shell-tab-panel.active { display: block; }

.shell-tab-panel-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.shell-tab-panel-icon {
    width: 40px; height: 40px;
    background: rgba(66,133,244,0.1);
    border: 1px solid rgba(66,133,244,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--primary-light);
}

.shell-tab-panel-title {
    font-family: var(--font); font-size: 1.05rem;
    font-weight: 700; color: var(--white);
}

.shell-tab-line {
    color: var(--gray); padding: 1px 0;
}

.shell-tab-line .check { color: var(--green); }
.shell-tab-line .label { color: var(--yellow); }
.shell-tab-line .value { color: var(--cream); }

.shell-tab-tags {
    margin-top: 12px;
    display: flex; flex-wrap: wrap; gap: 6px;
}

.shell-tab-tags span {
    padding: 4px 12px;
    background: rgba(52,211,153,0.06);
    border: 1px solid rgba(52,211,153,0.12);
    border-radius: 6px;
    font-size: 0.68rem; color: var(--green);
}

.shell-tab-cta {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.shell-tab-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 20px;
    background: var(--primary); color: var(--white);
    border-radius: 8px;
    font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
    transition: all 0.3s var(--ease);
}

.shell-tab-cta a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66,133,244,0.2);
}

/* Clickable solution card */
.msg-sol-card--link { display: block; cursor: pointer; }
.msg-sol-card-arrow {
    margin-left: auto; color: var(--gray-dim);
    font-size: 0.75rem;
    transition: transform 0.3s var(--ease), color 0.3s;
}
.msg-sol-card--link:hover .msg-sol-card-arrow {
    transform: translateX(4px); color: var(--primary-light);
}

/* Migration layout */
.msg-migration-layout {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 50px; align-items: center;
}

.msg-migration-sources {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.msg-source {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    transition: all 0.3s var(--ease);
}

.msg-source:hover { transform: translateY(-4px); border-color: rgba(66,133,244,0.15); }

.msg-source i { font-size: 1.5rem; color: var(--primary); }
.msg-source span { font-size: 0.78rem; font-weight: 600; color: var(--dark); }

/* Process horizontal steps */
.msg-process-steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; position: relative;
    overflow: hidden;
}

.msg-proc {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.msg-proc-num {
    width: 50px; height: 50px;
    background: var(--primary); color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; font-family: var(--mono);
    margin: 0 auto 18px;
    position: relative; z-index: 2;
}

.msg-proc-line {
    position: absolute;
    top: 25px;
    left: calc(50% + 25px);
    width: 100%;
    max-width: calc(100% - 50px);
    height: 2px;
    background: linear-gradient(to right, var(--primary), rgba(66,133,244,0.15));
    z-index: 1;
    overflow: hidden;
}

.msg-proc:last-child .msg-proc-line { display: none; }

@media (max-width: 768px) {
    .msg-proc-line { display: none !important; }
}

.msg-proc h4 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.msg-proc p { font-size: 0.8rem; color: var(--gray); line-height: 1.8; margin: 0; }

/* ============================================
   BOT TRIGGER (character at bottom)
   ============================================ */
.browser-bot-trigger {
    display: none; /* temporairement masqué */
    position: fixed;
    bottom: 30px; right: 30px;
    align-items: flex-end; gap: 12px;
    cursor: pointer;
    z-index: 90;
}

.browser-bot-img {
    width: 90px; height: auto;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3));
    transition: transform 0.3s var(--ease);
}

.browser-bot-trigger:hover .browser-bot-img {
    transform: scale(1.1);
}

.browser-bot-bubble {
    display: none; /* temporairement masqué */
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 12px 12px 12px 4px;
    font-size: 0.72rem; font-weight: 600;
    white-space: nowrap;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(66,133,244,0.25);
    animation: bubblePulse 3s ease-in-out infinite;
}

@keyframes bubblePulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================
   CHAT POPUP (modal overlay)
   ============================================ */
.chat-popup {
    position: fixed; inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
}

.chat-popup.open { display: flex; }

.chat-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.chat-popup-window {
    position: relative;
    width: 380px;
    max-height: 85vh;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatPopIn 0.35s var(--ease);
}

@keyframes chatPopIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-popup-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.chat-popup-header .ide-chat-avatar {
    background: rgba(66,133,244,0.1);
    border: 1px solid rgba(66,133,244,0.15);
}

.chat-popup-close {
    margin-left: auto;
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.04);
    border: none; border-radius: 8px;
    color: var(--gray); font-size: 0.8rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.chat-popup-close:hover { background: rgba(0,0,0,0.08); color: var(--dark); }

.chat-popup-window .ide-chat-messages {
    flex: 1; padding: 16px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 12px;
    min-height: 150px;
    max-height: 40vh;
}

.chat-popup-window .ide-chat-form { padding: 12px; border-top: 1px solid rgba(0,0,0,0.06); }
.chat-popup-window .ide-chat-followup { padding: 12px; border-top: 1px solid rgba(0,0,0,0.06); }

.chat-popup-window .ide-chat-msg.bot p {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px 12px 12px 4px;
    padding: 12px 16px;
    font-size: 0.78rem; color: var(--dark);
    line-height: 1.6; margin: 0;
}

.chat-popup-window .ide-chat-msg.user p {
    background: var(--primary);
    border-radius: 12px 12px 4px 12px;
    padding: 12px 16px;
    font-size: 0.78rem; color: var(--white);
    line-height: 1.6; margin: 0;
}

.chat-popup-window .ide-chat-field input,
.chat-popup-window .ide-chat-field select,
.chat-popup-window .ide-chat-field textarea {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--dark);
}

.chat-popup-window .ide-chat-field input:focus,
.chat-popup-window .ide-chat-field select:focus,
.chat-popup-window .ide-chat-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66,133,244,0.08);
}

.chat-popup-window .ide-chat-followup-row input {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--dark);
}

.chat-popup-window .ide-captcha-label { color: var(--primary); }

/* ============================================
   SIDEBAR CHAT — fixed right side
   ============================================ */
.sidebar-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

/* Collapsed — bonhomme + bubble */
.sidebar-chat-collapsed {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    cursor: pointer;
}

.sidebar-chat-avatar-img {
    width: 80px; height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
    transition: transform 0.3s var(--ease);
}

.sidebar-chat-collapsed:hover .sidebar-chat-avatar-img {
    transform: scale(1.1);
}

.sidebar-chat-bubble {
    display: none; /* temporairement masqué */
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 12px 12px 4px 12px;
    font-size: 0.75rem; font-weight: 600;
    white-space: nowrap;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(66,133,244,0.25);
    animation: bubblePulse 3s ease-in-out infinite;
}

/* Expanded — chat window */
.sidebar-chat-expanded {
    display: none;
}

.sidebar-chat.open .sidebar-chat-collapsed { display: none; }
.sidebar-chat.open .sidebar-chat-expanded { display: block; }

.sidebar-chat-window {
    width: 360px;
    max-height: calc(100vh - 80px);
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.35s var(--ease);
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sidebar-chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.sidebar-chat-close {
    margin-left: auto;
    width: 30px; height: 30px;
    background: rgba(0,0,0,0.04);
    border: none; border-radius: 8px;
    color: var(--gray); font-size: 0.75rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.sidebar-chat-close:hover { background: rgba(0,0,0,0.08); color: var(--dark); }

.sidebar-chat-window .ide-chat-messages {
    flex: 1; padding: 14px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 120px; max-height: 35vh;
}

.sidebar-chat-window .ide-chat-form { padding: 10px 14px; border-top: 1px solid rgba(0,0,0,0.06); }
.sidebar-chat-window .ide-chat-followup { padding: 10px 14px; border-top: 1px solid rgba(0,0,0,0.06); }

.sidebar-chat-window .ide-chat-msg.bot p {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px 12px 12px 4px;
    padding: 10px 14px;
    font-size: 0.78rem; color: var(--dark);
    line-height: 1.6; margin: 0;
}

.sidebar-chat-window .ide-chat-msg.user p {
    background: var(--primary);
    border-radius: 12px 12px 4px 12px;
    padding: 10px 14px;
    font-size: 0.78rem; color: var(--white);
    line-height: 1.6; margin: 0;
}

.sidebar-chat-window .ide-chat-msg.user { align-self: flex-end; }

.sidebar-chat-window .ide-chat-field input,
.sidebar-chat-window .ide-chat-field select,
.sidebar-chat-window .ide-chat-field textarea {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--dark);
}

.sidebar-chat-window .ide-chat-field input:focus,
.sidebar-chat-window .ide-chat-field select:focus,
.sidebar-chat-window .ide-chat-field textarea:focus {
    border-color: var(--primary);
}

.sidebar-chat-window .ide-captcha-label { color: var(--primary); }

.sidebar-chat-window .ide-chat-followup-row input {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--dark);
}

/* ============================================
   PAGE TOOLBAR — fixed vertical right bar
   ============================================ */
.page-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #1c1f26;
    border-radius: 22px;
    padding: 10px 7px 14px;
    z-index: 90;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05);
    opacity: 0;
    transform: translateY(-50%) translateX(60px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.page-toolbar.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.toolbar-indicator {
    width: 4px; height: 28px;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 6px;
    box-shadow: 0 0 10px rgba(66,133,244,0.6);
}

.toolbar-sep {
    width: 24px; height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 4px 0;
}

.toolbar-btn {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.toolbar-btn:hover {
    background: rgba(66,133,244,0.18);
    border-color: rgba(66,133,244,0.35);
    color: #fff;
    transform: scale(1.08);
}
.toolbar-btn--chat:hover { background: rgba(66,133,244,0.22); border-color: var(--primary); color: var(--primary); }
.toolbar-btn--wa:hover   { background: rgba(37,211,102,0.18); border-color: rgba(37,211,102,0.4); color: #25d366; }

/* Tooltip */
.toolbar-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%; transform: translateY(-50%) translateX(6px);
    background: #1c1f26;
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.toolbar-tooltip::after {
    content: '';
    position: absolute;
    left: 100%; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1c1f26;
}
.toolbar-btn:hover .toolbar-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .page-toolbar {
        position: fixed !important;
        bottom: 0; left: 0; right: 0;
        top: auto !important;
        transform: none !important;
        flex-direction: row;
        justify-content: center;
        border-radius: 0;
        padding: 10px 20px;
        gap: 8px;
        z-index: 9990;
    }
    .page-toolbar.visible { transform: none !important; }
    .toolbar-indicator { display: none; }
    .toolbar-sep { width: 1px; height: 20px; }
    .toolbar-tooltip { display: none !important; }
}

/* ============================================
   GLOBAL CONTACT SIDEBAR — drawer from right
   ============================================ */
.contact-sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.contact-sidebar-overlay.open { opacity: 1; pointer-events: all; }

.contact-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 420px; max-width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.contact-sidebar.open { transform: translateX(0); }

.contact-sidebar-header {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
    background: var(--white);
}

.contact-sidebar-close {
    margin-left: auto;
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.04);
    border: none; border-radius: 8px;
    cursor: pointer; color: var(--gray);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.contact-sidebar-close:hover { background: rgba(0,0,0,0.08); color: var(--dark); }

.contact-sidebar .ide-chat-messages {
    flex: 1;
    padding: 14px 16px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    justify-content: flex-end;
}
.contact-sidebar .ide-chat-form {
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.contact-sidebar .ide-chat-followup {
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.contact-sidebar .ide-chat-msg.bot p {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px 12px 12px 4px;
    padding: 10px 14px; font-size: 0.85rem;
    line-height: 1.6; margin: 0; color: var(--dark);
}
.contact-sidebar .ide-chat-msg.user p {
    background: var(--primary);
    border-radius: 12px 12px 4px 12px;
    padding: 10px 14px; font-size: 0.85rem;
    line-height: 1.6; margin: 0; color: #fff;
}
.contact-sidebar .ide-chat-msg.user { align-self: flex-end; }

.contact-sidebar .ide-chat-field input,
.contact-sidebar .ide-chat-field select,
.contact-sidebar .ide-chat-field textarea {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--dark);
}
.contact-sidebar .ide-chat-field input:focus,
.contact-sidebar .ide-chat-field select:focus,
.contact-sidebar .ide-chat-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66,133,244,0.08);
}
.contact-sidebar .ide-captcha-label { color: var(--primary); }
.contact-sidebar .ide-chat-followup-row input {
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--dark);
}

@media (max-width: 480px) {
    .contact-sidebar { width: 100vw; }
}

.about-text {
    font-size: 0.88rem; color: var(--gray);
    line-height: 1.9; margin-bottom: 16px;
}

.about-text strong { color: var(--dark); }

/* ============================================
   ABOUT — Services overview
   ============================================ */
.about-services { padding: 100px 0; background: var(--white); }

.about-services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-service-card {
    padding: 32px 26px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    transition: all 0.4s var(--ease);
}

.about-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border-color: rgba(66,133,244,0.15);
}

.about-service-icon {
    width: 50px; height: 50px;
    background: rgba(66,133,244,0.08);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: var(--primary);
    margin-bottom: 18px;
    transition: all 0.4s var(--ease);
}

.about-service-card:hover .about-service-icon {
    background: var(--primary);
    color: var(--white);
}

.about-service-card h3 {
    font-size: 0.95rem; font-weight: 700; color: var(--dark);
    margin-bottom: 8px;
}

.about-service-card p {
    font-size: 0.8rem; color: var(--gray); line-height: 1.8; margin: 0;
}

/* ============================================
   ABOUT — Engagement
   ============================================ */
.about-engagement { padding: 100px 0; background: var(--off-white); }

.about-engagement-grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 60px; align-items: center;
}

.engagement-points { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }

.engagement-point {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    transition: all 0.4s var(--ease);
}

.engagement-point:hover {
    border-color: rgba(66,133,244,0.15);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.engagement-check {
    width: 40px; height: 40px; min-width: 40px;
    background: rgba(66,133,244,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--primary);
}

.engagement-point:hover .engagement-check {
    background: var(--primary);
    color: var(--white);
}

.engagement-point h4 {
    font-size: 0.88rem; font-weight: 700; color: var(--dark);
    margin-bottom: 3px;
}

.engagement-point p {
    font-size: 0.78rem; color: var(--gray); line-height: 1.7; margin: 0;
}

/* ============================================
   ABOUT — Stats (dark strip)
   ============================================ */
.about-stats {
    padding: 80px 0;
    background: var(--dark);
}

.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 40px; text-align: center;
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800; color: var(--white);
    line-height: 1; margin-bottom: 8px;
}

.stat-number::after { content: '+'; color: var(--primary); }

.stat-label {
    font-size: 0.75rem; color: var(--gray);
    text-transform: uppercase; letter-spacing: 2px;
}

/* ============================================
   ABOUT — Tech Stack
   ============================================ */
.about-stack { padding: 120px 0; background: var(--white); }

.stack-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stack-category {
    padding: 30px;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
}

.stack-cat-title {
    font-size: 0.85rem; font-weight: 700; color: var(--dark);
    margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}

.stack-cat-title i { color: var(--primary); font-size: 0.9rem; }

.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.stack-tag {
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    font-size: 0.72rem; font-family: var(--mono);
    color: var(--dark); font-weight: 500;
    transition: all 0.3s;
}

.stack-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .ai-layout { grid-template-columns: 1fr; gap: 50px; }
    .about-main-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-offer-grid { grid-template-columns: 1fr 1fr; }
    .srv-hero-banner-layout { flex-direction: column; text-align: center; }
    .srv-hero-banner-right { display: none; }
    .srv-hero-banner { min-height: 70vh; }
    .srv-intro-layout { grid-template-columns: 1fr; }
    .srv-intro-img { margin-top: 0; order: -1; }
    .srv-intro-img img { max-width: 220px; }
    .srv-split { grid-template-columns: 1fr; }
    .srv-sidebar { position: static; }
    .srv-contact-full-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .stack-grid { grid-template-columns: 1fr; }
    .intro-grid, .portfolio-layout { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-terminal { position: static; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .navbar-menu, .navbar-cta { display: none; }
    .navbar {
        z-index: 99999 !important;
    }
    .navbar-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 100000 !important;
    }

    /* Disable all canvas pointer events on mobile */
    canvas {
        pointer-events: none !important;
    }

    /* Pages banners — lower z-index */
    .page-banner,
    .page-banner--grid,
    .page-banner--char,
    .hero {
        z-index: 1 !important;
    }

    /* ---- Menu mobile overlay ---- */
    .navbar-menu.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        max-width: 100%;
        background: var(--white);
        z-index: 9998;
        padding: 70px 0 100px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-menu.mobile-open > .navbar-item {
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .navbar-menu.mobile-open .navbar-link {
        font-size: 1rem; padding: 15px 28px; width: 100%;
        display: flex; align-items: center; justify-content: flex-start;
        color: var(--dark) !important;
        border-bottom: none;
    }
    .navbar-menu.mobile-open .navbar-link .dropdown-icon {
        margin-left: auto;
    }
    /* Chevron rotation when dropdown open */
    .navbar-menu.mobile-open .has-dropdown.open > .navbar-link .dropdown-icon {
        transform: rotate(180deg);
    }
    /* Dropdowns cachés par défaut, ouverts avec .open */
    .navbar-menu.mobile-open .dropdown-menu {
        position: static; opacity: 0; visibility: hidden;
        max-height: 0; overflow: hidden;
        transform: none; border: none; box-shadow: none;
        background: var(--off-white);
        transition: max-height 0.3s ease, opacity 0.2s ease;
        padding: 0 28px;
    }
    .navbar-menu.mobile-open .has-dropdown.open > .dropdown-menu {
        opacity: 1; visibility: visible; max-height: 600px;
        padding: 8px 28px 12px;
    }
    .navbar-menu.mobile-open .dropdown-menu a {
        padding: 10px 0; font-size: 0.9rem; color: var(--gray);
        border-bottom: 1px solid rgba(0,0,0,0.04);
        display: block;
    }
    .navbar-menu.mobile-open .dropdown-menu a:last-child { border-bottom: none; }

    /* Sub-dropdown (level 3: Messagerie > Zoho/Google/Outlook) */
    .navbar-menu.mobile-open .has-sub > a {
        display: flex; align-items: center; justify-content: space-between;
    }
    .navbar-menu.mobile-open .has-sub > a .dropdown-sub-icon {
        font-size: 0.5rem;
        transition: transform 0.3s;
    }
    .navbar-menu.mobile-open .has-sub.open > a .dropdown-sub-icon {
        transform: rotate(90deg);
    }
    .navbar-menu.mobile-open .dropdown-sub {
        position: static;
        opacity: 0; visibility: hidden;
        max-height: 0; overflow: hidden;
        transform: none; border: none; box-shadow: none;
        background: transparent;
        padding: 0 0 0 16px;
        min-width: auto;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }
    .navbar-menu.mobile-open .has-sub.open > .dropdown-sub {
        opacity: 1; visibility: visible; max-height: 400px;
        padding: 4px 0 4px 16px;
    }
    .navbar-menu.mobile-open .dropdown-sub a {
        padding: 8px 0; font-size: 0.85rem;
    }

    /* Désactiver le snap scroll sur mobile (cause pages blanches) */
    .srv-snap-container {
        scroll-snap-type: none;
        position: static;
        height: auto;
        overflow-y: visible;
    }
    .srv-snap-container .srv-hero-banner,
    .srv-snap-container .ide-wrapper,
    .srv-snap-container .mail-wrapper,
    .srv-snap-container .browser-wrapper {
        height: auto;
        scroll-snap-align: none;
        scroll-snap-stop: unset;
    }
    .srv-snap-container .ide-wrapper { min-height: unset; }
    body:has(.srv-snap-container) .footer { display: block; }
    body:has(.srv-snap-container) .back-to-top { display: block; }

    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .folder-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .intro-list { grid-template-columns: 1fr; }
    .about-offer-grid, .stats-grid { grid-template-columns: 1fr; }
    .srv-form-row { grid-template-columns: 1fr; }
    .section-intro, .section-services, .section-ai, .section-portfolio, .section-testimonial, .about-main, .about-offer, .srv-main, .srv-contact-full, .cta-section, .msg-section, .msg-section--alt { padding: 60px 0; }

    /* ===== HERO HOMEPAGE — mobile ===== */
    .hero {
        min-height: auto;
        height: auto;
        padding: 100px 0 40px;
    }
    .hero-grid { display: none; }
    .hero-clouds { display: none; }
    .hero-accent { display: none; }
    .hero-wrapper {
        pointer-events: auto;
        padding: 0 20px;
    }
    .hero-logo-img { width: 180px !important; }
    .hero-tagline { font-size: 0.82rem; }
    .hero-cta-row { flex-direction: column; align-items: center; gap: 10px; }
    .scroll-indicator { display: none; }

    /* ===== NAVBAR — force on top ===== */
    .navbar { z-index: 99999 !important; }

    /* Footer mobile — only logo, desc, social, phone, email */
    .footer-col--links { display: none !important; }
    .footer-grid { grid-template-columns: 1fr !important; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-contact { text-align: center; }
    .footer-contact li { justify-content: center; }
    .footer-heading::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { padding-bottom: 60px; } /* space for toolbar */

    /* ===== Force ALL content visible (GSAP sets opacity:0 inline) ===== */
    .section-intro *,
    .section-services *,
    .section-ai *,
    .section-portfolio *,
    .section-testimonial *,
    .stats-marquee *,
    .cta-section *,
    .logo-carousel-section *,
    .footer * {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Shell services */
    .shell-container { max-width: 100%; }
    .shell-commands { padding: 10px; gap: 4px; overflow-x: auto; flex-wrap: nowrap; }
    .shell-cmd-btn { padding: 7px 10px; font-size: 0.62rem; flex-shrink: 0; white-space: nowrap; }
    .shell-output { padding: 14px; }

    /* AI section */
    .ai-layout { grid-template-columns: 1fr; }
    .section-ai canvas { display: none; }

    /* Expertise folders */
    .portfolio-layout { grid-template-columns: 1fr !important; }
    .folder-grid { grid-template-columns: 1fr; }

    /* Banner with character */
    .banner-with-char { flex-direction: column; gap: 16px; }
    .banner-char-right .srv-hero-character { width: 160px; }
    .page-banner--char { padding: 110px 0 40px; }

    /* General grids */
    .msg-adv-grid,
    .contact-info-grid,
    .bp-address-list,
    .msg-migration-sources,
    .about-services-grid,
    .services-index-grid { grid-template-columns: 1fr; }
    .msg-process-steps { grid-template-columns: 1fr !important; }
    .msg-migration-layout { grid-template-columns: 1fr; }
    .bp-hero-row { grid-template-columns: 1fr; }
    .plans-ai-layout { grid-template-columns: 1fr; }
    .plans-ai-text { position: static; }

    /* Contact form */
    .contact-compose-window { margin: -20px 10px 0; }
    .contact-email-row { flex-direction: column; gap: 6px; }
    .contact-email-bottom { flex-direction: column; gap: 10px; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; }
    .blog-article-layout { grid-template-columns: 1fr; }
    .blog-filters { overflow-x: auto; flex-wrap: nowrap; }
    .blog-filter-btn { flex-shrink: 0; }

    /* Product */
    .product-detail-layout { grid-template-columns: 1fr; }
    .product-detail-sidebar { position: static; }

    /* Store */
    .store-row-body { flex-direction: column; }
    .store-row-aside { width: 100%; }

    /* Shell tabs */
    .shell-tabs-window { max-width: 100%; }
    .shell-tab-btn { padding: 6px 10px; font-size: 0.62rem; }

    /* Chat */
    .sidebar-chat-window { width: calc(100vw - 40px); }
    .contact-sidebar { width: 100%; }
    .chat-popup { padding: 10px; }
    .chat-popup-window { width: 100%; }

    /* Bot trigger */
    .browser-bot-trigger { right: 10px; bottom: 10px; }
    .browser-bot-img { width: 50px; }
}


.navbar-toggle.active span {
    background-color: #000 !important;
}

@media (max-width: 768px) {
button#cs-reset {
    margin-bottom: 55px;
}

div#cs-form-wrap {
    margin-bottom: 70px;
}


}