/* ===========================
   BLACKWEB — MAIN STYLESHEET
   =========================== */

:root {
  --bg: #050508;
  --bg2: #0a0a12;
  --bg3: #0f0f1a;
  --surface: #12121e;
  --surface2: #1a1a2e;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(139,92,246,0.4);
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --accent: #06b6d4;
  --accent2: #f59e0b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient2: linear-gradient(135deg, #f59e0b, #ef4444);
  --glow: 0 0 40px rgba(124,58,237,0.3);
  --glow2: 0 0 60px rgba(6,182,212,0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-20 { margin-top: 20px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
  50%      { box-shadow: 0 0 50px rgba(124,58,237,0.7); }
}
@keyframes scroll-line {
  0%   { height: 0; opacity: 1; }
  100% { height: 60px; opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0; }
}
@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}
@keyframes particle-float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120px) rotate(720deg); opacity: 0; }
}
@keyframes orb-drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(60px,-40px) scale(1.1); }
  66%      { transform: translate(-40px,60px) scale(0.9); }
}
@keyframes orb-drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-80px,50px) scale(1.15); }
  66%      { transform: translate(50px,-80px) scale(0.85); }
}

.animate-fadeup {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: var(--delay, 0s);
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.services-grid .service-card.reveal.visible { transition-delay: calc(var(--data-index, 0) * 0.1s); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5,5,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-bw { color: #fff; }
.logo-web { color: var(--primary-light); }
.logo-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 3px;
  animation: pulse-glow 2s ease infinite;
}
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
  transition: var(--transition);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(124,58,237,0.6); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
  top: -100px; left: -100px;
  animation: orb-drift1 12s ease-in-out infinite;
}
.orb2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 70%);
  bottom: -100px; right: -100px;
  animation: orb-drift2 15s ease-in-out infinite;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%);
  top: 50%; right: 30%;
  animation: orb-drift1 18s ease-in-out infinite reverse;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 32px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-glow 1.5s ease infinite;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 28px;
}
.typed-wrapper {
  display: inline-block;
  min-width: 240px;
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--primary-light);
  font-weight: 300;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(124,58,237,0.4);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(124,58,237,0.6); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary.full-width { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(124,58,237,0.08);
  transform: translateY(-3px);
}

/* ===== STATS ===== */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}
.stat span:not(.stat-num):not(.stat-label) {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-light);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 50px;
  background: var(--border);
}

/* ===== SCROLL INDICATOR ===== */
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 0;
  background: var(--gradient);
  animation: scroll-line 2s ease infinite;
}

/* ===== MARQUEE ===== */
.marquee-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.marquee-strip .dot { color: var(--primary-light); }

