/* ===== Variables ===== */
:root {
  --bg: #05050a;
  --bg-2: #0a0a12;
  --bg-3: #10101c;
  --bg-rgb: 5,5,10;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --text: #e8e8f0;
  --text-muted: #8a8aa3;
  --neon-cyan: #00f0ff;
  --neon-violet: #a855f7;
  --neon-pink: #ff2d55;
  --neon-green: #00ff9d;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 40px rgba(0,240,255,0.15);
  --hero-bg-deep: #03030a;
  --hero-grid: rgba(0,240,255,0.035);
  --hero-glow-1: rgba(0,240,255,0.12);
  --hero-glow-2: rgba(168,85,247,0.12);
  --hero-glow-3: rgba(255,45,85,0.08);
  --monitor-bg: rgba(0,240,255,0.03);
  --monitor-border: rgba(0,240,255,0.08);
  --monitor-text: rgba(0,240,255,0.7);
  --code-keyword: var(--neon-cyan);
  --code-func: var(--neon-violet);
  --code-string: var(--neon-pink);
  --code-comment: var(--text-muted);
  --code-cmd: var(--neon-green);
  --code-success: var(--neon-green);
  --scanline: rgba(0,240,255,0.03);
}

[data-theme="light"] {
  --bg: #f5f5fa;
  --bg-2: #ffffff;
  --bg-3: #eaeaf2;
  --bg-rgb: 245,245,250;
  --surface: rgba(0,0,0,0.03);
  --surface-hover: rgba(0,0,0,0.05);
  --text: #111118;
  --text-muted: #5a5a70;
  --neon-cyan: #0088aa;
  --neon-violet: #7c3aed;
  --neon-pink: #d91a4e;
  --neon-green: #00a86b;
  --shadow-glow: 0 0 40px rgba(0,136,170,0.12);
  --hero-bg-deep: #e4eaf2;
  --hero-grid: rgba(0,100,150,0.05);
  --hero-glow-1: rgba(0,136,170,0.10);
  --hero-glow-2: rgba(124,58,237,0.10);
  --hero-glow-3: rgba(217,26,78,0.06);
  --monitor-bg: rgba(255,255,255,0.35);
  --monitor-border: rgba(0,100,150,0.12);
  --monitor-text: rgba(30,50,80,0.75);
  --code-keyword: #0066aa;
  --code-func: #7c3aed;
  --code-string: #d91a4e;
  --code-comment: #7a8a9a;
  --code-cmd: #008855;
  --code-success: #008855;
  --scanline: rgba(0,80,120,0.025);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; background: var(--bg) }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #05050f;
  background-image:
    radial-gradient(ellipse 80% 40% at 20% 50%, rgba(99,0,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 80% 20%, rgba(0,200,255,0.05) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(0,255,200,0.015) 80px, rgba(0,255,200,0.015) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(0,255,200,0.015) 80px, rgba(0,255,200,0.015) 81px);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}
[data-theme="light"] body {
  background: #eef1f8;
  background-image:
    radial-gradient(ellipse 70% 40% at 15% 60%, rgba(120,80,255,0.05) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(100,120,255,0.04) 60px, rgba(100,120,255,0.04) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(100,120,255,0.04) 60px, rgba(100,120,255,0.04) 61px);
}
::selection { background: rgba(0,240,255,0.25); color: #fff }

/* Scrollbar */
::-webkit-scrollbar { width: 8px }
::-webkit-scrollbar-track { background: var(--bg) }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
  border-radius: 4px;
}

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em }
a { color: var(--neon-cyan); text-decoration: none; transition: opacity .2s }
a:hover { opacity: .8 }

/* Layout */
.container { width: 92%; max-width: 1200px; margin: 0 auto }
section { padding: 120px 0; position: relative }
section + section { border-top: 1px solid rgba(0,200,255,0.08) }
[data-theme="light"] section + section { border-top-color: rgba(100,120,255,0.12) }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 100px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  border: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97) }
.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  color: #000; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 60px rgba(0,240,255,0.3); transform: translateY(-2px) }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(128,128,128,0.2);
}
.btn-ghost:hover { border-color: rgba(128,128,128,0.4); background: var(--surface-hover) }

