:root {
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --bg: #eef4fa;
  --surface: #ffffff;
  --surface-soft: #e8f1f9;
  --ink: #081e34;
  --ink-2: #0d3558;
  --muted: #43607a;
  --line: #c3d6e7;
  --navy: #0c2a46;
  --navy-soft: #17456e;
  --accent: #24c49a;
  --accent-deep: #129f7c;
  --accent-soft: #e2f7f0;
  --radius-2xl: 32px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-lg: 0 34px 84px rgba(2, 21, 39, 0.16);
  --shadow-md: 0 18px 44px rgba(5, 24, 45, 0.11);
  --shadow-sm: 0 10px 24px rgba(5, 24, 45, 0.07);
}

:root[data-theme="dark"] {
  --bg: #071522;
  --surface: #0c1a28;
  --surface-soft: #112436;
  --ink: #dce8f6;
  --ink-2: #f3f9ff;
  --muted: #8ea6bf;
  --line: #254059;
  --navy: #2f7db3;
  --navy-soft: #29689a;
  --accent: #2bd3a7;
  --accent-deep: #1fb68e;
  --accent-soft: #102e2a;
  --shadow-lg: 0 36px 84px rgba(1, 10, 18, 0.6);
  --shadow-md: 0 18px 42px rgba(1, 10, 18, 0.48);
  --shadow-sm: 0 10px 24px rgba(1, 10, 18, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 52%, #f2f8fd 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(54px);
  pointer-events: none;
}

body::before {
  width: 42vw;
  height: 42vw;
  right: -16vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(36, 196, 154, 0.2), rgba(36, 196, 154, 0));
  animation: driftA 19s ease-in-out infinite;
}

body::after {
  width: 44vw;
  height: 44vw;
  left: -19vw;
  bottom: -20vw;
  background: radial-gradient(circle, rgba(4, 43, 77, 0.14), rgba(4, 43, 77, 0));
  animation: driftB 24s ease-in-out infinite;
}

:root[data-theme="dark"] body {
  background: linear-gradient(180deg, #081320 0%, var(--bg) 52%, #091a2a 100%);
}

:root[data-theme="dark"] body::before {
  background: radial-gradient(circle, rgba(43, 211, 167, 0.2), rgba(43, 211, 167, 0));
}

:root[data-theme="dark"] body::after {
  background: radial-gradient(circle, rgba(41, 104, 154, 0.24), rgba(41, 104, 154, 0));
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: var(--scroll-width, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5ed8b6 72%, #9be8d2);
  box-shadow: 0 0 18px rgba(36, 196, 154, 0.4);
  pointer-events: none;
  transition: width 0.08s linear;
}

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

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

.page {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(207, 222, 235, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(247, 251, 255, 0.88);
}

:root[data-theme="dark"] .topbar {
  border-bottom: 1px solid rgba(37, 64, 89, 0.84);
  background: rgba(8, 18, 30, 0.86);
}

.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(130deg, #0d3558, #24c49a);
  box-shadow: 0 0 0 8px rgba(36, 196, 154, 0.14);
}

.brand small {
  color: #5d7389;
  font-weight: 520;
}

:root[data-theme="dark"] .brand small {
  color: #93acc7;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.main-nav a {
  color: #355067;
  font-size: 0.94rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.2s ease;
}

:root[data-theme="dark"] .main-nav a {
  color: #b7cee4;
}

:root[data-theme="dark"] .main-nav a:hover,
:root[data-theme="dark"] .main-nav a.active {
  color: #f3f9ff;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7ddfbe);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="dark"] .nav-toggle {
  border-color: #2f4e67;
  background: #12263a;
  color: #e5f2ff;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  flex-shrink: 0;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  padding: 0 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 196, 154, 0.42);
  box-shadow: 0 10px 18px rgba(8, 36, 60, 0.12);
}

:root[data-theme="dark"] .theme-toggle {
  border-color: #2b4862;
  background: #122438;
  color: #e6f2ff;
}

:root[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(43, 211, 167, 0.48);
  box-shadow: 0 10px 18px rgba(0, 6, 13, 0.5);
}

.theme-toggle .theme-icon {
  width: 16px;
  text-align: center;
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle.is-dark .sun {
  display: inline;
}

.theme-toggle.is-dark .moon {
  display: none;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.84rem 1.36rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  transition: transform 0.22s ease, box-shadow 0.24s ease, background-color 0.22s ease, border-color 0.22s ease;
}

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

.button.primary {
  background: linear-gradient(136deg, var(--navy), var(--navy-soft));
  color: #f4f9ff;
  box-shadow: 0 18px 36px rgba(4, 38, 69, 0.28);
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 32%, rgba(255, 255, 255, 0.26), transparent 68%);
  transform: translateX(-132%);
  transition: transform 0.54s ease;
}

.button.primary:hover::after {
  transform: translateX(132%);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line);
  box-shadow: 0 8px 16px rgba(5, 31, 56, 0.06);
}

.button.secondary:hover {
  border-color: rgba(36, 196, 154, 0.34);
  box-shadow: 0 12px 24px rgba(6, 42, 73, 0.08);
}

.button.ghost {
  background: transparent;
  color: #1b3a56;
  border-color: #c4d6e8;
}

:root[data-theme="dark"] .button.ghost {
  color: #c8def3;
  border-color: #3a5872;
}

.section {
  padding: 48px 0 80px;
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: clamp(1.74rem, 2.8vw, 2.88rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 620;
  color: var(--ink-2);
}

.section > p.lead,
.page-hero p.lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 72ch;
}

.hero {
  position: relative;
  padding: 104px 0 56px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 14%;
  width: 340px;
  height: 340px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(36, 196, 154, 0.24), rgba(36, 196, 154, 0));
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px));
  transition: transform 0.2s ease-out;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d2dfeb;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.9);
  color: #42637c;
  font-size: 0.8rem;
  font-weight: 620;
  letter-spacing: 0.01em;
}