/* ===== SECTION STYLES ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  background: var(--surface2);
}
.service-card:hover .card-glow {
  opacity: 1;
}
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.08), transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.service-icon-wrap { margin-bottom: 20px; }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 14px;
  font-size: 22px;
  color: var(--primary-light);
  transition: var(--transition);
}
.service-card:hover .service-icon { background: rgba(124,58,237,0.25); transform: scale(1.1) rotate(-5deg); }
.service-icon.ai-icon { background: rgba(6,182,212,0.12); border-color: rgba(6,182,212,0.3); color: var(--accent); }
.service-icon.seo-icon { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: #22c55e; }
.service-icon.ui-icon { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: var(--accent2); }
.service-icon.bot-icon { background: rgba(236,72,153,0.12); border-color: rgba(236,72,153,0.3); color: #ec4899; }
.service-icon.shop-icon { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #ef4444; }
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.service-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.service-list li i { color: var(--primary-light); font-size: 11px; }

/* ===== PROTOTYPES ===== */
.prototypes {
  padding: 100px 0;
  background: var(--bg2);
}
.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 28px;
}
.proto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.proto-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}
.proto-preview {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.preview-browser {
  background: #1a1a2e;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0f0f1a;
  border-bottom: 1px solid var(--border);
}
.browser-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.browser-bar span:nth-child(1) { background: #ef4444; }
.browser-bar span:nth-child(2) { background: #f59e0b; }
.browser-bar span:nth-child(3) { background: #22c55e; }
.preview-content { padding: 16px; height: calc(100% - 36px); overflow: hidden; }

/* E-Comm Mock */
.mock-header { height: 18px; background: var(--surface2); border-radius: 4px; margin-bottom: 14px; width: 60%; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mock-card { height: 80px; background: var(--surface2); border-radius: 8px; position: relative; overflow: hidden; }
.mock-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.05));
}
.mock-cta { height: 30px; background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(6,182,212,0.3)); border-radius: 6px; width: 40%; margin: 0 auto; }

/* Chatbot Mock */
.mock-chat { display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.chat-bubble { height: 28px; border-radius: 12px; }
.chat-bubble.bot { width: 70%; background: rgba(124,58,237,0.25); border-radius: 4px 12px 12px 12px; }
.chat-bubble.user { width: 55%; background: rgba(6,182,212,0.2); align-self: flex-end; border-radius: 12px 4px 12px 12px; }
.chat-bubble.short { width: 45%; background: rgba(124,58,237,0.2); border-radius: 4px 12px 12px 12px; }
.chat-input-mock { height: 32px; background: var(--surface2); border-radius: 20px; margin-top: 6px; border: 1px solid var(--border); }

/* Landing Mock */
.mock-hero-section { padding: 10px; }
.mock-h1 { height: 20px; background: var(--surface2); border-radius: 4px; width: 80%; margin-bottom: 10px; }
.mock-h2 { height: 14px; background: var(--surface2); border-radius: 4px; width: 60%; margin-bottom: 16px; opacity: 0.6; }
.mock-btn-row { display: flex; gap: 10px; }
.mock-btn { height: 30px; border-radius: 20px; }
.mock-btn.primary { width: 120px; background: linear-gradient(135deg, rgba(124,58,237,0.6), rgba(6,182,212,0.4)); }
.mock-btn.ghost { width: 100px; border: 1px solid var(--border); background: transparent; }

/* Dashboard Mock */
.mock-dashboard { display: flex; height: 100%; gap: 8px; }
.dash-sidebar { width: 40px; background: var(--surface2); border-radius: 6px; flex-shrink: 0; }
.dash-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dash-stats { display: flex; gap: 6px; }
.ds { flex: 1; height: 35px; background: var(--surface2); border-radius: 6px; }
.dash-chart { flex: 1; background: var(--surface2); border-radius: 6px; position: relative; overflow: hidden; }
.dash-chart::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(124,58,237,0.3), transparent);
  clip-path: polygon(0 100%, 10% 60%, 25% 40%, 40% 70%, 55% 20%, 70% 50%, 85% 10%, 100% 30%, 100% 100%);
}

/* Proto overlays */
.ecomm-preview .preview-browser { border-top: 2px solid rgba(124,58,237,0.5); }
.chatbot-preview .preview-browser { border-top: 2px solid rgba(6,182,212,0.5); }
.landing-preview .preview-browser { border-top: 2px solid rgba(245,158,11,0.5); }
.dashboard-preview .preview-browser { border-top: 2px solid rgba(34,197,94,0.5); }

.proto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  font-size: 15px;
}
.proto-card:hover .proto-overlay { opacity: 1; }

.proto-info { padding: 24px; }
.proto-tag {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.proto-tag.ai { background: rgba(6,182,212,0.12); color: var(--accent); }
.proto-tag.landing { background: rgba(245,158,11,0.12); color: var(--accent2); }
.proto-tag.dash { background: rgba(34,197,94,0.12); color: #22c55e; }
.proto-info h4 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: #fff; margin-bottom: 8px; }
.proto-info p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.proto-tech { display: flex; gap: 8px; flex-wrap: wrap; }
.proto-tech span {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 50px;
}

/* ===== MODAL ===== */
.proto-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.proto-modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--glow);
}
.proto-modal.active .modal-box {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 2;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(239,68,68,0.2); border-color: #ef4444; color: #ef4444; }
.modal-content { padding: 36px; }
.modal-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; color: #fff; margin-bottom: 12px; }
.modal-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.modal-feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.modal-feature-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 14px;
}
.modal-feature-list li i { color: var(--primary-light); width: 16px; }
.modal-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== AI CHATBOT DEMO ===== */
.chatbot-demo {
  padding: 100px 0;
  background: var(--bg3);
}
.demo-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.demo-text h2 { margin-bottom: 16px; }
.demo-text p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.demo-points { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.demo-points li {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; color: var(--text-muted);
}
.demo-points li i {
  width: 36px; height: 36px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
  font-size: 14px;
  flex-shrink: 0;
}
.demo-points li strong { color: var(--text); }

/* Chatbot Window */
.chatbot-window {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glow), var(--glow2);
  max-width: 420px;
  margin: 0 auto;
}
.chatbot-header {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.2));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.bot-avatar {
  width: 42px; height: 42px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.bot-name { display: block; font-weight: 600; color: #fff; font-size: 15px; }
.bot-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.online-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; animation: pulse-glow 2s ease infinite; }
.chatbot-messages {
  min-height: 260px;
  max-height: 300px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg { display: flex; flex-direction: column; }
.msg.user-msg { align-items: flex-end; }
.msg-bubble {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 4px 16px 16px 16px;
  font-size: 14px;
  max-width: 80%;
  line-height: 1.5;
  color: var(--text);
}
.user-msg .msg-bubble {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.2));
  border-color: rgba(124,58,237,0.3);
  border-radius: 16px 4px 16px 16px;
}
.msg-time { font-size: 11px; color: var(--text-dim); margin-top: 4px; padding: 0 4px; }
.typing-indicator .msg-bubble { padding: 14px 18px; }
.typing-dots { display: flex; gap: 5px; align-items: center; }
.typing-dots span {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: pulse-glow 1s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.quick-replies button {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--primary-light);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.quick-replies button:hover { background: rgba(124,58,237,0.25); }
.chatbot-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.chatbot-input input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.chatbot-input input:focus { border-color: var(--primary-light); }
.chatbot-input input::placeholder { color: var(--text-dim); }
#sendBtn {
  width: 40px; height: 40px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}
