/* Cloud Softlab — desktop-first enterprise site */
:root {
  --cs-navy: #0c1222;
  --cs-navy-mid: #151d2e;
  --cs-slate: #1e293b;
  --cs-accent: #0ea5e9;
  --cs-accent-dim: #0284c7;
  --cs-muted: #64748b;
  --cs-line: #e2e8f0;
  --cs-bg: #f8fafc;
  --cs-white: #ffffff;
  --cs-max: 1280px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--cs-slate);
  background: var(--cs-white);
  line-height: 1.6;
  min-width: 1100px;
}

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

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ——— Top bar ——— */
.topbar {
  background: linear-gradient(180deg, #0a101c 0%, var(--cs-navy) 100%);
  color: #94a3b8;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0.5rem max(24px, calc((100% - var(--cs-max)) / 2 + 24px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  border-bottom: 1px solid rgba(14, 165, 233, 0.18);
}

.topbar strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* ——— Header + mega nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

.header-inner {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  overflow: visible;
}

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

.brand img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.12rem;
  min-width: 0;
}

.brand-text .name {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--cs-navy);
  letter-spacing: -0.025em;
}

.brand-text .legal {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.nav-primary {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nav-primary > ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

.nav-primary > ul > li {
  position: relative;
}

/* Utility cluster: Insights → Contact (must match nav order in build_site.py) */
.nav-primary > ul > li:nth-last-child(4) {
  margin-left: auto;
  border-left: 1px solid var(--cs-line);
  padding-left: clamp(0.5rem, 1.2vw, 1rem);
}

.nav-primary > ul > li > a {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 clamp(0.55rem, 0.65vw, 0.72rem);
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  letter-spacing: 0.01em;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.nav-primary > ul > li > a:hover,
.nav-primary > ul > li > a:focus-visible,
.nav-primary > ul > li:hover > a {
  color: var(--cs-accent-dim);
  border-bottom-color: var(--cs-accent);
}

.nav-primary > ul > li > a.nav-cta {
  margin-left: 0.35rem;
  height: auto;
  align-self: center;
  padding: 0.52rem 1.2rem;
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff !important;
  border-radius: 999px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.nav-primary > ul > li > a.nav-cta:hover {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(14, 165, 233, 0.42);
}

/* Top nav links with dropdown: caret hint */
.has-mega > a:not(.nav-cta)::after,
.has-sub > a:not(.nav-cta)::after {
  content: "";
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin-left: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.2em;
  opacity: 0.45;
}

.has-mega:hover > a:not(.nav-cta)::after,
.has-sub:hover > a:not(.nav-cta)::after {
  opacity: 0.85;
}

/* Mega panel: padding + negative margin hover bridge */
.has-mega .mega {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% - 2px);
  min-width: 560px;
  max-width: min(880px, calc(100vw - 48px));
  padding: 14px 1.5rem 1.35rem;
  margin-top: -10px;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Right-aligned mega (viewport edge): add .mega--align-right on li */
.has-mega.mega--align-right .mega {
  left: auto;
  right: 0;
  transform: none;
}

.mega h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-muted);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.mega-grid--3 {
  grid-template-columns: 1fr 1fr minmax(160px, 200px);
  gap: 1rem 1.5rem;
}

.mega-aside {
  border-left: 1px solid var(--cs-line);
  padding-left: 1.25rem;
}

.mega-aside h3 {
  margin-bottom: 0.75rem;
}

.mega-aside ul {
  list-style: none;
}

.mega-aside a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-accent-dim);
}

.mega-aside a span.desc {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--cs-muted);
  margin-top: 0.05rem;
}

.mega-aside a:hover {
  color: var(--cs-accent);
}

/* Single-column dropdown */
.has-sub .nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 280px;
  max-width: 340px;
  padding: 10px 0 0.65rem;
  margin-top: -8px;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}

.has-sub:hover .nav-dropdown,
.has-sub:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.has-sub .nav-dropdown a {
  display: block;
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  height: auto;
  border-bottom: none;
  line-height: 1.35;
}

.has-sub .nav-dropdown a:hover {
  background: #f1f5f9;
  color: var(--cs-accent-dim);
}

.has-sub .nav-dropdown a .dd-title {
  display: block;
  font-weight: 600;
  color: #334155;
}

.has-sub .nav-dropdown a .dd-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--cs-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.has-sub.mega--align-right .nav-dropdown {
  left: auto;
  right: 0;
}

