@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f8f9fc;
  --bg-soft: #f2f5fb;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-dark: #eaf0fb;
  --text: #0d121b;
  --text-muted: #5b6780;
  --line: #e7ebf3;
  --line-strong: #cfd7e7;
  --brand: #135bec;
  --brand-strong: #0f4fd1;
  --accent: #135bec;
  --accent-soft: rgba(19, 91, 236, 0.12);
  --success: #18744a;
  --warning: #a95b00;
  --shadow: 0 18px 44px rgba(13, 18, 27, 0.08);
  --shadow-soft: 0 8px 24px rgba(13, 18, 27, 0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - clamp(1rem, 4vw, 2.5rem)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Instrument Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

main {
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(207, 215, 231, 0.85);
  box-shadow: 0 6px 18px rgba(13, 18, 27, 0.03);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(19, 91, 236, 0.12), rgba(19, 91, 236, 0.24));
  border: 1px solid rgba(19, 91, 236, 0.15);
  box-shadow: var(--shadow-soft);
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand-copy strong,
.footer-brand strong {
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-copy span {
  font-size: 0.86rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.site-header-link:hover {
  background: rgba(19, 91, 236, 0.05);
  color: var(--accent) !important;
}

.site-header-link.is-active {
  background: rgba(19, 91, 236, 0.1);
  color: var(--accent) !important;
  box-shadow: inset 0 0 0 1px rgba(19, 91, 236, 0.14);
}

.site-mobile-link {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.site-mobile-link.is-active {
  background: rgba(19, 91, 236, 0.08);
  border-color: rgba(19, 91, 236, 0.18) !important;
  border-radius: 14px;
  color: var(--accent) !important;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.nav-link {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(19, 91, 236, 0.08);
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  box-shadow: 0 12px 26px rgba(19, 91, 236, 0.18);
  text-align: center;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--brand-strong);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border-color: rgba(207, 215, 231, 0.9);
  box-shadow: 0 4px 10px rgba(13, 18, 27, 0.03);
}

.button-secondary:hover {
  background: #f7f9ff;
  border-color: var(--line-strong);
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-weight: 700;
}

.button-link:hover {
  color: var(--brand-strong);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(207, 215, 231, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(231, 235, 243, 1);
  padding: 1rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  gap: 0.65rem;
}

.mobile-menu .nav-link {
  background: var(--surface-strong);
  border: 1px solid rgba(231, 235, 243, 1);
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(2.75rem, 6vw, 4rem) 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(16, 32, 58, 0.98), rgba(10, 19, 35, 0.98)),
    #0d192c;
  color: white;
}

.section-alt {
  background: #f6f8fc;
  border-top: 1px solid rgba(231, 235, 243, 1);
  border-bottom: 1px solid rgba(231, 235, 243, 1);
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin-bottom: 2.2rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(17, 92, 214, 0.1);
  color: var(--accent);
}

.eyebrow.warm {
  background: rgba(19, 91, 236, 0.08);
  color: var(--brand-strong);
}

.section-heading h1,
.section-heading h2,
.section-heading h3,
.hero-title,
.card h3,
.price-card h3,
.case-card h3,
.role-card h3,
.blog-card h3 {
  margin: 0;
  font-family: "Inter", "Instrument Sans", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-heading h1,
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.section-heading h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.section-heading p,
.hero-copy,
.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.section-dark .section-heading p,
.section-dark .lede {
  color: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(3rem, 7vw, 4.25rem) 0 clamp(3.5rem, 8vw, 5rem);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -18% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 91, 236, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid,
.split,
.contact-grid,
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.hero-panel,
.card,
.hero-card,
.stat-card,
.form-card,
.info-card,
.gallery-card,
.blog-card,
.price-card,
.case-card,
.role-card,
.policy-card {
  background: var(--surface);
  border: 1px solid rgba(231, 235, 243, 1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 1.25rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 6px);
  min-height: clamp(320px, 52vw, 560px);
}

.hero-media img,
.split-media img,
.feature-media img,
.gallery-card img,
.case-media img {
  height: 100%;
  object-fit: cover;
}

.hero-media::after,
.feature-media::after,
.case-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(10, 19, 35, 0.7));
}

.hero-badges,
.chip-row,
.pill-row,
.meta-row,
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 215, 231, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.pill.active,
.filter-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

.metric {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(231, 235, 243, 1);
}

.metric strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.metric span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid-2,
.grid-3,
.grid-4,
.card-grid,
.gallery-grid,
.blog-grid,
.price-grid,
.case-grid,
.role-grid,
.policy-grid,
.hours-grid {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.grid-3,
.card-grid,
.blog-grid,
.policy-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.grid-4,
.hours-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.price-grid,
.case-grid,
.role-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.card,
.blog-card,
.price-card,
.case-card,
.role-card,
.policy-card {
  padding: 1.35rem;
}

[data-card-link] {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

[data-card-link]:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 91, 236, 0.25);
  box-shadow: 0 16px 30px rgba(13, 18, 27, 0.08);
}

[data-card-link]:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(19, 91, 236, 0.14),
    0 16px 30px rgba(13, 18, 27, 0.08);
}

.card h3,
.blog-card h3,
.price-card h3,
.case-card h3,
.role-card h3,
.policy-card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.55rem;
}

.card p,
.blog-card p,
.price-card p,
.case-card p,
.role-card p,
.policy-card p,
.info-card p {
  margin: 0;
  color: var(--text-muted);
}

.card ul,
.price-card ul,
.case-card ul,
.role-card ul,
.policy-card ul,
.check-list,
.plain-list {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.card li,
.price-card li,
.case-card li,
.role-card li,
.policy-card li,
.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.card li::before,
.price-card li::before,
.case-card li::before,
.role-card li::before,
.policy-card li::before,
.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand);
}

.split {
  gap: 2.4rem;
}

.split-text,
.hero-copy-block,
.form-stack {
  display: grid;
  gap: 1.2rem;
}

.split-media,
.feature-media,
.case-media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 4px);
  min-height: clamp(280px, 40vw, 420px);
  border: 1px solid rgba(231, 235, 243, 1);
  box-shadow: var(--shadow);
}

