:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --card: #161616;
  --card-hover: #1c1c1c;
  --border: #2a2a2a;
  --border-light: #333333;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #e5483d;
  --accent-hover: #c93a30;
  --accent-bright: #ff6b5e;
  --accent-soft: rgba(229, 72, 61, 0.14);
  --accent-soft-border: rgba(229, 72, 61, 0.35);
  --success: #3ecf8e;
  --radius: 10px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

header.site-header {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

nav.links {
  display: flex;
  gap: 28px;
}

nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 2px;
}

nav.links a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(229,72,61,0);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px -4px rgba(229,72,61,0.55); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  color: #fff;
  padding: 88px 0 70px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(229,72,61,0.22) 0%, rgba(229,72,61,0.06) 45%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 2.85rem;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 15ch;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 46ch;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: #ffb3ac;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--accent-bright);
  opacity: 0.35;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.stat-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff; }
.stat-label { font-size: 0.78rem; color: var(--muted); }

.hero-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  position: relative;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.hero-panel-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.check-list { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.95rem; }
.check-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 14px;
  line-height: 1.4;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 4.5px; top: 6.5px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: rotate(-45deg);
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }

.section-heading { max-width: 640px; margin-bottom: 44px; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow-accent { color: var(--accent-bright); }

section h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: #fff;
}

section p.section-lead {
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* ---------- Services index list ---------- */
.index-list {
  display: flex;
  flex-direction: column;
}

.index-item {
  display: grid;
  grid-template-columns: 56px 44px 1fr;
  align-items: start;
  gap: 20px;
  padding: 26px 12px;
  border-top: 1px solid var(--border);
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.index-item:last-child { border-bottom: 1px solid var(--border); }
.index-item:hover {
  background: var(--bg-alt);
  padding-left: 20px;
}

.index-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--border-light);
  padding-top: 4px;
  transition: color 0.15s ease;
}
.index-item:hover .index-num { color: var(--accent); }

.index-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.index-icon svg { width: 19px; height: 19px; }

.index-body h3 { margin: 4px 0 6px; font-size: 1.08rem; font-weight: 600; color: #fff; }
.index-body p { margin: 0; color: var(--muted); font-size: 0.94rem; max-width: 56ch; }

/* ---------- Feature cards (emerging services) ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--accent-soft-border); transform: translateY(-2px); }
.feature-card h3 { margin: 16px 0 8px; font-size: 1.05rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.status-chip {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  padding: 3px 8px;
  border-radius: 999px;
}

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about-grid h2 { max-width: 14ch; }

.pull-quote {
  margin: 22px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: #d8d8d8;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
}

.about-facts { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.fact {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.fact:last-child { border-bottom: none; padding-bottom: 0; }
.fact-mark {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 14px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -140px; left: -100px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(229,72,61,0.16), transparent 70%);
  pointer-events: none;
}

.contact-card h2 { color: #fff; margin-top: 10px; max-width: 16ch; }
.contact-card p { color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 16px; font-size: 0.98rem; color: #e6e6e6; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-list .label { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }

.placeholder-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  background: rgba(255,187,84,0.14);
  color: #ffcb85;
  border: 1px solid rgba(255,187,84,0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 30px 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Chat widget ---------- */
#chat-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px -6px rgba(229,72,61,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.15s ease, background 0.15s ease;
}
#chat-launcher:hover { background: var(--accent-hover); transform: translateY(-2px); }

#chat-window {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 368px;
  max-width: 92vw;
  height: 500px;
  max-height: 78vh;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 70px -10px rgba(0,0,0,0.7);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 210;
}
#chat-window.open { display: flex; }

.chat-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  color: #fff;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header .title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.chat-header .subtitle { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.chat-header button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.chat-header button:hover { color: #fff; }

.chat-status {
  padding: 7px 16px;
  font-size: 0.72rem;
  background: var(--accent-soft);
  color: #ffb3ac;
  border-bottom: 1px solid var(--border);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.msg.visitor {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.ai, .msg.human {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.human { border-color: rgba(62,207,142,0.35); background: rgba(62,207,142,0.08); }
.msg.system {
  align-self: center;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 12px;
  gap: 8px;
}
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 0.9rem;
  outline: none;
  font-family: var(--font-body);
}
.chat-input-row input::placeholder { color: var(--muted); }
.chat-input-row input:focus { border-color: var(--accent); }
.chat-input-row button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
}
.chat-input-row button:hover { background: var(--accent-hover); }

/* ---------- Contact form ---------- */
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  margin-top: 24px;
  max-width: 560px;
}
.contact-form-card h3 { margin: 0 0 6px; font-size: 1.25rem; color: #fff; font-family: var(--font-display); }
.contact-form-card .form-note { margin: 0 0 22px; color: var(--muted); font-size: 0.9rem; }

.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.8rem; color: var(--muted); }
.form-row input, .form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }

.form-status { margin-top: 12px; font-size: 0.88rem; }
.form-status-ok { color: var(--success); }
.form-status-error { color: var(--accent-bright); }

@media (max-width: 780px) {
  .hero-grid, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; max-width: none; }
  .index-item { grid-template-columns: 32px 40px 1fr; gap: 14px; }
  .stat-row { gap: 24px; }
  .contact-form-card { padding: 26px; }
}

/* Header phone: visually distinct from the nav links so it reads as an
   action, not another anchor. Tap-to-call on mobile via tel:. */
.nav-phone {
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}
