:root {
  --primary: #1f6ae1;
  --accent: #f59e0b;
  --navy: #0f172a;
  --light: #f1f5f9;
  --card: #ffffff;
  --muted: #475569;
  --line: #e2e8f0;
  --shadow-soft: 0 22px 54px rgba(15, 23, 42, 0.16);
  --shadow-light: 0 10px 26px rgba(15, 23, 42, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--light);
  color: var(--navy);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-light);
}

.button.secondary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-light);
}

.button.ghost {
  background: rgba(31, 106, 225, 0.08);
  border-color: rgba(31, 106, 225, 0.25);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  backdrop-filter: blur(14px);
  background: rgba(241, 245, 249, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-nav .brand,
.top-nav .nav-links {
  display: flex;
  align-items: center;
}

.top-nav .brand {
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
}

.brand-mark {
  width: 52px;
  height: 52px;
  background-color: #ffffff;
  background-image: url("../lbd-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  overflow: hidden;
  text-indent: 120%;
  white-space: nowrap;
}

.brand-mark.small {
  width: 44px;
  height: 44px;
}

.brand-name {
  font-size: 1rem;
  font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.top-nav .nav-links {
  list-style: none;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--navy);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 150ms ease, color 150ms ease;
}

.nav-links a:hover {
  background: rgba(31, 106, 225, 0.12);
}

.nav-cta {
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--primary);
  background: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 24px 110px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(circle at 16% 22%, rgba(31, 106, 225, 0.2), transparent 40%),
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.22), transparent 38%),
    radial-gradient(circle at 70% 80%, rgba(31, 106, 225, 0.12), transparent 42%);
  opacity: 0.9;
}

.hero::after {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0) 0%, rgba(241, 245, 249, 1) 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 96vw);
  margin: 40px auto 0;
  display: grid;
  gap: 42px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-copy .lede {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 160px;
  box-shadow: var(--shadow-light);
}

.stat-number {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-visual {
  display: grid;
  gap: 18px;
  justify-items: end;
}

.hero-visual img {
  width: min(460px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-light);
}

.panel-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  width: min(420px, 100%);
}

.panel-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--muted);
}

.panel-price {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.panel-note {
  margin: 0 0 16px;
}

.panel-list {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.panel-list li + li {
  margin-top: 8px;
}

.hero-badge {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 20px auto 0;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-light);
}

.section {
  padding: 96px 24px;
}

.section-heading {
  width: min(780px, 94vw);
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 14px;
  line-height: 1.2;
}

.pillars {
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.pillar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-light);
}

.pillar h3 {
  margin-bottom: 10px;
}

.cards {
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-visual,
.process-visual {
  width: min(1100px, 94vw);
  margin: 0 auto 36px;
  display: grid;
  place-items: center;
}

.section-visual img,
.process-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-light);
}

.section-visual.services-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-light);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(31, 106, 225, 0.4);
}

.card h3 {
  margin-bottom: 10px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 14px;
}

.card-media {
  width: 100%;
  height: 160px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: var(--shadow-light);
}

.card-media.abstract {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(31, 106, 225, 0.18), rgba(245, 158, 11, 0.18));
  position: relative;
  overflow: hidden;
}

.card-media.abstract::before,
.card-media.abstract::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.card-media.abstract::before {
  top: -30px;
  left: -20px;
}

.card-media.abstract::after {
  bottom: -40px;
  right: -20px;
}

.process {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(241, 245, 249, 0.85));
}

