:root {
    --black-pure: #000;
    --black-rich: #050508;
    --black-elevated: #0a0a0f;
    --black-card: #101018;
    --red-primary: #ff0a2b;
    --red-bright: #ff2d4d;
    --red-subtle: rgba(255,10,43,0.08);
    --red-border: rgba(255,10,43,0.2);
    --text-primary: #fff;
    --text-secondary: #8a8a9a;
    --text-tertiary: #5a5a6a;
    --gradient-red: linear-gradient(135deg,#ff0a2b 0%,#ff2d4d 50%,#ff0a2b 100%);
    --gradient-card: linear-gradient(145deg,rgba(16,16,24,0.8) 0%,rgba(10,10,15,0.9) 100%);
    --gradient-glow: radial-gradient(ellipse at center,rgba(255,10,43,0.15) 0%,transparent 70%);
    --glass-bg: rgba(10,10,15,0.7);
    --glass-border: rgba(255,255,255,0.06);
    --font-display: 'Urbanist', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --section-padding: clamp(80px,12vw,160px);
    --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
    --shadow-glow: 0 0 60px rgba(255,10,43,0.3);
    --shadow-card: 0 25px 50px -12px rgba(0,0,0,0.5);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--black-rich); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--red-primary); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-pure); }
::-webkit-scrollbar-thumb { background: var(--red-primary); border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h1 { font-size: clamp(3rem,8vw,6.5rem); font-weight: 800; }
h2 { font-size: clamp(2.25rem,5vw,4rem); }
h3 { font-size: clamp(1.5rem,3vw,2rem); }
p { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; }
.text-gradient { background: var(--gradient-red); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.5rem,4vw,4rem); }
section { position: relative; padding: var(--section-padding) 0; }

.cursor { position: fixed; width: 20px; height: 20px; border: 2px solid var(--red-primary); border-radius: 50%; pointer-events: none; z-index: 10000; transition: transform .15s var(--ease-out-expo), width .2s, height .2s; transform: translate(-50%,-50%); mix-blend-mode: difference; }
.cursor-dot { position: fixed; width: 6px; height: 6px; background: var(--red-primary); border-radius: 50%; pointer-events: none; z-index: 10001; transform: translate(-50%,-50%); }
.cursor.hover { width: 50px; height: 50px; }

