:root {
  color-scheme: light;
  --ink: #102023;
  --muted: #637174;
  --line: #dfe7e4;
  --paper: #f7f8f3;
  --white: #ffffff;
  --forest: #0e2b2f;
  --teal: #0d7a75;
  --teal-dark: #075f5b;
  --mint: #d7f2e8;
  --amber: #e9a62a;
  --lime: #9fcf68;
  --shadow: 0 22px 60px rgba(16, 32, 35, 0.14);
  --max: 1180px;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --ink: #e8f2f0;
  --muted: #a6b8b5;
  --line: #2b4245;
  --paper: #0b1416;
  --white: #122124;
  --forest: #071113;
  --teal: #4ec7bd;
  --teal-dark: #8de4dc;
  --mint: #183f3c;
  --amber: #efb94d;
  --lime: #a8d679;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 243, 0.92);
  border-bottom: 1px solid rgba(223, 231, 228, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--mint);
  font-size: 13px;
  line-height: 1;
}

.brand-name {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334346;
  font-size: 14px;
}

.nav-links a {
  padding: 8px 0;
}

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

.nav-cta {
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal-dark);
  padding: 9px 14px !important;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .nav {
    gap: 16px;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 8px 12px !important;
  }
}

.hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  background: var(--forest);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 76% 34%, rgba(13, 122, 117, 0.3), rgba(13, 122, 117, 0) 30%),
    linear-gradient(90deg, rgba(8, 24, 27, 0.96) 0%, rgba(8, 24, 27, 0.88) 42%, rgba(8, 24, 27, 0.38) 74%, rgba(8, 24, 27, 0.16) 100%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 120px;
  background: linear-gradient(180deg, rgba(247, 248, 243, 0), var(--paper));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 76px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(300px, 0.34fr);
  gap: 42px;
  align-items: center;
}

.hero-copy-column {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--mint);
}

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

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button-primary {
  background: var(--amber);
  color: #161106;
  box-shadow: 0 12px 30px rgba(233, 166, 42, 0.22);
}

.button-primary:hover {
  background: #f0b744;
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 36px 0 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 14px;
}

.hero-metrics dt {
  font-size: 22px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.hero-live-panel {
  border: 1px solid rgba(215, 242, 232, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: rgba(12, 34, 38, 0.64);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.live-panel-top,
.live-kpis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-panel-top span,
.live-kpis small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.live-panel-top strong {
  color: var(--mint);
  font-size: 28px;
  line-height: 1;
}

.live-flow {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.live-flow i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.live-chat-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.live-chat-line span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--amber);
  color: #161106;
  font-size: 12px;
  font-weight: 900;
}

.live-chat-line p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.live-kpis {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.live-kpis strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

.proof-strip {
  width: min(var(--max), calc(100% - 40px));
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  background: var(--white);
  padding: 22px;
  display: grid;
  gap: 4px;
}

.proof-item strong {
  font-size: 16px;
}

.proof-item span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

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

.section-intro {
  padding-top: 108px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: #435256;
  font-size: 18px;
}

.audit-section {
  padding-top: 24px;
}

.audit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid rgba(13, 122, 117, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 251, 247, 0.96)),
    radial-gradient(circle at 90% 10%, rgba(233, 166, 42, 0.22), rgba(233, 166, 42, 0) 32%);
  box-shadow: var(--shadow);
  padding: 30px;
}

.audit-copy {
  min-width: 0;
}

.audit-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.audit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.audit-scorecard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.scorecard-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.scorecard-header span {
  color: var(--muted);
}

.scorecard-header strong {
  color: var(--teal-dark);
}

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

.service-card,
.price-card,
.dashboard-panel,
.chat-preview,
.faq-list details,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 32, 35, 0.06);
}

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

.card-index {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 900;
}

.service-card p,
.price-card p,
.ai-grid p {
  color: var(--muted);
}

.platform-note {
  margin-top: 14px;
  border-left: 4px solid var(--amber);
  padding: 12px 14px;
  background: #fff8e1;
  color: #3c3423;
  font-size: 14px;
  line-height: 1.55;
}

.platform-note strong {
  color: #1d2527;
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 46px;
  align-items: start;
}

.dashboard-panel {
  padding: 24px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-header span {
  color: var(--muted);
}

.dashboard-header strong {
  color: var(--teal-dark);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metric-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcf8;
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-row strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.bar-chart {
  height: 176px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f8f2 0%, #edf4ee 100%);
  border: 1px solid var(--line);
}

.bar-chart span {
  display: block;
  min-height: 28px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--teal) 0%, var(--lime) 100%);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #35464a;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--mint);
}