.steps {
  width: min(1100px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact {
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-wrapper {
  width: min(1100px, 96vw);
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-copy h2 {
  margin-bottom: 12px;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-points li {
  position: relative;
  padding-left: 20px;
}

.contact-points li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 700;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--navy);
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 24px 30px;
  color: #e2e8f0;
}

.footer p {
  color: rgba(226, 232, 240, 0.85);
}

.footer-inner {
  width: min(1200px, 96vw);
  margin: 0 auto 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e2e8f0;
}

.footer-note {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.8);
}

.footer-copy {
  text-align: center;
  color: rgba(226, 232, 240, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

/* ================================
   INNER / SERVICE / PORTFOLIO PAGES
================================ */
.page-hero {
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 16% 30%, rgba(31, 106, 225, 0.2), transparent 36%),
    radial-gradient(circle at 82% 24%, rgba(245, 158, 11, 0.2), transparent 32%);
  opacity: 0.9;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 90px;
  width: 320px;
  height: 320px;
  background: url("../images/page-hero-illustration.svg") no-repeat center / contain;
  opacity: 0.9;
  pointer-events: none;
}

.page-hero .page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1080px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.15;
}

.breadcrumbs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-section {
  padding: 70px 24px;
  background: var(--light);
}

.page-section.alt {
  background: #e8eef6;
  border-block: 1px solid var(--line);
}

.page-section .section-inner {
  width: min(1080px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.page-section .section-inner.blog-layout {
  width: min(1200px, 96vw);
}

.two-col {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.detail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.detail-card h3 {
  margin-top: 0;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.list-check li {
  position: relative;
  padding-left: 20px;
}

.list-check li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.package-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.package-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-light);
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  background: rgba(31, 106, 225, 0.1);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  box-shadow: var(--shadow-light);
}

.faq-item h4 {
  margin: 0 0 6px;
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portfolio-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-light);
}

.portfolio-card h3 {
  margin-top: 0;
}

.portfolio-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #f1e7d3;
}

/* ================================
   BLOG
================================ */
.blog-layout {
  grid-template-columns: minmax(280px, 420px) 1fr;
  align-items: start;
}

.blog-aside {
  display: grid;
  gap: 18px;
}

.blog-posts {
  display: grid;
  gap: 24px;
}

.section-heading.align-left {
  text-align: left;
  width: 100%;
  margin: 0;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pills .pill {
  margin-bottom: 0;
}

.feature-panel {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 32px;
  background: linear-gradient(155deg, rgba(31, 106, 225, 0.14), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(31, 106, 225, 0.25);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.feature-panel::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: rgba(31, 106, 225, 0.16);
}

.feature-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-panel h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.feature-panel p {
  margin-bottom: 14px;
}

.feature-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.feature-stats .stat-number {
  font-size: 1.4rem;
}

.feature-stats .stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.accent-card {
  background: #fff4db;
  border-color: rgba(245, 158, 11, 0.35);
}

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

.blog-grid-2 {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-light);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(31, 106, 225, 0.4);
}

.blog-card h3 {
  margin: 6px 0;
}

.blog-card .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.newsletter {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-light);
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #f8fafc;
}

.subscribe-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 999;
}

.subscribe-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.subscribe-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.subscribe-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 90vw);
  background: #ffffff;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.subscribe-modal-panel h2 {
  margin-bottom: 12px;
}

.subscribe-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

/* ================================
   ARTICLE PAGES
================================ */
.article-body {
  max-width: 780px;
}

.article-body h2,
.article-body h3 {
  margin-top: 24px;
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-meta {
  color: var(--muted);
  font-weight: 600;
}

/* ================================
   CHAT WIDGET
================================ */
.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  min-width: 78px;
  height: 46px;
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  padding: 0 14px;
}

.chat-launcher::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  transform: rotate(45deg);
  border-bottom-right-radius: 3px;
}

