:root {
  color-scheme: light;
  --bg: #eef4fa;
  --bg-strong: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.84);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --surface-alt: #e6eef8;
  --text: #12344d;
  --text-muted: #577084;
  --text-soft: #6f8797;
  --border: rgba(18, 52, 77, 0.11);
  --accent: #f06d4b;
  --accent-strong: #ce4e29;
  --accent-soft: rgba(240, 109, 75, 0.12);
  --accent-glow: rgba(240, 109, 75, 0.22);
  --secondary: #0f4775;
  --secondary-soft: rgba(15, 71, 117, 0.12);
  --teal: #22a7a0;
  --gold: #f2b643;
  --violet: #6658f5;
  --cyan-glow: rgba(34, 167, 160, 0.2);
  --positive: #0e9f6e;
  --negative: #d64545;
  --shadow: 0 26px 70px rgba(15, 41, 66, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06111a;
  --bg-strong: #0c1c29;
  --bg-soft: rgba(12, 28, 41, 0.84);
  --surface: rgba(11, 25, 38, 0.91);
  --surface-strong: rgba(13, 29, 43, 0.98);
  --surface-alt: #102839;
  --text: #ebf5fc;
  --text-muted: #a6bac9;
  --text-soft: #8ea5b5;
  --border: rgba(255, 255, 255, 0.085);
  --accent: #ff7a55;
  --accent-strong: #ffc2b0;
  --accent-soft: rgba(240, 109, 75, 0.12);
  --accent-glow: rgba(255, 122, 85, 0.2);
  --secondary: #8dc3e3;
  --secondary-soft: rgba(141, 195, 227, 0.12);
  --teal: #6bd1c9;
  --gold: #ffd36d;
  --violet: #9f93ff;
  --cyan-glow: rgba(107, 209, 201, 0.16);
  --positive: #31c48d;
  --negative: #f98080;
  --shadow: 0 28px 75px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 109, 75, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 71, 117, 0.18), transparent 30%),
    radial-gradient(circle at 80% 38%, rgba(102, 88, 245, 0.12), transparent 22%),
    radial-gradient(circle at 18% 78%, rgba(34, 167, 160, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, #000 10%) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 36px 36px;
  opacity: 0.2;
}

body::after {
  content: "";
  position: fixed;
  right: -120px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 72%);
  pointer-events: none;
  filter: blur(6px);
}

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

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

main {
  display: block;
}

.page-shell,
.page-narrow {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.page-shell {
  padding: 1.35rem 0 3rem;
}

.page-narrow {
  padding: 1.35rem 0 3rem;
}

.market-strip {
  position: sticky;
  top: 0;
  z-index: 22;
  min-height: 32px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(90deg, #07131f 0%, #0c2232 40%, #10293c 100%);
  color: #dbe7f1;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.market-strip__viewport {
  width: 100%;
  overflow: hidden;
}

.market-strip__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 240s linear infinite;
}

.market-strip:hover .market-strip__track {
  animation-play-state: paused;
}

.market-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  font-size: 0.72rem;
}

.market-strip__symbol {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f2f6fb;
}

.market-strip__price {
  color: #d3e3ef;
}

.market-strip__change {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  font-weight: 600;
}

.market-strip__change.is-positive {
  color: #3dde93;
}

.market-strip__change.is-negative {
  color: #ff8a8a;
}

.market-strip__arrow {
  font-size: 0.7rem;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

.site-header {
  position: sticky;
  top: 32px;
  z-index: 21;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-strong) 82%, transparent 18%);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 36px rgba(9, 31, 49, 0.08);
}

.site-header__inner {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.66rem 0;
}

.brand {
  flex: 0 1 500px;
  min-width: 0;
  max-width: 500px;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.2rem 0.32rem;
  border-radius: 12px;
}

:root[data-theme="dark"] .brand {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .brand__title {
  color: #153a54;
}

:root[data-theme="dark"] .brand__tag {
  color: #638199;
}

.brand__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  width: 205px;
  height: auto;
}

.brand__meta {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.brand__title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand__tag {
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-soft);
}

