:root {
  color-scheme: light dark;
  --bg: #050505;
  --panel: #0a0a0c;
  --panel-2: #111116;
  --panel-3: #15161c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f7f4;
  --muted: #a0a0a8;
  --soft: #d8d8d5;
  --green: #61d394;
  --green-soft: rgba(97, 211, 148, 0.16);
  --blue: #4d7cff;
  --blue-soft: rgba(77, 124, 255, 0.16);
  --amber: #f28a3c;
  --amber-soft: rgba(242, 138, 60, 0.15);
  --violet: #a77cff;
  --max: 1152px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(70, 85, 100, 0.18), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.96)),
    url("./assets/yunify-tax-ops-infographic.png");
  background-position: top right;
  background-size: min(980px, 90vw) auto;
  background-repeat: no-repeat;
  opacity: 0.34;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

button,
summary {
  font: inherit;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 0 clamp(20px, 3.8vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(26, 115, 232, 0.3));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.04rem;
  font-weight: 950;
  line-height: 1;
}

.brand-copy small {
  color: #8f9099;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3.5vw, 46px);
  color: #b8b8be;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.site-nav a,
.header-cta,
.button,
button {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header-cta,
.button.primary {
  border: 1px solid #fff;
  background: #fff;
  color: #050505;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.16fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: start;
  min-height: 980px;
  padding: 118px clamp(20px, 3.8vw, 48px) 88px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0));
}

.hero-copy {
  max-width: 560px;
  min-width: 0;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 16px 10px 12px;
}

.hero-brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
}

.hero-brand strong,
.hero-brand span {
  display: block;
}

.hero-brand strong {
  color: #fff;
  font-weight: 950;
}

.hero-brand span {
  margin-top: 2px;
  color: #9b9ca4;
  font-size: 0.82rem;
  font-weight: 740;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(4rem, 5.15vw, 5.7rem);
  font-weight: 320;
  line-height: 0.92;
  letter-spacing: 0;
}

h1 > span,
h1 > em {
  display: block;
}

h1 em span {
  display: inline;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92em;
  font-style: italic;
  font-weight: 400;
  line-height: 0.94;
}

.hero-copy p {
  max-width: 520px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.product-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 555px;
  margin-top: 124px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 46%),
    rgba(5, 5, 7, 0.9);
  box-shadow:
    0 44px 90px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 75% 8%, rgba(97, 211, 148, 0.1), transparent 18rem),
    radial-gradient(circle at 55% 92%, rgba(77, 124, 255, 0.12), transparent 20rem);
}

.browser-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 12px 12px 12px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.browser-bar div {
  justify-self: center;
  min-width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  color: #8f9099;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 178px 1fr;
  min-height: 504px;
}

.product-sidebar {
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.product-sidebar p,
.product-heading p,
.stream-title,
.label {
  margin: 0 0 18px;
  color: #8a8a92;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #8e8f98;
  padding: 12px 13px;
  text-align: left;
}

.product-sidebar button.active {
  border-color: rgba(77, 124, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.product-main {
  min-width: 0;
  padding: 30px;
}

.product-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.product-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.agent-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.agent-pills span {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  color: #c6c7cc;
  font-size: 0.76rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.metric-row article {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 19px;
}

.metric-row span,
.metric-row small {
  display: block;
  color: #8e8f98;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-row strong {
  display: block;
  margin: 9px 0 6px;
  font-size: 2rem;
  font-weight: 300;
}

.metric-row small {
  color: var(--green);
  text-transform: none;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stream-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.stream-card.blue {
  border-color: rgba(77, 124, 255, 0.34);
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.12), rgba(5, 5, 7, 0.7));
}

.stream-card.amber {
  border-color: rgba(242, 138, 60, 0.32);
  background: linear-gradient(180deg, rgba(242, 138, 60, 0.12), rgba(5, 5, 7, 0.72));
}

.stream-head,
.agent-title,
.portal-brand,
.portal-top {
  display: flex;
  align-items: center;
}

.stream-head {
  gap: 12px;
  margin-bottom: 16px;
}

.stream-head > span,
.agent-title > span,
.portal-brand > span,
.portal-logo {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.portal-logo {
  border-color: rgba(77, 124, 255, 0.28);
  object-fit: contain;
  padding: 6px;
}

.stream-card.blue .stream-head > span,
.agent-card.atlas .agent-title > span {
  color: var(--blue);
}

.stream-card.amber .stream-head > span,
.agent-card.relay .agent-title > span {
  color: var(--amber);
}

.stream-head div {
  min-width: 0;
}

.stream-head strong,
.stream-head small {
  display: block;
}

.stream-head small,
.agent-title p {
  color: #8e8f98;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stream-head b {
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 8px;
  color: #9adbad;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.stream-card ul,
.compare-grid ul,
.agent-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stream-card li,
.agent-card li,
.compare-grid li {
  position: relative;
  padding-left: 18px;
  color: #b8b8bf;
  line-height: 1.55;
}

.stream-card li + li,
.agent-card li + li,
.compare-grid li + li {
  margin-top: 10px;
}

.stream-card li::before,
.agent-card li::before,
.compare-grid li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "*";
}

.stream-card button {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 12px;
  font-weight: 780;
}

.approval-note {
  max-width: 445px;
  margin: -132px 0 70px clamp(20px, 3.8vw, 48px);
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--green);
  border-radius: 0 12px 12px 0;
  background:
    linear-gradient(90deg, rgba(97, 211, 148, 0.1), rgba(167, 124, 255, 0.08)),
    rgba(8, 8, 10, 0.84);
  padding: 22px 26px;
  backdrop-filter: blur(16px);
}

.approval-note p {
  margin: 0;
  color: #d8d8df;
  font-size: 1.02rem;
  line-height: 1.65;
}

.approval-note em {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12em;
}

.section {
  padding: clamp(86px, 10vw, 142px) clamp(20px, 5vw, 64px);
}

.section-copy,
.center-heading {
  max-width: var(--max);
  margin: 0 auto 52px;
}

.section-copy.wide {
  max-width: 1024px;
}

.center-heading {
  text-align: center;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0;
}

.center-heading h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-copy p,
.center-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.58;
}

.center-heading p {
  margin-left: auto;
  margin-right: auto;
}

.what {
  background: #050505;
}

.three-card-grid,
.control-grid,
.module-grid {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  gap: 20px;
}

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

.three-card-grid article,
.module-grid article,
.control-grid article,
.compare-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    #08080a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.three-card-grid article {
  min-height: 212px;
  padding: 28px;
}

h3 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 1.24rem;
  line-height: 1.2;
}

