:root {
  color-scheme: light dark;
  --dark-bg: #0a0a0c;
  --light-bg: #ffffff;
  --light-bg-alt: #f5f7fb;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4fd1;
  --accent-blue-tint: #dbeafe;
  --red-tint: #fee2e2;
  --red: #ef4444;
  --text-dark: #0a0a0c;
  --text-muted-on-light: #6b7280;
  --text-on-dark: #f5f5f7;
  --text-muted-on-dark: #9ca3af;
  --line-light: #e5e7eb;
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-badge: 12px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.eyebrow-on-dark { color: #9ab8ff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn-primary { background: var(--accent-blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: #eef1f6; color: var(--text-dark); }
.btn-secondary:hover { background: #e2e6ee; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-header.theme-dark {
  background: rgba(10, 10, 12, 0.6);
  border-bottom: 1px solid transparent;
}
.site-header.theme-light {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line-light);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-header.theme-dark .brand-mark { background: #f5f5f7; color: #0a0a0c; }
.site-header.theme-dark .brand-name { color: #fff; }
.site-header.theme-light .brand-mark { background: #0a0a0c; color: #f5f5f7; }
.site-header.theme-light .brand-name { color: var(--text-dark); }
.brand-name { font-size: 16px; transition: color 0.2s ease; }

/* Cover */
.cover {
  background: var(--dark-bg);
  color: var(--text-on-dark);
  min-height: calc(100vh - 71px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  text-align: center;
}
.cover .container { max-width: 900px; }
.cover h1 {
  font-size: clamp(40px, 7vw, 76px);
  color: #fff;
  margin-bottom: 24px;
}
.cover .lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted-on-dark);
  font-size: 18px;
}

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 50% -10%, #eef3ff 0%, #ffffff 55%);
  padding: 96px 0 80px;
  text-align: center;
}
.hero h2 {
  font-size: clamp(34px, 5vw, 56px);
  max-width: 900px;
  margin: 0 auto 20px;
}
.hero .hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-muted-on-light);
  font-size: 17px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.chat-mock {
  max-width: 640px;
  margin: 0 auto 48px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  text-align: left;
}
.chat-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-bottom: 1px solid var(--line-light);
}
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; }
.chat-mock-title { margin-left: 8px; font-size: 13px; color: var(--text-muted-on-light); }
.chat-mock-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.bubble-in {
  align-self: flex-start;
  background: #f3f4f6;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}
.bubble-out {
  align-self: flex-end;
  background: var(--accent-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble {
  opacity: 0;
  transform: translateY(4px);
  animation: bubble-in 0.25s ease-out forwards;
}
@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}
.bubble-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: caret-blink 0.9s step-end infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
.bubble-typing { display: flex; align-items: center; gap: 4px; padding: 14px 16px; }
.bubble-typing .chat-dot-typing {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  animation: typing-bounce 1s ease-in-out infinite;
}
.bubble-typing .chat-dot-typing:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing .chat-dot-typing:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: 1; transform: none; }
  .bubble-caret { animation: none; }
  .bubble-typing .chat-dot-typing { animation: none; }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-tile {
  background: var(--accent-blue-tint);
  border-radius: var(--radius-card);
  padding: 24px 16px;
}
.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: #3c4a63; }

/* Services */
.services { padding: 96px 0; text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 48px; }
.services h2 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 16px; }
.section-sub { color: var(--text-muted-on-light); font-size: 16px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}
.service-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-badge);
  background: var(--accent-blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-badge .icon { width: 22px; height: 22px; color: var(--accent-blue); }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted-on-light); font-size: 14.5px; }

/* Why AI */
.why-ai { background: var(--light-bg-alt); padding: 96px 0; text-align: center; }
.why-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.why-card { border-radius: var(--radius-card); padding: 40px 32px; }
.why-card-light { background: #fff; border: 1px solid var(--line-light); }
.why-card-dark { background: var(--dark-bg); color: var(--text-on-dark); }
.why-card h3 { font-size: 20px; margin-bottom: 24px; }
.why-card-light h3 { color: #6b7280; }
.why-card-dark h3 { color: #fff; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 15px;
}
.why-list li:last-child { margin-bottom: 0; }
.why-card-light .why-list li { color: var(--text-dark); }
.why-card-dark .why-list li { color: #d1d5db; }
.why-bullet {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.why-bullet-minus { background: var(--red-tint); color: var(--red); }
.why-bullet-plus { background: rgba(37, 99, 235, 0.28); color: #93c5fd; }

/* Case Studies */
.case-studies { padding: 96px 0; text-align: center; }
.case-studies-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  text-align: left;
}
.case-grid-main { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-blue);
}
.case-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--accent-blue-tint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.case-card h3 { font-size: 20px; margin-bottom: 10px; }
.case-desc { color: var(--text-muted-on-light); font-size: 14.5px; margin-bottom: 18px; }
.case-metrics { display: flex; gap: 12px; flex-wrap: wrap; }
.case-metric {
  background: var(--accent-blue-tint);
  border-radius: 10px;
  padding: 10px 14px;
  flex: 1;
  min-width: 120px;
}
.case-metric strong { display: block; color: var(--accent-blue); font-size: 16px; }
.case-metric span { font-size: 12px; color: #3c4a63; }
.case-bullets { font-size: 13.5px; color: var(--text-dark); }
.case-bullets li { margin-bottom: 6px; position: relative; padding-left: 14px; }
.case-bullets li::before { content: "–"; position: absolute; left: 0; color: var(--text-muted-on-light); }

.case-more-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-on-light);
  margin-bottom: 16px;
}
.case-more { display: flex; flex-direction: column; gap: 16px; }
.case-card-compact {
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-card);
  padding: 20px;
}
.case-card-compact h3 { font-size: 17px; margin-bottom: 8px; }
.case-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--accent-blue-tint);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Contact + Footer */
.contact {
  background: var(--dark-bg);
  color: var(--text-on-dark);
  padding: 96px 0 0;
  text-align: center;
}
.contact .section-head { margin-bottom: 40px; }
.contact h2 { font-size: clamp(32px, 5vw, 52px); color: #fff; margin-bottom: 18px; }
.contact .section-sub { color: var(--text-muted-on-dark); font-size: 16px; }

.consult-form { max-width: 560px; margin: 0 auto; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  text-align: left;
}
.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted-on-dark);
  margin-bottom: 8px;
}
.form-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  font-size: 15px;
  padding: 8px 0;
  outline: none;
}
.form-field input::placeholder { color: #6b7280; }
.form-field input:focus { border-bottom-color: var(--accent-blue); }
.form-disclaimer { margin-top: 16px; font-size: 13px; color: var(--text-muted-on-dark); }
.form-status { margin-top: 16px; font-size: 14px; }
.form-status-success { color: #86efac; }
.form-status-error { color: #fca5a5; }

.footer-bar {
  margin-top: 80px;
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted-on-dark);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .case-studies-layout { grid-template-columns: 1fr; }
  .case-more { flex-direction: row; flex-wrap: wrap; }
  .case-more .case-card-compact { flex: 1 1 260px; }
}

@media (max-width: 640px) {
  .cover h1 { font-size: clamp(32px, 10vw, 44px); }
  .services-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .why-ai-grid { grid-template-columns: 1fr; }
  .case-grid-main { grid-template-columns: 1fr; }
  .case-more { flex-direction: column; }
  .case-more .case-card-compact { flex: 1 1 auto; }
  .form-row { grid-template-columns: 1fr; margin-bottom: 24px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .footer-bar { flex-direction: column; text-align: center; justify-content: center; }
}