.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: all .5s var(--ease-out-expo); }
.navbar::before { content: ''; position: absolute; inset: 0; background: rgba(5,5,8,0); backdrop-filter: blur(0); border-bottom: 1px solid transparent; transition: all .5s var(--ease-out-expo); }
.navbar.scrolled::before { background: rgba(5,5,8,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.navbar .container { position: relative; display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; z-index: 10; }
.logo-img { height: 40px; width: auto; transition: opacity 0.3s; }
.logo:hover .logo-img { opacity: 0.85; }
.logo-mark { width: 48px; height: 48px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.logo-text span { color: var(--red-primary); }

.nav-links { display: flex; align-items: center; gap: 3rem; list-style: none; }
.nav-links a { position: relative; color: var(--text-secondary); font-size: .875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; padding: .5rem 0; transition: color .3s; }
.nav-links a::before { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--red-primary); transition: width .4s var(--ease-out-expo); }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::before, .nav-links a.active::before { width: 100%; }

.nav-cta { position: relative; background: transparent !important; color: var(--text-primary) !important; padding: .875rem 2rem !important; border: 1px solid var(--red-primary); overflow: hidden; transition: all .4s var(--ease-out-expo); }
.nav-cta::before { content: ''; position: absolute; inset: 0; background: var(--red-primary); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out-expo); z-index: -1; }
.nav-cta:hover { color: #fff !important; }
.nav-cta:hover::before { transform: scaleX(1); transform-origin: left; }

.mobile-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 10px; z-index: 1001; }
.mobile-toggle span { width: 28px; height: 2px; background: var(--text-primary); transition: all .3s var(--ease-out-expo); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--black-pure); }
#neural-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-gradient-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 120%,rgba(255,10,43,0.12) 0%,transparent 60%), radial-gradient(ellipse 60% 50% at 80% 20%,rgba(255,10,43,0.06) 0%,transparent 50%), linear-gradient(180deg,transparent 0%,rgba(5,5,8,0.5) 100%); z-index: 2; pointer-events: none; }
.hero-noise-overlay { display: none; }
.hero-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,10,43,0.03) 1px,transparent 1px), linear-gradient(90deg,rgba(255,10,43,0.03) 1px,transparent 1px); background-size: 100px 100px; z-index: 2; pointer-events: none; mask-image: radial-gradient(ellipse at center,#000 30%,transparent 70%); }
.hero-content { position: relative; z-index: 10; max-width: 1000px; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 2rem; opacity: 0; animation: fadeUp 1s var(--ease-out-expo) .2s forwards; }
.hero-eyebrow-line { width: 60px; height: 1px; background: var(--red-primary); }
.hero-eyebrow-text { font-family: var(--font-mono); font-size: .75rem; color: var(--red-primary); text-transform: uppercase; letter-spacing: .2em; }
.hero h1 { margin-bottom: 2rem; opacity: 0; animation: fadeUp 1s var(--ease-out-expo) .4s forwards; }
.hero-description { font-size: 1.25rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 3rem; opacity: 0; animation: fadeUp 1s var(--ease-out-expo) .6s forwards; }

.hero-buttons { display: flex; gap: 1.5rem; opacity: 0; animation: fadeUp 1s var(--ease-out-expo) .8s forwards; }
.btn { position: relative; display: inline-flex; align-items: center; gap: .75rem; padding: 1.125rem 2.5rem; font-family: var(--font-body); font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; border: none; cursor: pointer; overflow: hidden; transition: all .4s var(--ease-out-expo); }
.btn-primary { background: var(--red-primary); color: #fff; clip-path: polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px)); }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent); transition: left .6s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-primary:hover::before { left: 100%; }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--glass-border); backdrop-filter: blur(8px); }
.btn-secondary:hover { border-color: var(--red-primary); transform: translateY(-3px); }
.btn-icon { transition: transform .3s var(--ease-out-expo); }
.btn:hover .btn-icon { transform: translateX(4px); }

.hero-stats { display: flex; gap: 4rem; margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--glass-border); opacity: 0; animation: fadeUp 1s var(--ease-out-expo) 1s forwards; }
.stat-value { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-value span { color: var(--red-primary); }
.stat-label { font-family: var(--font-mono); font-size: .75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .15em; margin-top: .5rem; }

.hero-scroll { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1rem; z-index: 10; opacity: 0; animation: fadeUp 1s var(--ease-out-expo) 1.2s forwards; }
.hero-scroll-text { font-family: var(--font-mono); font-size: .625rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero-scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom,var(--red-primary),transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 20px; background: var(--red-bright); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: translateY(-20px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.section-header { margin-bottom: 5rem; }
.section-header.center { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-tag { display: inline-flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: .75rem; color: var(--red-primary); text-transform: uppercase; letter-spacing: .2em; margin-bottom: 1.5rem; }
.section-tag::before { content: ''; width: 40px; height: 1px; background: var(--red-primary); }
.section-header.center .section-tag::after { content: ''; width: 40px; height: 1px; background: var(--red-primary); }
.section-header h2 { margin-bottom: 1.5rem; }
.section-header p { font-size: 1.25rem; }

.services { background: var(--black-rich); position: relative; }
.services::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1px; height: 100px; background: linear-gradient(to bottom,var(--red-primary),transparent); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.service-card { position: relative; background: var(--gradient-card); border: 1px solid var(--glass-border); padding: 3rem; transition: all .5s var(--ease-out-expo); overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--gradient-red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out-expo); }
.service-card:hover { transform: translateY(-8px); border-color: var(--red-border); box-shadow: var(--shadow-card); }
.service-card:hover::before { transform: scaleX(1); }
.service-number { font-family: var(--font-mono); font-size: .75rem; color: var(--red-primary); margin-bottom: 2rem; }
.service-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; position: relative; }
.service-icon::before { content: ''; position: absolute; inset: 0; background: var(--red-subtle); border-radius: 16px; transition: all .4s var(--ease-out-expo); }
.service-card:hover .service-icon::before { background: var(--gradient-red); transform: rotate(45deg) scale(1.1); }
.service-icon svg { position: relative; width: 32px; height: 32px; stroke: var(--red-primary); stroke-width: 1.5; fill: none; transition: stroke .3s; }
.service-card:hover .service-icon svg { stroke: #fff; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { font-size: 1rem; margin-bottom: 2rem; }
.service-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; transition: color .3s; }
.service-link:hover { color: var(--red-primary); }
.service-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out-expo); }
.service-link:hover svg { transform: translateX(4px); }

.ki-section { background: var(--black-elevated); position: relative; overflow: hidden; }
.ki-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 800px; background: var(--gradient-glow); pointer-events: none; }
.ki-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.ki-content .section-tag { margin-bottom: 1.5rem; }
.ki-content h2 { margin-bottom: 1.5rem; }
.ki-content > p { margin-bottom: 3rem; }
.ki-features { display: flex; flex-direction: column; gap: 1.5rem; }
.ki-feature { display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); transition: all .4s var(--ease-out-expo); }
.ki-feature:hover { border-color: var(--red-border); transform: translateX(10px); }
.ki-feature-icon { width: 48px; height: 48px; min-width: 48px; display: flex; align-items: center; justify-content: center; background: var(--red-subtle); border: 1px solid var(--red-border); }
.ki-feature-icon svg { width: 24px; height: 24px; stroke: var(--red-primary); stroke-width: 1.5; fill: none; }
.ki-feature h4 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; }
.ki-feature p { font-size: .95rem; margin: 0; }