.feature-media {
  min-height: clamp(320px, 46vw, 520px);
}

.service-filter,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.filter-button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 215, 231, 0.95);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-weight: 700;
}

[data-filter-item][hidden] {
  display: none !important;
}

.page-hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
}

.page-hero-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    linear-gradient(135deg, rgba(19, 91, 236, 0.08), rgba(19, 91, 236, 0.03)),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(231, 235, 243, 1);
  box-shadow: var(--shadow-soft);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(231, 235, 243, 1);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(17, 92, 214, 0.1);
  color: var(--accent);
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-card,
.info-card {
  padding: 1.2rem;
}

.stat-card strong,
.info-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Inter", "Instrument Sans", sans-serif;
}

.contact-stack,
.quote-side {
  display: grid;
  gap: 1rem;
}

.form-card {
  padding: 1.55rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
}

.field > .field-label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(207, 215, 231, 0.95);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 92, 214, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.result-card {
  margin-top: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 116, 74, 0.2);
  background: rgba(24, 116, 74, 0.08);
}

.result-card[hidden] {
  display: none;
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-family: "Inter", "Instrument Sans", sans-serif;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(207, 215, 231, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 600;
}

.radio-option input {
  margin: 0;
  accent-color: var(--accent);
}

.saved-request-card h3 {
  margin: 0.5rem 0 0;
  font-family: "Inter", "Instrument Sans", sans-serif;
}

.saved-request-preview {
  margin-top: 0.3rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(207, 215, 231, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}

.faq-shell {
  display: grid;
  gap: 1rem;
}

.faq-search {
  margin-bottom: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(231, 235, 243, 1);
  border-radius: 22px;
  padding: 0 1.2rem;
}

.faq-item[hidden] {
  display: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding-bottom: 1.15rem;
  color: var(--text-muted);
}

.gallery-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
}

.gallery-copy {
  padding: 1rem 1.1rem 1.15rem;
}

.gallery-copy strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Inter", "Instrument Sans", sans-serif;
}

.gallery-copy span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 15, 28, 0.88);
}

.gallery-lightbox.open {
  display: flex;
}

.lightbox-frame {
  max-width: min(1100px, 100%);
  width: 100%;
  padding: 1rem;
  border-radius: 28px;
  background: rgba(20, 33, 54, 0.92);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-media {
  border-radius: 20px;
  overflow: hidden;
  max-height: 76vh;
}

.lightbox-media img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 0.85rem;
  flex-wrap: wrap;
}

.lightbox-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
}

.blog-card,
.case-card {
  display: grid;
  gap: 0.8rem;
}