.site-header__menu {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
}

.site-header__menu span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.32rem auto;
  background: var(--text);
}

.site-header__panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-left: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-nav__link,
.theme-switch,
.button,
.button--ghost,
.button--subtle,
.hero-carousel__nav,
.hero-carousel__dot {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.site-nav__link {
  padding: 0.52rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-soft) 82%, transparent 18%) 0%, color-mix(in srgb, var(--accent-soft) 54%, transparent 46%) 100%);
  color: var(--secondary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex: 0 0 auto;
}

.theme-switch {
  min-height: 2.28rem;
  min-width: 4.35rem;
  padding: 0.25rem 0.44rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-alt) 78%, var(--surface) 22%) 0%, color-mix(in srgb, var(--secondary-soft) 38%, var(--surface) 62%) 100%);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  white-space: nowrap;
}

.theme-switch__track {
  width: 2.1rem;
  height: 1.2rem;
  background: linear-gradient(90deg, rgba(15, 71, 117, 0.28) 0%, rgba(102, 88, 245, 0.28) 100%);
  border-radius: 999px;
  position: relative;
}

.theme-switch__thumb {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  left: 0.12rem;
  top: 0.12rem;
  transition: transform 180ms ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
}

.theme-switch__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .theme-switch__track {
  background: rgba(255, 255, 255, 0.28);
}

:root[data-theme="dark"] .theme-switch__thumb {
  transform: translateX(0.88rem);
  background: #f8fbff;
}

.button,
.button--ghost,
.button--subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.site-header__actions .button,
.site-header__actions .button--ghost {
  min-height: 2.28rem;
  padding: 0.5rem 0.82rem;
  font-size: 0.78rem;
  line-height: 1.05;
}

.button {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--violet) 58%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(20, 53, 87, 0.24);
}

.button--ghost {
  background: color-mix(in srgb, var(--surface) 74%, transparent 26%);
  border-color: var(--border);
  color: var(--text);
}

.button--subtle {
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-alt) 70%, var(--surface) 30%) 0%, color-mix(in srgb, var(--accent-soft) 34%, var(--surface) 66%) 100%);
  border-color: color-mix(in srgb, var(--secondary) 24%, var(--border) 76%);
  color: var(--secondary);
}

.button:hover,
.button--ghost:hover,
.button--subtle:hover,
.theme-switch:hover,
.site-nav__link:hover,
.hero-carousel__nav:hover,
.hero-carousel__dot:hover {
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 82%, rgba(255,255,255,0.2) 18%) 0%, color-mix(in srgb, rgba(102, 88, 245, 0.12) 70%, transparent 30%) 100%);
  color: var(--accent-strong);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-carousel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 90%, transparent 10%) 0%, color-mix(in srgb, var(--surface-alt) 48%, var(--surface-strong) 52%) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: -10% auto auto -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: float-orb 12s ease-in-out infinite;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  animation: float-orb 15s ease-in-out infinite reverse;
}

.hero-carousel__slides {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(3%);
  transition: opacity 440ms ease, transform 440ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-slide__copy {
  position: relative;
  z-index: 1;
  padding-right: 0.3rem;
}

.hero-slide__copy h1 {
  margin: 1rem 0 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.05rem, 3.8vw, 3.45rem);
  line-height: 1.01;
  letter-spacing: -0.04em;
}

.hero-slide__copy p {
  margin: 0;
  max-width: 590px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-slide__actions,
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-slide__actions {
  margin-top: 1rem;
}

.hero-slide__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slide__visual img {
  width: min(100%, 470px);
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--border) 68%, transparent 32%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 30px 55px rgba(15, 37, 56, 0.24);
}

.hero-carousel__controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2.2rem 1rem;
}

.hero-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-carousel__dot,
.hero-carousel__nav {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent 12%);
  color: var(--text);
  cursor: pointer;
}

.hero-carousel__dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
}