.ki-visual { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; }
.ki-orb { position: relative; width: 400px; height: 400px; }
.ki-orb-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 120px; height: 120px; background: var(--gradient-red); border-radius: 50%; box-shadow: 0 0 60px rgba(255,10,43,0.6), 0 0 120px rgba(255,10,43,0.4), 0 0 180px rgba(255,10,43,0.2); animation: orbPulse 3s ease-in-out infinite; }
@keyframes orbPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.1); } }
.ki-orb-ring { position: absolute; top: 50%; left: 50%; border: 1px solid var(--red-border); border-radius: 50%; animation: ringOrbit 20s linear infinite; }
.ki-orb-ring:nth-child(2) { width: 200px; height: 200px; margin: -100px 0 0 -100px; animation-duration: 15s; }
.ki-orb-ring:nth-child(3) { width: 280px; height: 280px; margin: -140px 0 0 -140px; animation-duration: 20s; animation-direction: reverse; }
.ki-orb-ring:nth-child(4) { width: 360px; height: 360px; margin: -180px 0 0 -180px; animation-duration: 25s; }
@keyframes ringOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.about { background: var(--black-rich); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: stretch; }
.about-content > p { margin-bottom: 1.5rem; }
.about-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3rem; }
.metric { padding: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); transition: all .4s var(--ease-out-expo); }
.metric:hover { border-color: var(--red-border); transform: translateY(-4px); }
.metric-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--red-primary); line-height: 1; margin-bottom: .5rem; }
.metric-label { font-size: .875rem; color: var(--text-tertiary); }
.about-visual { position: relative; min-height: 350px; }
.about-image-frame { position: relative; width: 100%; height: 100%; background: var(--gradient-card); border: 1px solid var(--glass-border); overflow: hidden; border-radius: 4px; }
.maps-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block; filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(0.9); }
.maps-consent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--black-elevated); }
.maps-consent-content { text-align: center; padding: 2rem; max-width: 320px; }
.maps-consent-icon { width: 48px; height: 48px; color: var(--red-primary); margin-bottom: 1rem; }
.maps-consent-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.maps-consent-text { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.5; }
.maps-consent-btn { display: inline-block; background: var(--red-primary); color: #fff; border: none; padding: 0.875rem 2rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: all 0.3s var(--ease-out-expo); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.maps-consent-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.maps-consent-link { display: block; margin-top: 1rem; font-size: 0.75rem; color: var(--text-tertiary); text-decoration: none; transition: color 0.3s; }
.maps-consent-link:hover { color: var(--red-primary); }

.contact { background: var(--black-elevated); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info > p { margin-bottom: 3rem; }
.contact-details { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1.25rem; }
.contact-item-icon { width: 48px; height: 48px; min-width: 48px; display: flex; align-items: center; justify-content: center; background: var(--red-subtle); border: 1px solid var(--red-border); }
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--red-primary); stroke-width: 1.5; fill: none; }
.contact-item h4 { font-family: var(--font-body); font-size: .875rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.contact-item p { font-size: 1rem; color: var(--text-primary); margin: 0; }
.contact-form-wrapper { background: var(--gradient-card); border: 1px solid var(--glass-border); padding: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group label { display: block; font-family: var(--font-mono); font-size: .75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--black-rich); border: 1px solid var(--glass-border); padding: 1rem 1.25rem; font-family: var(--font-body); font-size: 1rem; color: var(--text-primary); transition: all .3s var(--ease-out-expo); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--red-primary); box-shadow: 0 0 0 3px var(--red-subtle); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff0a2b' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-tertiary); }

/* ====================================
   FORM MESSAGE STYLES
   ==================================== */

/* Container */
.form-message {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out-expo);
}