.mega-grid ul {
  list-style: none;
}

.mega-grid a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
  border-radius: 4px;
}

.mega-grid a:hover {
  color: var(--cs-accent-dim);
}

.mega-grid a span.desc {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--cs-muted);
  margin-top: 0.1rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  height: min(78vh, 640px);
  min-height: 480px;
  overflow: hidden;
  background: var(--cs-navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide .hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 16s ease-in-out infinite alternate;
}

.hero-slide:nth-child(2) .hero-bg {
  animation-duration: 18s;
  animation-delay: -2s;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-1.5%, -1%);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(12, 18, 34, 0.94) 0%, rgba(12, 18, 34, 0.72) 45%, rgba(12, 18, 34, 0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(var(--cs-max), 720px);
}

.hero-content h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-content .lead {
  font-size: 1.125rem;
  color: rgba(226, 232, 240, 0.95);
  margin-bottom: 2rem;
  max-width: 540px;
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--cs-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
  width: fit-content;
}

.btn-primary:hover {
  background: var(--cs-accent-dim);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  border: none;
  cursor: pointer;
  transition: width 0.3s, border-radius 0.3s, background 0.3s;
}

.hero-dots button.is-current {
  width: 28px;
  border-radius: 5px;
  background: #fff;
}

/* ——— Cookie strip ——— */
.cookie-strip {
  position: relative;
  z-index: 20;
  max-width: var(--cs-max);
  margin: -3rem auto 0;
  padding: 0 24px 2rem;
}

.cookie-strip.hidden {
  display: none;
}

.cookie-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.cookie-strip__inner a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-strip__inner a:hover {
  color: #bae6fd;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-actions .btn-accept {
  padding: 0.45rem 1.1rem;
  background: var(--cs-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.cookie-actions .btn-accept:hover {
  background: var(--cs-accent-dim);
  color: #fff;
}

.cookie-actions .btn-dismiss {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #94a3b8;
  display: grid;
  place-items: center;
}

.cookie-actions .btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem max(24px, calc((100% - var(--cs-max)) / 2 + 24px));
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cs-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--cs-muted);
  font-size: 1rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cards-3 article {
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 10px;
  padding: 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.section--muted .cards-3 article {
  background: #fff;
}

.cards-3 article:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.cards-3 article[id] {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.cards-3 h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--cs-navy);
}

.cards-3 p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

.pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-accent-dim);
  background: #e0f2fe;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split .prose p {
  margin-bottom: 1rem;
  color: #475569;
  font-size: 0.95rem;
}

.list-check {
  list-style: none;
  margin-top: 1.5rem;
}

.list-check li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: #334155;
}

.list-check li[id] {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-accent);
}

.visual-panel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.visual-panel img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Tabs */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--cs-line);
  margin-bottom: 2rem;
  gap: 0;
}

.tab-bar button {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cs-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-bar button:hover {
  color: var(--cs-navy);
}

.tab-bar button.is-active {
  color: var(--cs-accent-dim);
  border-bottom-color: var(--cs-accent);
}

.tab-bar button[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.tab-panels .tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panels .tab-panel.is-visible {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--cs-line);
}

.tab-panel .tab-copy p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Principles (no testimonials / no team) */
.principles {
  background: var(--cs-navy);
  color: #e2e8f0;
  padding: 3.5rem max(24px, calc((100% - var(--cs-max)) / 2 + 24px));
}

.principles-inner {
  max-width: var(--cs-max);
  margin: 0 auto;
}

.principles h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.principle-grid article h3 {
  font-size: 1rem;
  color: #7dd3fc;
  margin-bottom: 0.5rem;
}

.principle-grid article p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* Contact */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--cs-max);
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 10px;
  padding: 2rem;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--cs-navy);
}

.contact-card dl {
  font-size: 0.9rem;
  color: #475569;
}

.contact-card dt {
  font-weight: 700;
  color: var(--cs-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin-top: 0.25rem;
}

/* Footer: full-width dark band */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #070d18 0%, #0c1222 38%, #0f172a 72%, #0a1628 100%);
  color: #94a3b8;
  padding: 3.25rem max(24px, calc((100% - var(--cs-max)) / 2 + 24px)) 1.75rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, #000 18%, #000 82%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  z-index: 0;
}