.hero-carousel__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-carousel__nav {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.section {
  padding-top: 1.7rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-head--compact {
  margin-bottom: 1rem;
}

.section-head h2,
.page-hero__copy h1,
.login-hero__copy h1,
.legal-hero h1 {
  margin: 0.65rem 0 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.035em;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.85rem);
  line-height: 1.02;
}

.section-head p,
.page-hero__copy p,
.login-hero__copy p,
.card p,
.feature-card p,
.info-card p,
.legal-card p,
.legal-card li,
.timeline-step p,
.accordion__body p,
.accordion__body li {
  color: var(--text-muted);
}

.intro-grid,
.feature-grid,
.stats-grid,
.contact-grid,
.legal-grid,
.download-grid,
.solution-grid,
.support-grid,
.calculator-grid,
.tool-grid,
.tool-result-grid,
.mf-meta-grid {
  display: grid;
  gap: 1rem;
}

.intro-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.feature-grid,
.calculator-grid,
.download-grid,
.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

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

.tool-result-grid,
.mf-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.feature-card,
.info-card,
.page-hero,
.legal-card,
.accordion,
.timeline-step,
.support-card,
.stat-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent 6%) 0%, color-mix(in srgb, var(--surface-alt) 26%, var(--surface) 74%) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.page-hero,
.login-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1.8rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: center;
}

.page-hero::before,
.login-hero::before,
.legal-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__copy h1,
.login-hero__copy h1,
.legal-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.04;
}

.page-hero__visual img,
.login-hero__visual img {
  width: min(100%, 390px);
  margin-left: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card,
.feature-card,
.info-card,
.legal-card,
.support-card,
.stat-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.card,
.feature-card,
.info-card,
.support-card,
.stat-card,
.calculator-card,
.page-hero,
.login-card,
.login-hero,
.legal-card,
.accordion,
.timeline-step {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover,
.feature-card:hover,
.info-card:hover,
.support-card:hover,
.stat-card:hover,
.calculator-card:hover,
.page-hero:hover,
.login-card:hover,
.legal-card:hover,
.accordion:hover,
.timeline-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 65px rgba(15, 41, 66, 0.17);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border) 80%);
}

.card h3,
.feature-card h3,
.info-card h3,
.support-card h3,
.stat-card h3,
.legal-card h2 {
  margin: 0.6rem 0 0.45rem;
  font-size: 1.01rem;
}

.kicker {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-badges,
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.badge {
  padding: 0.6rem 0.78rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-soft) 62%, var(--surface) 38%) 0%, color-mix(in srgb, var(--accent-soft) 26%, var(--surface) 74%) 100%);
  font-size: 0.77rem;
  font-weight: 600;
}

.badge strong {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 600;
}

.feature-card img,
.info-card img,
.support-card img,
.page-hero__visual img,
.login-hero__visual img {
  width: 100%;
  height: auto;
}

.feature-card__media {
  margin: -0.3rem -0.3rem 1rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 71, 117, 0.12), rgba(240, 109, 75, 0.12));
}

.feature-card__media img,
.support-card__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 400ms ease;
}

.feature-card:hover .feature-card__media img,
.support-card:hover .support-card__media img {
  transform: scale(1.04);
}

.support-card__media {
  margin: -0.3rem -0.3rem 1rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 71, 117, 0.12), rgba(34, 167, 160, 0.12));
}

.stat-card {
  background: linear-gradient(140deg, color-mix(in srgb, var(--secondary-soft) 78%, var(--surface) 22%) 0%, color-mix(in srgb, var(--accent-soft) 20%, var(--surface) 80%) 100%);
}

.compliance-band {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.2rem 1.15rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 90%, transparent 10%) 0%, color-mix(in srgb, var(--surface-alt) 42%, var(--surface-strong) 58%) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compliance-band::before {
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 88, 245, 0.14) 0%, transparent 70%);
}

.compliance-band__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.compliance-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--secondary) 16%, var(--border) 84%);
  background: color-mix(in srgb, var(--surface) 86%, transparent 14%);
  box-shadow: 0 20px 40px rgba(13, 39, 61, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.compliance-card h3 {
  margin: 0.5rem 0 0.45rem;
  font-size: 0.98rem;
}

.compliance-card p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
}

