:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #f7fbff;
  --muted: #a9b8ce;
  --brand: #7c3aed;
  --brand-2: #06b6d4;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.35), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.22), transparent 28rem),
    var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav, .section, .footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 42px; height: 42px; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 650; }
.nav-links a:hover { color: var(--text); }

.section { padding: 92px 0; }
.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 58px; align-items: center; min-height: calc(100vh - 76px); }
.eyebrow { color: #8feaff; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 5.9rem); line-height: 0.93; letter-spacing: -0.075em; margin-bottom: 26px; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.055em; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
.hero-copy, .section-heading p, .results-card p, .contact-section p { color: var(--muted); font-size: 1.12rem; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), #2563eb 55%, var(--brand-2));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
  cursor: pointer;
}
.button-secondary { background: rgba(255,255,255,0.09); box-shadow: none; border: 1px solid var(--line); }
.button-small { padding: 10px 16px; color: white; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.stats div { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.stats dt { font-size: 1.55rem; font-weight: 900; }
.stats dd { margin: 0; color: var(--muted); font-size: 0.92rem; }

.hero-card { position: relative; min-height: 520px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(143,234,255,0.25); border-radius: 50%; }
.orbit-one { width: 410px; height: 410px; animation: spin 18s linear infinite; }
.orbit-two { width: 300px; height: 300px; transform: rotate(28deg); animation: spin 12s linear infinite reverse; }
.workflow-panel { position: relative; width: min(410px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06)); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.panel-header { display: flex; gap: 8px; padding-bottom: 22px; }
.panel-header span { width: 11px; height: 11px; border-radius: 99px; background: rgba(255,255,255,0.45); }
.node { padding: 18px; border-radius: 18px; font-weight: 800; background: var(--card-strong); border: 1px solid var(--line); }
.node-ai { background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(6,182,212,0.28)); }
.connector { width: 2px; height: 34px; margin: 0 auto; background: linear-gradient(var(--brand-2), var(--brand)); }
.section-muted { width: 100%; max-width: none; padding-left: max(20px, calc((100% - 1120px) / 2)); padding-right: max(20px, calc((100% - 1120px) / 2)); background: rgba(255,255,255,0.035); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { text-align: center; margin: 0 auto 42px; max-width: 780px; }
.narrow { max-width: 680px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card, .step, .results-card, .results-list div, .contact-form { border: 1px solid var(--line); border-radius: 28px; background: var(--card); padding: 26px; box-shadow: 0 16px 50px rgba(0,0,0,0.18); }
.service-card p, .step p, .results-list span { color: var(--muted); }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 22px; background: rgba(6,182,212,0.16); color: #8feaff; font-size: 1.4rem; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step span { color: #8feaff; font-weight: 900; }
.results-section, .contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.results-list { display: grid; gap: 16px; }
.results-list div { display: grid; gap: 6px; }
.contact-form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.08); color: var(--text); padding: 14px 16px; font: inherit; }
input::placeholder, textarea::placeholder { color: #6f8098; }
.footer { padding: 34px 0 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.footer .brand { color: var(--text); }
.footer .brand img { width: 36px; height: 36px; }

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

@media (max-width: 840px) {
  .nav { align-items: flex-start; padding: 16px 0; flex-direction: column; }
  .nav-links { flex-wrap: wrap; gap: 14px; }
  .hero, .results-section, .contact-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 58px; }
  .stats, .card-grid, .timeline { grid-template-columns: 1fr; }
  .hero-card { min-height: 420px; }
  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 230px; height: 230px; }
  .footer { flex-direction: column; }
}

.chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(6,182,212,0.9));
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-toggle strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}

.chatbot-panel {
  width: min(380px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(7, 17, 31, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.chatbot-panel[hidden] { display: none; }

.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.chatbot-header h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.chatbot-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  font-size: 1.4rem;
  cursor: pointer;
}

.chatbot-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  overflow-y: auto;
  padding: 20px;
}

.chat-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.95rem;
}

.chat-message.bot {
  justify-self: start;
  color: var(--text);
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.chat-message.user {
  justify-self: end;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.chatbot-form input { min-width: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .chatbot {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .chatbot-toggle { margin-left: auto; }
  .chatbot-panel { width: 100%; }
  .chatbot-form { grid-template-columns: 1fr; }
}
