:root {
  --bg: #f6f8fb;
  --white: #ffffff;
  --text: #111827;
  --muted-text: #4b5563;
  --accent: #1f72e5;
  --accent-dark: #1456b3;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

openai-chatkit {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: min(360px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 120px));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  z-index: 1100;
}

openai-chatkit::part(iframe) {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  openai-chatkit {
    left: 16px;
    right: 16px;
    bottom: 88px;
    width: auto;
    height: calc(100vh - 32px);
    border-radius: 14px;
  }
}

openai-chatkit[hidden] {
  display: none !important;
}

.chatkit-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  z-index: 1110;
}

.chatkit-toggle:hover,
.chatkit-toggle:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.28);
}

.chatkit-toggle:focus-visible {
  outline: 3px solid rgba(31, 114, 229, 0.35);
  outline-offset: 4px;
}

.chatkit-toggle.is-open {
  background: #0f172a;
}

@media (max-width: 640px) {
  .chatkit-toggle {
    left: 16px;
    right: 16px;
    bottom: 24px;
    width: auto;
    justify-content: center;
  }
}

a:hover,
a:focus {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section.muted {
  background: var(--bg);
}

.section h1,
.section h2 {
  margin-top: 0;
}

.section-lead,
.lead {
  font-size: 1.1rem;
  color: var(--muted-text);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  position: relative;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus {
  background: var(--bg);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

.hero {
  padding-top: 96px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.benefit-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.benefit-item {
  background: var(--bg);
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.hero-image .image-placeholder,
.image-placeholder {
  background: linear-gradient(135deg, #dce9ff, #f5f7fb);
  color: #0f172a;
  border: 1px dashed #9ca3af;
  border-radius: 14px;
  padding: 28px;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-image img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.split-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.stack-card {
  max-width: 420px;
  justify-self: end;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.columns {
  columns: 2;
  gap: 24px;
  padding-left: 18px;
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.metric {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.metric-label {
  color: var(--muted-text);
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attribution {
  font-weight: 600;
  color: var(--muted-text);
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
}

.faq-answer {
  margin-top: 10px;
  padding: 0 4px 0 4px;
  color: var(--muted-text);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 114, 229, 0.2);
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus {
  background: var(--accent-dark);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

.btn.ghost:hover,
.btn.ghost:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:active {
  transform: translateY(1px);
}

.footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 48px 0 32px;
}

.footer a {
  color: #e5e7eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  margin-left: 12px;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  color: var(--muted-text);
  font-style: italic;
}

.reassurance {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

@media (max-width: 1023px) {
  .columns {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    width: min(320px, 86vw);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  body.nav-open .nav-toggle {
    border-color: var(--accent);
  }

  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .header-container {
    padding: 14px 0;
  }
}