.compliance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 56px rgba(13, 39, 61, 0.14);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border) 78%);
}

.tools-command-bar {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tools-command-link {
  display: grid;
  gap: 0.2rem;
  min-height: 4.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent 6%) 0%, color-mix(in srgb, var(--surface-alt) 22%, var(--surface) 78%) 100%);
  box-shadow: 0 14px 32px rgba(13, 39, 61, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tools-command-link span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tools-command-link strong {
  font-size: 0.96rem;
  color: var(--secondary);
}

.tools-command-link:hover,
.tools-command-link.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border) 76%);
  box-shadow: 0 22px 42px rgba(13, 39, 61, 0.12);
}

.calculator-suite-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent 4%) 0%, color-mix(in srgb, var(--surface-alt) 18%, var(--surface) 82%) 100%);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.calculator-suite-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  padding-bottom: 0.95rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.calculator-suite-toolbar h3,
.calculator-menu__head h3,
.calculator-workbench h3 {
  margin: 0.35rem 0 0;
}

.calculator-subtabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.calculator-subtab {
  display: grid;
  gap: 0.08rem;
  min-width: 8.5rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 54%, var(--surface) 46%);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.calculator-subtab span,
.calculator-subtab strong {
  display: block;
}

.calculator-subtab span {
  font-size: 0.78rem;
  font-weight: 800;
}

.calculator-subtab strong {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.calculator-subtab:hover,
.calculator-subtab.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border) 72%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-soft) 56%, var(--surface) 44%) 0%, color-mix(in srgb, var(--accent-soft) 30%, var(--surface) 70%) 100%);
}

.calculator-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.calculator-steps span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-alt) 44%, transparent 56%);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.calculator-steps strong {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 0.68rem;
}

.calculator-suite-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 1rem;
}

.calculator-menu {
  min-width: 0;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}

.calculator-menu__head {
  margin-bottom: 0.7rem;
}

.calculator-table {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 72%, transparent 28%);
}

.calculator-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-height: 4.1rem;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.calculator-row:last-child {
  border-bottom: 0;
}

.calculator-row__index {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 800;
}

.calculator-row__copy {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.calculator-row__copy strong {
  font-size: 0.82rem;
}

.calculator-row__copy small {
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.calculator-row__status {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
}

.calculator-row:hover,
.calculator-row.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-soft) 58%, var(--surface) 42%) 0%, color-mix(in srgb, var(--accent-soft) 24%, var(--surface) 76%) 100%);
}

.calculator-row.is-active .calculator-row__index {
  background: var(--accent);
  color: #ffffff;
}

.calculator-row.is-active .calculator-row__status {
  color: var(--accent-strong);
}

.calculator-workbench {
  min-width: 0;
}

.calculator-workbench__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.calculator-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border) 74%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 34%, var(--surface) 66%);
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.34rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 54%, var(--surface) 46%);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.calculator-reset:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--secondary) 24%, var(--border) 76%);
  background: color-mix(in srgb, var(--secondary-soft) 34%, var(--surface) 66%);
  color: var(--secondary);
}

.tool-table-head {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 260px);
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.65rem;
  padding: 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-table-head strong {
  color: var(--text-soft);
  font-size: inherit;
  text-align: right;
}

.tool-table-head--result {
  margin-top: 1rem;
}

.tool-input-table,
.tool-result-table {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 76%, transparent 24%);
}

.tool-input-table {
  margin-top: 0.35rem;
}

.tool-result-table {
  margin-top: 0.35rem;
}

.tool-field-row,
.tool-result-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 260px);
  gap: 0.8rem;
  align-items: center;
  min-height: 3.6rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.tool-field-row:last-child,
.tool-result-row:last-child {
  border-bottom: 0;
}

.tool-field-row__copy {
  display: grid;
  gap: 0.15rem;
}

.tool-field-row__copy strong,
.tool-result-row span {
  font-size: 0.78rem;
  font-weight: 700;
}

.tool-field-row__copy small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tool-field-row__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-strong) 90%, transparent 10%);
  overflow: hidden;
}