.site-footer::after {
  content: "";
  position: absolute;
  width: min(90vw, 900px);
  height: 220%;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(14, 165, 233, 0.14), transparent 65%),
    radial-gradient(ellipse 35% 30% at 70% 40%, rgba(99, 102, 241, 0.1), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: footerAura 14s ease-in-out infinite alternate;
}

@keyframes footerAura {
  0% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0.95;
    transform: translateX(-50%) scale(1.08);
  }
}

.footer-grid {
  position: relative;
  z-index: 1;
  max-width: var(--cs-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 2.25rem 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
  box-shadow: 0 1px 0 0 rgba(14, 165, 233, 0.08);
}

.footer-grid h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f8fafc;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
  font-weight: 700;
}

.footer-grid h4::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 0.95rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #22d3ee, #6366f1);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.footer-grid > div:first-child p {
  line-height: 1.68;
  color: #a8b9cf;
  margin: 0 0 0.25rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(14, 165, 233, 0.35);
  font-size: 0.875rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid > div:not(:first-child) a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-grid > div:not(:first-child) a::after {
  content: "›";
  font-size: 0.85em;
  color: rgba(125, 211, 252, 0);
  transform: translateX(-3px);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-grid > div:not(:first-child) a:hover {
  color: #e0f2fe;
  transform: translateX(2px);
}

.footer-grid > div:not(:first-child) a:hover::after {
  color: rgba(125, 211, 252, 0.95);
  transform: translateX(0);
}

.footer-legal {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(71, 85, 105, 0.55);
}

.footer-legal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(15, 23, 42, 0.65);
  color: #7dd3fc;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-legal a:hover {
  color: #f0f9ff;
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: var(--cs-max);
  margin: 1.75rem auto 0;
  padding-top: 1.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45) 20%, rgba(129, 140, 248, 0.4) 50%, rgba(56, 189, 248, 0.45) 80%, transparent);
  opacity: 0.85;
}

.footer-bottom span {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer::after {
    animation: none;
    opacity: 0.75;
  }

  .footer-grid > div:not(:first-child) a,
  .footer-grid > div:not(:first-child) a::after {
    transition: none;
  }

  .footer-grid > div:not(:first-child) a:hover {
    transform: none;
  }
}

/* Subpages: full-width banner under header (per-page image) */
.page-head-banner {
  min-height: 360px;
  height: 44vh;
  max-height: 560px;
  background-size: cover;
  background-position: center;
  background-color: var(--cs-navy);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.page-inner-main {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 3rem 24px 5rem;
  min-height: 42vh;
}

.page-placeholder {
  color: var(--cs-muted);
  font-size: 1.05rem;
}

.page-inner-main.prose .page-rich h1 {
  margin-top: 0;
}

.page-inner-main.prose .page-rich h2 {
  margin-top: 1.75rem;
}

.page-inner-main.prose .page-rich p {
  line-height: 1.78;
}

.page-inner-main--doc {
  max-width: 900px;
}

.page-inner-main--doc h1 {
  font-size: 1.75rem;
  color: var(--cs-navy);
  margin-bottom: 0.5rem;
}

.page-inner-main--doc h2 {
  font-size: 1.125rem;
  color: var(--cs-navy);
  margin: 2rem 0 0.75rem;
}

.page-inner-main--doc p,
.page-inner-main--doc li {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.page-inner-main--doc ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.page-inner-main--doc .doc-meta {
  font-size: 0.875rem;
  color: var(--cs-muted);
  margin-bottom: 2rem;
}

.page-inner-main--doc .doc-back {
  display: none;
}

/* Legal document pages */
.doc-header {
  min-width: 1100px;
  background: var(--cs-navy);
  padding: 0.85rem max(24px, calc((100% - 900px) / 2 + 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.doc-header .brand-mini {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.doc-header .brand-mini img {
  height: 32px;
  width: auto;
}

.doc-header a.home {
  color: #7dd3fc;
  font-weight: 600;
  font-size: 0.875rem;
}

.doc-header a.home:hover {
  color: #bae6fd;
}

.doc-footer {
  min-width: 1100px;
  background: var(--cs-navy-mid);
  color: #94a3b8;
  padding: 1.5rem max(24px, calc((100% - 900px) / 2 + 24px));
  font-size: 0.8125rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.doc-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.doc-footer a {
  color: #7dd3fc;
  font-weight: 600;
}

.doc-footer a:hover {
  color: #bae6fd;
}

.doc-page {
  min-width: 1100px;
  background: var(--cs-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.doc-page main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 32px 4rem;
  background: #fff;
  border-left: 1px solid var(--cs-line);
  border-right: 1px solid var(--cs-line);
}

.doc-page h1 {
  font-size: 1.75rem;
  color: var(--cs-navy);
  margin-bottom: 0.5rem;
}

.doc-page .doc-meta {
  font-size: 0.875rem;
  color: var(--cs-muted);
  margin-bottom: 2rem;
}

.doc-page h2 {
  font-size: 1.125rem;
  color: var(--cs-navy);
  margin: 2rem 0 0.75rem;
}

.doc-page p,
.doc-page li {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.doc-page ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.doc-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cs-accent-dim);
}

.doc-back:hover {
  color: var(--cs-accent);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* In-page anchors: offset for fixed header */
.scroll-target {
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--header-h) + 36px);
}

/* Insights / case listings, long reads, quote page */
.page-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1rem;
}

.listing-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.listing-tile {
  display: block;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.listing-tile:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.listing-thumb {
  height: 148px;
  background-size: cover;
  background-position: center;
}

.listing-body {
  padding: 1rem 1.15rem 1.35rem;
}

.listing-body h2 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--cs-navy);
}

.listing-body p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .listing-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .listing-grid-6 {
    grid-template-columns: 1fr;
  }
}

.article-long {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.article-head h1 {
  font-size: 1.65rem;
  color: var(--cs-navy);
  margin-bottom: 0.5rem;
}

.article-figure {
  margin: 1.25rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cs-line);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-hero img {
  max-height: 420px;
  object-fit: cover;
}

.article-body h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.65rem;
  color: var(--cs-navy);
}

.article-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 0.9rem;
}

.article-two-img {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

@media (max-width: 720px) {
  .article-two-img {
    grid-template-columns: 1fr;
  }
}

.article-back {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  align-items: start;
}

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

.quote-panel {
  background: #f8fafc;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.75rem;
}

.quote-form-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--cs-navy);
}

.quote-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.qf-input,
.qf-textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
}

