:root {
  --bg: #09090b;
  --panel: #101014;
  --panel-strong: #14141a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --line: #27272a;
  --line-soft: rgba(63, 63, 70, 0.65);
  --violet: #6366f1;
  --mint: #10b981;
  --violet-soft: rgba(99, 102, 241, 0.16);
  --mint-soft: rgba(16, 185, 129, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header,
.section-shell,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(99, 102, 241, 0.55);
  background: var(--violet-soft);
  color: #c7d2fe;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 18px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-cta {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.02);
}

.button-primary {
  border-color: var(--violet);
  background: var(--violet);
  color: white;
  box-shadow: 0 18px 45px rgba(99, 102, 241, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #e4e4e7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 78px);
  padding: 54px 0 42px;
}

.badge,
.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge {
  border: 1px solid rgba(99, 102, 241, 0.42);
  background: var(--violet-soft);
  padding: 8px 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10.8ch;
  margin-bottom: 22px;
  font-size: clamp(48px, 7.6vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-subhead,
.section-heading p,
.case-copy p,
.service-card p,
.form-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-subhead {
  max-width: 660px;
  margin-bottom: 28px;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agent-panel,
.service-card,
.case-study,
.analytics-card,
.tech-badge,
.lead-form {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.agent-panel {
  padding: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  color: #e4e4e7;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.panel-top code {
  margin-left: auto;
  color: var(--mint);
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.9);
}

.terminal {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: #050506;
  color: #d4d4d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}

.terminal-line {
  overflow-wrap: anywhere;
}

.muted {
  color: #71717a;
}

.success {
  color: var(--mint);
}

.flow-stack {
  display: grid;
  gap: 10px;
}

.flow-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.flow-card span {
  color: #818cf8;
  font-weight: 900;
}

.flow-card h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.flow-card.active {
  border-color: rgba(99, 102, 241, 0.72);
}

.flow-card.complete {
  border-color: rgba(16, 185, 129, 0.5);
  background: var(--mint-soft);
}

.section-shell {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.services-grid,
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 290px;
  padding: 24px;
}

.card-index {
  display: inline-block;
  margin-bottom: 42px;
  color: #818cf8;
  font-weight: 900;
}

.service-card h3 {
  font-size: 23px;
  line-height: 1.15;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 18px;
  padding: 18px;
}

.case-copy,
.analytics-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.02);
}

.case-copy h3 {
  margin-bottom: 24px;
  font-size: 28px;
}

.case-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.case-block h4 {
  margin: 0 0 8px;
  color: #e0e7ff;
}

.analytics-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.analytics-top strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  line-height: 1;
}

.metric-pill {
  align-self: start;
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: var(--mint-soft);
  color: #a7f3d0;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-wrap {
  margin: 24px 0;
  border: 1px solid var(--line);
  background: #09090b;
}

.chart-wrap svg {
  display: block;
  width: 100%;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.09);
}

.area {
  fill: rgba(99, 102, 241, 0.1);
}

.line {
  fill: none;
  stroke: url(#lineGlow);
  stroke-width: 5;
  stroke-linecap: round;
}

.chart-wrap circle {
  fill: var(--mint);
}

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

.dashboard-grid div {
  border: 1px solid var(--line);
  padding: 12px;
}

.dashboard-grid span,
.tech-badge span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-grid strong {
  font-size: 22px;
}

.stack-grid {
  grid-template-columns: repeat(4, 1fr);
}

.tech-badge {
  padding: 20px;
}

.tech-badge strong {
  font-size: 18px;
  line-height: 1.25;
}

.lead-section {
  padding-bottom: 108px;
}

.lead-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 30px auto 0;
  padding: 22px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #e4e4e7;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #050506;
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-soft);
}

.form-button {
  width: 100%;
  margin-top: 6px;
}

.form-note {
  margin: 0;
  font-size: 13px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .case-study {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .services-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .agent-panel {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(42px, 16vw, 64px);
  }

  .actions,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
