.hero {
  position: relative;
  padding: 4.4rem 0 1.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 2.4rem;
  min-height: auto;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 1.35rem;
  max-width: 70rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(3.3rem, 7.2vw, 6.6rem);
  max-width: 12ch;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 38rem;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-points {
  display: none;
}

.hero-visual {
  position: relative;
  width: min(100%, 86rem);
  padding: 0.35rem 0 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -5rem -8rem 12rem;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 220, 129, 0.36), transparent 20%),
    radial-gradient(circle at 38% 30%, rgba(255, 196, 156, 0.24), transparent 18%),
    radial-gradient(circle at 67% 28%, rgba(77, 71, 79, 0.22), transparent 16%),
    radial-gradient(circle at 18% 24%, rgba(194, 203, 255, 0.22), transparent 18%);
  pointer-events: none;
  filter: blur(42px);
  z-index: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 80rem);
  height: 36rem;
  transform: translateX(-50%);
  border-radius: 2rem;
  background:
    linear-gradient(90deg, rgba(204, 209, 255, 0.5) 0%, rgba(255, 188, 156, 0.42) 44%, rgba(255, 117, 84, 0.82) 100%);
  box-shadow: 0 42px 110px rgba(31, 25, 29, 0.12);
  z-index: 0;
}

html[data-theme="dark"] .hero-visual::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(205, 152, 96, 0.18), transparent 20%),
    radial-gradient(circle at 34% 26%, rgba(102, 113, 196, 0.14), transparent 19%),
    radial-gradient(circle at 70% 24%, rgba(146, 94, 84, 0.16), transparent 18%),
    radial-gradient(circle at 20% 32%, rgba(78, 88, 162, 0.1), transparent 18%),
    radial-gradient(circle at 60% 42%, rgba(255, 255, 255, 0.05), transparent 12%);
  filter: blur(70px);
  opacity: 1;
}

html[data-theme="dark"] .hero-visual::after {
  background:
    radial-gradient(circle at 12% 24%, rgba(109, 121, 211, 0.16), transparent 24%),
    radial-gradient(circle at 88% 76%, rgba(203, 144, 97, 0.22), transparent 26%),
    linear-gradient(90deg, rgba(14, 16, 28, 0.96) 0%, rgba(20, 18, 24, 0.96) 42%, rgba(40, 28, 30, 0.94) 100%);
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.hero-copy,
.hero-visual,
.section-header,
.card-grid > *,
.usecase-tabs,
.visual-card,
.usecase-copy,
.consult-card,
.quote-panel,
.cta-panel,
.footer-shell {
  --reveal-offset-y: 28px;
  --reveal-scale: 0.985;
}

.platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.difference-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.usecase-shell {
  display: grid;
  gap: 2rem;
}

.usecase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.75rem;
  align-items: start;
}

.difference-grid,
.platform-grid {
  margin-top: 2.35rem;
}