.tool-field-row__control input {
  min-width: 0;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.52rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: right;
}

.tool-field-row__control em {
  min-width: 4.5rem;
  padding: 0.52rem 0.68rem;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.tool-result-row {
  background: color-mix(in srgb, var(--surface-alt) 30%, transparent 70%);
}

.tool-result-row strong {
  color: var(--secondary);
  font-size: 0.98rem;
  text-align: right;
}

.tool-result-row.is-note {
  grid-template-columns: 8rem minmax(0, 1fr);
}

.tool-result-row.is-note strong {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.45;
}

.tool-layout,
.mf-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.tool-sidebar,
.tool-workspace,
.mf-search-panel,
.mf-detail-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, transparent 5%) 0%, color-mix(in srgb, var(--surface-alt) 24%, var(--surface) 76%) 100%);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.tool-sidebar h3,
.tool-workspace h3,
.mf-search-panel h3,
.mf-detail-panel h3 {
  margin: 0.4rem 0 0.45rem;
}

.tool-tabs {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.tool-tab {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-alt) 62%, var(--surface) 38%);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tool-tab strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
}

.tool-tab span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tool-tab:hover,
.tool-tab.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border) 76%);
  box-shadow: 0 18px 32px rgba(13, 39, 61, 0.12);
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-soft) 54%, var(--surface) 46%) 0%, color-mix(in srgb, var(--accent-soft) 34%, var(--surface) 66%) 100%);
}

.tool-workspace__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-workspace__head p,
.tool-note,
.tool-disclaimer,
.mf-helper,
.mf-empty,
.scheme-fact p {
  color: var(--text-muted);
}

.tool-form {
  display: grid;
  gap: 1rem;
}

.tool-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tool-field {
  display: grid;
  gap: 0.42rem;
}

.tool-field label {
  font-size: 0.78rem;
  font-weight: 600;
}

.tool-field input {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.7rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-strong) 92%, transparent 8%);
  color: var(--text);
  font: inherit;
}

.tool-field small {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.tool-result-card,
.scheme-fact,
.chart-panel,
.tool-app-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-alt) 56%, var(--surface) 44%);
  padding: 0.9rem;
}

.tool-result-card p,
.scheme-fact p {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.tool-result-card strong,
.scheme-fact strong {
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--secondary);
}

.tool-disclaimer {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.77rem;
}

.mf-search-box {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.mf-search-box input {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.7rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-strong) 92%, transparent 8%);
  color: var(--text);
  font: inherit;
}

.mf-status {
  min-height: 1.2rem;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.mf-results {
  display: grid;
  gap: 0.6rem;
  max-height: 430px;
  overflow: auto;
}

.mf-result {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-alt) 60%, var(--surface) 40%);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.mf-result:hover,
.mf-result.is-active {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border) 76%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-soft) 52%, var(--surface) 48%) 0%, color-mix(in srgb, var(--accent-soft) 28%, var(--surface) 72%) 100%);
}

.mf-result strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
}

.mf-result span {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.chart-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.tool-app-card h3 {
  margin: 0.55rem 0 0.4rem;
}

.compliance-band__note {
  position: relative;
  z-index: 1;
  margin: 0.95rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--secondary);
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
}

.timeline-step__index {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.accordion {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion + .accordion {
  margin-top: 1rem;
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
}

.accordion[open] summary::after {
  content: "−";
}

.accordion__body {
  padding: 0 1.2rem 1.2rem;
}

.list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.list li {
  position: relative;
  padding-left: 1.15rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  font-size: 0.82rem;
}

th,
td {
  padding: 0.72rem 0.82rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: color-mix(in srgb, var(--secondary-soft) 62%, var(--surface) 38%);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.contact-card {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.contact-stack a {
  color: var(--secondary);
  font-weight: 600;
}

.login-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 1rem;
}

.login-hero,
.login-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent 6%) 0%, color-mix(in srgb, var(--surface-alt) 24%, var(--surface) 76%) 100%);
  box-shadow: var(--shadow);
}

.login-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.85rem;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  overflow: hidden;
}