#sendBtn:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(124,58,237,0.5); }

/* ===== PROCESS ===== */
.process {
  padding: 100px 0;
  background: var(--bg2);
}
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.4;
}
.step-icon {
  width: 52px; height: 52px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary-light);
  margin: 0 auto 16px;
  transition: var(--transition);
}
.step:hover .step-icon { background: rgba(124,58,237,0.25); transform: scale(1.1); }
.step h4 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; color: #fff; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 18px;
  padding: 0 8px;
  margin-top: 32px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 24px;
  font-size: 120px;
  color: rgba(124,58,237,0.08);
  font-family: Georgia, serif;
  line-height: 1;
}
.testi-card:hover { border-color: var(--border-hover); transform: translateY(-6px); }
.stars { color: #f59e0b; font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testi-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.testi-author strong { display: block; color: #fff; font-size: 15px; }
.testi-author span { color: var(--text-dim); font-size: 13px; }

/* ===== WHY US ===== */
.why-us {
  padding: 100px 0;
  background: var(--bg3);
}
.why-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.why-item:hover { border-color: var(--border-hover); background: var(--surface2); }
.why-icon {
  width: 48px; height: 48px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: var(--transition);
}
.why-item:hover .why-icon { background: rgba(124,58,237,0.25); transform: scale(1.1); }
.why-item h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #fff; margin-bottom: 4px; }
.why-item p { font-size: 13px; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--bg);
}
.contact-flex {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; color: #fff; margin-bottom: 12px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.c-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-item span { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-item a, .contact-item strong { color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; transition: var(--transition); }
.contact-item a:hover { color: var(--primary-light); }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition);
}
.social-link:hover { background: rgba(124,58,237,0.15); border-color: var(--primary-light); color: var(--primary-light); transform: translateY(-3px); }

/* Contact Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg2); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 14px;
}
.form-success.show { display: flex; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 16px; line-height: 1.7; max-width: 280px; }
.footer-links h5, .footer-contact h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--primary-light); padding-left: 6px; }
.footer-contact a, .footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 30px rgba(124,58,237,0.5);
  transform: translateY(100px);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.floating-cta.show { transform: translateY(0); }
.floating-cta:hover { box-shadow: 0 8px 40px rgba(124,58,237,0.7); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .proto-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; background: rgba(5,5,8,0.98); backdrop-filter: blur(20px); padding: 80px 24px 40px; gap: 24px; border-bottom: 1px solid var(--border); z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; position: relative; z-index: 1001; }
  .hero-title { letter-spacing: -1px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .demo-flex { grid-template-columns: 1fr; }
  .why-flex { grid-template-columns: 1fr; }
  .contact-flex { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .proto-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .floating-cta span { display: none; }
  .floating-cta { padding: 14px 16px; border-radius: 50%; }
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { width: 100%; justify-content: center; }
  .contact-form { padding: 24px; }
  .modal-content { padding: 24px; }
}