.qf-textarea {
  resize: vertical;
  min-height: 140px;
}

.qf-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}

.qf-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

/* ——— Enrichment: FAQ, testimonials, forms, showcase, scroll reveal ——— */
.page-enrichment {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.csl-panel {
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.05);
}

.csl-panel h2,
.csl-panel h3 {
  font-size: 1.15rem;
  color: var(--cs-navy);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.csl-panel h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
}

.csl-panel p,
.csl-panel li {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.72;
  margin-bottom: 0.65rem;
}

.csl-muted {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

.csl-faq-list details {
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0.55rem;
  overflow: hidden;
}

.csl-faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 0.9rem;
  color: #0f172a;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.csl-faq-list summary::after {
  content: "+";
  font-weight: 700;
  color: var(--cs-accent);
  flex-shrink: 0;
}

.csl-faq-list details[open] summary::after {
  content: "–";
}

.csl-faq-list details p {
  padding: 0 1rem 1rem;
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
}

.csl-quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.csl-quote {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.15rem 1.2rem 1.2rem;
  position: relative;
}

.csl-quote::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  left: 0.65rem;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(14, 165, 233, 0.25);
  font-family: Georgia, serif;
}

.csl-quote blockquote {
  margin: 0.25rem 0 0.65rem;
  padding-left: 0.35rem;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.68;
  font-style: normal;
}

.csl-quote figcaption {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.csl-form-grid {
  display: grid;
  gap: 0.75rem;
}

.csl-mailto-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
}

.csl-mailto-form input,
.csl-mailto-form textarea,
.csl-mailto-form select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font: inherit;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.csl-mailto-form textarea {
  min-height: 120px;
  resize: vertical;
}

.csl-mailto-form .btn-row {
  margin-top: 0.35rem;
}

.csl-form-done {
  font-size: 0.82rem;
  color: #0d9488;
  margin-top: 0.5rem;
}

.csl-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.csl-showcase a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.csl-showcase a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.csl-showcase .thumb {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.csl-showcase .meta {
  padding: 0.75rem 0.85rem 0.95rem;
}

.csl-showcase .meta h4 {
  font-size: 0.88rem;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.csl-showcase .meta p {
  font-size: 0.78rem;
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

@media (prefers-reduced-motion: no-preference) {
  .csl-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .csl-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .csl-reveal {
    opacity: 1;
    transform: none;
  }
}