.price-card {
  position: relative;
  padding: 26px;
}

.price-card.featured {
  border-color: rgba(13, 122, 117, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
}

.badge {
  display: inline-block;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.price-note {
  min-height: 52px;
}

.price-card ul {
  margin: 20px 0 24px;
  padding-left: 20px;
  color: #35464a;
}

.maintenance-section {
  padding-top: 42px;
}

.maintenance-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
  color: #435256;
  font-size: 18px;
}

.maintenance-scope {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.maintenance-scope article {
  border: 1px solid rgba(13, 122, 117, 0.2);
  border-radius: 8px;
  background: #fbfef9;
  padding: 20px;
}

.maintenance-scope h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.maintenance-scope ul {
  margin: 0;
  padding-left: 18px;
  color: #35464a;
  font-size: 14px;
}

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

.maintenance-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 26px;
  box-shadow: 0 12px 32px rgba(16, 32, 35, 0.06);
}

.maintenance-card.featured-maintenance {
  border-color: rgba(13, 122, 117, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
}

.maintenance-card h3 {
  font-size: 26px;
}

.maintenance-card p {
  color: var(--muted);
  min-height: 72px;
}

.maintenance-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #35464a;
}

.maintenance-note {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
  border: 1px solid rgba(233, 166, 42, 0.38);
  border-radius: 8px;
  background: #fffaf0;
  padding: 20px;
  color: #4e3d14;
}

.maintenance-note strong {
  display: block;
  margin-bottom: 6px;
  color: #2b210b;
}

.maintenance-note p {
  margin: 0;
}

.maintenance-exclusions {
  margin: 0;
  padding-left: 18px;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 900;
}

.text-link::after {
  content: " ->";
}

.ai-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.chat-preview {
  max-width: 760px;
  padding: 24px;
  display: grid;
  gap: 12px;
  background: #fdfefb;
}

.preview-bubble {
  max-width: 620px;
  border-radius: 8px;
  padding: 13px 15px;
}

.preview-bubble.assistant {
  background: var(--mint);
  color: #16373a;
}

.preview-bubble.user {
  justify-self: end;
  background: var(--forest);
  color: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 110px;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
}

.bot-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.lead-form .full {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.chat-form input {
  width: 100%;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.chat-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 122, 117, 0.14);
}

.lead-form button {
  justify-self: start;
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  padding: 11px 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.chat-toggle[aria-expanded="true"] {
  display: none;
}

.chat-toggle-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--amber);
  color: #161106;
  font-size: 12px;
}

.chat-panel {
  width: 380px;
  height: 560px;
  max-height: calc(100svh - 100px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--forest);
  color: var(--white);
}

.chat-panel-header div {
  display: grid;
  gap: 2px;
}

.chat-panel-header span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.chat-messages {
  overflow-y: auto;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: #f7faf6;
}

.chat-message {
  max-width: 86%;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  white-space: pre-line;
}