.login-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.login-card p,
.form-note,
.muted-note {
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.radio-group legend {
  font-size: 0.78rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.7rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-strong) 92%, transparent 8%);
  color: var(--text);
  font: inherit;
}

.password-row {
  position: relative;
}

.password-row button {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  cursor: pointer;
}

.radio-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.7rem;
}

.radio-options {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.radio-option {
  flex: 1 1 170px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 55%, var(--surface) 45%);
}

.radio-option input {
  margin: 0;
}

.calculator-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.calculator-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, transparent 5%) 0%, color-mix(in srgb, var(--surface-alt) 20%, var(--surface) 80%) 100%);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.calculator-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.03rem;
}

.result-stack {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.result-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.72rem 0.78rem;
  background: color-mix(in srgb, var(--surface-alt) 56%, var(--surface) 44%);
}

.result-item p {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.result-item strong {
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--secondary);
}

.legal-hero {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0 3rem;
}

.legal-copy {
  display: grid;
  gap: 0.9rem;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  padding: 1.8rem 0 0.5rem;
  border-top: 1px solid var(--border);
}

.site-footer__grid,
.site-footer__bottom {
  display: grid;
  gap: 1rem;
}

.site-footer__grid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.site-footer__links {
  display: grid;
  gap: 0.55rem;
}

.site-footer__links a {
  font-weight: 600;
}

.site-footer h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: var(--text-muted);
}

.unisonai-link {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #2b7dff 0%, #7a5cff 35%, #f06d4b 68%, #f4b323 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.unisonai-link:hover {
  filter: brightness(1.08);
}

