:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8a8a9a;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-2: #06b6d4;
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

/* HERO */
.hero {
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-inner { max-width: 720px; }

.hero-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 24px;
}

.lede {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-2);
}

.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* PROBLEM */
.problem {
  padding: 100px 24px;
  background: var(--bg-elevated);
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 56px;
  max-width: 600px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.problem-icon {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.problem-card p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* SERVICES */
.services {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.services-header {
  margin-bottom: 56px;
}

.services-header h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 16px;
}

.services-sub {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 480px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* HOW */
.how {
  padding: 100px 24px;
  background: var(--bg-elevated);
}

.how-inner {
  max-width: 800px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 56px;
  text-align: center;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(59,130,246,0.2);
  line-height: 1;
  min-width: 80px;
}

.step-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--fg-muted);
  font-size: 16px;
}

.step-line {
  width: 2px;
  height: 32px;
  background: var(--border);
  margin-left: 39px;
}

/* CLOSING */
.closing {
  padding: 120px 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.closing-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
  line-height: 1.25;
}

.closing-sub {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* FOOTER */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.footer-meta {
  font-size: 14px;
  color: var(--fg-muted);
}

/* SERVICES INNER */
.services-inner { width: 100%; }

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

.nav-links .nav-cta {
  color: var(--accent);
  font-weight: 600;
}

.nav-demo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(59,130,246,0.3);
  background: var(--accent-glow);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nav-demo-btn:hover {
  background: rgba(59,130,246,0.25);
  border-color: rgba(59,130,246,0.5);
}

.nav-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* HERO CTA buttons */
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }

/* CONTACT */
.contact {
  padding: 100px 24px;
  background: var(--bg-elevated);
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 48px;
}

.contact-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  margin-top: 20px;
}

.contact-sub {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
}

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

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

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

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
}

.form-optional {
  font-weight: 400;
  opacity: 0.6;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138,138,154,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(59,130,246,0.4);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s;
  min-width: 160px;
}

.form-submit:hover:not(:disabled) { opacity: 0.88; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-submit .submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-submit.loading .submit-text { display: none; }
.form-submit.loading .submit-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.form-error {
  color: #f87171;
  font-size: 14px;
  min-height: 20px;
}

/* CHATBOT WIDGET */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(59,130,246,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
  border: none;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.5);
}

.chat-fab-icon { flex-shrink: 0; }

.chat-fab-ping {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.chat-fab-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.chat-panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 380px;
  max-height: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
  overflow: hidden;
}

.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.chat-header-status {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.chat-close {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.chat-close:hover { color: var(--fg); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-end; }
.chat-msg-bot { justify-content: flex-start; }

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-msg-bot .chat-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}

.chat-msg-user .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-typing .chat-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.chat-typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
  animation: typing-dot 1.2s infinite;
}

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

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input::placeholder { color: rgba(138,138,154,0.5); }
.chat-input:focus { border-color: rgba(59,130,246,0.4); }

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.chat-send:hover:not(:disabled) { opacity: 0.85; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; padding-top: 32px; }
  .hero-stat { flex-direction: row; align-items: baseline; gap: 12px; }
  .problem-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 12px; }
  .step-num { font-size: 36px; min-width: auto; }
  .step-line { margin-left: 18px; height: 24px; }
  .closing { padding: 80px 20px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; max-height: 70vh; }
  .chat-fab { bottom: 16px; right: 16px; padding: 12px 16px; }
  .chat-fab-label { font-size: 13px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .lede { font-size: 17px; }
  .service-card { padding: 28px; }
  .problem-card { padding: 24px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}