.meta-row {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.quote-aside {
  position: sticky;
  top: 120px;
}

.cta-panel {
  padding: 2rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(19, 91, 236, 0.08), rgba(19, 91, 236, 0.03)),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(231, 235, 243, 1);
  box-shadow: var(--shadow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chatbot-widget {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 75;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.8rem;
  width: min(360px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem - env(safe-area-inset-bottom));
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: flex-start;
  min-height: 58px;
  padding: 0.85rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(207, 215, 231, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.chatbot-toggle-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: white;
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chatbot-toggle-copy {
  display: grid;
  gap: 0.05rem;
  text-align: left;
}

.chatbot-toggle-copy strong {
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-size: 0.98rem;
}

.chatbot-toggle-copy span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.chatbot-panel {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  max-height: min(68vh, calc(100vh - 7rem - env(safe-area-inset-bottom)), 640px);
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(207, 215, 231, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.chatbot-page-section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}

.chatbot-page-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(420px, 55vw);
  background: radial-gradient(circle at 50% 8%, rgba(19, 91, 236, 0.16), rgba(19, 91, 236, 0) 62%);
  pointer-events: none;
}

.chatbot-page-wrap {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - clamp(1rem, 4vw, 2.5rem)));
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.chatbot-page-intro {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: center;
}

.chatbot-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(19, 91, 236, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-page-badge .material-symbols-outlined {
  font-size: 1rem;
}

.chatbot-page-intro h1 {
  margin: 0;
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.chatbot-page-intro p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
}

.chatbot-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.82fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
  align-items: start;
}

.chatbot-page-shell {
  width: 100%;
  margin: 0;
  position: relative;
}

.chatbot-page-shell::before {
  content: "";
  position: absolute;
  inset: 1.5rem 1.5rem auto;
  height: 140px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(19, 91, 236, 0.22), rgba(67, 146, 255, 0.08));
  filter: blur(36px);
  opacity: 0.75;
  pointer-events: none;
}

.chatbot-page-shell .chatbot-panel {
  position: relative;
  width: 100%;
  min-height: clamp(620px, 78vh, 860px);
  max-height: none;
  padding: 1.25rem;
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.chatbot-page-shell .chatbot-messages {
  flex: 1 1 auto;
  min-height: 320px;
  max-height: none;
  padding: 0.25rem 0.2rem 0.25rem 0;
  align-content: start;
}

.chatbot-page-shell .chatbot-actions {
  margin-top: auto;
}

.chatbot-page-aside {
  display: grid;
  gap: 1rem;
}

.chatbot-page-card {
  padding: 1.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(207, 215, 231, 0.95);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.chatbot-page-card h2 {
  margin: 0 0 0.75rem;
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.chatbot-page-card p {
  margin: 0;
  color: var(--text-muted);
}

.chatbot-page-card-accent {
  background: linear-gradient(180deg, rgba(19, 91, 236, 0.1), rgba(255, 255, 255, 0.98));
  border-color: rgba(19, 91, 236, 0.16);
}

.chatbot-page-link {
  color: var(--accent);
  font-weight: 700;
}

.chatbot-page-link:hover {
  color: var(--brand-strong);
}

.chatbot-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.chatbot-page-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
}

.chatbot-page-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #4f8bff);
  box-shadow: 0 0 0 5px rgba(19, 91, 236, 0.12);
}

.chatbot-page-cta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chatbot-page-cta .button,
.chatbot-page-cta .button-secondary {
  width: 100%;
}

.chatbot-page-contact {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.chatbot-page-contact span {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.chatbot-page-contact .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--accent);
}

.chatbot-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.chatbot-header-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--brand-strong));
  box-shadow: 0 16px 30px rgba(19, 91, 236, 0.18);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chatbot-header-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.chatbot-header-copy span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-header strong {
  display: block;
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-size: 1.12rem;
}

.chatbot-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.chatbot-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(207, 215, 231, 0.95);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.chatbot-status {
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: rgba(17, 92, 214, 0.08);
  color: var(--accent);
  font-size: 0.92rem;
}

.chatbot-status[data-state="success"] {
  background: rgba(24, 116, 74, 0.1);
  color: var(--success);
}

.chatbot-status[data-state="error"] {
  background: rgba(169, 91, 0, 0.12);
  color: var(--warning);
}

.chatbot-quick-actions,
.chatbot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chatbot-chip {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 215, 231, 0.95);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-weight: 700;
}

.chatbot-messages {
  min-height: 120px;
  max-height: min(22vh, 220px);
  overflow-y: auto;
  display: grid;
  gap: 0.8rem;
  padding-right: 0.2rem;
}