/* ===== Animated Gradient Logo ===== */
.logo-animated {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #00f0ff, #a855f7, #ff2d55, #00f0ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  display: inline-block;
}
[data-theme="light"] .logo-animated {
  background: linear-gradient(90deg, #0088aa, #7c3aed, #d91a4e, #0088aa);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradientShift {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

/* ===== Navigation ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(var(--bg-rgb,5,5,10),0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(128,128,128,0.08);
  transition: padding .3s, background .3s;
}
nav.scrolled { padding: 14px 0; background: rgba(var(--bg-rgb,5,5,10),0.92) }
nav .container { display: flex; align-items: center; justify-content: space-between }
.nav-links { display: flex; gap: 32px; align-items: center }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .2s }
.nav-links a:hover { color: var(--text) }
.nav-links .btn { padding: 10px 24px; font-size: 14px }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid rgba(128,128,128,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, border-color .2s;
  color: var(--text);
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--neon-cyan) }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2 }

/* ===== Hero ===== */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 140px 0 100px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,240,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168,85,247,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,45,85,0.04) 0%, transparent 60%);
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; pointer-events: none;
  animation: blobMove 12s ease-in-out infinite;
}
.hero-blob-1 { width: 400px; height: 400px; background: var(--neon-cyan); top: -10%; left: -5%; animation-delay: 0s }
.hero-blob-2 { width: 350px; height: 350px; background: var(--neon-violet); bottom: -10%; right: -5%; animation-delay: -4s }
.hero-blob-3 { width: 300px; height: 300px; background: var(--neon-pink); top: 40%; left: 60%; animation-delay: -8s; opacity: 0.2 }

@keyframes blobMove {
  0%,100% { transform: translate(0,0) scale(1) }
  33% { transform: translate(30px,-30px) scale(1.1) }
  66% { transform: translate(-20px,20px) scale(0.9) }
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(0,240,255,0.08); border: 1px solid rgba(0,240,255,0.15);
  font-size: 13px; font-weight: 500; color: var(--neon-cyan); margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
  font-size: clamp(36px,6vw,72px); font-weight: 900; line-height: 1.05;
  margin-bottom: 24px; letter-spacing: -0.03em;
}
.hero-title .gradient {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet), var(--neon-pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px,2vw,20px); color: var(--text-muted); max-width: 640px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap }
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  animation: bounce 2s infinite; cursor: pointer; z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(10px)} }
.scroll-indicator svg { width: 24px; height: 24px; stroke: var(--neon-cyan) }

/* ===== Section headers ===== */
.section-header { text-align: center; margin-bottom: 80px }
.section-label {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.15);
  font-size: 12px; font-weight: 600; color: var(--neon-violet); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px;
}
.section-title { font-size: clamp(28px,4vw,48px); margin-bottom: 16px }
.section-desc { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto }

/* ===== Pain ===== */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px }
.pain-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 40px 32px;
  transition: transform .3s, border-color .3s, background .3s;
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .pain-card {
  background: rgba(255,255,255,0.6); border: 1px solid rgba(100,120,255,0.15);
}
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,var(--neon-pink),transparent); opacity: 0; transition: opacity .3s;
}
.pain-card:hover::before { opacity: 1 }
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,45,85,0.2);
  background: var(--surface-hover);
}
.pain-card .icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(255,45,85,0.08); border: 1px solid rgba(255,45,85,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 24px;
}
.pain-card h3 { font-size: 18px; margin-bottom: 12px }
.pain-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7 }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); gap: 24px }
.service-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 40px;
  position: relative; overflow: hidden; transition: transform .3s, border-color .3s;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .service-card {
  background: rgba(255,255,255,0.6); border: 1px solid rgba(100,120,255,0.15);
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 200px; height: 200px;
  border-radius: 50%; filter: blur(80px); opacity: 0.08; pointer-events: none;
  transition: opacity .3s;
}
.service-card:hover::after { opacity: 0.15 }
.service-card:hover { transform: translateY(-4px); border-color: rgba(0,240,255,0.15) }
.service-card:nth-child(1)::after { background: var(--neon-cyan) }
.service-card:nth-child(2)::after { background: var(--neon-violet) }
.service-card:nth-child(3)::after { background: var(--neon-pink) }
.service-card:nth-child(4)::after { background: var(--neon-green) }
.service-card:nth-child(5)::after { background: var(--neon-cyan) }
.service-card:nth-child(6)::after { background: var(--neon-violet) }
.service-card h3 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px }
.service-card p { font-size: 15px; color: var(--text-muted); line-height: 1.8 }
.service-num {
  font-size: 13px; font-weight: 700; color: var(--text-muted); opacity: .4;
  position: absolute; top: 28px; right: 32px;
}

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 32px; max-width: 900px; margin: 0 auto }
.team-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 48px 40px; text-align: center;
  position: relative; overflow: hidden; transition: transform .3s, border-color .3s;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .team-card {
  background: rgba(255,255,255,0.6); border: 1px solid rgba(100,120,255,0.15);
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.2) }
.team-card .avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: #000;
  box-shadow: 0 0 40px rgba(0,240,255,0.15);
}
.team-card h3 { font-size: 24px; margin-bottom: 4px }
.team-card .role { font-size: 14px; font-weight: 600; color: var(--neon-violet); margin-bottom: 20px }
.team-card p { font-size: 15px; color: var(--text-muted); line-height: 1.8 }