.chat-message.assistant {
  justify-self: start;
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-message.user {
  justify-self: end;
  background: var(--teal-dark);
  color: var(--white);
}

.quick-actions {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.quick-actions button {
  flex: 0 0 auto;
  border: 1px solid #cfd9d5;
  border-radius: 999px;
  background: var(--white);
  padding: 7px 10px;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

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

.chat-form button {
  border: 0;
  border-radius: 8px;
  background: var(--amber);
  color: #161106;
  padding: 0 13px;
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.site-footer a {
  white-space: nowrap;
}

:root[data-theme="night"] .site-header {
  background: rgba(11, 20, 22, 0.92);
  border-bottom-color: rgba(43, 66, 69, 0.86);
}

:root[data-theme="night"] .nav-links,
:root[data-theme="night"] .intro-grid,
:root[data-theme="night"] .maintenance-intro,
:root[data-theme="night"] .check-list li,
:root[data-theme="night"] .price-card ul,
:root[data-theme="night"] .maintenance-scope ul,
:root[data-theme="night"] .maintenance-card ul,
:root[data-theme="night"] .lead-form label {
  color: #c7d6d3;
}

:root[data-theme="night"] .hero-overlay {
  background: linear-gradient(180deg, rgba(11, 20, 22, 0), var(--paper));
}

:root[data-theme="night"] .button-primary,
:root[data-theme="night"] .live-chat-line span,
:root[data-theme="night"] .chat-form button,
:root[data-theme="night"] .chat-toggle-icon {
  color: #161106;
}

:root[data-theme="night"] .audit-panel {
  background:
    linear-gradient(135deg, rgba(18, 33, 36, 0.97), rgba(13, 28, 31, 0.97)),
    radial-gradient(circle at 90% 10%, rgba(239, 185, 77, 0.16), rgba(239, 185, 77, 0) 34%);
}

:root[data-theme="night"] .platform-note {
  background: #241f12;
  color: #f2dca6;
}

:root[data-theme="night"] .platform-note strong,
:root[data-theme="night"] .maintenance-note strong {
  color: #ffe7ad;
}

:root[data-theme="night"] .metric-row div,
:root[data-theme="night"] .maintenance-scope article,
:root[data-theme="night"] .chat-preview,
:root[data-theme="night"] .chat-messages {
  background: #101d20;
}

:root[data-theme="night"] .bar-chart {
  background: linear-gradient(180deg, #102024 0%, #0d1a1d 100%);
}

:root[data-theme="night"] .price-card.featured,
:root[data-theme="night"] .maintenance-card.featured-maintenance {
  background: linear-gradient(180deg, #15282b 0%, #102120 100%);
}

:root[data-theme="night"] .badge,
:root[data-theme="night"] .preview-bubble.assistant {
  color: #d9fff8;
}

:root[data-theme="night"] .preview-bubble.user {
  background: #1f4c49;
}

:root[data-theme="night"] .maintenance-note {
  background: #211a0e;
  color: #f1dba7;
}

:root[data-theme="night"] .lead-form input,
:root[data-theme="night"] .lead-form select,
:root[data-theme="night"] .lead-form textarea,
:root[data-theme="night"] .chat-form input,
:root[data-theme="night"] .quick-actions button,
:root[data-theme="night"] .chat-panel {
  border-color: #30484b;
}

:root[data-theme="night"] .lead-form input,
:root[data-theme="night"] .lead-form select,
:root[data-theme="night"] .lead-form textarea,
:root[data-theme="night"] .chat-form input,
:root[data-theme="night"] .quick-actions button {
  background: #0f1d20;
  color: var(--ink);
}

:root[data-theme="night"] .chat-message.assistant {
  background: #17282b;
}

:root[data-theme="night"] .site-footer strong,
:root[data-theme="night"] .site-footer a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav {
    height: 68px;
    padding: 0;
    align-items: center;
  }

  .nav-links {
    margin-left: auto;
    justify-content: flex-end;
    gap: 0;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    max-width: 780px;
  }

  .hero-live-panel {
    display: none;
  }

  .proof-strip,
  .service-grid,
  .pricing-grid,
  .intro-grid,
  .audit-panel,
  .maintenance-intro,
  .maintenance-scope,
  .maintenance-grid,
  .maintenance-note,
  .split-section,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin-top: -20px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav-links {
    font-size: 13px;
  }

  .nav-cta {
    padding: 7px 10px !important;
  }

  .hero {
    min-height: 72svh;
  }

  .hero::before {
    background:
      radial-gradient(circle at 70% 34%, rgba(13, 122, 117, 0.24), rgba(13, 122, 117, 0) 34%),
      linear-gradient(180deg, rgba(8, 24, 27, 0.96) 0%, rgba(8, 24, 27, 0.86) 58%, rgba(8, 24, 27, 0.52) 100%);
  }

  .hero-media img {
    object-position: 60% center;
  }

  .hero-content,
  .section,
  .proof-strip,
  .site-footer {
    width: calc(100% - 28px);
  }

  .hero-content {
    padding: 34px 0 58px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
  }

  .hero-metrics div {
    padding-top: 10px;
  }

  .hero-metrics dt {
    font-size: 18px;
  }

  .hero-metrics dd {
    font-size: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .section-intro {
    padding-top: 84px;
  }

  .audit-section {
    padding-top: 0;
  }

  .audit-panel {
    padding: 20px;
  }

  .audit-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .maintenance-section {
    padding-top: 30px;
  }

  .maintenance-intro {
    font-size: 16px;
  }

  .maintenance-card p {
    min-height: auto;
  }

  .maintenance-note {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .chat-panel {
    width: 100%;
    height: min(560px, calc(100svh - 24px));
  }

  .chat-toggle {
    margin-left: auto;
  }

  .site-footer {
    display: grid;
  }
}