:root[data-theme="dark"] .hero-kicker {
  border-color: #33536d;
  background: rgba(14, 34, 50, 0.9);
  color: #a6bfd7;
}

.hero h1,
.page-hero h1 {
  margin: 16px 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(2.26rem, 5.4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
  font-weight: 640;
  color: var(--ink-2);
}

.hero h1 {
  font-size: clamp(2.32rem, 5.2vw, 4.22rem);
  line-height: 0.96;
  letter-spacing: -0.043em;
  max-width: none;
}

.hero-line {
  display: block;
}

.hero-sphere {
  position: absolute;
  z-index: 1;
  right: 34%;
  top: 44px;
  width: clamp(260px, 27vw, 420px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.94;
  mix-blend-mode: screen;
  filter: saturate(108%);
  transition: opacity 0.28s ease;
}

:root[data-theme="dark"] .hero-sphere {
  opacity: 0.96;
}

:root[data-theme="light"] .hero-sphere {
  opacity: 0.46;
  mix-blend-mode: normal;
}

.hero-sphere-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(204, 220, 233, 0.9);
  background: linear-gradient(162deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 252, 0.98));
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: panelFloat 8.4s ease-in-out infinite;
}

:root[data-theme="dark"] .hero-panel {
  border-color: #2d4b64;
  background: linear-gradient(162deg, rgba(12, 30, 45, 0.95), rgba(15, 37, 56, 0.95));
}

.hero-panel h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  font-weight: 620;
  color: var(--ink-2);
}

.snapshot-panel {
  isolation: isolate;
  overflow: hidden;
}

.snapshot-panel > * {
  position: relative;
  z-index: 1;
}

.snapshot-panel::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(36, 196, 154, 0.16), rgba(36, 196, 154, 0));
  z-index: 0;
}

.snapshot-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 36%);
  opacity: 0.42;
  z-index: 0;
}

:root[data-theme="dark"] .snapshot-panel::after {
  background: linear-gradient(180deg, rgba(180, 220, 255, 0.08), transparent 34%);
  opacity: 0.28;
}

.snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.snapshot-head h3 {
  margin: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #c7dfec;
  background: rgba(255, 255, 255, 0.92);
  color: #456279;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .live-pill {
  border-color: #355570;
  background: rgba(14, 34, 50, 0.96);
  color: #9ec1de;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(36, 196, 154, 0.5);
  animation: pulseLiveDot 2s ease-out infinite;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.snapshot-primary {
  margin-bottom: 9px;
}

.metric-grid-compact {
  margin-bottom: 9px;
}

.metric {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(198, 217, 233, 0.66);
  background: linear-gradient(174deg, rgba(253, 255, 255, 0.9), rgba(243, 249, 253, 0.76));
  transition: border-color 0.26s ease, background-color 0.26s ease, box-shadow 0.26s ease;
}

:root[data-theme="dark"] .metric {
  border-color: rgba(54, 87, 112, 0.86);
  background: linear-gradient(174deg, rgba(17, 39, 57, 0.86), rgba(15, 35, 52, 0.7));
}

.metric.is-up {
  border-color: rgba(43, 211, 167, 0.48);
  box-shadow: inset 0 0 0 1px rgba(43, 211, 167, 0.14);
}

.metric.is-down {
  border-color: rgba(88, 122, 155, 0.72);
}

.metric-mainline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.metric-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.74rem;
  font-weight: 570;
  letter-spacing: 0.01em;
  color: #7a95ad;
}

.metric strong {
  display: block;
  font-size: 1.42rem;
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: -0.025em;
  color: var(--ink-2);
}