.difference-matrix {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.35rem;
  padding: 1.15rem;
  border: 1px solid rgba(34, 29, 32, 0.06);
  border-radius: calc(var(--radius-md) + 0.25rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 249, 247, 0.9));
  box-shadow:
    0 28px 68px rgba(31, 25, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.difference-matrix-head,
.difference-matrix-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.difference-matrix-head {
  padding: 0;
}

.difference-matrix-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(34, 29, 32, 0.06);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.difference-matrix-head .is-featured {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  white-space: nowrap;
}

.difference-brand-part {
  display: inline-block;
}

.difference-brand-eight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12em;
  line-height: 0.82;
  transform: translateY(0.03em);
  background: linear-gradient(180deg, #ff4db3 0%, #ff5f77 38%, #d04cff 72%, #6b7dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.difference-matrix-row {
  padding: 0;
  border: 0;
  background: transparent;
}

.difference-matrix-label {
  display: flex;
  align-items: center;
  min-height: 6.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(34, 29, 32, 0.06);
  box-shadow: 0 12px 30px rgba(31, 25, 29, 0.04);
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.difference-matrix-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  min-height: 6.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  box-shadow: 0 12px 30px rgba(31, 25, 29, 0.04);
}

.difference-matrix-row > .difference-matrix-cell:nth-child(2) {
  background:
    radial-gradient(circle at 14% 16%, rgba(240, 156, 168, 0.16), transparent 38%),
    linear-gradient(90deg, rgba(255, 247, 248, 0.98), rgba(249, 238, 241, 0.94));
  border-color: rgba(219, 188, 194, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(201, 132, 145, 0.08),
    0 12px 30px rgba(31, 25, 29, 0.04);
}

.difference-matrix-row > .difference-matrix-cell:nth-child(3) {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 214, 102, 0.14), transparent 36%),
    linear-gradient(90deg, rgba(255, 251, 238, 0.98), rgba(248, 242, 218, 0.94));
  border-color: rgba(229, 212, 151, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(214, 184, 94, 0.08),
    0 12px 30px rgba(31, 25, 29, 0.04);
}

.difference-matrix-row > .difference-matrix-cell:nth-child(4),
.difference-matrix-cell.is-featured {
  background:
    radial-gradient(circle at 12% 18%, rgba(116, 210, 150, 0.14), transparent 38%),
    linear-gradient(90deg, rgba(242, 252, 246, 0.98), rgba(232, 246, 238, 0.94));
  border-color: rgba(194, 224, 203, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(93, 167, 121, 0.08),
    0 12px 30px rgba(31, 25, 29, 0.04);
}

.difference-matrix-row > .difference-matrix-cell:nth-child(2) p,
.difference-matrix-row > .difference-matrix-cell:nth-child(2) .difference-mobile-label {
  color: #b25e6d;
}

.difference-matrix-row > .difference-matrix-cell:nth-child(3) p,
.difference-matrix-row > .difference-matrix-cell:nth-child(3) .difference-mobile-label {
  color: #a67a1f;
}

.difference-matrix-cell.is-featured p,
.difference-matrix-cell.is-featured .difference-mobile-label {
  color: var(--text);
}

.difference-matrix-row > .difference-matrix-cell:nth-child(4) p,
.difference-matrix-row > .difference-matrix-cell:nth-child(4) .difference-mobile-label,
.difference-matrix-cell.is-featured p,
.difference-matrix-cell.is-featured .difference-mobile-label {
  font-weight: 700;
}

.difference-matrix-cell p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.difference-mobile-label {
  display: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="dark"] .difference-matrix-row {
  background: transparent;
  border-color: transparent;
}

html[data-theme="dark"] .difference-matrix-head .is-featured {
  color: var(--text);
}

html[data-theme="dark"] .difference-matrix {
  border-color: rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(14, 14, 18, 0.98), rgba(10, 10, 14, 0.96));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .difference-matrix-head > span {
  background: rgba(18, 18, 24, 0.84);
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .difference-matrix-label,
html[data-theme="dark"] .difference-matrix-cell {
  background: rgba(18, 18, 24, 0.84);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .difference-matrix-row > .difference-matrix-cell:nth-child(2) {
  background:
    radial-gradient(circle at 14% 16%, rgba(197, 94, 117, 0.18), transparent 36%),
    linear-gradient(90deg, rgba(37, 20, 25, 0.9), rgba(29, 18, 22, 0.88));
  border-color: rgba(140, 84, 97, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(215, 135, 152, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .difference-matrix-row > .difference-matrix-cell:nth-child(3) {
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 182, 85, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(43, 36, 15, 0.9), rgba(33, 28, 12, 0.88));
  border-color: rgba(146, 125, 62, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(232, 204, 111, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .difference-matrix-cell.is-featured {
  background:
    radial-gradient(circle at 12% 18%, rgba(97, 190, 135, 0.16), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(90deg, rgba(17, 31, 23, 0.96), rgba(12, 21, 16, 0.94));
  border-color: rgba(83, 139, 100, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(103, 178, 126, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .difference-matrix-row > .difference-matrix-cell:nth-child(2) p,
html[data-theme="dark"] .difference-matrix-row > .difference-matrix-cell:nth-child(2) .difference-mobile-label {
  color: #ffbcbc;
}

html[data-theme="dark"] .difference-matrix-row > .difference-matrix-cell:nth-child(3) p,
html[data-theme="dark"] .difference-matrix-row > .difference-matrix-cell:nth-child(3) .difference-mobile-label {
  color: #f5e2a0;
}

html[data-theme="dark"] .difference-matrix-cell.is-featured p,
html[data-theme="dark"] .difference-matrix-cell.is-featured .difference-mobile-label {
  color: #dff8e8;
}

.consult-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  gap: 1.9rem;
  align-items: stretch;
}

.consult-card {
  padding: 2rem;
}

.consult-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.cta {
  padding-bottom: 7rem;
}

.cta-panel {
  padding: 2.7rem;
  text-align: center;
}

.cta-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 14ch;
  margin-inline: auto;
  text-wrap: balance;
}

.cta-panel p {
  max-width: 700px;
  margin: 1rem auto 0;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-shell {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 1.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

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

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

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

.footer-top p,
.footer-meta,
.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-links a,
.footer-meta a {
  text-decoration: none;
  font-weight: 600;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
}

.footer-meta a {
  transition: color var(--transition);
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .hero-grid,
  .usecase-layout,
  .consult-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-title {
    max-width: 11ch;
  }

  .hero-stats {
    display: none;
  }

  /* Network graph: contain within viewport on small screens */
  .visual-card {
    overflow-x: hidden;
    min-height: 400px;
  }

  .graph-canvas-wrap {
    min-height: 300px;
    max-width: 100%;
  }

  .chat-shell {
    margin-inline: auto;
  }

  .hero-visual::after {
    height: 28rem;
    width: min(100%, 100%);
  }

  /* ─── Mobile navigation: full-width bar + overlay hamburger menu ─── */

  .site-header {
    padding-top: 0;
  }

  /* Full-width navbar, no border radius on small viewports */
  .site-header .container.nav-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header .nav-shell {
    flex-wrap: nowrap;
    justify-content: space-between;
    border-radius: 0;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-shell {
    position: relative;
  }

  /* Dropdown wrapper: overlay when open (does not push content); solid background for readability */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 18px 44px rgba(9, 30, 45, 0.12);
    transition:
      opacity 220ms ease,
      visibility 220ms ease,
      max-height 280ms ease;
  }

  html[data-theme="dark"] .nav-dropdown {
    background: var(--bg-surface);
    border-color: rgba(236, 244, 243, 0.12);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  }

  .nav-dropdown:has(.site-nav.is-open) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: min(85vh, 32rem);
    overflow-y: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-dropdown .nav-actions {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 0;
    border-top: 1px solid var(--border);
  }

  .nav-dropdown:has(.site-nav.is-open) .nav-actions {
    display: flex;
  }

  .nav-dropdown .nav-actions .button,
  .nav-dropdown .nav-actions .button-sm {
    flex: 1 1 100%;
  }

  .homepage-header-container {
    width: min(100%, calc(100% - 1rem));
  }
}

@media (max-width: 980px) {
  .section {
    padding: 4.5rem 0;
  }

  .platform-grid,
  .difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consult-layout {
    gap: 1.5rem;
  }

  .difference-matrix-head,
  .difference-matrix-row {
    grid-template-columns: minmax(90px, 0.7fr) repeat(3, minmax(0, 1fr));
  }

  .footer-shell {
    text-align: center;
  }

  .footer-top,
  .footer-links,
  .footer-meta {
    justify-content: center;
  }
}

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

  .hero {
    padding-top: 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8.6vw, 3rem);
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .hero-stat {
    min-width: 130px;
  }

  .platform-grid,
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .difference-matrix {
    padding: 0.9rem;
  }

  .difference-matrix-head {
    display: none;
  }

  .difference-matrix-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .difference-matrix-label {
    min-height: auto;
    padding: 0.95rem 1rem;
  }

  .difference-matrix-cell {
    min-height: auto;
    padding: 0.95rem 1rem;
  }

  .difference-mobile-label {
    display: inline-flex;
  }

  .usecase-mobile-picker {
    display: block;
  }

  .usecase-tabs {
    display: none;
  }

  .graph-header,
  .chat-topbar,
  .chat-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-bar {
    padding: 1rem 0 2rem;
  }

  .trust-chips {
    gap: 0.4rem;
  }

  .trust-chip {
    font-size: 0.76rem;
    padding: 0.45rem 0.8rem;
  }

  .trust-chip-separator {
    display: none;
  }

  .flow-card .flow-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }

  .visual-card {
    min-height: 380px;
  }

  .graph-canvas-wrap {
    min-height: 280px;
  }

  .consult-card {
    padding: 1.75rem 1.5rem;
  }

  .quote-panel {
    padding: 2rem 1.5rem 1.75rem;
  }

  .cta-panel {
    padding: 2.25rem 1.75rem;
  }

  .cta {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 1120px) {
  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-wrap {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto auto;
    border-radius: 1.6rem;
    padding: 0.95rem;
    gap: 0.75rem;
  }

  .homepage-header-shell {
    padding-inline: 0.95rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-shell.is-open .nav-wrap {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem;
    border-radius: 1.2rem;
  }

  .nav-wrap .nav-lang-switch {
    display: inline-flex;
    align-self: flex-start;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 2.9rem;
  }

  .header-actions {
    gap: 0.45rem;
    justify-self: end;
  }

  .homepage-header-shell .button-sm {
    display: none;
  }
}

@media (max-width: 680px) {
  .homepage-header-shell,
  .header-shell {
    padding: 0.82rem 0.88rem;
    gap: 0.55rem;
  }

  .site-header .brand {
    min-width: 0;
    gap: 0.52rem;
  }

  .site-header .brand-copy,
  .site-header .brand-wordmark-text,
  .site-header .brand-copy strong,
  .site-header .brand-name {
    min-width: 0;
    font-size: clamp(1.02rem, 4.8vw, 1.18rem);
  }

  .site-header .brand-icon {
    width: 3rem;
    height: 3rem;
  }

  .header-actions .lang-switch {
    display: none;
  }

  .theme-toggle,
  .menu-toggle {
    width: 2.45rem;
    height: 2.45rem;
  }
}

@media (max-width: 420px) {
  .homepage-header-container {
    width: min(100%, calc(100% - 0.7rem));
  }

  .homepage-header-shell,
  .header-shell {
    padding: 0.72rem 0.78rem;
  }

  .site-header .brand-icon {
    width: 2.72rem;
    height: 2.72rem;
  }

  .site-header .brand-wordmark-text,
  .site-header .brand-copy strong,
  .site-header .brand-name {
    font-size: 1rem;
  }
}

/* ─── Sub-page sections ─── */

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

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

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

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 3rem), var(--container-max-width));
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy {
    gap: 1.6rem;
  }

  .hero-stats {
    gap: 0.6rem;
  }

  .hero-stat {
    min-width: 0;
    flex: 1 1 calc(50% - 0.6rem);
    padding: 0.85rem 0.95rem;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .hero-stat span {
    font-size: 0.74rem;
  }

  /* Navbar: stable height on small viewports when row wraps */
  .nav-shell {
    min-height: 3.25rem;
    align-items: center;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .nav-shell,
  .usecase-copy,
  .capability-card,
  .difference-card,
  .consult-card {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .cta-panel {
    padding: 2.2rem 1.3rem;
  }

  .quote-panel {
    padding: 1.95rem 1.3rem 1.7rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button,
  .button-sm {
    width: 100%;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .flow-card .flow-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .flow-card {
    gap: 1rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
  }

  .section-copy,
  .lead {
    font-size: 0.95rem;
  }

  .cta {
    padding-bottom: 3.5rem;
  }

  .site-footer {
    padding-bottom: 1.5rem;
  }

  .footer-shell {
    padding: 1.2rem 1rem;
    gap: 1rem;
  }

  .footer-links {
    gap: 0.75rem;
  }
}

/* Very small viewports: compact brand so navbar stays one row and height stays stable */
@media (max-width: 400px) {
  .nav-shell {
    min-height: 3rem;
    padding: 0.5rem 0.75rem;
    gap: 0.6rem;
  }

  .brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
  }

  .brand-icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .brand-copy strong {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .site-header .brand-icon {
    width: 3rem;
    height: 3rem;
  }

  .site-header .brand-copy strong,
  .site-header .brand-name,
  .site-header .brand-wordmark-text {
    font-size: 1.12rem;
  }

  .nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    flex-shrink: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nav-actions .button-sm {
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
  }
}