/* ===== Cases ===== */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 24px }
.case-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 40px; position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .case-card {
  background: rgba(255,255,255,0.6); border: 1px solid rgba(100,120,255,0.15);
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(0,255,157,0.2) }
.case-card .case-tag {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(0,255,157,0.08); border: 1px solid rgba(0,255,157,0.15);
  font-size: 12px; font-weight: 600; color: var(--neon-green); margin-bottom: 20px;
}
.case-card h3 { font-size: 20px; margin-bottom: 16px }
.case-card p { font-size: 15px; color: var(--text-muted); line-height: 1.8 }

/* ===== CTA ===== */
#cta { text-align: center }
.cta-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 80px 40px; position: relative; overflow: hidden;
  backdrop-filter: blur(12px);
}
[data-theme="light"] .cta-box {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(100,120,255,0.15);
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0,240,255,0.03), transparent 60%);
  pointer-events: none;
}
.cta-box .section-title { position: relative; z-index: 1 }
.cta-box .section-desc { position: relative; z-index: 1; margin-bottom: 40px }

/* ===== Form ===== */
.contact-form {
  max-width: 500px; margin: 0 auto; position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.contact-form input,.contact-form textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 16px 20px; color: var(--text);
  font-family: inherit; font-size: 15px; outline: none;
  transition: border-color .2s, background .2s;
  backdrop-filter: blur(4px);
}
[data-theme="light"] .contact-form input,[data-theme="light"] .contact-form textarea {
  background: rgba(255,255,255,0.6); border: 1px solid rgba(100,120,255,0.15);
}
.contact-form input:focus,.contact-form textarea:focus {
  border-color: rgba(0,240,255,0.3); background: rgba(255,255,255,0.07);
}
[data-theme="light"] .contact-form input:focus,[data-theme="light"] .contact-form textarea:focus {
  background: rgba(255,255,255,0.8);
}
.contact-form input::placeholder,.contact-form textarea::placeholder { color: var(--text-muted) }
.contact-form textarea { min-height: 120px; resize: vertical }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 8px }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 16px }

/* ===== Footer ===== */
footer {
  padding: 60px 0 40px; border-top: 1px solid rgba(99,0,255,0.2);
  background: rgba(0,0,0,0.4);
  text-align: center;
}
[data-theme="light"] footer {
  background: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(100,120,255,0.15);
}
footer .logo-animated { font-size: 28px; margin-bottom: 16px; display: inline-block }
footer p { font-size: 14px; color: var(--text-muted) }
footer .socials { display: flex; gap: 16px; justify-content: center; margin-top: 24px }
footer .socials a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid rgba(128,128,128,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, border-color .2s, background .2s;
}
footer .socials a:hover { transform: translateY(-3px); border-color: var(--neon-cyan); background: rgba(0,240,255,0.05) }
footer .socials svg { width: 20px; height: 20px; fill: var(--text-muted); transition: fill .2s }
footer .socials a:hover svg { fill: var(--neon-cyan) }