.chatbot-message {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

.chatbot-message.is-user {
  flex-direction: row-reverse;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chatbot-avatar.is-model {
  background: linear-gradient(135deg, var(--accent), var(--brand-strong));
  color: white;
  box-shadow: 0 10px 18px rgba(19, 91, 236, 0.18);
}

.chatbot-avatar.is-user {
  background: rgba(19, 91, 236, 0.08);
  border: 1px solid rgba(19, 91, 236, 0.16);
  color: var(--accent);
}

.chatbot-message-content {
  max-width: min(100%, 560px);
  display: grid;
  gap: 0.32rem;
}

.chatbot-message.is-user .chatbot-message-content {
  justify-items: end;
}

.chatbot-message-label {
  padding: 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-bubble {
  max-width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(207, 215, 231, 0.95);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chatbot-message.is-user .chatbot-bubble {
  background: linear-gradient(135deg, rgba(17, 92, 214, 0.12), rgba(240, 109, 26, 0.16));
  border-color: rgba(17, 92, 214, 0.24);
}

.chatbot-composer {
  display: grid;
  gap: 0.7rem;
}

.chatbot-composer textarea,
.chatbot-handoff textarea {
  width: 100%;
  min-height: 98px;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(207, 215, 231, 0.95);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  resize: vertical;
}

.chatbot-composer textarea:focus,
.chatbot-handoff textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 92, 214, 0.12);
}

.chatbot-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.chatbot-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chatbot-secondary-action {
  min-height: 42px;
  padding: 0.65rem 0.95rem;
}

.chatbot-handoff {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(186, 169, 141, 0.45);
}

.chatbot-handoff[hidden] {
  display: none;
}

.chatbot-handoff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.chatbot-handoff-status {
  min-height: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.notice {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 80;
  max-width: 360px;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: #10203a;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.notice.show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  padding: 4rem 0 2rem;
  background: #ffffff;
  color: var(--text-muted);
  border-top: 1px solid rgba(231, 235, 243, 1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem;
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer h3,
.footer h4 {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-weight: 700;
}

.footer .brand-copy strong {
  color: var(--text);
}

.footer .brand-copy span {
  color: var(--text-muted);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.65rem;
}

.footer-summary {
  margin: 0;
  max-width: 32rem;
}

.footer a:hover {
  color: var(--brand);
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(231, 235, 243, 1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-base-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.centered {
  text-align: center;
}

.stack-sm {
  display: grid;
  gap: 0.8rem;
}

.stack-md {
  display: grid;
  gap: 1.15rem;
}

@media (max-width: 1040px) {
  .desktop-nav,
  .nav-actions .button-secondary {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
}

@media (min-width: 901px) {
  .chatbot-page-aside {
    position: sticky;
    top: 110px;
  }
}

@media (max-width: 900px) {
  .hero-media,
  .feature-media,
  .split-media,
  .case-media {
    min-height: 320px;
  }

  .quote-aside {
    position: static;
  }

  .chatbot-page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section,
  .hero,
  .page-hero {
    padding: 3.5rem 0;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-shell {
    min-height: 72px;
    gap: 0.85rem;
  }

  .brand-copy span {
    display: none;
  }

  .hero-title,
  .section-heading h1 {
    font-size: clamp(2.15rem, 12vw, 3.6rem);
  }

  .section-heading h2 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .nav-actions {
    width: auto;
    gap: 0.55rem;
  }

  .nav-actions .button,
  .nav-actions .button-secondary {
    width: auto;
    min-height: 44px;
    padding: 0.7rem 1rem;
  }

  .result-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .chatbot-actions,
  .chatbot-composer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions > .button,
  .form-actions > .button-secondary,
  .result-actions > .button,
  .result-actions > .button-secondary {
    width: 100%;
  }

  .chatbot-composer-actions > .button,
  .chatbot-actions > .button,
  .chatbot-actions > .button-secondary {
    width: 100%;
  }

  .chatbot-page-intro h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .chatbot-page-shell .chatbot-panel {
    min-height: 600px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .nav-actions .button {
    padding: 0.68rem 0.9rem;
    font-size: 0.9rem;
  }

  .hero-media,
  .feature-media,
  .split-media,
  .case-media {
    min-height: 260px;
  }

  .chatbot-widget {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    width: auto;
    align-items: stretch;
  }

  .chatbot-toggle {
    width: 100%;
    justify-content: center;
  }

  .chatbot-panel {
    padding: 0.9rem;
    border-radius: 22px;
    max-height: calc(100vh - 7rem - env(safe-area-inset-bottom));
  }

  .chatbot-page-shell .chatbot-panel {
    max-height: none;
    border-radius: 24px;
    min-height: 560px;
    padding: 1rem;
  }

  .chatbot-bubble {
    max-width: 94%;
  }

  .chatbot-messages {
    min-height: 96px;
    max-height: min(16vh, 150px);
  }

  .chatbot-page-shell .chatbot-messages {
    min-height: 240px;
    max-height: none;
  }

  .chatbot-handoff-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-header {
    align-items: flex-start;
  }

  .chatbot-header-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
  }

  .chatbot-message {
    gap: 0.5rem;
  }

  .chatbot-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 0.64rem;
  }

  .chatbot-page-card {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .chatbot-page-contact {
    font-size: 0.9rem;
  }

  .timeline-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
  }

  .step-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .lightbox-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .notice {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    max-width: none;
  }
}

@media (max-width: 420px) {
  .page-hero-card,
  .form-card,
  .card,
  .blog-card,
  .price-card,
  .case-card,
  .role-card,
  .policy-card,
  .info-card,
  .stat-card,
  .metric,
  .timeline-item,
  .cta-panel {
    padding: 1rem;
  }

  .faq-item {
    padding: 0 1rem;
  }

  .faq-item summary {
    align-items: flex-start;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .filter-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chip,
  .pill,
  .tag {
    width: 100%;
  }
}

.layout-container,
.layout-content-container {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1600px) {
  .max-w-\[1280px\] {
    max-width: 1400px !important;
  }

  .max-w-\[1200px\] {
    max-width: 1320px !important;
  }

  .max-w-\[960px\] {
    max-width: 1080px !important;
  }
}

@media (max-width: 640px) {
  header .flex.flex-1.max-w-\[1280px\],
  header .flex.flex-1.max-w-\[1200px\],
  header .flex.flex-1.max-w-\[960px\] {
    min-width: 0;
    gap: 0.75rem;
  }

  header a[href="index.html"] {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.55rem !important;
  }

  header a[href="index.html"] h1,
  header a[href="index.html"] h2,
  header a[href="index.html"] strong,
  header a[href="index.html"] span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  header a[href="index.html"] h1,
  header a[href="index.html"] h2 {
    font-size: clamp(0.95rem, 4.6vw, 1.1rem) !important;
    line-height: 1.05 !important;
  }

  header a.rounded-lg.h-10,
  header a.rounded-lg.h-9 {
    min-width: 0 !important;
    padding-inline: 0.78rem !important;
  }

  .min-w-\[320px\],
  .min-w-\[140px\],
  .min-w-\[84px\],
  .min-w-\[46px\] {
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  header .flex.items-center.gap-4 > a[href="chatbot.html"],
  header .flex.items-center.gap-3 > a[href="chatbot.html"],
  header .flex.items-center.gap-2 > a[href="chatbot.html"] {
    display: none !important;
  }

  header .flex.items-center.gap-4,
  header .flex.items-center.gap-3,
  header .flex.items-center.gap-2 {
    gap: 0.45rem;
  }
}

@media (max-width: 520px) {
  h1.text-6xl,
  h1.text-5xl,
  h1.text-4xl,
  h1.text-3xl {
    font-size: clamp(2rem, 8.8vw, 2.8rem) !important;
    line-height: 1.08 !important;
  }

  h2.text-4xl,
  h2.text-3xl {
    font-size: clamp(1.55rem, 7.4vw, 2.2rem) !important;
    line-height: 1.12 !important;
  }

  .flex.gap-4.flex-wrap.justify-center > a,
  .flex.gap-4.flex-wrap.justify-center > button,
  .flex.gap-3.relative.z-10.mt-4 > a,
  .flex.gap-3.relative.z-10.mt-4 > button,
  .flex.gap-4.relative.z-10.mt-4 > a,
  .flex.gap-4.relative.z-10.mt-4 > button {
    width: 100%;
  }

  .flex.gap-3.relative.z-10.mt-4,
  .flex.gap-4.relative.z-10.mt-4 {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
  }

  .chatbot-page-intro {
    gap: 0.75rem;
    padding-inline: 0.25rem;
  }

  .chatbot-page-intro h1 {
    font-size: clamp(1.9rem, 7.8vw, 2.7rem);
    line-height: 1.04;
  }

  .chatbot-page-intro p {
    font-size: 0.96rem;
  }

  .chatbot-page-badge {
    padding-inline: 0.75rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  header .flex.items-center.gap-4,
  header .flex.items-center.gap-3 {
    gap: 0.35rem;
  }

  header a[href="chatbot.html"].rounded-lg {
    display: none !important;
  }

  header #mobile-menu-btn {
    padding: 0.45rem;
  }
}