.site-footer__bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1rem;
  font-size: 0.78rem;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (max-width: 1240px) and (min-width: 941px) {
  .site-header__inner {
    width: calc(100% - 1.35rem);
    gap: 0.55rem;
  }

  .brand {
    flex-basis: 405px;
    max-width: 405px;
    gap: 0.48rem;
  }

  .brand__logo {
    width: 172px;
  }

  .brand__title {
    font-size: 0.76rem;
  }

  .brand__tag {
    font-size: 0.6rem;
  }

  .site-header__panel {
    gap: 0.45rem;
  }

  .site-nav__link {
    padding: 0.48rem 0.52rem;
    font-size: 0.74rem;
  }

  .site-header__actions {
    gap: 0.34rem;
  }

  .site-header__actions .button,
  .site-header__actions .button--ghost {
    padding: 0.48rem 0.62rem;
    font-size: 0.74rem;
  }

  .theme-switch {
    min-width: 4.05rem;
    gap: 0.32rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms ease;
}

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

@media (max-width: 1080px) {
  .hero-slide,
  .page-hero,
  .intro-grid,
  .split-layout,
  .login-shell,
  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .compliance-band__grid,
  .calculator-grid,
  .tool-grid,
  .tools-command-bar,
  .download-grid,
  .stats-grid,
  .solution-grid,
  .support-grid,
  .legal-grid,
  .contact-grid,
  .tool-result-grid,
  .mf-meta-grid,
  .site-footer__grid,
  .site-footer__bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-slide {
    min-height: 0;
  }

  .hero-slide__visual img,
  .page-hero__visual img,
  .login-hero__visual img {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .tool-layout,
  .mf-layout,
  .calculator-suite-grid,
  .calculator-suite-toolbar {
    grid-template-columns: 1fr;
  }

  .calculator-menu {
    padding-right: 0;
    padding-bottom: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .calculator-subtabs {
    justify-content: flex-start;
  }

  .calculator-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .market-strip {
    min-height: 28px;
    max-width: 100vw;
  }

  .site-header__menu {
    display: inline-grid;
    place-items: center;
    flex: 0 0 2.52rem;
    width: 2.52rem;
    height: 2.52rem;
    margin-left: 0;
    border-radius: 14px;
  }

  .site-header__inner {
    width: calc(100% - 1.1rem);
    gap: 0.45rem;
    padding: 0.5rem 0;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 3rem);
    gap: 0.42rem;
    padding: 0.14rem 0.22rem;
    overflow: hidden;
  }

  .brand__logo {
    width: clamp(126px, 34vw, 158px);
  }

  .brand__meta,
  .brand__title,
  .brand__tag {
    min-width: 0;
  }

  .brand__title,
  .brand__tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header__panel {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    top: calc(100% + 0.45rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

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

  .site-nav,
  .site-header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
  }

  .site-nav__link,
  .theme-switch,
  .button,
  .button--ghost,
  .button--subtle {
    justify-content: center;
  }

  .site-header__actions > * {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .page-narrow,
  .site-header__inner,
  .site-footer,
  .legal-hero,
  .login-shell {
    width: calc(100% - 1rem);
  }

  .brand__logo {
    width: clamp(122px, 34vw, 152px);
  }

  .brand {
    gap: 0.38rem;
  }

  .brand__meta {
    gap: 0.05rem;
  }

  .brand__title {
    font-size: 0.72rem;
  }

  .brand__tag {
    font-size: 0.58rem;
  }

  .hero-carousel__slides {
    min-height: 0;
  }

  .hero-slide {
    position: relative;
    inset: auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.05rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-slide__copy {
    padding-right: 0;
  }

  .hero-slide__copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.8rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero-slide__visual img {
    width: 100%;
    max-height: 165px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }

  .hero-slide__copy h1,
  .page-hero__copy h1,
  .login-hero__copy h1,
  .legal-hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .hero-slide__copy h1 {
    margin: 0.65rem 0 0.55rem;
  }

  .hero-badges {
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .hero-badges::-webkit-scrollbar {
    display: none;
  }

  .badge {
    flex: 0 0 auto;
    padding: 0.42rem 0.55rem;
    border-radius: 12px;
    font-size: 0.63rem;
  }

  .badge strong {
    display: inline;
    margin-right: 0.22rem;
    font-size: 0.62rem;
  }

  .hero-carousel__controls {
    padding: 0.55rem 1.05rem 1rem;
  }

  .hero-slide__actions {
    gap: 0.55rem;
  }

  .hero-slide__actions .button,
  .hero-slide__actions .button--ghost {
    flex: 1 1 9rem;
    min-height: 2.25rem;
    padding: 0.52rem 0.7rem;
    font-size: 0.74rem;
  }

  .feature-grid,
  .compliance-band__grid,
  .calculator-grid,
  .tool-grid,
  .tools-command-bar,
  .download-grid,
  .stats-grid,
  .solution-grid,
  .support-grid,
  .legal-grid,
  .contact-grid,
  .tool-result-grid,
  .mf-meta-grid,
  .site-footer__grid,
  .site-footer__bottom {
    grid-template-columns: 1fr;
  }

  .market-strip__item {
    padding: 0.32rem 0.58rem;
    gap: 0.38rem;
    font-size: 0.62rem;
  }

  .compliance-band {
    padding: 1rem;
  }

  .tool-input-grid,
  .tool-workspace__head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .calculator-workbench__actions {
    justify-content: space-between;
  }

  .calculator-suite-panel {
    padding: 0.82rem;
  }

  .calculator-subtab {
    min-width: 0;
    flex: 1 1 8rem;
  }

  .calculator-row {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .calculator-row__status {
    display: none;
  }

  .tool-field-row,
  .tool-result-row,
  .tool-table-head,
  .tool-result-row.is-note {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .tool-field-row__control input,
  .tool-result-row strong,
  .tool-table-head strong {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .brand__logo {
    width: 118px;
  }

  .brand__title {
    display: none;
  }

  .brand__tag {
    font-size: 0.56rem;
  }

  .site-header__menu {
    flex-basis: 2.42rem;
    width: 2.42rem;
    height: 2.42rem;
  }

  .hero-slide {
    padding: 0.9rem;
  }

  .hero-slide__visual img {
    max-height: 145px;
  }

  .hero-carousel__controls {
    padding-inline: 0.9rem;
  }

  .market-strip__item {
    padding-inline: 0.48rem;
    font-size: 0.58rem;
  }
}

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

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