/* ===== Chat Widget ===== */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 200 }
.chat-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 30px rgba(0,240,255,0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform .2s, box-shadow .2s;
}
.chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 40px rgba(0,240,255,0.35) }
.chat-btn svg { width: 28px; height: 28px; stroke: #000; stroke-width: 2; fill: none }
.chat-window {
  position: absolute; bottom: 76px; right: 0; width: 360px; max-height: 520px;
  background: rgba(10,10,18,0.85); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.95);
  transition: opacity .3s, visibility .3s, transform .3s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
}
[data-theme="light"] .chat-window {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(100,120,255,0.15);
}
.chat-window.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1) }
.chat-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(168,85,247,0.08));
  border-bottom: 1px solid rgba(128,128,128,0.08);
  display: flex; align-items: center; gap: 12px;
}
.chat-header .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #000;
}
.chat-header .info { flex: 1 }
.chat-header .info h4 { font-size: 15px; font-weight: 700 }
.chat-header .info span { font-size: 12px; color: var(--neon-green); display: flex; align-items: center; gap: 6px }
.chat-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s;
}
.chat-close:hover { color: var(--text); background: rgba(255,255,255,0.05) }
.chat-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; fill: none }
.chat-body { flex: 1; padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px }
.chat-body .msg {
  max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.6;
}
.chat-body .msg-in { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); align-self: flex-start; border-bottom-left-radius: 4px }
[data-theme="light"] .chat-body .msg-in { background: rgba(255,255,255,0.7); border: 1px solid rgba(100,120,255,0.12); }
.chat-body .msg-out { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet)); color: #000; font-weight: 500; align-self: flex-end; border-bottom-right-radius: 4px }
.chat-footer { padding: 16px 24px; border-top: 1px solid rgba(128,128,128,0.08); display: flex; gap: 10px }
.chat-footer input { flex: 1; background: rgba(128,128,128,0.05); border: 1px solid rgba(128,128,128,0.1); border-radius: 100px; padding: 10px 18px; color: var(--text); font-family: inherit; font-size: 14px; outline: none }
.chat-footer input:focus { border-color: rgba(0,240,255,0.3) }
.chat-footer .send-btn { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet)); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .2s }
.chat-footer .send-btn:hover { transform: scale(1.1) }
.chat-footer .send-btn svg { width: 18px; height: 18px; stroke: #000; stroke-width: 2.5; fill: none }

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1) }
.reveal.visible { opacity: 1; transform: translateY(0) }
.reveal-delay-1 { transition-delay: .1s }
.reveal-delay-2 { transition-delay: .2s }
.reveal-delay-3 { transition-delay: .3s }
.reveal-delay-4 { transition-delay: .4s }

/* Grid background decoration */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(128,128,128,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,128,128,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
}

/* ===== Cyberpunk Sci-Fi Hero Background ===== */
.hero-scene {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  perspective: 1200px; overflow: hidden;
  background: var(--hero-bg-deep);
}
.hero-scene::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, var(--hero-glow-1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, var(--hero-glow-2) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, var(--hero-glow-3) 0%, transparent 60%);
}

.hero-layer {
  position: absolute; inset: 0; pointer-events: none;
  transition: transform .15s ease-out;
}

/* Far layer - deep glow */
.hero-layer-far { transform: translateZ(-200px) scale(1.2); }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5;
  animation: glowPulse 10s ease-in-out infinite;
}
.hero-glow-1 { width: 500px; height: 500px; background: var(--hero-glow-1); top: -10%; left: -5%; animation-delay: 0s }
.hero-glow-2 { width: 450px; height: 450px; background: var(--hero-glow-2); bottom: -10%; right: -5%; animation-delay: -3.3s }
.hero-glow-3 { width: 400px; height: 400px; background: var(--hero-glow-3); top: 40%; left: 55%; animation-delay: -6.6s; opacity: .35 }

@keyframes glowPulse {
  0%,100% { transform: translate(0,0) scale(1); opacity: .5 }
  33% { transform: translate(25px,-20px) scale(1.08); opacity: .6 }
  66% { transform: translate(-15px,15px) scale(.95); opacity: .45 }
}

/* Mid layer - floating monitors */
.hero-layer-mid { transform: translateZ(-80px) scale(1.08); }
.monitor {
  position: absolute; pointer-events: none;
  transform-style: preserve-3d;
}
.monitor-frame {
  background: var(--monitor-bg);
  border: 1px solid var(--monitor-border);
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(0,240,255,0.03) inset,
    0 20px 60px rgba(0,0,0,0.2);
  animation: monitorFloat 8s ease-in-out infinite;
}
.monitor-screen {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px; line-height: 1.7;
  color: var(--monitor-text);
  white-space: nowrap;
}
.monitor-1 { top: 18%; left: 6%; transform: rotateY(12deg) rotateX(6deg); }
.monitor-1 .monitor-frame { animation-delay: 0s }
.monitor-2 { top: 55%; right: 8%; transform: rotateY(-10deg) rotateX(4deg); }
.monitor-2 .monitor-frame { animation-delay: -2.6s }
.monitor-3 { bottom: 12%; left: 35%; transform: rotateY(6deg) rotateX(-4deg); }
.monitor-3 .monitor-frame { animation-delay: -5.3s }

@keyframes monitorFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.code-line { animation: codeFlicker 4s infinite; opacity: .85; }
.code-line:nth-child(1) { animation-delay: 0s }
.code-line:nth-child(2) { animation-delay: .5s }
.code-line:nth-child(3) { animation-delay: 1s }
.code-line:nth-child(4) { animation-delay: 1.5s }