.metric-primary {
  padding: 13px 14px;
}

.metric-primary strong {
  font-size: 1.88rem;
  letter-spacing: -0.03em;
}

.metric-primary .metric-label {
  font-size: 0.77rem;
}

.metric-minimal strong {
  font-size: 1.6rem;
}

.metric-delta {
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: #7c97ae;
  white-space: nowrap;
}

.metric-primary .metric-delta {
  font-size: 0.8rem;
}

.metric-delta.is-up {
  color: #2ec8a1;
}

.metric-delta.is-down {
  color: #8aa8c2;
}

.metric-delta.is-neutral {
  color: #7c97ae;
}

:root[data-theme="dark"] .metric-label {
  color: #8faecc;
}

:root[data-theme="dark"] .metric-delta {
  color: #82a4bf;
}

:root[data-theme="dark"] .metric-delta.is-up {
  color: #38d4aa;
}

:root[data-theme="dark"] .metric-delta.is-down {
  color: #7f9fba;
}

.metric-strip {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(174, 200, 220, 0.3);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
}

:root[data-theme="dark"] .metric-strip {
  border-top-color: rgba(62, 93, 117, 0.5);
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strip-item span {
  font-size: 0.7rem;
  color: #7a96ae;
  letter-spacing: 0.02em;
}

.strip-item strong {
  font-size: 0.98rem;
  font-weight: 610;
  line-height: 1.2;
  color: var(--ink-2);
}

:root[data-theme="dark"] .strip-item span {
  color: #8eafca;
}

.metric-note {
  margin-top: 9px;
  color: #6b879f;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

:root[data-theme="dark"] .metric-note {
  color: #95afc8;
}

.card-grid,
.role-grid,
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.card,
.role-card,
.panel,
.form-card,
.step {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-y: 0px;
  border: 1px solid #d7e4f0;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift-y));
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.28s ease, border-color 0.24s ease;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .role-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .step {
  border-color: #2d4c67;
  background: rgba(12, 29, 44, 0.95);
}

.card:hover,
.role-card:hover,
.panel:hover,
.form-card:hover,
.step:hover {
  --lift-y: -5px;
  border-color: #c8ddef;
  box-shadow: var(--shadow-md);
}

.card,
.role-card,
.panel,
.form-card {
  padding: 20px;
}

.card .tag,
.role-card .tag,
.page-tag {
  display: inline-flex;
  margin-bottom: 10px;
  border: 1px solid #d0dfeb;
  border-radius: 999px;
  padding: 4px 10px;
  color: #49657e;
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  background: #f2f8fd;
}

:root[data-theme="dark"] .card .tag,
:root[data-theme="dark"] .role-card .tag,
:root[data-theme="dark"] .page-tag {
  border-color: #35556f;
  color: #9dbad2;
  background: #102638;
}

.card h3,
.role-card h3,
.panel h3,
.form-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 620;
  color: var(--ink-2);
}

.card p,
.role-card p,
.panel p,
.form-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.dual-grid,
.two-col,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
}

.role-card .arrow {
  margin-top: auto;
  color: var(--ink-2);
  font-size: 0.89rem;
  font-weight: 620;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.step {
  position: relative;
  padding: 16px;
}

.step::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #8de4c8);
  position: absolute;
  top: -1px;
  left: 16px;
}

.step .index {
  font-size: 0.8rem;
  color: #60768c;
  font-weight: 620;
}

.step h4 {
  margin: 8px 0 6px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.schema-card {
  border: 1px solid #d2e2ef;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 253, 0.96));
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

:root[data-theme="dark"] .schema-card {
  border-color: #2f4d66;
  background: linear-gradient(160deg, rgba(13, 30, 45, 0.98), rgba(14, 35, 53, 0.96));
}

.schema-card h3 {
  margin: 0;
  font-size: 1.04rem;
  color: var(--ink-2);
  letter-spacing: -0.015em;
}

.schema-track {
  --cols: 4;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 20px;
}

.schema-node {
  position: relative;
  border: 1px solid #cfe0ee;
  border-radius: 14px;
  background: linear-gradient(165deg, #fafdff, #edf5fb);
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 600;
  padding: 12px 10px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

:root[data-theme="dark"] .schema-node {
  border-color: #35556f;
  background: linear-gradient(165deg, #112638, #0f2233);
}

.schema-node span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55758f;
  font-weight: 700;
}

:root[data-theme="dark"] .schema-node span {
  color: #8faec8;
}

.schema-track .schema-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: -20px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #8de4c8);
}

.schema-track .schema-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: -20px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #8de4c8;
}

.kpi-list,
.legal-list {
  margin: 0;
  padding-left: 18px;
}

.kpi-list li,
.legal-list li {
  margin: 9px 0;
  color: #344d64;
}

:root[data-theme="dark"] .kpi-list li,
:root[data-theme="dark"] .legal-list li {
  color: #9ab4cc;
}

.badge-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0dfeb;
  border-radius: 999px;
  background: #fbfeff;
  padding: 7px 12px;
  font-size: 0.84rem;
  color: #43627b;
}

:root[data-theme="dark"] .badge {
  border-color: #35556f;
  background: #102638;
  color: #a1bdd5;
}

.page-hero {
  position: relative;
  padding: 78px 0 32px;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 8%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(36, 196, 154, 0.2), rgba(36, 196, 154, 0));
  z-index: -1;
  animation: pulse 9s ease-in-out infinite;
}

.page-hero h1 {
  font-size: clamp(2.04rem, 4.6vw, 3.62rem);
  max-width: 18ch;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.78rem;
  color: #4f6a82;
  font-weight: 620;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .field label {
  color: #97b2cb;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #c9dcec;
  background: #fff;
  color: #0a1f33;
  font: inherit;
  padding: 0.78rem 0.84rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea {
  border-color: #33536d;
  background: #11283b;
  color: #e7f3ff;
}

.field textarea {
  min-height: 98px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #8ddfc5;
  box-shadow: 0 0 0 4px rgba(36, 196, 154, 0.16);
  transform: translateY(-1px);
}

:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .field select:focus,
:root[data-theme="dark"] .field textarea:focus {
  border-color: #43cfa9;
  box-shadow: 0 0 0 4px rgba(43, 211, 167, 0.22);
}

.field.full {
  grid-column: 1 / -1;
}

.form-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.86rem;
  color: #34526a;
  min-height: 1.2em;
}

:root[data-theme="dark"] .form-status {
  color: #a8c2d8;
}

.form-status.success {
  color: #0e7f7a;
}

.form-status.error {
  color: #8b2f2f;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid #d7e4f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

:root[data-theme="dark"] .faq details {
  border-color: #31526c;
  background: rgba(14, 33, 49, 0.95);
}

.faq details[open] {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 620;
}

.faq p {
  margin: 9px 0 4px;
  color: var(--muted);
}

.cta {
  border-radius: var(--radius-2xl);
  border: 1px solid #cbdeeb;
  background: linear-gradient(146deg, rgba(255, 255, 255, 0.98), rgba(226, 243, 249, 0.95));
  box-shadow: var(--shadow-md);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

:root[data-theme="dark"] .cta {
  border-color: #2f4d67;
  background: linear-gradient(146deg, rgba(13, 31, 47, 0.98), rgba(17, 40, 59, 0.94));
}

.cta h3 {
  margin: 0 0 7px;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  font-weight: 620;
  color: var(--ink-2);
}

.cta p {
  margin: 0;
  color: #4a657d;
}

:root[data-theme="dark"] .cta p {
  color: #9ab3ca;
}

.footer {
  padding: 34px 0 52px;
}

.footer-wrap {
  border-top: 1px solid #cfdeea;
  padding-top: 20px;
  color: #516a81;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

:root[data-theme="dark"] .footer-wrap {
  border-top-color: #294862;
  color: #91aac2;
}

.footer a {
  color: var(--ink-2);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px) scale(0.996);
  filter: blur(4px);
  transition: opacity 0.56s ease, transform 0.56s ease, filter 0.56s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes driftA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-20px, 20px, 0) scale(1.06);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, -18px, 0) scale(1.04);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes pulseLiveDot {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 196, 154, 0.44);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(36, 196, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(36, 196, 154, 0);
  }
}

@keyframes signalBloom {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.74;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 1140px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-sphere {
    right: 6%;
    top: 18px;
    width: clamp(190px, 36vw, 300px);
    opacity: 0.72;
  }

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

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

  .schema-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 82px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 251, 255, 0.98);
    display: none;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px 4vw 16px;
  }

  :root[data-theme="dark"] .main-nav {
    background: rgba(8, 18, 30, 0.98);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-sphere {
    display: none;
  }

  .role-grid,
  .cols-3,
  .dual-grid,
  .two-col,
  .form-grid,
  .metric-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline {
    grid-template-columns: 1fr;
  }

  .schema-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .schema-track .schema-node:not(:last-child)::after {
    top: auto;
    right: auto;
    left: calc(50% - 1px);
    bottom: -12px;
    width: 2px;
    height: 12px;
    background: linear-gradient(180deg, var(--accent), #8de4c8);
  }

  .schema-track .schema-node:not(:last-child)::before {
    top: auto;
    right: auto;
    left: calc(50% - 4px);
    bottom: -12px;
    border-top: 6px solid #8de4c8;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 0;
  }

  .cta,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .card,
  .role-card,
  .panel,
  .form-card,
  .step {
    transform: none !important;
  }
}