.form-message-visible {
    opacity: 1;
    transform: translateY(0);
}

.form-message-fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* Message Content */
.form-message-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Success State */
.form-message-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Error State */
.form-message-error {
    background: linear-gradient(135deg, #ff0a2b 0%, #dc002e 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Icon */
.form-message-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Text */
.form-message-text {
    flex: 1;
    font-weight: 500;
}

/* Close Button */
.form-message-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.form-message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.form-message-close:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-message-content {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }

    .form-message-icon {
        width: 20px;
        height: 20px;
    }

    .form-message-close {
        width: 24px;
        height: 24px;
        font-size: 1.5rem;
    }
}

.footer { background: var(--black-pure); padding: 5rem 0 2rem; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { margin: 1.5rem 0; max-width: 300px; }
.footer-column h4 { font-family: var(--font-mono); font-size: .75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1.5rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-links a { color: var(--text-secondary); font-size: .95rem; text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--red-primary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .875rem; color: var(--text-tertiary); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: .875rem; color: var(--text-tertiary); text-decoration: none; transition: color .3s; }
.footer-legal a:hover { color: var(--red-primary); }

.page-header { padding: 10rem 0 5rem; background: var(--black-rich); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient-glow); opacity: .5; }
.page-header .container { position: relative; }
.breadcrumb { display: flex; align-items: center; gap: .75rem; font-family: var(--font-mono); font-size: .75rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-tertiary); text-decoration: none; }
.breadcrumb a:hover { color: var(--red-primary); }
.breadcrumb span { color: var(--text-tertiary); }
.breadcrumb .current { color: var(--red-primary); }

@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(2,1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 992px) { .nav-links { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--black-rich); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transition: right .5s var(--ease-out-expo); } .nav-links.active { right: 0; } .nav-links a { font-size: 1.25rem; } .mobile-toggle { display: flex; } .services-grid, .ki-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; } .ki-visual { order: -1; height: 400px; } .about-visual { order: -1; height: 300px; } .hero-stats { flex-wrap: wrap; gap: 2rem; } }
@media (max-width: 768px) { .hero h1 { font-size: clamp(2.5rem,10vw,4rem); } .hero-stats { flex-direction: column; } .form-row { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-brand { display: flex; flex-direction: column; align-items: center; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } .about-metrics { grid-template-columns: 1fr; } .about-visual { height: 250px; } }
@media (max-width: 480px) { .hero-buttons { flex-direction: column; width: 100%; } .btn { width: 100%; justify-content: center; } .contact-form-wrapper { padding: 1.5rem; } }

/* ================================================
   CHATBOT OVERLAY
   ================================================ */
.chat-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 10, 43, 0.4);
    transition: all 0.3s var(--ease-out-expo);
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 10, 43, 0.5);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: all 0.3s var(--ease-out-expo);
}