.three-card-grid p,
.module-grid p,
.control-grid p,
.faq-list p,
.portal-card p {
  color: var(--muted);
  line-height: 1.58;
}

.comparison {
  background: #101016;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}

.compare-grid article {
  padding: 34px;
}

.compare-grid article.after {
  border-color: rgba(97, 211, 148, 0.28);
  background:
    radial-gradient(circle at 84% 20%, rgba(97, 211, 148, 0.12), transparent 14rem),
    #070807;
}

.compare-grid li {
  font-size: 1.03rem;
}

blockquote {
  max-width: var(--max);
  margin: 42px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #050505;
  padding: 30px 34px;
  color: #d6d6dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-style: italic;
  line-height: 1.36;
}

.agents {
  background: #050505;
}

.agents h2 span {
  color: var(--blue);
}

.agents h2 em {
  color: var(--amber);
  font-style: normal;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1024px;
  margin: 0 auto;
}

.agent-card {
  min-height: 392px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
}

.agent-card.atlas {
  border-color: rgba(77, 124, 255, 0.35);
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.14), rgba(5, 5, 8, 0.68));
}

.agent-card.relay {
  border-color: rgba(242, 138, 60, 0.35);
  background: linear-gradient(180deg, rgba(242, 138, 60, 0.15), rgba(9, 5, 3, 0.7));
}

.agent-title {
  gap: 16px;
  margin-bottom: 32px;
}

.agent-title h3,
.agent-title p {
  margin: 0;
}

.approval-line {
  max-width: 1024px;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  color: #fff;
  text-align: center;
}

.portal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(520px, 0.86fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.portal-section .section-copy {
  margin: 0;
}

.portal-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 12%, rgba(97, 211, 148, 0.12), transparent 18rem),
    #09090b;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
}

.portal-top {
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.portal-brand {
  gap: 13px;
}

.portal-brand strong,
.portal-brand small {
  display: block;
}

.portal-brand small,
.portal-top b {
  color: #8e8f98;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.portal-brand > span,
.portal-logo {
  color: var(--green);
}

.portal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}

.doc-list,
.chat-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 20px;
}

.doc-list p {
  color: #fff;
  font-weight: 780;
}

.doc-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  color: #d2d2d8;
}

.doc-list label span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.doc-list label.missing span {
  background: var(--amber);
}

.chat-preview > p {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #050505;
  padding: 16px;
  color: #fff;
}

.chat-preview div:not(.portal-actions) {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.chat-preview div:not(.portal-actions) span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--amber);
  border-radius: 8px;
  color: var(--amber);
}

.chat-preview strong {
  color: #cfcfd5;
  font-weight: 520;
  line-height: 1.5;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.portal-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px 12px;
}