@keyframes codeFlicker {
  0%,100% { opacity: .85 }
  92% { opacity: .85 }
  93% { opacity: .4 }
  94% { opacity: .85 }
  96% { opacity: .6 }
  97% { opacity: .85 }
}

.code-keyword { color: var(--code-keyword); font-weight: 600; }
.code-func { color: var(--code-func); }
.code-string { color: var(--code-string); }
.code-comment { color: var(--code-comment); font-style: italic; }
.code-class { color: var(--code-func); font-weight: 600; }
.code-cmd { color: var(--code-cmd); font-weight: 600; }
.code-success { color: var(--code-success); font-weight: 700; }

/* Glitch overlay on monitors */
.monitor-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(180deg, transparent 48%, rgba(0,240,255,0.03) 49%, transparent 51%);
  background-size: 100% 4px;
  animation: glitchScan 6s linear infinite;
  pointer-events: none; opacity: .6;
}
@keyframes glitchScan {
  0% { background-position: 0 0; opacity: .6 }
  5% { opacity: 0 }
  10% { opacity: .6 }
  15% { opacity: 0 }
  100% { background-position: 0 80px; opacity: 0 }
}

/* Near layer - scanlines, grid, sparks */
.hero-layer-near { transform: translateZ(0); }
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scanline) 2px,
    var(--scanline) 4px
  );
  opacity: .5; pointer-events: none;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 70%);
  opacity: .7;
}

.spark {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--neon-cyan); box-shadow: 0 0 6px 2px var(--neon-cyan);
  animation: sparkFly 5s ease-in-out infinite;
}
.spark-1 { top: 30%; left: 20%; animation-delay: 0s }
.spark-2 { top: 60%; left: 70%; animation-delay: -1.6s }
.spark-3 { top: 25%; left: 80%; animation-delay: -3.2s }

@keyframes sparkFly {
  0%,100% { transform: translate(0,0); opacity: 0 }
  10% { opacity: 1 }
  50% { transform: translate(20px,-40px); opacity: .8 }
  90% { opacity: 1 }
}

.streak {
  position: absolute; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: .3; filter: blur(.5px);
  animation: streakMove 7s linear infinite;
}
.streak-1 { top: 22%; left: 10%; animation-delay: 0s }
.streak-2 { top: 68%; right: 15%; animation-delay: -3.5s }

@keyframes streakMove {
  0% { transform: translateX(-20px) scaleX(.5); opacity: 0 }
  20% { opacity: .3 }
  80% { opacity: .3 }
  100% { transform: translateX(80px) scaleX(1.2); opacity: 0 }
}

/* ===== Nav improvements ===== */
nav {
  background: rgba(var(--bg-rgb,5,5,10),0.65);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(128,128,128,0.06);
}
nav.scrolled {
  background: rgba(var(--bg-rgb,5,5,10),0.88);
  backdrop-filter: blur(32px) saturate(1.3);
}
[data-theme="light"] nav {
  background: rgba(245,245,250,0.72);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
[data-theme="light"] nav.scrolled {
  background: rgba(255,255,255,0.92);
}
.nav-links a {
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
  border-radius: 2px; transition: width .25s ease;
}
.nav-links a:hover::after { width: 100% }
.nav-links a:hover { color: var(--text); opacity: 1 }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  section { padding: 80px 0 }
  .nav-links { display: none }
  .mobile-menu-btn { display: block }
  .hero-cta { flex-direction: column; align-items: center }
  .services-grid,.pain-grid,.cases-grid { grid-template-columns: 1fr }
  .chat-window { width: calc(100vw - 48px); max-width: 360px }
  .team-card { padding: 36px 24px }
  .cta-box { padding: 60px 24px }
  .hero-blob-1,.hero-blob-2,.hero-blob-3 { opacity: 0.25 }
  .monitor { display: none }
  .spark, .streak { display: none }
  .scanlines { opacity: .25 }
  .hero-glow { filter: blur(60px); opacity: .35 }
  .grid-overlay { background-size: 50px 50px; opacity: .4 }
}
@media (max-width: 480px) {
  .btn { padding: 14px 24px; font-size: 14px }
  .service-card,.pain-card,.case-card { padding: 28px 24px }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(var(--bg-rgb,5,5,10),0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible }
.mobile-menu a { font-size: 24px; font-weight: 700; color: var(--text) }
.mobile-menu .btn { font-size: 18px; padding: 16px 40px }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text); font-size: 36px; cursor: pointer }
