/* Cheerflow website. Colours and fonts come from brand-tokens.css (generated from brand/tokens.json).
   Breakpoints: sm 40rem (640px), md 48rem (768px), lg 64rem (1024px). Below md is the mobile design. */

/* ---------- Base ---------- */
/* In the base layer, so the utility classes in utilities.css (pages other than home) still win. */
@layer base {
  *, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
  html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
  body {
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  h1, h2 { text-wrap: balance; }
  a { color: inherit; text-decoration: inherit; }
  ol, ul { list-style: none; }
  img, svg, video { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  b, strong { font-weight: bolder; }
  small { font-size: inherit; }
  button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; background-color: transparent; border-radius: 0; }
  button { cursor: default; }
}
[hidden] { display: none !important; }

/* The bilingual source shows one language at a time; the build keeps only one. */
html[data-lang="en"] [data-l="zh"], html[data-lang="zh"] [data-l="en"] { display: none !important; }

html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] blockquote,
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] blockquote {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.ib { display: inline-block; }

/* ---------- Brand surfaces and effects ---------- */
.sn { font-family: var(--font-sn); color: var(--color-sn-text); }

.bg-hero {
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(49, 175, 180, 0.45) 0%, rgba(49, 175, 180, 0) 60%),
    radial-gradient(45% 50% at 5% 50%, rgba(17, 85, 113, 0.8) 0%, rgba(17, 85, 113, 0) 100%),
    linear-gradient(160deg, #0a2f40 0%, #061c27 70%);
}

.bg-hero-ai {
  background:
    radial-gradient(40% 55% at 50% 0%, rgba(151, 122, 255, 0.4) 0%, rgba(151, 122, 255, 0) 100%),
    radial-gradient(35% 45% at 85% 45%, rgba(49, 175, 180, 0.3) 0%, rgba(49, 175, 180, 0) 100%),
    linear-gradient(180deg, #0d1a3a 0%, #061c27 100%);
}

.text-gradient-ai {
  background: linear-gradient(90deg, #cbbcff 0%, #977aff 45%, #4fd1c5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}

.bg-soft {
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(49, 175, 180, 0.12) 0%, rgba(49, 175, 180, 0) 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(17, 85, 113, 0.08) 0%, rgba(17, 85, 113, 0) 70%),
    #ffffff;
}

.bg-brand { background: linear-gradient(120deg, #115571 0%, #12708a 45%, #31afb4 100%); }

.text-gradient {
  background: linear-gradient(90deg, #4fd1c5 0%, #31afb4 50%, #9be7e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-navy {
  background-image: linear-gradient(to right in oklab, var(--color-navy), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-glow {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-glow:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 175, 180, 0.5);
  box-shadow: 0 24px 48px -24px rgba(17, 85, 113, 0.35);
}

.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Animations (every one is listed under prefers-reduced-motion at the end) ---------- */
@keyframes hotspot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 175, 180, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(49, 175, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 175, 180, 0); }
}
.hotspot { position: relative; animation: hotspot-pulse 1.6s ease-out infinite; outline: 2px solid var(--color-teal); outline-offset: 3px; }

@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fade-up 0.45s ease-out both; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: float 6s ease-in-out infinite; }

@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.draw { stroke-dasharray: 600; animation: draw 1.4s ease-out both; }

@keyframes ping-soft { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
.ping-soft { transform-box: fill-box; transform-origin: center; animation: ping-soft 1.6s ease-out infinite; }

@keyframes halo { 0% { box-shadow: 0 0 0 0 rgb(var(--halo) / 0.55); } 100% { box-shadow: 0 0 0 9px rgb(var(--halo) / 0); } }
.halo { --halo: 49 175 180; animation: halo 1.6s ease-out infinite; }

@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.pop { animation: pop 0.5s ease-out both; }

@keyframes dash-flow { to { stroke-dashoffset: 22; } }
.dash-flow { animation: dash-flow 0.9s linear infinite; }

/* ---------- Shared text and buttons ---------- */
.eyebrow { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--color-teal); }
.eyebrow-dark { color: var(--color-teal-bright); }
.h2 { font-family: var(--font-display); font-size: 1.875rem; line-height: 1.25; font-weight: 700; color: var(--color-navy); }
@media (min-width: 48rem) { .h2 { font-size: 2.25rem; } }
.lead { font-size: 1.125rem; line-height: 1.625; color: var(--color-muted); }

.btn-glow {
  border-radius: 9999px;
  background-image: linear-gradient(to right in oklab, var(--color-teal), var(--color-teal-bright));
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--color-night);
  box-shadow: 0 10px 30px -10px rgba(79, 209, 197, 0.7);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-glass { border-radius: 9999px; padding: 0.75rem 1.5rem; color: #fff; transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.15); }
.btn-white {
  display: inline-block;
  border-radius: 9999px;
  background: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-navy {
  display: inline-block;
  border-radius: 9999px;
  background: var(--color-navy);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-navy:hover { background: var(--color-navy-deep); }
.btn-glow:hover, .btn-white:hover { transform: translateY(-0.125rem); }

/* ---------- Header ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: color-mix(in oklab, var(--color-night) 80%, transparent);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hd-in { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.625rem; }
.logo-mark { height: 21px; width: auto; }
.logo-word { height: 12px; width: auto; }

.hd-nav { display: none; align-items: center; gap: 1.75rem; font-size: 0.875rem; line-height: 1.25rem; color: rgba(255, 255, 255, 0.7); }
@media (min-width: 48rem) { .hd-nav { display: flex; } }
.hd-dd { position: relative; }
.hd-dd-btn { display: block; padding-block: 1.25rem; transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.hd-link, .hd-lang { transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.hd-dd-btn:hover, .hd-link:hover, .hd-lang:hover { color: #fff; }
.hd-dd-panel {
  visibility: hidden;
  position: absolute;
  left: 50%;
  top: 100%;
  width: 20rem;
  transform: translateX(-50%);
  border-radius: 0.75rem;
  border: 1px solid var(--color-line);
  background: #fff;
  padding: 0.5rem;
  color: var(--color-ink);
  opacity: 0;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.hd-dd:hover .hd-dd-panel { visibility: visible; opacity: 1; }
.hd-dd-item { display: block; border-radius: 0.5rem; padding: 0.625rem 0.75rem; transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.hd-dd-item:hover, .hd-dd-all:hover { background: var(--color-teal-soft); }
.hd-dd-item b { display: block; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--color-navy); }
.hd-dd-item small { margin-top: 0.125rem; display: block; font-size: 0.75rem; line-height: 1.375; color: var(--color-muted); }
.hd-dd-foot { margin-top: 0.25rem; border-top: 1px solid var(--color-line); padding-top: 0.25rem; }
.hd-dd-all { display: block; border-radius: 0.5rem; padding: 0.625rem 0.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--color-teal); }

.hd-tools { display: flex; align-items: center; gap: 1rem; }
.hd-lang { font-size: 0.875rem; line-height: 1.25rem; color: rgba(255, 255, 255, 0.7); }
.hd-cta {
  display: none;
  border-radius: 9999px;
  background-image: linear-gradient(to right in oklab, var(--color-teal), var(--color-teal-bright));
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--color-night);
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.hd-cta:hover { opacity: 0.9; }
@media (min-width: 40rem) { .hd-cta { display: inline-block; } }

.hd-burger {
  position: relative;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
@media (min-width: 48rem) { .hd-burger { display: none; } }
.hd-burger span { position: absolute; height: 1px; width: 1rem; background: #fff; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.hd-burger span:nth-child(1) { transform: translateY(-5px); }
.hd-burger span:nth-child(3) { transform: translateY(5px); }
.hd-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.hd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile menu: outside the header, because the header's backdrop-filter would trap a fixed child. */
.mm { position: fixed; inset: 4rem 0 0 0; z-index: 50; overflow-y: auto; background: var(--color-night); padding: 1.5rem 1.5rem 2.5rem; animation: fade-up 0.45s ease-out both; }
@media (min-width: 48rem) { .mm { display: none !important; } }
.mm-in { position: relative; }
.mm-sec + .mm-sec { margin-top: 1.5rem; }
.mm-label { font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-teal-bright); }
.mm-list { margin-top: 0.5rem; overflow: hidden; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); }
.mm-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mm-list li:last-child { border-bottom: 0; }
.mm-list a { display: block; padding: 0.75rem 1rem; }
.mm-list a:active { background: rgba(255, 255, 255, 0.1); }
.mm-list b { display: block; font-size: 15px; font-weight: 600; line-height: 1.375; color: #fff; }
.mm-list small { margin-top: 0.125rem; display: block; font-size: 12.5px; line-height: 1.375; color: rgba(255, 255, 255, 0.55); }
.mm-list .mm-all { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--color-teal-bright); }
.mm-links { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.mm-links a { border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.75rem 1rem; font-weight: 600; color: #fff; }
.mm-cta {
  margin-top: 2rem;
  display: block;
  border-radius: 9999px;
  background-image: linear-gradient(to right in oklab, var(--color-teal), var(--color-teal-bright));
  padding-block: 0.875rem;
  text-align: center;
  font-weight: 600;
  color: var(--color-night);
}
body.mm-open { overflow: hidden; }

/* ---------- Footer ---------- */
.ft { background: var(--color-night); color: rgba(255, 255, 255, 0.6); }
.ft-in { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 3.5rem; }
.ft-tag { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: #fff; }
.ft-loc { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; }
.ft-side { display: flex; flex-direction: column; gap: 0.75rem; }
.ft-links { display: flex; gap: 1.25rem; font-size: 0.875rem; line-height: 1.25rem; }
.ft-links a { transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.ft-links a:hover { color: #fff; }
.ft-copy { font-size: 0.75rem; line-height: 1rem; color: rgba(255, 255, 255, 0.4); }
@media (min-width: 48rem) {
  .ft-in { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .ft-side { align-items: flex-end; }
}

/* ---------- Contact band (ContactBand) ---------- */
.cband { padding: 3.5rem 1.5rem; }
.cband-box { position: relative; margin-inline: auto; max-width: 72rem; overflow: hidden; border-radius: 1.5rem; padding: 3.5rem 2rem; color: #fff; }
.cband-blob { pointer-events: none; position: absolute; right: -5rem; top: -6rem; height: 18rem; width: 18rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.15); filter: blur(64px); }
.cband-row { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.cband h2 { font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.cband p { margin-top: 0.5rem; color: rgba(255, 255, 255, 0.8); }
.cband-btn {
  border-radius: 9999px;
  background: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--color-navy);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.cband-btn:hover { transform: translateY(-0.125rem); }
@media (min-width: 48rem) {
  .cband { padding-block: 5rem; }
  .cband-box { padding-inline: 3.5rem; }
  .cband-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.home-hero { position: relative; display: grid; align-items: center; gap: 3rem; padding-top: 3.5rem; padding-bottom: 4rem; }
.hero-pill { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; padding: 0.375rem 1rem; font-size: 0.875rem; line-height: 1.25rem; color: rgba(255, 255, 255, 0.85); }
.hero-pill i { height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: var(--color-teal-bright); }
.home-h1 { margin-top: 1.75rem; font-family: var(--font-display); font-size: 3rem; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.home-sub { margin-top: 1.75rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, 0.75); }
.home-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero flow (hero-flow.js) */
.hf { position: relative; margin-inline: auto; height: 470px; width: 100%; max-width: 470px; }
.hf-glow { position: absolute; inset: 1.5rem; border-radius: 9999px; background: color-mix(in oklab, var(--color-teal) 25%, transparent); filter: blur(64px); }
.hf-win { position: absolute; left: 0; top: 0.5rem; width: 86%; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.hf-top { display: flex; align-items: center; justify-content: space-between; }
.hf-dots { display: flex; align-items: center; gap: 0.5rem; }
.hf-dots i { height: 0.625rem; width: 0.625rem; border-radius: 9999px; }
.hf-dots i:nth-child(1) { background: #ff6b6b; }
.hf-dots i:nth-child(2) { background: #ffd166; }
.hf-dots i:nth-child(3) { background: var(--color-teal-bright); }
.hf-brand { font-family: var(--font-display); font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.hf-steps { position: relative; margin-top: 1.25rem; }
.hf-steps li + li { margin-top: 0.875rem; }
.hf-track, .hf-fill { position: absolute; left: 13px; top: 0.875rem; width: 0.125rem; border-radius: 9999px; }
.hf-track { bottom: 0.875rem; background: rgba(255, 255, 255, 0.1); }
.hf-fill { height: 0; background: var(--color-teal-bright); box-shadow: 0 0 10px var(--color-teal-bright); transition: all 0.7s cubic-bezier(0, 0, 0.2, 1); }
.hf-step { position: relative; display: flex; align-items: center; gap: 0.75rem; }
.hf-num {
  position: relative;
  z-index: 10;
  display: flex;
  height: 1.75rem;
  width: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hf-num .ping-soft { position: absolute; inset: 0; border-radius: 9999px; background: color-mix(in oklab, var(--color-teal-bright) 40%, transparent); }
.hf-bar { position: relative; height: 0.375rem; flex: 1 1 0%; overflow: hidden; border-radius: 9999px; background: rgba(255, 255, 255, 0.1); }
.hf-bar i { position: absolute; inset-block: 0; left: 0; width: 0; border-radius: 9999px; background-image: linear-gradient(to right in oklab, var(--color-teal), var(--color-teal-bright)); transition: width 400ms ease-out; }
.hf-label { width: 8rem; text-align: right; font-size: 0.75rem; line-height: 1rem; color: rgba(255, 255, 255, 0.45); transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.hf-step.is-done .hf-num { background: var(--color-teal-bright); color: var(--color-night); }
.hf-step.is-active .hf-num { background: #fff; color: var(--color-navy); box-shadow: 0 0 0 6px rgba(79, 209, 197, 0.25); }
.hf-step.is-active .hf-bar i { width: 100%; transition: width 1600ms ease-out; }
.hf-step.is-done .hf-bar i { width: 100%; }
.hf-step.is-done .hf-label, .hf-step.is-active .hf-label { color: #fff; }
.hf-card { position: absolute; bottom: 0.5rem; right: 0; width: 66%; border-radius: 1rem; background: #fff; padding: 1rem; color: var(--color-ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.hf-card-top { display: flex; align-items: center; justify-content: space-between; }
.hf-assist { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-teal); }
.hf-badge { border-radius: 9999px; padding: 0.125rem 0.5rem; font-size: 10px; font-weight: 600; background: var(--color-teal-soft); color: var(--color-navy); transition: color 0.15s, background-color 0.15s; }
.hf-badge.is-done { background: var(--color-sn-success-bg); color: var(--color-sn-success); }
.hf-msg { margin-top: 0.5rem; min-height: 2.75rem; font-size: 0.875rem; line-height: 1.375; }
.hf-pips { margin-top: 0.75rem; display: flex; gap: 0.375rem; }
.hf-pips i { height: 0.375rem; width: 0.75rem; border-radius: 9999px; background: color-mix(in oklab, var(--color-teal) 20%, transparent); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.hf-pips i.is-on { width: 2rem; background: var(--color-teal); }

.home-problem { display: grid; gap: 2.5rem; padding-block: 4rem; }

.home-areas { padding-bottom: 4rem; }
.home-area-grid { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.home-area { display: flex; align-items: center; gap: 1rem; border-radius: 1rem; padding: 1rem; }
.home-area-top { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; }
.num-tile { display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border-radius: 0.75rem; font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; color: #fff; }
.home-area-explore { display: none; font-size: 0.875rem; line-height: 1.25rem; color: var(--color-teal); }
.home-area-body { min-width: 0; flex: 1 1 0%; }
.home-area-label { font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--color-muted); }
.home-area-line { margin-top: 0.25rem; font-family: var(--font-display); font-size: 17px; line-height: 1.375; font-weight: 600; color: var(--color-navy); }
.home-area-arrow { color: var(--color-teal); }

.home-feat-wrap { padding-inline: 1.5rem; }
.home-feat { position: relative; margin-inline: auto; max-width: 72rem; overflow: hidden; border-radius: 1.5rem; color: #fff; }
.home-feat-in { position: relative; display: grid; align-items: center; gap: 2.5rem; padding: 2rem; }
.home-feat h2 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 1.25; font-weight: 700; }
.home-feat-body { margin-top: 1.25rem; line-height: 1.625; color: rgba(255, 255, 255, 0.75); }
.home-feat .btn-white { margin-top: 2rem; }
.home-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.home-stat { display: flex; align-items: center; gap: 0.625rem; border-radius: 9999px; padding: 0.625rem 1rem; }
.home-stat i { height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: var(--color-teal-bright); box-shadow: 0 0 12px var(--color-teal-bright); }
.home-stat span { font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }

.home-figs { padding-block: 4rem; }
.home-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.home-num { border-radius: 1rem; padding: 1rem; }
.home-num-value { font-family: var(--font-display); font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: var(--color-navy); }
.home-num-label { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.625; color: var(--color-muted); }

.home-method { padding-top: 4rem; }
.home-method h2 { font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--color-navy); }
.home-steps { position: relative; margin-top: 2rem; overflow: hidden; border-radius: 1rem; border: 1px solid var(--color-line); background: #fff; }
.home-steps-line-h { position: absolute; left: 0; right: 0; top: 1.25rem; display: none; height: 1px; background-image: linear-gradient(to right in oklab, var(--color-navy), var(--color-teal), var(--color-teal-bright)); }
.home-steps-line-v { position: absolute; bottom: 2rem; left: 2.125rem; top: 2rem; width: 1px; background-image: linear-gradient(to bottom in oklab, var(--color-navy), var(--color-teal), var(--color-teal-bright)); }
.home-step { position: relative; display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; }
.home-step-num { position: relative; display: flex; height: 2.25rem; width: 2.25rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; color: #fff; box-shadow: 0 0 0 4px #fff; }
.home-step-body { min-width: 0; padding-top: 0.25rem; }
.home-step-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--color-navy); }
.home-step-text { margin-top: 0.125rem; font-size: 0.875rem; line-height: 1.625; color: var(--color-muted); }

.home-demo { border-block: 1px solid var(--color-line); }
.home-demo-in { display: grid; align-items: center; gap: 2.5rem; padding-block: 3.5rem; }
.home-demo h2 { margin-top: 1rem; }
.home-demo-body { margin-top: 1.25rem; line-height: 1.625; color: var(--color-muted); }

@media (min-width: 48rem) {
  .home-hero { padding-top: 7rem; padding-bottom: 6rem; }
  .home-h1 { font-size: 4.5rem; }
  .home-problem { padding-block: 6rem; grid-template-columns: 1fr 1.2fr; }
  .home-areas { padding-bottom: 6rem; }
  .home-area-grid { margin-top: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .home-area { display: block; padding: 2rem; }
  .home-area-explore { display: inline; }
  .home-area-label { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; }
  .home-area-line { margin-top: 0.5rem; font-size: 1.5rem; }
  .home-area-arrow { display: none; }
  .home-feat-in { padding: 3.5rem; }
  .home-feat h2 { font-size: 2.25rem; }
  .home-figs { padding-block: 6rem; }
  .home-nums { gap: 1.25rem; }
  .home-num { padding: 1.5rem; }
  .home-num-value { font-size: 3rem; line-height: 1; }
  .home-num-label { margin-top: 0.75rem; font-size: 0.875rem; }
  .home-method { padding-top: 6rem; }
  .home-method h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .home-steps { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; overflow: visible; border-radius: 0; border: 0; background: transparent; }
  .home-steps-line-h { display: block; }
  .home-steps-line-v { display: none; }
  .home-step { display: block; padding: 0; }
  .home-step-num { height: 2.5rem; width: 2.5rem; box-shadow: 0 0 0 8px var(--color-paper); }
  .home-step-body { padding-top: 0; }
  .home-step-name { margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.75rem; }
  .home-step-text { margin-top: 0.5rem; }
  .home-demo-in { padding-block: 5rem; grid-template-columns: 1.2fr 1fr; }
  .home-demo-cta { text-align: right; }
}
@media (min-width: 64rem) {
  .home-hero { grid-template-columns: 1.15fr 1fr; }
  .home-feat-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stats { display: grid; gap: 0.75rem; }
  .home-stat { gap: 1rem; border-radius: 1rem; padding: 1rem 1.25rem; }
  .home-stat i { height: 0.625rem; width: 0.625rem; }
  .home-stat span { font-size: 1.125rem; line-height: 1.75rem; }
  .home-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Contact ---------- */
/* The dark panel is sized to the viewport but the text column to the centred max-w-6xl grid, so on wide
   screens 42% fell short of the text. From 1152px up its right edge lines up with the form card's left edge:
   card left = 50% - 576px + 24px + 0.4 × (1152px - 88px) + 40px gap = 50% - 86.4px. */
@media (min-width: 48rem) {
  .contact-panel { width: max(42%, calc(50% - 86.4px)); }
}

/* ---------- Reduced motion: every animation above stops ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hotspot, .fade-up, .float, .draw, .ping-soft, .halo, .pop, .dash-flow, .mm { animation: none; }
  .draw { stroke-dasharray: none; }
}