.chat-toggle-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.chat-toggle.active .chat-toggle-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.chat-toggle.active .chat-toggle-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.chat-overlay {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 500px;
    max-width: calc(100vw - 2rem);
    height: 520px;
    max-height: calc(100vh - 8rem);
    background: var(--black-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-overlay.expanded {
    height: calc(100vh - 8rem);
}

.chat-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--black-elevated);
    border-bottom: 1px solid var(--glass-border);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--red-subtle);
    border: 1px solid var(--red-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar svg {
    width: 22px;
    height: 22px;
    color: var(--red-primary);
}

.chat-header-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-minimize {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-minimize:hover {
    background: var(--glass-border);
    border-color: var(--red-border);
}

.chat-minimize svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
}

.chat-message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--red-subtle);
    border: 1px solid var(--red-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message-avatar svg {
    width: 18px;
    height: 18px;
    color: var(--red-primary);
}

.chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chat-message.user .chat-message-content {
    align-items: flex-end;
}

.chat-message-bubble {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.chat-message.ai .chat-message-bubble {
    background: var(--black-elevated);
    border: 1px solid var(--glass-border);
    border-top-left-radius: 4px;
}

.chat-message.user .chat-message-bubble {
    background: var(--red-primary);
    color: white;
    border-top-right-radius: 4px;
}

.chat-message-bubble strong {
    color: var(--red-bright);
}

.chat-message.user .chat-message-bubble strong {
    color: white;
}

.chat-message-bubble em {
    font-style: italic;
}

.chat-message-bubble ul,
.chat-message-bubble ol {
    margin: 0.4rem 0;
    padding-left: 1.4rem;
}

.chat-message-bubble li {
    margin-bottom: 0.25rem;
}

.chat-message-bubble pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0.4rem 0;
    overflow-x: auto;
    font-size: 0.8rem;
}

.chat-message-bubble code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.chat-message-bubble pre code {
    background: none;
    padding: 0;
}

.chat-message-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    padding: 0 0.25rem;
}

/* Chat Suggestion Buttons */
.chat-suggestion-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
}

.chat-suggestion-btn {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.35);
    color: #e0e0e0;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.chat-suggestion-btn:hover {
    background: rgba(192, 57, 43, 0.25);
    border-color: rgba(192, 57, 43, 0.6);
    color: #fff;
}

/* Chat Input */
.chat-input-area {
    padding: 1rem 1.25rem;
    background: var(--black-elevated);
    border-top: 1px solid var(--glass-border);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    background: var(--black-rich);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    transition: border-color 0.2s;
}

.chat-input-wrapper:focus-within {
    border-color: var(--red-primary);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-tertiary);
}

.chat-send {
    width: 40px;
    height: 40px;
    background: var(--red-primary);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
}

.chat-send:hover {
    background: var(--red-bright);
    transform: scale(1.05);
}

.chat-send svg {
    width: 18px;
    height: 18px;
    color: white;
}

.chat-powered {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
}

/* Typing Indicator */
.chat-typing .chat-message-bubble {
    display: flex;
    gap: 4px;
    padding: 1rem 1.25rem;
}
.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 54px;
        height: 54px;
    }
    
    .chat-overlay {
        bottom: 5rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        height: 380px;
        max-height: calc(100vh - 7rem);
    }

    .chat-overlay.expanded {
        height: calc(100vh - 7rem);
    }
}