.module-section {
  background: #101016;
}

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

.module-grid article {
  min-height: 166px;
  padding: 24px;
}

.boundary {
  background: #050505;
}

.boundary-panel {
  display: grid;
  max-width: 1024px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(97, 211, 148, 0.05), transparent 45%, rgba(77, 124, 255, 0.05)),
    #080808;
  padding: 36px;
}

.keep,
.replace {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 24px 4px;
}

.keep {
  border-bottom: 1px solid var(--line);
}

.keep p,
.replace p {
  flex-basis: 100%;
  margin: 0 0 8px;
  color: var(--green);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.replace p {
  color: var(--amber);
}

.keep span,
.replace span {
  border: 1px solid currentColor;
  border-radius: 10px;
  padding: 11px 18px;
  color: #c8f1d5;
  background: var(--green-soft);
}

.replace span {
  color: #f4bd91;
  background: var(--amber-soft);
}

.yunify-core {
  display: grid;
  gap: 6px;
  place-items: center;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.yunify-core strong {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.yunify-core small {
  color: var(--muted);
  font-size: 1rem;
}

.control {
  background: #101016;
}

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

.control-grid article {
  min-height: 210px;
  padding: 24px;
}

.pilot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
}

.pilot p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.questions {
  background: #101016;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
}

.faq-list details {
  padding: 0 24px;
}

.faq-list details + details {
  margin-top: 12px;
}

.faq-list summary {
  cursor: pointer;
  padding: 24px 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 780;
}

.faq-list summary::marker {
  color: var(--green);
}

.faq-list p {
  margin: -6px 0 24px;
  max-width: 760px;
}

.final-cta {
  display: grid;
  min-height: 620px;
  place-items: center;
  padding: 94px clamp(20px, 5vw, 64px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.2), #050505),
    radial-gradient(circle at 50% 45%, rgba(97, 211, 148, 0.16), transparent 28rem);
}

.final-cta p {
  margin: 0 0 20px;
  color: var(--green);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.final-cta h2 {
  max-width: 860px;
  margin-bottom: 34px;
}

.final-cta div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
  padding: 0 clamp(20px, 3.8vw, 48px);
  border-top: 1px solid var(--line);
  color: #909098;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

.footer-brand img {
  width: 34px;
  height: 28px;
  object-fit: contain;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7fafc;
    --panel: #ffffff;
    --panel-2: #eef4f8;
    --panel-3: #e6edf3;
    --line: rgba(20, 32, 51, 0.12);
    --line-strong: rgba(20, 32, 51, 0.2);
    --text: #142033;
    --muted: #4d5c70;
    --soft: #27364b;
    --green: #147a52;
    --green-soft: rgba(20, 122, 82, 0.12);
    --blue: #225ed8;
    --blue-soft: rgba(34, 94, 216, 0.12);
    --amber: #a95112;
    --amber-soft: rgba(169, 81, 18, 0.12);
    --violet: #5c45c8;
  }

  body {
    background:
      radial-gradient(circle at 50% -20%, rgba(41, 70, 100, 0.14), transparent 36rem),
      linear-gradient(180deg, #ffffff, var(--bg));
    color: var(--text);
  }

  body::before {
    background-image:
      linear-gradient(90deg, rgba(247, 250, 252, 0.96), rgba(247, 250, 252, 0.72), rgba(247, 250, 252, 0.98)),
      url("./assets/yunify-tax-ops-infographic.png");
    opacity: 0.46;
  }

  body::after {
    background-image:
      linear-gradient(rgba(20, 32, 51, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(20, 32, 51, 0.035) 1px, transparent 1px);
  }

  .site-header {
    border-bottom-color: var(--line);
    background: rgba(247, 250, 252, 0.88);
  }

  .brand,
  .brand-copy strong,
  .hero-brand strong,
  .footer-brand,
  .site-nav a:hover,
  h3,
  .approval-line,
  .doc-list p,
  .chat-preview > p,
  .portal-actions button,
  .stream-card button {
    color: var(--text);
  }

  .brand-copy small,
  .hero-brand span {
    color: var(--muted);
  }

  .hero-brand {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.82);
  }

  .site-nav {
    color: #556579;
  }

  .header-cta,
  .button.primary {
    border-color: #142033;
    background: #142033;
    color: #ffffff;
  }

  .button.secondary {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
  }

  .hero,
  .what,
  .agents,
  .boundary {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 252, 0.92)),
      var(--bg);
    border-bottom-color: var(--line);
  }

  .comparison,
  .module-section,
  .control,
  .questions {
    background: #eef4f8;
  }

  .product-shell,
  .portal-card,
  .approval-note,
  .boundary-panel,
  blockquote,
  .three-card-grid article,
  .module-grid article,
  .control-grid article,
  .compare-grid article,
  .faq-list details,
  .agent-card,
  .doc-list,
  .chat-preview,
  .metric-row article,
  .stream-card,
  .agent-pills span,
  .browser-bar div {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 52px rgba(27, 44, 65, 0.08);
  }

  .product-shell {
    background:
      linear-gradient(135deg, rgba(34, 94, 216, 0.08), transparent 46%),
      rgba(255, 255, 255, 0.94);
  }

  .product-shell::before {
    background:
      radial-gradient(circle at 75% 8%, rgba(20, 122, 82, 0.1), transparent 18rem),
      radial-gradient(circle at 55% 92%, rgba(34, 94, 216, 0.11), transparent 20rem);
  }

  .browser-bar,
  .product-sidebar,
  .portal-top,
  .keep,
  .yunify-core,
  .site-footer {
    border-color: var(--line);
  }

  .product-sidebar {
    background: rgba(238, 244, 248, 0.72);
  }

  .browser-bar span {
    background: rgba(20, 32, 51, 0.16);
  }

  .browser-bar div,
  .product-sidebar button,
  .product-sidebar p,
  .product-heading p,
  .stream-title,
  .label,
  .metric-row span,
  .metric-row small,
  .stream-head small,
  .agent-title p,
  .portal-brand small,
  .portal-top b,
  .site-footer {
    color: var(--muted);
  }

  .product-sidebar button.active,
  .agent-pills span,
  .portal-actions button,
  .stream-card button {
    background: rgba(34, 94, 216, 0.08);
    color: var(--text);
  }

  .metric-row strong,
  .product-heading h2,
  .portal-brand strong,
  .stream-head strong,
  .faq-list summary,
  .yunify-core strong {
    color: var(--text);
  }

  .stream-card.blue,
  .agent-card.atlas {
    border-color: rgba(34, 94, 216, 0.22);
    background: linear-gradient(180deg, rgba(34, 94, 216, 0.1), rgba(255, 255, 255, 0.88));
  }

  .stream-card.amber,
  .agent-card.relay {
    border-color: rgba(169, 81, 18, 0.22);
    background: linear-gradient(180deg, rgba(169, 81, 18, 0.1), rgba(255, 255, 255, 0.88));
  }

  .approval-note {
    background:
      linear-gradient(90deg, rgba(20, 122, 82, 0.1), rgba(92, 69, 200, 0.06)),
      rgba(255, 255, 255, 0.9);
  }

  .approval-note p,
  .approval-note em,
  blockquote,
  .doc-list label,
  .chat-preview strong,
  .agent-card li,
  .compare-grid li,
  .stream-card li {
    color: var(--soft);
  }

  .compare-grid article.after,
  .portal-card,
  .boundary-panel {
    background:
      radial-gradient(circle at 84% 20%, rgba(20, 122, 82, 0.09), transparent 14rem),
      rgba(255, 255, 255, 0.92);
  }

  .chat-preview > p {
    background: #eef4f8;
  }

  .final-cta {
    background:
      linear-gradient(180deg, rgba(247, 250, 252, 0.4), #f7fafc),
      radial-gradient(circle at 50% 45%, rgba(20, 122, 82, 0.14), transparent 28rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .product-shell {
    max-width: 920px;
    margin-top: 0;
  }

  .approval-note {
    margin-top: -42px;
  }

  .portal-section,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .portal-section .section-copy {
    max-width: var(--max);
    margin: 0 auto;
  }
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }

  .product-grid,
  .portal-body,
  .three-card-grid,
  .compare-grid,
  .agent-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    display: none;
  }

  .product-heading,
  .pilot {
    grid-template-columns: 1fr;
  }

  .pilot {
    justify-items: start;
  }

  .metric-row,
  .stream-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-cta {
    display: none;
  }

  .site-header {
    min-height: 68px;
  }

  .hero {
    padding: 104px 16px 64px;
  }

  h1 {
    font-size: clamp(3.35rem, 13.5vw, 4.18rem);
    line-height: 0.95;
  }

  h1 em span {
    display: block;
  }

  .hero-copy {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero-copy p {
    max-width: 100%;
  }

  h2 {
    font-size: clamp(2.4rem, 13vw, 3.9rem);
  }

  .button {
    width: 100%;
  }

  .product-main,
  .agent-card,
  .compare-grid article,
  .boundary-panel {
    padding: 22px;
  }

  .product-shell {
    min-height: auto;
  }

  .browser-bar div {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .approval-note {
    margin: -30px 16px 48px;
  }

  .section {
    padding: 72px 16px;
  }

  .portal-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