.chat-widget {
  position: fixed;
  right: 20px;
  top: auto;
  bottom: 90px;
  z-index: 950;
  width: min(350px, calc(100vw - 20px));
  height: min(520px, calc(100vh - 102px));
  max-height: calc(100vh - 110px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: none;
  min-height: 420px;
  flex-direction: column;
}

.chat-close-float {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.chat-widget.is-open {
  display: flex;
}

.chat-head {
  background: var(--navy);
  color: #ffffff;
  padding: 10px 12px;
  padding-right: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 25;
  flex: 0 0 auto;
}

.chat-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
}

.chat-close {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 10px;
  background: #f8fafc;
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: start;
}

.chat-msg {
  width: auto;
  display: inline-block;
  max-width: 82%;
  align-self: start;
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.86rem;
  transition: opacity 320ms ease, transform 320ms ease;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg.menu-prompt {
  max-width: 74%;
  font-size: 0.9rem;
  line-height: 1.15;
  padding: 4px 8px;
  border-radius: 10px;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.chat-msg.intro-msg {
  max-width: 78%;
  font-size: 0.9rem;
  line-height: 1.15;
  padding: 4px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border-color: rgba(31, 106, 225, 0.35);
}

.chat-msg.is-fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.chat-msg.is-fade-in {
  opacity: 0;
  transform: translateY(4px);
}

.chat-msg.user {
  justify-self: end;
  margin-left: 0;
  border-color: rgba(31, 106, 225, 0.24);
  background: rgba(31, 106, 225, 0.08);
  color: var(--navy);
}

.chat-controls {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 8px;
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
  overflow: hidden;
  position: sticky;
  bottom: 0;
  z-index: 8;
}

.chat-controls.form-mode .chat-menu-buttons,
.chat-controls.form-mode .chat-menu-reset,
.chat-controls.form-mode .chat-input-row,
.chat-controls.form-mode .chat-note {
  display: none;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.chat-menu-buttons {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  max-height: none;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: #ffffff;
}

.chat-menu-buttons.is-hidden {
  display: none;
}

.chat-menu-btn {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--navy);
  padding: 6px 8px;
  font-size: 0.76rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.chat-menu-btn:hover {
  border-color: rgba(31, 106, 225, 0.45);
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

.chat-menu-reset {
  border: 1px dashed rgba(31, 106, 225, 0.45);
  border-radius: 8px;
  background: #f8fafc;
  color: #1e3a8a;
  padding: 6px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-menu-reset.is-hidden {
  display: none;
}

.chat-widget input,
.chat-widget textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background: #f8fafc;
  font-size: 0.88rem;
  color: var(--navy);
}

.chat-send {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.86rem;
}

.chat-lead-form {
  display: none;
  gap: 10px;
  position: static;
  padding: 8px;
  overflow: auto;
  max-height: 250px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.chat-hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chat-lead-form.is-visible {
  display: grid;
}

.chat-lead-form textarea[name="details"] {
  min-height: 96px;
  line-height: 1.35;
}

.chat-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.chat-consent a {
  color: var(--primary);
  text-decoration: underline;
}

.chat-note {
  margin: 0;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.3;
}

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 900px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .page-hero::after {
    opacity: 0.35;
    right: -120px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 12px;
  }

  .hero-inner {
    margin-top: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-visual {
    justify-items: start;
  }

  .page-hero::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 96px 18px 80px;
  }

  .hero-inner,
  .section-heading,
  .pillars,
  .cards,
  .steps,
  .section-visual,
  .process-visual,
  .contact-wrapper,
  .footer-inner,
  .page-hero .page-hero-inner,
  .page-section .section-inner {
    width: 100%;
  }

  .section {
    padding: 72px 18px;
  }

  .page-hero,
  .page-section {
    padding-inline: 18px;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat {
    min-width: 0;
    width: 100%;
  }

  .panel-card {
    width: 100%;
    padding: 20px;
  }

  .card,
  .pillar,
  .step,
  .detail-card,
  .package-card,
  .portfolio-card,
  .blog-card,
  .faq-item {
    padding: 18px;
  }

  .card-media {
    height: 140px;
  }

  .contact-wrapper {
    padding: 22px 18px;
  }

  .subscribe-modal-panel {
    width: min(420px, 92vw);
    padding: 22px;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
  }

  .chat-widget {
    right: 12px;
    top: auto;
    bottom: 82px;
    width: calc(100vw - 24px);
    height: min(500px, calc(100vh - 92px));
    max-height: calc(100vh - 92px);
  }
}
