:root {
  --bg-0: #010104;
  --bg-1: #07070b;
  --bg-2: #0d0d10;
  --surface: rgba(14, 14, 19, 0.74);
  --surface-soft: rgba(24, 24, 30, 0.56);
  --surface-strong: rgba(10, 10, 14, 0.92);
  --text: #ffffff;
  --muted: rgba(210, 210, 210, 0.78);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(207, 254, 37, 0.52);
  --accent: #cffe25;
  --accent-alt: #f3ff9b;
  --accent-soft: #dfff67;
  --accent-mint: #d8f7d6;
  --success: #cffe25;
  --warning: #ffd98c;
  --danger: #ff9ea8;
  --radius: 18px;
  --radius-soft: 14px;
  --max-width: 1140px;
  --shadow-soft: 0 22px 64px rgba(0, 0, 0, 0.56);
  --shadow-glow: 0 16px 60px rgba(207, 254, 37, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.56;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 520px at 8% -8%, rgba(207, 254, 37, 0.12), transparent 62%),
    radial-gradient(900px 520px at 96% 0%, rgba(207, 254, 37, 0.09), transparent 70%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 52%, #000000 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.015) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.015) 100%
  );
  z-index: -5;
}

h1,
h2,
h3,
strong,
.brand-text,
.btn,
.eyebrow,
.pill,
.status-pill,
.tab-btn,
.kpi-value {
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

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

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.1rem;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 86%);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(44px);
  pointer-events: none;
  z-index: -3;
  opacity: 0.45;
}

.bg-orb-one {
  width: 520px;
  height: 520px;
  left: -160px;
  top: -200px;
  background: radial-gradient(circle at 34% 34%, rgba(207, 254, 37, 0.52), transparent 68%);
  animation: floatOrb 15s ease-in-out infinite;
}

.bg-orb-two {
  width: 480px;
  height: 480px;
  right: -170px;
  bottom: -170px;
  background: radial-gradient(circle at 60% 48%, rgba(255, 255, 255, 0.2), transparent 72%);
  animation: floatOrb 19s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, 20px, 0) scale(1.07);
  }
}

main {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 5.2rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 1px;
  margin-right: 0.48rem;
  background: linear-gradient(90deg, transparent, rgba(207, 254, 37, 0.88));
}

.lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.06rem;
}

.lead-sm {
  color: var(--muted);
  max-width: 58ch;
}

.site-header {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 1.25rem auto 0;
  padding: 0.82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.9), rgba(9, 9, 12, 0.94));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 1rem;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.progressive-blur-wrap {
  position: absolute;
  inset: auto 0 -42px;
  height: 52px;
  pointer-events: none;
  z-index: -1;
}

.progressive-blur {
  --blur: 26px;
  --ratio: 1.26;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.progressive-blur-panel {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent);
  opacity: 0.16;
}

.progressive-blur-panel:nth-child(2) {
  backdrop-filter: blur(calc(var(--blur) / var(--ratio)));
  -webkit-backdrop-filter: blur(calc(var(--blur) / var(--ratio)));
  transform: translateY(6px);
}

.progressive-blur-panel:nth-child(3) {
  backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio))));
  -webkit-backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio))));
  transform: translateY(12px);
}

.progressive-blur-panel:nth-child(4) {
  backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio) * var(--ratio))));
  -webkit-backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio) * var(--ratio))));
  transform: translateY(18px);
}

.progressive-blur-panel:nth-child(5) {
  backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio) * var(--ratio) * var(--ratio))));
  -webkit-backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio) * var(--ratio) * var(--ratio))));
  transform: translateY(24px);
}

.progressive-blur-panel:nth-child(6),
.progressive-blur-panel:nth-child(7),
.progressive-blur-panel:nth-child(8) {
  backdrop-filter: blur(calc(var(--blur) / 6));
  -webkit-backdrop-filter: blur(calc(var(--blur) / 6));
  transform: translateY(30px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-alt), var(--accent));
  color: #060608;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(207, 254, 37, 0.33);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.brand-text {
  font-weight: 600;
  font-size: 1.03rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.93rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 170ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(18, 18, 24, 0.86);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 0.67rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 150ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent-alt), var(--accent));
  color: #060608;
  box-shadow: 0 10px 30px rgba(207, 254, 37, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 36px rgba(207, 254, 37, 0.42);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(14, 14, 18, 0.78);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--line-strong);
  background: rgba(21, 21, 27, 0.86);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 1.5rem;
  align-items: stretch;
  padding-top: 4.6rem;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.06;
  max-width: 16ch;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.66rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(207, 254, 37, 0.2);
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.hero-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stats article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.88rem;
  background: linear-gradient(180deg, rgba(19, 19, 25, 0.72), rgba(10, 10, 14, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-stats h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--accent);
}

.hero-stats p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.glass-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 16, 22, 0.78), rgba(10, 10, 14, 0.9));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.1), transparent 36%, transparent 68%, rgba(207, 254, 37, 0.13));
  mix-blend-mode: screen;
  opacity: 0.24;
}

.hero-panel {
  padding: 1.2rem;
}

.hero-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-panel li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.56rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-panel li:last-child {
  border-bottom: 0;
}

.hero-panel li > span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-showcase {
  overflow: hidden;
  isolation: isolate;
}

.tech-core {
  --core-size: clamp(220px, 24vw, 286px);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  min-height: 270px;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(207, 254, 37, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 48%, rgba(207, 254, 37, 0.16), rgba(11, 11, 15, 0.68) 58%, rgba(8, 8, 11, 0.95) 100%),
    linear-gradient(160deg, rgba(17, 17, 24, 0.9), rgba(8, 8, 12, 0.95));
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 240ms ease;
  will-change: transform;
}

.tech-core::before {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(207, 254, 37, 0.42), transparent 40%);
  opacity: 0.46;
  z-index: 0;
}

.tech-core::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 12px
  );
  opacity: 0.35;
  z-index: 0;
}

.tech-core-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at center, black 22%, transparent 88%);
  z-index: 1;
}

.tech-scan {
  position: absolute;
  left: -18%;
  width: 136%;
  height: 30%;
  top: -38%;
  background: linear-gradient(180deg, transparent, rgba(207, 254, 37, 0.32), transparent);
  filter: blur(10px);
  opacity: 0.7;
  animation: techScan 8s linear infinite;
  z-index: 1;
}

.tech-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(207, 254, 37, 0.34);
  box-shadow:
    inset 0 0 45px rgba(207, 254, 37, 0.18),
    0 0 32px rgba(207, 254, 37, 0.18);
  animation: corePulse 4.6s ease-in-out infinite;
  z-index: 1;
}

.orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 106px;
  border-top: 1px dashed rgba(207, 254, 37, 0.28);
  transform-origin: left center;
  opacity: 0.5;
  z-index: 1;
}

.orbit-path-one {
  transform: translate(-2px, -4px) rotate(-26deg);
}

.orbit-path-two {
  transform: translate(-2px, 1px) rotate(26deg);
}

.orbit-path-three {
  transform: translate(-2px, 12px) rotate(142deg);
}

.tech-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.04);
  z-index: 1;
}

.tech-ring-one {
  width: var(--core-size);
  height: calc(var(--core-size) * 0.66);
  border-color: rgba(207, 254, 37, 0.46);
  animation: ringSpin 13s linear infinite;
}

.tech-ring-two {
  width: calc(var(--core-size) * 0.8);
  height: calc(var(--core-size) * 0.8);
  border-color: rgba(255, 255, 255, 0.24);
  animation: ringSpinReverse 9.5s linear infinite;
}

.tech-ring-three {
  width: calc(var(--core-size) * 0.56);
  height: calc(var(--core-size) * 1.02);
  border-color: rgba(207, 254, 37, 0.28);
  animation: ringSpin 16s linear infinite;
}

.tech-core-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 24%, var(--accent-alt) 0%, var(--accent-soft) 45%, #91bb0f 100%);
  color: #060608;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow:
    0 0 0 8px rgba(207, 254, 37, 0.11),
    0 0 44px rgba(207, 254, 37, 0.45);
  z-index: 3;
}

.tech-core-center::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(207, 254, 37, 0.44);
}

.hero-panel .orbit-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 8, 11, 0.76);
  color: #f4f4f5;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(7px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}

.hero-panel .orbit-tag em {
  font-style: normal;
  color: var(--accent);
}

.hero-panel .tag-code {
  left: 8%;
  top: 14%;
  animation: tagFloatA 7s ease-in-out infinite;
}

.hero-panel .tag-web {
  right: 8%;
  top: 16%;
  animation: tagFloatB 6.6s ease-in-out infinite;
}

.hero-panel .tag-it {
  right: 4%;
  top: 45%;
  animation: tagFloatC 6.8s ease-in-out infinite;
}

.hero-panel .tag-pc {
  left: 13%;
  bottom: 16%;
  animation: tagFloatB 6.4s ease-in-out infinite;
}

.hero-panel .tag-auto {
  right: 10%;
  bottom: 12%;
  animation: tagFloatA 7.2s ease-in-out infinite;
}

@keyframes techScan {
  0% {
    transform: translateY(-150%);
  }
  100% {
    transform: translateY(380%);
  }
}

@keyframes corePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.44;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.8;
  }
}

@keyframes ringSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ringSpinReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes tagFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes tagFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-4px, 5px, 0);
  }
}

@keyframes tagFloatC {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(5px, -4px, 0);
  }
}

.hero-visual-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.metric-chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.52rem 0.56rem;
  background: rgba(255, 255, 255, 0.02);
}

.metric-chip small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.metric-chip strong {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.2;
}

.logo-marquee {
  margin-top: 0.3rem;
  margin-bottom: 0.2rem;
}

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  padding: 0.72rem 0;
  animation: marqueeX 24s linear infinite;
}

.marquee-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

@keyframes marqueeX {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.mini-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.card-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1.18rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 20, 27, 0.74), rgba(10, 10, 14, 0.9));
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--muted);
}

.service-card ul {
  margin-top: 0.8rem;
}

.service-card li {
  color: #e6e6e7;
  margin-bottom: 0.35rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.check-item {
  position: relative;
  padding-left: 1.4rem;
  color: #e8e8ea;
}

.check-item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

.highlight-list {
  display: grid;
  gap: 0.8rem;
}

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

.steps li {
  padding: 1rem;
  border-radius: var(--radius-soft);
  background: linear-gradient(180deg, rgba(19, 19, 26, 0.76), rgba(10, 10, 14, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.04rem;
}

.steps p {
  color: var(--muted);
}

.plan-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 19, 27, 0.76), rgba(10, 10, 14, 0.9));
  box-shadow: var(--shadow-soft);
}

.plan-card h3 {
  margin: 0 0 0.55rem;
}

.price {
  margin-bottom: 0.7rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
}

.pill {
  display: inline-block;
  border: 1px solid rgba(207, 254, 37, 0.58);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.featured {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft), 0 12px 58px rgba(207, 254, 37, 0.24);
}

.plan-card ul {
  margin-bottom: 0.95rem;
}

.plan-card li {
  margin-bottom: 0.33rem;
  color: #e6e6e7;
}

.portal-features {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-features article {
  padding: 1rem;
  border-radius: var(--radius-soft);
  background: linear-gradient(180deg, rgba(19, 19, 26, 0.76), rgba(10, 10, 14, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.portal-features h3 {
  margin: 0 0 0.35rem;
}

.portal-features p {
  color: var(--muted);
}

.cta-inline {
  margin-top: 1.2rem;
}

.process-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.process-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.92rem;
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.76), rgba(10, 10, 14, 0.9));
}

.process-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.01rem;
}

.process-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.faq details {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 19, 26, 0.72), rgba(10, 10, 14, 0.88));
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.7rem;
}

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

.faq p {
  color: var(--muted);
  margin-top: 0.42rem;
}

.contact-panel {
  text-align: center;
  padding: 2.4rem;
  margin-bottom: 2.5rem;
}

.cta-band {
  border-color: rgba(207, 254, 37, 0.35);
  box-shadow: var(--shadow-soft), 0 12px 56px rgba(207, 254, 37, 0.16);
}

.contact-panel h2 {
  margin: 0 0 0.45rem;
}

.contact-panel p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.portal-body {
  padding-bottom: 2rem;
}

.portal-topbar {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 1.25rem auto 0.9rem;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.badge {
  border: 1px solid var(--line-strong);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-size: 0.78rem;
  background: rgba(18, 36, 85, 0.65);
}

.portal-layout {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(235px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
}

.portal-sidebar {
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 1rem;
}

.portal-sidebar h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.field-control {
  width: 100%;
  margin-bottom: 0.8rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.6rem 0.7rem;
}

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

.client-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.76), rgba(10, 10, 14, 0.9));
  padding: 0.67rem;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.client-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.client-item strong {
  display: block;
  font-size: 0.92rem;
}

.client-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.client-item.active {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(207, 254, 37, 0.34), 0 14px 34px rgba(0, 0, 0, 0.36);
}

.portal-content {
  display: grid;
  gap: 0.9rem;
}

.account-head {
  padding: 1rem 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.account-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.status-pill {
  align-self: center;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.status-pill.active {
  border-color: rgba(100, 231, 181, 0.58);
  color: var(--success);
}

.status-pill.inactive {
  border-color: rgba(255, 140, 165, 0.58);
  color: var(--danger);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.kpi-card {
  padding: 0.86rem;
}

.kpi-card h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.kpi-value {
  margin-top: 0.3rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tab-btn {
  border: 1px solid var(--line);
  background: rgba(17, 17, 24, 0.84);
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.83rem;
  cursor: pointer;
}

.tab-btn.active {
  border-color: var(--line-strong);
  color: var(--accent);
}

.tab-panel {
  display: none;
  padding: 1rem 1.05rem;
}

.tab-panel.active {
  display: block;
}

.tab-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

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

.timeline li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.78), rgba(10, 10, 14, 0.9));
  padding: 0.68rem;
}

.timeline .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.25rem;
}

.time-chip,
.type-chip {
  border-radius: 999px;
  font-size: 0.73rem;
  padding: 0.2rem 0.48rem;
}

.time-chip {
  border: 1px solid var(--line);
  color: var(--muted);
}

.type-chip {
  background: rgba(207, 254, 37, 0.16);
  border: 1px solid rgba(207, 254, 37, 0.42);
  color: var(--accent);
}

.timeline p {
  color: #e6e6e7;
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.two-col p {
  margin-bottom: 0.55rem;
  color: #e6e6e7;
}

.two-col strong {
  color: var(--muted);
  font-weight: 600;
}

.settings-grid {
  display: grid;
  gap: 0.65rem;
}

.switch-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.76), rgba(10, 10, 14, 0.9));
  padding: 0.68rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.switch-item span {
  color: #e6e6e7;
}

input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.auth-shell {
  width: min(520px, calc(100% - 2.5rem));
  margin: 2rem auto;
}

.auth-card {
  padding: 1.2rem;
}

.auth-card h1 {
  margin: 0 0 0.45rem;
}

.auth-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.72rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-form input,
.stack-form input,
.stack-form select,
.stack-form textarea {
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(11, 11, 15, 0.9);
  color: var(--text);
  padding: 0.58rem 0.68rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.auth-form input:focus,
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.field-control:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(207, 254, 37, 0.16);
}

.dashboard-shell {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.dashboard-card {
  padding: 1rem 1.05rem;
}

.dashboard-card h1 {
  margin: 0 0 0.35rem;
}

.dashboard-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.03rem;
}

.stack-form {
  display: grid;
  gap: 0.62rem;
}

.list-wrap {
  display: grid;
  gap: 0.7rem;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem;
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.76), rgba(10, 10, 14, 0.9));
}

.list-item h3 {
  margin: 0 0 0.42rem;
  font-size: 0.98rem;
}

.list-item p {
  margin-bottom: 0.28rem;
  color: #e6e6e7;
}

.list-item small {
  color: var(--muted);
  font-size: 0.74em;
}

.code-block {
  margin: 0.8rem 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 9, 12, 0.96);
  color: var(--accent-mint);
  padding: 0.72rem;
  font-size: 0.78rem;
  overflow: auto;
}

.mfa-qr {
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .card-grid,
  .plan-grid,
  .portal-features,
  .kpi-grid,
  .two-col,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .account-head {
    flex-direction: column;
  }

  .hero-visual-grid {
    grid-template-columns: 1fr;
  }

  .tech-core {
    --core-size: clamp(205px, 46vw, 250px);
    min-height: 248px;
  }

  .orbit-path {
    width: 90px;
  }

  .hero-panel .orbit-tag {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 0.6rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(280px, 92vw);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 8, 11, 0.96);
    backdrop-filter: blur(8px);
    padding: 0.75rem;
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav a {
    padding: 0.22rem 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .tech-core {
    min-height: 224px;
  }

  .hero-panel .orbit-tag {
    padding: 0.22rem 0.42rem;
  }

  .hero-panel .tag-web {
    right: 4%;
  }

  .hero-panel .tag-it {
    right: 2%;
  }

  .section {
    padding: 4.2rem 0;
  }
}

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

@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.prod.website-files.com/68b6ff99deb8a7b82b41a88b/68b703527c674a39df0e5911_BDOGrotesk-Regular-BF648a656fd543a.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.prod.website-files.com/68b6ff99deb8a7b82b41a88b/68b703520599823f7627b00f_BDOGrotesk-Medium-BF648a656fc86b8.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.prod.website-files.com/68b6ff99deb8a7b82b41a88b/68b7035224a13ddf9bb81cfa_BDOGrotesk-Bold-BF648a656f8559f.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --xd-black: #010104;
  --xd-bg: #0c0c0f;
  --xd-card: #0d0d10;
  --xd-white: #ffffff;
  --xd-grey: rgba(210, 210, 210, 0.8);
  --xd-yellow: #cffe25;
  --xd-light-yellow: #f3ff9b;
  --xd-light-green: #d8f7d6;
  --xd-cyan: #5ad4ff;
  --xd-blue: #6f98ff;
  --xd-coral: #ff8e74;
  --xd-amber: #ffcc74;
  --xd-stroke: rgba(255, 255, 255, 0.1);
  --xd-radius-7: 7px;
  --xd-radius-12: 12px;
  --xd-radius-16: 16px;
  --xd-radius-24: 24px;
}

body[data-page="auth-login"],
body[data-page="admin-dashboard"],
body[data-page="client-dashboard"],
body[data-page="portal"] {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(140% 100% at 50% -8%, rgba(168, 203, 48, 0.12), transparent 56%),
    radial-gradient(90% 72% at 55% 52%, rgba(106, 148, 52, 0.08), transparent 74%),
    linear-gradient(180deg, #05070a 0%, #030508 52%, #020407 100%);
  font-family: "BDO Grotesk", Arial, sans-serif;
  color: var(--xd-white);
  letter-spacing: -0.01em;
}

body[data-page="auth-login"]::before,
body[data-page="admin-dashboard"]::before,
body[data-page="client-dashboard"]::before,
body[data-page="portal"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(216, 247, 214, 0.28) 0.75px, transparent 1.2px),
    radial-gradient(circle, rgba(207, 254, 37, 0.24) 0.7px, transparent 1.15px);
  background-size:
    140px 140px,
    190px 190px;
  background-position:
    0 0,
    78px 56px;
  opacity: 0.3;
  animation: heroParticleDrift 42s linear infinite;
}

body[data-page="auth-login"] .bg-grid,
body[data-page="admin-dashboard"] .bg-grid,
body[data-page="client-dashboard"] .bg-grid,
body[data-page="portal"] .bg-grid {
  display: none;
}

body[data-page="auth-login"] .bg-orb,
body[data-page="admin-dashboard"] .bg-orb,
body[data-page="client-dashboard"] .bg-orb,
body[data-page="portal"] .bg-orb {
  opacity: 0.26;
  filter: blur(56px);
}

body[data-page="auth-login"].portal-body,
body[data-page="admin-dashboard"].portal-body,
body[data-page="client-dashboard"].portal-body,
body[data-page="portal"].portal-body {
  padding-bottom: 0;
}

body[data-page="auth-login"] h1,
body[data-page="auth-login"] h2,
body[data-page="auth-login"] h3,
body[data-page="admin-dashboard"] h1,
body[data-page="admin-dashboard"] h2,
body[data-page="admin-dashboard"] h3,
body[data-page="client-dashboard"] h1,
body[data-page="client-dashboard"] h2,
body[data-page="client-dashboard"] h3,
body[data-page="portal"] h1,
body[data-page="portal"] h2,
body[data-page="portal"] h3 {
  font-family: "BDO Grotesk", Arial, sans-serif;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: #fff;
}

body[data-page="auth-login"] .eyebrow,
body[data-page="admin-dashboard"] .eyebrow,
body[data-page="client-dashboard"] .eyebrow,
body[data-page="portal"] .eyebrow {
  color: var(--xd-yellow);
  letter-spacing: -0.02em;
}

body[data-page="auth-login"] .lead-sm,
body[data-page="admin-dashboard"] .lead-sm,
body[data-page="client-dashboard"] .lead-sm,
body[data-page="portal"] .lead-sm,
body[data-page="auth-login"] .mini-note,
body[data-page="admin-dashboard"] .mini-note,
body[data-page="client-dashboard"] .mini-note,
body[data-page="portal"] .mini-note {
  color: var(--xd-grey);
}

body[data-page="auth-login"] .glass-card,
body[data-page="admin-dashboard"] .glass-card,
body[data-page="client-dashboard"] .glass-card,
body[data-page="portal"] .glass-card {
  border: 1px solid var(--xd-stroke);
  border-radius: var(--xd-radius-16);
  background: rgba(248, 248, 248, 0.045);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="auth-login"] .portal-topbar,
body[data-page="admin-dashboard"] .portal-topbar,
body[data-page="client-dashboard"] .portal-topbar,
body[data-page="portal"] .portal-topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 34;
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: var(--xd-radius-16);
  background: linear-gradient(180deg, rgba(3, 6, 9, 0.68), rgba(3, 6, 9, 0.22) 78%, transparent 100%);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

body[data-page="auth-login"] .portal-topbar::before,
body[data-page="admin-dashboard"] .portal-topbar::before,
body[data-page="client-dashboard"] .portal-topbar::before,
body[data-page="portal"] .portal-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body[data-page="auth-login"] .portal-topbar > *,
body[data-page="admin-dashboard"] .portal-topbar > *,
body[data-page="client-dashboard"] .portal-topbar > *,
body[data-page="portal"] .portal-topbar > * {
  position: relative;
  z-index: 1;
}

body[data-page="auth-login"] .brand-mark,
body[data-page="admin-dashboard"] .brand-mark,
body[data-page="client-dashboard"] .brand-mark,
body[data-page="portal"] .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--xd-yellow);
  color: #010104;
  box-shadow: 0 0 26px rgba(207, 254, 37, 0.32);
}

body[data-page="auth-login"] .brand-text,
body[data-page="admin-dashboard"] .brand-text,
body[data-page="client-dashboard"] .brand-text,
body[data-page="portal"] .brand-text {
  color: #fff;
}

body[data-page="auth-login"] .btn,
body[data-page="admin-dashboard"] .btn,
body[data-page="client-dashboard"] .btn,
body[data-page="portal"] .btn {
  border-radius: 999px;
  border: 1px solid var(--xd-stroke);
  font-family: "BDO Grotesk", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body[data-page="auth-login"] .btn-primary,
body[data-page="admin-dashboard"] .btn-primary,
body[data-page="client-dashboard"] .btn-primary,
body[data-page="portal"] .btn-primary {
  border-color: transparent;
  background: var(--xd-yellow);
  color: #010104;
  box-shadow: 0 12px 30px rgba(207, 254, 37, 0.24);
}

body[data-page="auth-login"] .btn-primary:hover,
body[data-page="admin-dashboard"] .btn-primary:hover,
body[data-page="client-dashboard"] .btn-primary:hover,
body[data-page="portal"] .btn-primary:hover {
  box-shadow: 0 16px 38px rgba(207, 254, 37, 0.32);
}

body[data-page="auth-login"] .btn-ghost,
body[data-page="admin-dashboard"] .btn-ghost,
body[data-page="client-dashboard"] .btn-ghost,
body[data-page="portal"] .btn-ghost {
  background: rgba(12, 14, 18, 0.78);
  color: #e6ece8;
  border-color: rgba(255, 255, 255, 0.16);
}

body[data-page="auth-login"] .btn-ghost:hover,
body[data-page="admin-dashboard"] .btn-ghost:hover,
body[data-page="client-dashboard"] .btn-ghost:hover,
body[data-page="portal"] .btn-ghost:hover {
  border-color: rgba(207, 254, 37, 0.42);
}

body[data-page="auth-login"] .auth-shell {
  width: min(640px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: 126px;
  padding-bottom: 34px;
}

body[data-page="auth-login"] .auth-card {
  padding: 1.35rem;
}

body[data-page="admin-dashboard"] .dashboard-shell,
body[data-page="client-dashboard"] .dashboard-shell {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto 1.4rem;
  padding-top: 126px;
  display: grid;
  gap: 0.95rem;
}

body[data-page="portal"] .portal-layout {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: 126px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(250px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
}

body[data-page="portal"] .portal-sidebar {
  padding: 1rem;
  position: sticky;
  top: 106px;
}

body[data-page="auth-login"] .dashboard-card,
body[data-page="admin-dashboard"] .dashboard-card,
body[data-page="client-dashboard"] .dashboard-card,
body[data-page="portal"] .portal-sidebar,
body[data-page="portal"] .account-head,
body[data-page="portal"] .tab-panel,
body[data-page="portal"] .kpi-card,
body[data-page="portal"] .client-item,
body[data-page="portal"] .timeline li,
body[data-page="portal"] .switch-item,
body[data-page="portal"] .list-item,
body[data-page="admin-dashboard"] .list-item,
body[data-page="client-dashboard"] .list-item {
  border-color: var(--xd-stroke);
  background: rgba(248, 248, 248, 0.045);
}

body[data-page="portal"] .kpi-card:nth-child(4n + 1),
body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 1) {
  border-color: rgba(90, 212, 255, 0.35);
}

body[data-page="portal"] .kpi-card:nth-child(4n + 2),
body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 2) {
  border-color: rgba(207, 254, 37, 0.35);
}

body[data-page="portal"] .kpi-card:nth-child(4n + 3),
body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 3) {
  border-color: rgba(255, 142, 116, 0.35);
}

body[data-page="portal"] .kpi-card:nth-child(4n + 4),
body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 4) {
  border-color: rgba(111, 152, 255, 0.35);
}

body[data-page="portal"] .kpi-value,
body[data-page="admin-dashboard"] .kpi-value {
  color: var(--xd-yellow);
  font-size: 1.22rem;
}

body[data-page="auth-login"] .auth-form input,
body[data-page="admin-dashboard"] .stack-form input,
body[data-page="admin-dashboard"] .stack-form select,
body[data-page="admin-dashboard"] .stack-form textarea,
body[data-page="client-dashboard"] .stack-form input,
body[data-page="portal"] .field-control,
body[data-page="portal"] .switch-item input,
body[data-page="portal"] .tab-btn {
  border-color: var(--xd-stroke);
  background: rgba(9, 12, 16, 0.84);
  color: #e7edeb;
}

body[data-page="portal"] .tab-btn.active {
  border-color: rgba(207, 254, 37, 0.58);
  background: rgba(207, 254, 37, 0.14);
  color: var(--xd-light-yellow);
}

body[data-page="auth-login"] .auth-form input:focus,
body[data-page="admin-dashboard"] .stack-form input:focus,
body[data-page="admin-dashboard"] .stack-form select:focus,
body[data-page="admin-dashboard"] .stack-form textarea:focus,
body[data-page="client-dashboard"] .stack-form input:focus,
body[data-page="portal"] .field-control:focus {
  outline: none;
  border-color: rgba(207, 254, 37, 0.55);
  box-shadow: 0 0 0 3px rgba(207, 254, 37, 0.15);
}

body[data-page="auth-login"] .code-block,
body[data-page="admin-dashboard"] .code-block,
body[data-page="client-dashboard"] .code-block,
body[data-page="portal"] .code-block {
  border-color: rgba(90, 212, 255, 0.34);
  background: rgba(5, 8, 12, 0.9);
  color: #c6f4ff;
}

@media (max-width: 980px) {
  body[data-page="portal"] .portal-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="portal"] .portal-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  body[data-page="auth-login"] .portal-topbar,
  body[data-page="admin-dashboard"] .portal-topbar,
  body[data-page="client-dashboard"] .portal-topbar,
  body[data-page="portal"] .portal-topbar {
    top: 8px;
    width: calc(100% - 1.25rem);
    padding: 0.62rem 0.78rem;
  }

  body[data-page="auth-login"] .auth-shell {
    width: calc(100% - 1.25rem);
    padding-top: 108px;
  }

  body[data-page="admin-dashboard"] .dashboard-shell,
  body[data-page="client-dashboard"] .dashboard-shell,
  body[data-page="portal"] .portal-layout {
    width: calc(100% - 1.25rem);
    padding-top: 108px;
  }
}

body[data-page="landing"] {
  margin: 0;
  background-color: var(--xd-black);
  font-family: "BDO Grotesk", Arial, sans-serif;
  color: var(--xd-white);
  letter-spacing: -0.01em;
  scroll-padding-top: 96px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body[data-page="landing"] h1,
body[data-page="landing"] h2,
body[data-page="landing"] h3,
body[data-page="landing"] h4,
body[data-page="landing"] h5,
body[data-page="landing"] h6,
body[data-page="landing"] .brand-text,
body[data-page="landing"] .eyebrow {
  font-family: "BDO Grotesk", Arial, sans-serif;
  letter-spacing: -0.045em;
  font-weight: 500;
}

body[data-page="landing"] p {
  color: var(--xd-grey);
}

body[data-page="landing"] .hero-v1 {
  background:
    radial-gradient(130% 95% at 50% -12%, rgba(168, 203, 48, 0.12), transparent 56%),
    radial-gradient(85% 70% at 52% 50%, rgba(106, 148, 52, 0.08), transparent 72%),
    linear-gradient(180deg, #05070a 0%, #030508 54%, #020407 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body[data-page="landing"] .hero-v1::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle, rgba(216, 247, 214, 0.32) 0.75px, transparent 1.2px),
    radial-gradient(circle, rgba(207, 254, 37, 0.25) 0.7px, transparent 1.15px);
  background-size:
    140px 140px,
    190px 190px;
  background-position:
    0 0,
    78px 56px;
  opacity: 0.34;
  animation: heroParticleDrift 42s linear infinite;
}

@keyframes heroParticleDrift {
  0% {
    background-position:
      0 0,
      78px 56px;
  }
  100% {
    background-position:
      -220px -140px,
      -64px -96px;
  }
}

body[data-page="landing"] .hero-overlay-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(207, 254, 37, 0.045), transparent 44%),
    radial-gradient(circle at 80% 10%, rgba(216, 247, 214, 0.035), transparent 48%);
  pointer-events: none;
  z-index: 2;
}

body[data-page="landing"] .hero-v1-video-wrap {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

body[data-page="landing"] .hero-v1-video-shadow {
  background-image: linear-gradient(rgba(1, 1, 4, 0), #010104);
  height: 120px;
  position: absolute;
  inset: auto 0 0;
}

body[data-page="landing"] .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  border: 0;
  background: transparent;
  width: 100%;
  margin: 0;
  padding: 20px 0;
  box-shadow: none;
  transition: transform 320ms ease, opacity 280ms ease;
  will-change: transform, opacity;
  isolation: isolate;
}

body[data-page="landing"] .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(2, 6, 10, 0.84), rgba(3, 8, 12, 0.62) 72%, rgba(3, 8, 12, 0.28) 100%);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

body[data-page="landing"] .site-header.header-visible {
  transform: translateY(0);
  opacity: 1;
}

body[data-page="landing"] .site-header.header-hidden {
  transform: translateY(calc(-100% - 14px));
  opacity: 0;
  pointer-events: none;
}

body[data-page="landing"] .nav-container {
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

body[data-page="landing"] .brand {
  gap: 10px;
}

body[data-page="landing"] .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--xd-yellow);
  color: #010104;
  box-shadow: 0 0 26px rgba(207, 254, 37, 0.32);
}

body[data-page="landing"] .brand-text {
  font-size: 1.03rem;
  color: #fff;
}

body[data-page="landing"] .site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

body[data-page="landing"] .site-nav a {
  color: var(--xd-grey);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.28s ease;
}

body[data-page="landing"] .site-nav a:hover,
body[data-page="landing"] .site-nav a:focus-visible {
  color: var(--xd-yellow);
}

body[data-page="landing"] .site-nav a.button-01 {
  color: #010104;
}

body[data-page="landing"] .site-nav a.button-01:hover,
body[data-page="landing"] .site-nav a.button-01:focus-visible {
  color: #010104;
}

body[data-page="landing"] .nav-toggle {
  display: none;
  border: 1px solid var(--xd-stroke);
  border-radius: var(--xd-radius-7);
  background: rgba(12, 12, 15, 0.9);
  color: #fff;
  padding: 8px 12px;
}

body[data-page="landing"] .button-01,
body[data-page="landing"] .button-03 {
  border-radius: 100px;
  padding: 15px 32px;
  text-decoration: none;
  font-size: 1.03rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.03em;
  transition: transform 0.26s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body[data-page="landing"] .button-01::before,
body[data-page="landing"] .button-03::before {
  content: "";
  position: absolute;
  top: -18%;
  left: -35%;
  width: 28%;
  height: 136%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-170%) skewX(-12deg);
  transition: transform 0.65s ease;
}

body[data-page="landing"] .button-01:hover,
body[data-page="landing"] .button-03:hover,
body[data-page="landing"] .button-01:focus-visible,
body[data-page="landing"] .button-03:focus-visible {
  transform: translateY(-2px);
}

body[data-page="landing"] .button-01 {
  background: var(--xd-yellow);
  color: #010104;
  box-shadow: 0 14px 38px rgba(207, 254, 37, 0.3);
}

body[data-page="landing"] .button-01:hover,
body[data-page="landing"] .button-01:focus-visible {
  box-shadow: 0 18px 46px rgba(207, 254, 37, 0.42);
}

body[data-page="landing"] .button-01:hover::before,
body[data-page="landing"] .button-03:hover::before,
body[data-page="landing"] .button-01:focus-visible::before,
body[data-page="landing"] .button-03:focus-visible::before {
  transform: translateX(460%) skewX(-12deg);
}

body[data-page="landing"] .button-03 {
  background: linear-gradient(145deg, #ffffff, #d9ebff);
  color: #081019;
}

body[data-page="landing"] .button-03:hover,
body[data-page="landing"] .button-03:focus-visible {
  box-shadow: 0 14px 34px rgba(111, 152, 255, 0.28);
}

body[data-page="landing"] .site-nav .nav-cta {
  padding: 11px 24px;
  font-size: 0.95rem;
}

body[data-page="landing"] .progressive-blur-wrap {
  display: none;
}

body[data-page="landing"] .progressive-blur {
  --blur: 1.8rem;
  --ratio: 1.25;
  width: 100%;
  height: 100%;
  overflow: clip;
}

body[data-page="landing"] .progressive-blur-panel {
  width: 100%;
  height: 100%;
  position: absolute;
  padding: 0;
  backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio))));
  -webkit-backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio))));
  mask: linear-gradient(transparent 10%, #000 20% 40%, transparent 50%);
  -webkit-mask: linear-gradient(transparent 10%, #000 20% 40%, transparent 50%);
}

body[data-page="landing"] .progressive-blur-panel._01 {
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  mask: linear-gradient(#000 0% 10%, transparent 30%);
  -webkit-mask: linear-gradient(#000 0% 10%, transparent 30%);
}

body[data-page="landing"] .progressive-blur-panel._02 {
  backdrop-filter: blur(calc(var(--blur) / var(--ratio)));
  -webkit-backdrop-filter: blur(calc(var(--blur) / var(--ratio)));
  mask: linear-gradient(transparent 0%, #000 10% 20%, transparent 40%);
  -webkit-mask: linear-gradient(transparent 0%, #000 10% 20%, transparent 40%);
}

body[data-page="landing"] .progressive-blur-panel._03 {
  backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio))));
  -webkit-backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio))));
  mask: linear-gradient(transparent 0%, #000 20% 30%, transparent 50%);
  -webkit-mask: linear-gradient(transparent 0%, #000 20% 30%, transparent 50%);
}

body[data-page="landing"] .progressive-blur-panel._04 {
  backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio) * var(--ratio))));
  -webkit-backdrop-filter: blur(calc(var(--blur) / (var(--ratio) * var(--ratio) * var(--ratio))));
  mask: linear-gradient(transparent 10%, #000 30% 40%, transparent 60%);
  -webkit-mask: linear-gradient(transparent 10%, #000 30% 40%, transparent 60%);
}

body[data-page="landing"] .progressive-blur-panel._05,
body[data-page="landing"] .progressive-blur-panel._06,
body[data-page="landing"] .progressive-blur-panel._07,
body[data-page="landing"] .progressive-blur-panel._08,
body[data-page="landing"] .progressive-blur-panel._09,
body[data-page="landing"] .progressive-blur-panel._10 {
  backdrop-filter: blur(calc(var(--blur) / 6));
  -webkit-backdrop-filter: blur(calc(var(--blur) / 6));
}

body[data-page="landing"] .hero-v1-wrap {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body[data-page="landing"] .container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

body[data-page="landing"] .container.hero-shell {
  height: 100%;
  max-width: min(1520px, 100%);
}

body[data-page="landing"] .hero-v1-main-wrap {
  --hero-bg-inset: clamp(18px, 2.4vw, 30px);
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(74px, 8vh, 98px) 0 clamp(68px, 8vh, 96px);
  display: block;
  position: relative;
  isolation: isolate;
}

body[data-page="landing"] .hero-v1-main-wrap::before {
  content: none;
}

body[data-page="landing"] .hero-tech-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

body[data-page="landing"] .hero-tech-backdrop::before {
  content: "";
  position: absolute;
  width: min(1080px, 90vw);
  aspect-ratio: 1.54 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(207, 254, 37, 0.12) 0%,
    rgba(207, 254, 37, 0.06) 26%,
    rgba(6, 8, 12, 0.015) 56%,
    transparent 72%
  );
  filter: blur(18px);
  opacity: 0.36;
}

body[data-page="landing"] .hero-tech-backdrop::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 50% 50%, rgba(208, 252, 69, 0.14), transparent 52%),
    radial-gradient(circle at 50% 50%, rgba(216, 247, 214, 0.06), transparent 68%);
  opacity: 0.31;
  mask-image: radial-gradient(circle at center, #000 32%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, #000 32%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

body[data-page="landing"] .hero-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: center;
  min-height: clamp(520px, 64vh, 760px);
  gap: 20px;
}

body[data-page="landing"] .hero-content-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 6;
  width: min(1280px, 100%);
  max-width: 1280px;
  margin-inline: auto;
  text-align: center;
}

body[data-page="landing"] .hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

body[data-page="landing"] .badge-wrap {
  border-radius: var(--xd-radius-7);
  padding: 1.5px;
  position: relative;
  overflow: hidden;
}

body[data-page="landing"] .badge-wrap.badge-transparent {
  border: 1px solid var(--xd-stroke);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.1);
}

body[data-page="landing"] .badge-inner-wrap {
  border-radius: var(--xd-radius-7);
  padding: 8.5px 18.5px;
  position: relative;
  overflow: hidden;
}

body[data-page="landing"] .badge-inner-wrap.badge-transparent {
  background: transparent;
}

body[data-page="landing"] .badge-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page="landing"] .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xd-yellow);
}

body[data-page="landing"] .badge-text {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

body[data-page="landing"] .badge-outline {
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35), transparent 45% 65%, rgba(255, 255, 255, 0.1));
  position: absolute;
  inset: 0;
}

body[data-page="landing"] .badge-inner-bg {
  background-color: rgba(255, 255, 255, 0.03);
  position: absolute;
  inset: 0;
}

body[data-page="landing"] .hero-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

body[data-page="landing"] h1.text-center {
  margin: 0;
  font-size: clamp(3.4rem, 6.9vw, 7rem);
  line-height: 0.95;
  text-align: center;
  max-width: 15.6ch;
  text-wrap: balance;
}

body[data-page="landing"] .hero-subtitle-wrap {
  width: 100%;
  max-width: 900px;
}

body[data-page="landing"] .hero-subtitle {
  text-align: center;
  margin: 0;
  color: var(--xd-grey);
  font-size: 1rem;
  line-height: 1.5;
}

body[data-page="landing"] .hero-button-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

body[data-page="landing"] .hero-signal-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

body[data-page="landing"] .hero-signal-row span {
  border: 1px solid var(--xd-stroke);
  border-radius: 999px;
  background: rgba(248, 248, 248, 0.05);
  padding: 5px 12px;
  color: #e5ede8;
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body[data-page="landing"] .hero-stats {
  width: 100%;
  max-width: 1120px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="landing"] .hero-stats article {
  border: 1px solid var(--xd-stroke);
  border-radius: var(--xd-radius-12);
  background: rgba(248, 248, 248, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px;
}

body[data-page="landing"] .hero-stats h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--xd-yellow);
  letter-spacing: -0.04em;
}

body[data-page="landing"] .hero-stats p {
  margin-top: 2px;
  color: var(--xd-grey);
  font-size: 0.86rem;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core {
  --core-size: clamp(340px, 42vw, 560px);
  width: min(1180px, 96vw);
  min-height: clamp(440px, 42vw, 640px);
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  overflow: visible;
  transform: none;
  transition: none;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core::before {
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(207, 254, 37, 0.16),
    rgba(207, 254, 37, 0.08) 20%,
    transparent 44%
  );
  opacity: 0.24;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 247, 214, 0.06), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(12, 18, 24, 0), rgba(7, 11, 16, 0.24) 72%, rgba(5, 8, 12, 0.4) 100%);
  opacity: 0.2;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core-grid,
body[data-page="landing"] .hero-tech-backdrop .tech-scan,
body[data-page="landing"] .hero-tech-backdrop .tech-pulse,
body[data-page="landing"] .hero-tech-backdrop .orbit-path,
body[data-page="landing"] .hero-tech-backdrop .tech-core-center {
  display: none;
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring {
  border-width: 1px;
  border-style: solid;
  border-color: rgba(207, 254, 37, 0.2);
  box-shadow: none;
  opacity: 0.42;
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-one {
  width: clamp(390px, 46vw, 620px);
  height: clamp(220px, 26vw, 360px);
  border-color: rgba(207, 254, 37, 0.24);
  animation: ringSpin 28s linear infinite;
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-two {
  width: clamp(320px, 38vw, 520px);
  height: clamp(320px, 38vw, 520px);
  border-color: rgba(210, 224, 212, 0.2);
  animation: ringSpinReverse 22s linear infinite;
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-three {
  width: clamp(250px, 31vw, 420px);
  height: clamp(360px, 41vw, 560px);
  border-color: rgba(207, 254, 37, 0.18);
  animation: ringSpin 35s linear infinite;
}

body[data-page="landing"] .tech-core .orbit-tag {
  inset: auto;
  --tag-focus-blur: 0px;
  --tag-peak-opacity: 0.7;
  position: absolute;
  right: auto;
  bottom: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 220, 214, 0.22);
  background: rgba(8, 11, 15, 0.28);
  color: rgba(230, 236, 232, 0.78);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  width: max-content;
  max-width: max-content;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.84);
  filter: blur(calc(1.35px + var(--tag-focus-blur)));
  animation: tagDepth var(--tag-duration, 11s) cubic-bezier(0.25, 0.12, 0.15, 0.98) infinite;
  will-change: transform, opacity, filter;
}

body[data-page="landing"] .tech-core .orbit-tag em {
  font-style: normal;
  color: rgba(207, 254, 37, 0.78);
}

@keyframes tagDepth {
  0%,
  22% {
    opacity: 0;
    transform: translate3d(calc(var(--tag-drift-x) * -0.3), calc(var(--tag-drift-y) * -0.3), 0) scale(0.72);
    filter: blur(calc(2.2px + var(--tag-focus-blur)));
  }
  40%,
  70% {
    opacity: var(--tag-peak-opacity);
    transform: translate3d(var(--tag-drift-x), var(--tag-drift-y), 0) scale(1);
    filter: blur(var(--tag-focus-blur));
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--tag-drift-x) * 1.4), calc(var(--tag-drift-y) * 1.4), 0) scale(1.24);
    filter: blur(calc(1.25px + var(--tag-focus-blur)));
  }
}

body[data-page="landing"] .tech-core .tag-code {
  left: 16%;
  top: 27%;
  --tag-drift-x: -18px;
  --tag-drift-y: -14px;
  --tag-duration: 10.8s;
  animation-delay: -1.1s;
}

body[data-page="landing"] .tech-core .tag-web {
  left: 66%;
  top: 26%;
  --tag-focus-blur: 1.4px;
  --tag-peak-opacity: 0.48;
  --tag-drift-x: 17px;
  --tag-drift-y: -12px;
  --tag-duration: 11.4s;
  animation-delay: -3.2s;
}

body[data-page="landing"] .tech-core .tag-it {
  left: 74%;
  top: 47%;
  --tag-focus-blur: 1.25px;
  --tag-peak-opacity: 0.46;
  --tag-drift-x: 15px;
  --tag-drift-y: 8px;
  --tag-duration: 9.8s;
  animation-delay: -1.8s;
}

body[data-page="landing"] .tech-core .tag-pc {
  left: 20%;
  top: 68%;
  --tag-drift-x: -14px;
  --tag-drift-y: 10px;
  --tag-duration: 10.3s;
  animation-delay: -5s;
}

body[data-page="landing"] .tech-core .tag-auto {
  left: 64%;
  top: 72%;
  --tag-focus-blur: 1.15px;
  --tag-peak-opacity: 0.5;
  --tag-drift-x: 12px;
  --tag-drift-y: 9px;
  --tag-duration: 10.6s;
  animation-delay: -2.8s;
}

body[data-page="landing"] .tech-core .tag-api {
  left: 75%;
  top: 12%;
  --tag-drift-x: 10px;
  --tag-drift-y: -14px;
  --tag-duration: 9.6s;
  animation-delay: -0.6s;
}

body[data-page="landing"] .tech-core .tag-ops {
  left: 35%;
  top: 86%;
  --tag-drift-x: -2px;
  --tag-drift-y: 13px;
  --tag-duration: 11.8s;
  animation-delay: -4.1s;
}

body[data-page="landing"] .tech-core .tag-cloud {
  left: 8%;
  top: 18%;
  --tag-drift-x: -10px;
  --tag-drift-y: -8px;
  --tag-duration: 12.2s;
  animation-delay: -2.2s;
}

body[data-page="landing"] .tech-core .tag-data {
  left: 83%;
  top: 62%;
  --tag-drift-x: 12px;
  --tag-drift-y: 4px;
  --tag-duration: 12.8s;
  animation-delay: -3.6s;
}

body[data-page="landing"] main {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
}

body[data-page="landing"] .section {
  padding: 110px 0;
}

body[data-page="landing"] main > .section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-page="landing"] main > .section:first-of-type {
  border-top: 0;
}

body[data-page="landing"] .eyebrow {
  color: var(--xd-yellow);
  letter-spacing: -0.02em;
}

body[data-page="landing"] .section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
}

body[data-page="landing"] .logo-marquee .marquee {
  border-top: 1px solid var(--xd-stroke);
  border-bottom: 1px solid var(--xd-stroke);
  background: rgba(248, 248, 248, 0.04);
}

body[data-page="landing"] #services .service-card:nth-child(1) {
  --tone-rgb: 207, 254, 37;
}

body[data-page="landing"] #services .service-card:nth-child(2) {
  --tone-rgb: 90, 212, 255;
}

body[data-page="landing"] #services .service-card:nth-child(3) {
  --tone-rgb: 111, 152, 255;
}

body[data-page="landing"] #services .service-card:nth-child(4) {
  --tone-rgb: 255, 142, 116;
}

body[data-page="landing"] #services .service-card {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--tone-rgb), 0.15), transparent 42%),
    rgba(248, 248, 248, 0.04);
}

body[data-page="landing"] #services .service-card:hover {
  border-color: rgba(var(--tone-rgb), 0.58);
  box-shadow: 0 24px 68px rgba(var(--tone-rgb), 0.14), 0 22px 54px rgba(0, 0, 0, 0.45);
}

body[data-page="landing"] #services .service-card.premium-card::before {
  border-color: rgba(var(--tone-rgb), 0.5);
  background: rgba(10, 11, 14, 0.84);
  color: rgba(var(--tone-rgb), 0.96);
}

body[data-page="landing"] #process .process-card:nth-child(1) {
  --tone-rgb: 207, 254, 37;
}

body[data-page="landing"] #process .process-card:nth-child(2) {
  --tone-rgb: 90, 212, 255;
}

body[data-page="landing"] #process .process-card:nth-child(3) {
  --tone-rgb: 111, 152, 255;
}

body[data-page="landing"] #process .process-card:nth-child(4) {
  --tone-rgb: 255, 204, 116;
}

body[data-page="landing"] #process .process-card {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(248, 248, 248, 0.04), rgba(248, 248, 248, 0.03)),
    radial-gradient(circle at 10% 0%, rgba(var(--tone-rgb), 0.15), transparent 40%);
}

body[data-page="landing"] #process .process-card.premium-card::before {
  border-color: rgba(var(--tone-rgb), 0.5);
  color: rgba(var(--tone-rgb), 0.95);
}

body[data-page="landing"] #work .eyebrow {
  color: var(--xd-cyan);
}

body[data-page="landing"] #process .eyebrow {
  color: var(--xd-blue);
}

body[data-page="landing"] #faq .eyebrow {
  color: var(--xd-amber);
}

body[data-page="landing"] .experience-mosaic {
  padding-top: 96px;
  padding-bottom: 96px;
}

body[data-page="landing"] .experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="landing"] .xp-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--xd-stroke);
  border-radius: calc(var(--xd-radius-16) + 2px);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.04), transparent 36%),
    rgba(248, 248, 248, 0.03);
  padding: 28px;
  min-height: 360px;
}

body[data-page="landing"] .xp-card.premium-card::before {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(10, 11, 14, 0.8);
  color: #dce3e5;
}

body[data-page="landing"] .xp-card h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.04;
}

body[data-page="landing"] .xp-card p {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--xd-grey);
}

body[data-page="landing"] .xp-overview {
  grid-column: 1 / -1;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(circle at 10% 8%, rgba(90, 212, 255, 0.12), transparent 40%),
    radial-gradient(circle at 84% 78%, rgba(111, 152, 255, 0.11), transparent 40%),
    rgba(248, 248, 248, 0.03);
}

body[data-page="landing"] .xp-overview .eyebrow {
  color: var(--xd-cyan);
}

body[data-page="landing"] .xp-overview h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.45rem);
  line-height: 1.02;
  max-width: 14ch;
}

body[data-page="landing"] .xp-overview p {
  max-width: 42ch;
}

body[data-page="landing"] .xp-window {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(12, 16, 24, 0.86), rgba(6, 9, 14, 0.92)),
    radial-gradient(circle at 20% 0%, rgba(90, 212, 255, 0.16), transparent 52%);
  min-height: 330px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 90px rgba(0, 0, 0, 0.45);
}

body[data-page="landing"] .xp-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 30%, transparent 72%, rgba(111, 152, 255, 0.16));
  opacity: 0.6;
  pointer-events: none;
}

body[data-page="landing"] .xp-window-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 10px;
}

body[data-page="landing"] .xp-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

body[data-page="landing"] .xp-window-bar span:nth-child(1) {
  background: #ff6d6d;
}

body[data-page="landing"] .xp-window-bar span:nth-child(2) {
  background: #ffd36f;
}

body[data-page="landing"] .xp-window-bar span:nth-child(3) {
  background: #5ee08e;
}

body[data-page="landing"] .xp-window-layout {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 10px;
  min-height: 270px;
}

body[data-page="landing"] .xp-col {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(4, 6, 10, 0.5);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: flex-start;
}

body[data-page="landing"] .xp-col span {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.2));
  background-size: 180% 100%;
  animation: skeletonFlow 4.2s ease-in-out infinite;
}

body[data-page="landing"] .xp-col span:nth-child(2) {
  animation-delay: -1.4s;
}

body[data-page="landing"] .xp-col span:nth-child(3) {
  animation-delay: -2.8s;
}

body[data-page="landing"] .xp-col-left span:nth-child(1) {
  width: 64%;
}

body[data-page="landing"] .xp-col-left span:nth-child(2) {
  width: 84%;
}

body[data-page="landing"] .xp-col-left span:nth-child(3) {
  width: 52%;
}

body[data-page="landing"] .xp-col-right span:nth-child(1) {
  width: 78%;
}

body[data-page="landing"] .xp-col-right span:nth-child(2) {
  width: 56%;
}

body[data-page="landing"] .xp-col-right span:nth-child(3) {
  width: 90%;
}

body[data-page="landing"] .xp-col-right span:nth-child(4) {
  width: 62%;
}

@keyframes skeletonFlow {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.52;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.92;
  }
}

body[data-page="landing"] .xp-integration {
  min-height: 420px;
  background:
    radial-gradient(circle at 20% 10%, rgba(90, 212, 255, 0.15), transparent 42%),
    rgba(248, 248, 248, 0.03);
}

body[data-page="landing"] .xp-integration h3 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
}

body[data-page="landing"] .xp-support {
  min-height: 420px;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 204, 116, 0.17), transparent 40%),
    rgba(248, 248, 248, 0.03);
}

body[data-page="landing"] .xp-support h3 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  max-width: 11ch;
}

body[data-page="landing"] .support-figure {
  position: absolute;
  top: 24px;
  right: 22px;
  font-size: clamp(5.8rem, 11vw, 8.6rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

body[data-page="landing"] .support-pill {
  margin-top: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 142, 116, 0.46);
  border-radius: 999px;
  background: rgba(255, 142, 116, 0.12);
  color: #ffd7cd;
  padding: 9px 16px;
  font-size: 1.02rem;
  line-height: 1;
}

body[data-page="landing"] .support-pill span {
  color: var(--xd-coral);
}

body[data-page="landing"] .integration-orbit {
  position: relative;
  width: min(430px, 100%);
  height: 220px;
  margin: 12px auto 20px;
}

body[data-page="landing"] .integration-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 30%, #f3ff9b 0%, #cffe25 56%, #9ac718 100%);
  color: #06090c;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 8px rgba(207, 254, 37, 0.12), 0 0 44px rgba(207, 254, 37, 0.45);
}

body[data-page="landing"] .integration-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

body[data-page="landing"] .integration-ring.ring-one {
  width: 182px;
  height: 182px;
  border-color: rgba(90, 212, 255, 0.24);
  animation: ringSpin 16s linear infinite;
}

body[data-page="landing"] .integration-ring.ring-two {
  width: 246px;
  height: 154px;
  border-color: rgba(111, 152, 255, 0.22);
  animation: ringSpinReverse 13s linear infinite;
}

body[data-page="landing"] .integration-ring.ring-three {
  width: 300px;
  height: 206px;
  border-color: rgba(207, 254, 37, 0.18);
  animation: ringSpin 18s linear infinite;
}

body[data-page="landing"] .integration-node {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 10, 14, 0.74);
  color: #d9e2e6;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0 10px;
  transform: rotate(var(--node-angle)) translateX(var(--node-radius)) rotate(calc(var(--node-angle) * -1));
  transform-origin: center;
  animation:
    integrationOrbit var(--node-speed) linear infinite,
    integrationPulse 3.6s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

body[data-page="landing"] .integration-node.node-api {
  --node-angle: 18deg;
  --node-radius: 136px;
  --node-speed: 14s;
  border-color: rgba(90, 212, 255, 0.42);
  color: #bcecff;
}

body[data-page="landing"] .integration-node.node-web {
  --node-angle: 76deg;
  --node-radius: 108px;
  --node-speed: 13s;
  border-color: rgba(207, 254, 37, 0.4);
  color: #e8ff9f;
}

body[data-page="landing"] .integration-node.node-db {
  --node-angle: 142deg;
  --node-radius: 124px;
  --node-speed: 17s;
  border-color: rgba(255, 204, 116, 0.46);
  color: #ffe2ad;
}

body[data-page="landing"] .integration-node.node-bot {
  --node-angle: 208deg;
  --node-radius: 138px;
  --node-speed: 15s;
  border-color: rgba(255, 142, 116, 0.42);
  color: #ffc9bc;
}

body[data-page="landing"] .integration-node.node-cloud {
  --node-angle: 274deg;
  --node-radius: 112px;
  --node-speed: 12s;
  border-color: rgba(111, 152, 255, 0.46);
  color: #cbdaff;
}

body[data-page="landing"] .integration-node.node-pay {
  --node-angle: 322deg;
  --node-radius: 130px;
  --node-speed: 16s;
  border-color: rgba(140, 236, 182, 0.46);
  color: #cbf5df;
}

@keyframes integrationOrbit {
  from {
    transform: rotate(var(--node-angle)) translateX(var(--node-radius)) rotate(calc(var(--node-angle) * -1));
  }
  to {
    transform: rotate(calc(var(--node-angle) + 1turn)) translateX(var(--node-radius)) rotate(calc((var(--node-angle) + 1turn) * -1));
  }
}

@keyframes integrationPulse {
  0%,
  100% {
    opacity: 0.7;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), 0 0 24px rgba(111, 152, 255, 0.16);
  }
}

body[data-page="landing"] .service-card,
body[data-page="landing"] .process-card,
body[data-page="landing"] .faq details {
  border: 1px solid var(--xd-stroke);
  background: rgba(248, 248, 248, 0.04);
  border-radius: var(--xd-radius-12);
  box-shadow: none;
}

body[data-page="landing"] .service-card:hover {
  border-color: rgba(207, 254, 37, 0.55);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
}

body[data-page="landing"] .premium-card {
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  --card-raise: 0px;
  --card-glow-x: 50%;
  --card-glow-y: 0%;
  position: relative;
  overflow: hidden;
  transform: perspective(950px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y)) translateY(var(--card-raise));
  transition: transform 0.22s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  will-change: transform;
}

body[data-page="landing"] .premium-card::before {
  content: attr(data-chip);
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 12, 15, 0.7);
  color: var(--xd-light-yellow);
  padding: 3px 9px;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.03em;
  z-index: 2;
}

body[data-page="landing"] .premium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--card-glow-x) var(--card-glow-y),
    rgba(207, 254, 37, 0.2),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

body[data-page="landing"] .premium-card:hover::after {
  opacity: 1;
}

body[data-page="landing"] .premium-card:hover {
  --card-raise: -4px;
}

body[data-page="landing"] .service-card li,
body[data-page="landing"] .check-item,
body[data-page="landing"] .faq p,
body[data-page="landing"] .process-card p {
  color: var(--xd-grey);
}

body[data-page="landing"] .contact-panel {
  border: 1px solid rgba(207, 254, 37, 0.28);
  border-radius: var(--xd-radius-16);
  background:
    radial-gradient(circle at 88% 12%, rgba(90, 212, 255, 0.15), transparent 44%),
    radial-gradient(circle at 10% 8%, rgba(207, 254, 37, 0.16), transparent 50%),
    rgba(248, 248, 248, 0.04);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.52);
}

body[data-page="landing"] .contact-panel h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

body[data-page="landing"] .hero-actions {
  justify-content: center;
}

body[data-page="landing"] .premium-footer {
  width: 100%;
  margin: 0;
  padding: 80px 0 34px;
  border-top: 1px solid var(--xd-stroke);
  background:
    radial-gradient(circle at 12% 10%, rgba(207, 254, 37, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(12, 12, 15, 0.9), #010104 62%);
}

body[data-page="landing"] .site-footer .footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

body[data-page="landing"] .site-footer .footer-left {
  max-width: 280px;
  display: grid;
  gap: 16px;
}

body[data-page="landing"] .site-footer .footer-pill {
  width: fit-content;
  border: 1px solid rgba(111, 152, 255, 0.38);
  border-radius: 999px;
  background: rgba(111, 152, 255, 0.14);
  color: #d8e5ff;
  padding: 5px 12px;
  font-size: 0.76rem;
  line-height: 1.2;
}

body[data-page="landing"] .site-footer .footer-cta {
  width: fit-content;
  padding: 11px 20px;
  font-size: 0.9rem;
}

body[data-page="landing"] .site-footer .footer-right {
  width: 100%;
  max-width: 850px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="landing"] .site-footer .footer-title {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body[data-page="landing"] .site-footer .footer-menu-list,
body[data-page="landing"] .site-footer .footer-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

body[data-page="landing"] .site-footer .footer-link {
  color: var(--xd-grey);
  text-decoration: none;
  transition: color 0.25s ease;
}

body[data-page="landing"] .site-footer .footer-link:hover,
body[data-page="landing"] .site-footer .footer-link:focus-visible {
  color: var(--xd-yellow);
}

body[data-page="landing"] .site-footer .footer-note {
  margin: 2px 0 0;
  color: var(--xd-grey);
  font-size: 0.82rem;
}

body[data-page="landing"] .site-footer .copyright-wrap {
  border-top: 1px solid var(--xd-stroke);
  margin-top: 64px;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

body[data-page="landing"] .site-footer .copyright-wrap p {
  margin: 0;
  color: var(--xd-grey);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  body[data-page="landing"] .hero-v1-main-wrap {
    --hero-bg-inset: clamp(14px, 2.2vw, 22px);
    padding-top: 82px;
    padding-bottom: 78px;
  }

  body[data-page="landing"] .hero-tech-backdrop {
    inset: 0;
    opacity: 0.9;
  }

  body[data-page="landing"] .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body[data-page="landing"] .hero-content-block,
  body[data-page="landing"] .hero-text-wrap {
    align-items: center;
  }

  body[data-page="landing"] .hero-content-block {
    width: min(860px, 100%);
    max-width: 860px;
  }

  body[data-page="landing"] .hero-badge-wrap,
  body[data-page="landing"] .hero-button-wrap,
  body[data-page="landing"] .hero-signal-row {
    justify-content: center;
  }

  body[data-page="landing"] h1.text-center,
  body[data-page="landing"] .hero-subtitle {
    text-align: center;
  }

  body[data-page="landing"] .hero-subtitle-wrap {
    max-width: 760px;
  }

  body[data-page="landing"] h1.text-center {
    font-size: clamp(2.9rem, 7.3vw, 4.8rem);
    max-width: 12.4ch;
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-core {
    width: min(980px, 96vw);
    min-height: clamp(360px, 56vw, 520px);
  }

  body[data-page="landing"] .tech-core .orbit-tag {
    font-size: 0.56rem;
  }

  body[data-page="landing"] .experience-mosaic {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  body[data-page="landing"] .experience-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="landing"] .xp-card {
    min-height: 320px;
  }

  body[data-page="landing"] .xp-overview {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
  }

  body[data-page="landing"] .xp-overview h2 {
    max-width: 16ch;
  }

  body[data-page="landing"] .xp-window {
    min-height: 280px;
  }

  body[data-page="landing"] .integration-orbit {
    width: min(420px, 100%);
    height: 210px;
  }

  body[data-page="landing"] .support-figure {
    font-size: clamp(5.2rem, 16vw, 7rem);
  }

  body[data-page="landing"] .site-footer .footer-wrap {
    flex-direction: column;
  }

  body[data-page="landing"] .site-footer .footer-right {
    max-width: none;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  body[data-page="landing"] .site-header {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  body[data-page="landing"] .nav-toggle {
    display: inline-flex;
  }

  body[data-page="landing"] .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 20px;
    width: min(290px, calc(100vw - 40px));
    border: 1px solid var(--xd-stroke);
    border-radius: var(--xd-radius-12);
    background: rgba(12, 12, 15, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body[data-page="landing"] .site-nav.open {
    display: flex;
  }

  body[data-page="landing"] .site-nav a {
    padding: 4px 0;
  }

  body[data-page="landing"] .site-nav .nav-cta {
    margin-top: 8px;
    width: 100%;
  }

  body[data-page="landing"] h1.text-center {
    font-size: clamp(2.3rem, 10vw, 3rem);
    max-width: 11ch;
  }

  body[data-page="landing"] .hero-v1-main-wrap {
    --hero-bg-inset: 12px;
    padding-top: 74px;
    padding-bottom: 64px;
  }

  body[data-page="landing"] .hero-tech-backdrop {
    inset: 0;
    opacity: 0.78;
  }

  body[data-page="landing"] .hero-layout-grid {
    gap: 14px;
  }

  body[data-page="landing"] .hero-signal-row {
    display: none;
  }

  body[data-page="landing"] .hero-stats {
    grid-template-columns: 1fr;
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-core {
    width: min(760px, 96vw);
    min-height: 240px;
  }

  body[data-page="landing"] .tech-core .orbit-tag {
    font-size: 0.53rem;
    letter-spacing: 0.05em;
  }

  body[data-page="landing"] .experience-mosaic {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  body[data-page="landing"] .xp-card {
    padding: 22px;
    min-height: 300px;
  }

  body[data-page="landing"] .xp-overview h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  body[data-page="landing"] .xp-window {
    min-height: 238px;
  }

  body[data-page="landing"] .xp-window-layout {
    min-height: 186px;
  }

  body[data-page="landing"] .integration-orbit {
    height: 186px;
    margin-bottom: 14px;
  }

  body[data-page="landing"] .integration-center {
    width: 66px;
    height: 66px;
    font-size: 0.92rem;
  }

  body[data-page="landing"] .integration-node {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  body[data-page="landing"] .integration-node.node-pay,
  body[data-page="landing"] .integration-node.node-cloud {
    display: none;
  }

  body[data-page="landing"] .support-figure {
    top: 18px;
    right: 14px;
    font-size: clamp(4.8rem, 17vw, 6.6rem);
  }

  body[data-page="landing"] .tech-core .tag-code {
    left: 11%;
    top: 24%;
  }

  body[data-page="landing"] .tech-core .tag-web {
    left: 66%;
    top: 24%;
  }

  body[data-page="landing"] .tech-core .tag-it {
    left: 71%;
    top: 46%;
  }

  body[data-page="landing"] .tech-core .tag-pc {
    left: 15%;
    top: 67%;
  }

  body[data-page="landing"] .tech-core .tag-auto {
    left: 62%;
    top: 70%;
  }

  body[data-page="landing"] .tech-core .tag-api,
  body[data-page="landing"] .tech-core .tag-ops,
  body[data-page="landing"] .tech-core .tag-cloud,
  body[data-page="landing"] .tech-core .tag-data {
    display: none;
  }

  body[data-page="landing"] .site-footer .footer-right {
    grid-template-columns: 1fr;
  }

  body[data-page="landing"] .site-footer .footer-left {
    max-width: none;
  }

  body[data-page="landing"] .site-footer .copyright-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

[hidden] {
  display: none !important;
}

body[data-page="about"],
body[data-page="contact"],
body[data-page="not-found"] {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(130% 95% at 50% -12%, rgba(168, 203, 48, 0.12), transparent 56%),
    radial-gradient(85% 70% at 52% 50%, rgba(106, 148, 52, 0.08), transparent 72%),
    linear-gradient(180deg, #05070a 0%, #030508 54%, #020407 100%);
  font-family: "BDO Grotesk", Arial, sans-serif;
  color: var(--xd-white);
  letter-spacing: -0.01em;
  scroll-padding-top: 96px;
  display: flex;
  flex-direction: column;
}

body[data-page="auth-login"] {
  display: flex;
  flex-direction: column;
}

body[data-page="about"]::before,
body[data-page="contact"]::before,
body[data-page="not-found"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(216, 247, 214, 0.32) 0.75px, transparent 1.2px),
    radial-gradient(circle, rgba(207, 254, 37, 0.25) 0.7px, transparent 1.15px);
  background-size:
    140px 140px,
    190px 190px;
  background-position:
    0 0,
    78px 56px;
  opacity: 0.34;
  animation: heroParticleDrift 42s linear infinite;
}

body[data-page="about"] h1,
body[data-page="about"] h2,
body[data-page="about"] h3,
body[data-page="contact"] h1,
body[data-page="contact"] h2,
body[data-page="contact"] h3,
body[data-page="not-found"] h1,
body[data-page="not-found"] h2,
body[data-page="not-found"] h3,
body[data-page="auth-login"] h1,
body[data-page="auth-login"] h2,
body[data-page="auth-login"] h3 {
  font-family: "BDO Grotesk", Arial, sans-serif;
  letter-spacing: -0.045em;
  font-weight: 500;
}

body[data-page="landing"] .site-header,
body[data-page="about"] .site-header,
body[data-page="contact"] .site-header,
body[data-page="not-found"] .site-header,
body[data-page="auth-login"] .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12000;
  border: 0;
  background: transparent;
  width: 100%;
  margin: 0;
  padding: 20px 0;
  box-shadow: none;
  transition: transform 320ms ease, opacity 280ms ease;
  will-change: transform, opacity;
  isolation: isolate;
}

body[data-page="landing"] .site-header::before,
body[data-page="about"] .site-header::before,
body[data-page="contact"] .site-header::before,
body[data-page="not-found"] .site-header::before,
body[data-page="auth-login"] .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(2, 6, 10, 0.84), rgba(3, 8, 12, 0.62) 72%, rgba(3, 8, 12, 0.28) 100%);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

body[data-page="landing"] .site-header.header-visible,
body[data-page="about"] .site-header.header-visible,
body[data-page="contact"] .site-header.header-visible,
body[data-page="not-found"] .site-header.header-visible,
body[data-page="auth-login"] .site-header.header-visible {
  transform: translateY(0);
  opacity: 1;
}

body[data-page="landing"] .site-header.header-hidden,
body[data-page="about"] .site-header.header-hidden,
body[data-page="contact"] .site-header.header-hidden,
body[data-page="not-found"] .site-header.header-hidden,
body[data-page="auth-login"] .site-header.header-hidden {
  transform: translateY(calc(-100% - 14px));
  opacity: 0;
  pointer-events: none;
}

body[data-page="landing"] .nav-container,
body[data-page="about"] .nav-container,
body[data-page="contact"] .nav-container,
body[data-page="not-found"] .nav-container,
body[data-page="auth-login"] .nav-container {
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

body[data-page="landing"] .brand,
body[data-page="about"] .brand,
body[data-page="contact"] .brand,
body[data-page="not-found"] .brand,
body[data-page="auth-login"] .brand {
  gap: 10px;
}

body[data-page="landing"] .brand-mark,
body[data-page="about"] .brand-mark,
body[data-page="contact"] .brand-mark,
body[data-page="not-found"] .brand-mark,
body[data-page="auth-login"] .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--xd-yellow);
  color: #010104;
  box-shadow: 0 0 26px rgba(207, 254, 37, 0.32);
}

body[data-page="landing"] .brand-text,
body[data-page="about"] .brand-text,
body[data-page="contact"] .brand-text,
body[data-page="not-found"] .brand-text,
body[data-page="auth-login"] .brand-text {
  font-size: 1.03rem;
  color: #fff;
}

body[data-page="landing"] .site-nav,
body[data-page="about"] .site-nav,
body[data-page="contact"] .site-nav,
body[data-page="not-found"] .site-nav,
body[data-page="auth-login"] .site-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

body[data-page="landing"] .site-nav a,
body[data-page="about"] .site-nav a,
body[data-page="contact"] .site-nav a,
body[data-page="not-found"] .site-nav a,
body[data-page="auth-login"] .site-nav a {
  color: var(--xd-grey);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.28s ease;
}

body[data-page="landing"] .site-nav a:hover,
body[data-page="landing"] .site-nav a:focus-visible,
body[data-page="about"] .site-nav a:hover,
body[data-page="about"] .site-nav a:focus-visible,
body[data-page="contact"] .site-nav a:hover,
body[data-page="contact"] .site-nav a:focus-visible,
body[data-page="not-found"] .site-nav a:hover,
body[data-page="not-found"] .site-nav a:focus-visible,
body[data-page="auth-login"] .site-nav a:hover,
body[data-page="auth-login"] .site-nav a:focus-visible {
  color: var(--xd-yellow);
}

body[data-page="landing"] .site-nav a[aria-current="page"],
body[data-page="about"] .site-nav a[aria-current="page"],
body[data-page="contact"] .site-nav a[aria-current="page"],
body[data-page="not-found"] .site-nav a[aria-current="page"],
body[data-page="auth-login"] .site-nav a[aria-current="page"] {
  color: var(--xd-light-yellow);
}

body[data-page="landing"] .site-nav a.button-01,
body[data-page="about"] .site-nav a.button-01,
body[data-page="contact"] .site-nav a.button-01,
body[data-page="not-found"] .site-nav a.button-01,
body[data-page="auth-login"] .site-nav a.button-01 {
  color: #010104;
}

body[data-page="landing"] .site-nav a.button-01:hover,
body[data-page="landing"] .site-nav a.button-01:focus-visible,
body[data-page="about"] .site-nav a.button-01:hover,
body[data-page="about"] .site-nav a.button-01:focus-visible,
body[data-page="contact"] .site-nav a.button-01:hover,
body[data-page="contact"] .site-nav a.button-01:focus-visible,
body[data-page="not-found"] .site-nav a.button-01:hover,
body[data-page="not-found"] .site-nav a.button-01:focus-visible,
body[data-page="auth-login"] .site-nav a.button-01:hover,
body[data-page="auth-login"] .site-nav a.button-01:focus-visible {
  color: #010104;
}

body[data-page="landing"] .nav-toggle,
body[data-page="about"] .nav-toggle,
body[data-page="contact"] .nav-toggle,
body[data-page="not-found"] .nav-toggle,
body[data-page="auth-login"] .nav-toggle {
  display: none;
  border: 1px solid var(--xd-stroke);
  border-radius: var(--xd-radius-7);
  background: rgba(12, 12, 15, 0.9);
  color: #fff;
  padding: 8px 12px;
}

body[data-page="landing"] .button-01,
body[data-page="landing"] .button-03,
body[data-page="about"] .button-01,
body[data-page="about"] .button-03,
body[data-page="contact"] .button-01,
body[data-page="contact"] .button-03,
body[data-page="not-found"] .button-01,
body[data-page="not-found"] .button-03,
body[data-page="auth-login"] .button-01,
body[data-page="auth-login"] .button-03 {
  border-radius: 100px;
  padding: 15px 32px;
  text-decoration: none;
  font-size: 1.03rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.03em;
  transition: transform 0.26s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body[data-page="landing"] .button-01::before,
body[data-page="landing"] .button-03::before,
body[data-page="about"] .button-01::before,
body[data-page="about"] .button-03::before,
body[data-page="contact"] .button-01::before,
body[data-page="contact"] .button-03::before,
body[data-page="not-found"] .button-01::before,
body[data-page="not-found"] .button-03::before,
body[data-page="auth-login"] .button-01::before,
body[data-page="auth-login"] .button-03::before {
  content: "";
  position: absolute;
  top: -18%;
  left: -35%;
  width: 28%;
  height: 136%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-170%) skewX(-12deg);
  pointer-events: none;
}

body[data-page="landing"] .button-01,
body[data-page="about"] .button-01,
body[data-page="contact"] .button-01,
body[data-page="not-found"] .button-01,
body[data-page="auth-login"] .button-01 {
  border: 1px solid transparent;
  background: var(--xd-yellow);
  color: #010104;
  box-shadow: 0 18px 36px rgba(168, 203, 48, 0.24);
}

body[data-page="landing"] .button-03,
body[data-page="about"] .button-03,
body[data-page="contact"] .button-03,
body[data-page="not-found"] .button-03,
body[data-page="auth-login"] .button-03 {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(245, 247, 255, 0.95);
  color: #010104;
  box-shadow: 0 14px 26px rgba(5, 8, 12, 0.34);
}

body[data-page="landing"] .button-01:hover,
body[data-page="landing"] .button-03:hover,
body[data-page="about"] .button-01:hover,
body[data-page="about"] .button-03:hover,
body[data-page="contact"] .button-01:hover,
body[data-page="contact"] .button-03:hover,
body[data-page="not-found"] .button-01:hover,
body[data-page="not-found"] .button-03:hover,
body[data-page="auth-login"] .button-01:hover,
body[data-page="auth-login"] .button-03:hover {
  transform: translateY(-2px);
}

body[data-page="landing"] .button-01:hover::before,
body[data-page="landing"] .button-03:hover::before,
body[data-page="about"] .button-01:hover::before,
body[data-page="about"] .button-03:hover::before,
body[data-page="contact"] .button-01:hover::before,
body[data-page="contact"] .button-03:hover::before,
body[data-page="not-found"] .button-01:hover::before,
body[data-page="not-found"] .button-03:hover::before,
body[data-page="auth-login"] .button-01:hover::before,
body[data-page="auth-login"] .button-03:hover::before {
  transform: translateX(560%) skewX(-12deg);
  transition: transform 0.82s ease;
}

body[data-page="about"] p,
body[data-page="contact"] p,
body[data-page="not-found"] p,
body[data-page="auth-login"] p {
  color: var(--xd-grey);
}

.inner-page-main {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 36px;
  position: relative;
  z-index: 1;
}

body[data-page="about"] .inner-page-main,
body[data-page="contact"] .inner-page-main,
body[data-page="auth-login"] .auth-login-main,
body[data-page="not-found"] .not-found-main {
  flex: 1 0 auto;
}

.inner-page-main .section {
  padding-top: 3.6rem;
  padding-bottom: 3.6rem;
}

.inner-hero {
  border: 1px solid var(--xd-stroke);
  border-radius: var(--xd-radius-24);
  background:
    radial-gradient(120% 95% at 15% 0%, rgba(207, 254, 37, 0.12), transparent 52%),
    linear-gradient(160deg, rgba(8, 11, 16, 0.92), rgba(4, 7, 12, 0.86));
  padding: clamp(1.45rem, 3.2vw, 2.7rem);
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 20%, rgba(90, 212, 255, 0.13), transparent 38%),
    radial-gradient(circle at 70% 80%, rgba(255, 142, 116, 0.08), transparent 40%);
}

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

.inner-hero h1 {
  margin: 0 0 0.95rem;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.98;
  max-width: 14.5ch;
  color: #fff;
}

.inner-hero .lead-sm {
  max-width: 62ch;
}

.inner-hero .hero-signal-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.inner-hero .hero-signal-row span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 20, 0.86);
  color: #e6ece8;
  font-size: 0.79rem;
  padding: 0.28rem 0.62rem;
}

.about-story-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-story-card {
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.about-story-card h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
}

.about-story-card p {
  margin-bottom: 0.9rem;
}

.contact-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.contact-info-card,
.contact-form-card {
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.contact-info-card h2,
.contact-form-card h2 {
  margin: 0.2rem 0 0.76rem;
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
}

.contact-info-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.contact-info-list div {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--xd-radius-12);
  background: rgba(9, 13, 19, 0.78);
  padding: 0.78rem 0.86rem;
}

.contact-info-list h3 {
  margin: 0 0 0.2rem;
  color: var(--xd-light-yellow);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.contact-info-list a {
  color: #fff;
}

.contact-form-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem 0.84rem;
}

.contact-form-grid label {
  display: grid;
  gap: 0.36rem;
  color: var(--xd-grey);
  font-size: 0.88rem;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
  border-radius: 11px;
  border: 1px solid var(--xd-stroke);
  background: rgba(9, 12, 16, 0.84);
  color: #e7edeb;
  padding: 0.62rem 0.7rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.contact-form-grid input:focus,
.contact-form-grid select:focus,
.contact-form-grid textarea:focus {
  outline: none;
  border-color: rgba(207, 254, 37, 0.55);
  box-shadow: 0 0 0 3px rgba(207, 254, 37, 0.15);
}

.contact-form-grid .contact-textarea,
.contact-form-grid button,
.contact-form-grid #contact-form-status {
  grid-column: 1 / -1;
}

.contact-form-grid button {
  justify-self: flex-start;
}

.not-found-main {
  width: min(980px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.not-found-card {
  width: min(780px, 100%);
  text-align: center;
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.not-found-code {
  margin: 0 0 0.5rem;
  font-size: clamp(4rem, 17vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--xd-yellow);
  text-shadow: 0 0 34px rgba(207, 254, 37, 0.22);
}

.not-found-card h1 {
  margin: 0 0 0.68rem;
  font-size: clamp(2rem, 6vw, 4rem);
}

.not-found-card .hero-actions {
  justify-content: center;
}

.auth-login-main {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: 118px;
  padding-bottom: clamp(72px, 8vh, 118px);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.auth-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.auth-login-copy,
body[data-page="auth-login"] .auth-card {
  border: 1px solid var(--xd-stroke);
  border-radius: var(--xd-radius-16);
  background: rgba(248, 248, 248, 0.045);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-login-copy {
  padding: clamp(1.25rem, 2.8vw, 2.1rem);
  background:
    radial-gradient(120% 95% at 15% 0%, rgba(207, 254, 37, 0.12), transparent 52%),
    linear-gradient(160deg, rgba(8, 11, 16, 0.9), rgba(4, 7, 12, 0.82));
}

.auth-login-copy h1 {
  margin: 0.22rem 0 0.88rem;
  font-size: clamp(1.95rem, 4vw, 3.4rem);
  line-height: 1;
  max-width: 14ch;
  color: #fff;
}

.auth-login-copy .lead-sm {
  max-width: 54ch;
}

.auth-bullet-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

.auth-bullet-grid span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 20, 0.86);
  color: #e6ece8;
  font-size: 0.79rem;
  padding: 0.3rem 0.62rem;
}

body[data-page="auth-login"] .auth-card {
  padding: clamp(1.2rem, 2.2vw, 1.65rem);
}

body[data-page="auth-login"] .auth-card h2 {
  margin: 0.18rem 0 0.58rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

body[data-page="auth-login"] .auth-form {
  margin-top: 0.95rem;
  gap: 0.75rem;
}

body[data-page="auth-login"] .auth-form .btn {
  width: 100%;
  justify-content: center;
}

body[data-page="auth-login"] .auth-form .btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

body[data-page="about"] .premium-footer,
body[data-page="contact"] .premium-footer {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.7rem;
  position: relative;
  z-index: 1;
}

body[data-page="about"] .site-footer .footer-wrap,
body[data-page="contact"] .site-footer .footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

body[data-page="about"] .site-footer .footer-left,
body[data-page="contact"] .site-footer .footer-left {
  max-width: 340px;
  display: grid;
  gap: 15px;
}

body[data-page="about"] .site-footer .footer-pill,
body[data-page="contact"] .site-footer .footer-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 14, 0.88);
  color: var(--xd-light-yellow);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body[data-page="about"] .site-footer .footer-cta,
body[data-page="contact"] .site-footer .footer-cta {
  width: fit-content;
}

body[data-page="about"] .site-footer .footer-right,
body[data-page="contact"] .site-footer .footer-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
}

body[data-page="about"] .site-footer .footer-title,
body[data-page="contact"] .site-footer .footer-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-page="about"] .site-footer .footer-menu-list,
body[data-page="contact"] .site-footer .footer-menu-list,
body[data-page="about"] .site-footer .footer-contact-list,
body[data-page="contact"] .site-footer .footer-contact-list {
  display: grid;
  gap: 7px;
}

body[data-page="about"] .site-footer .footer-link,
body[data-page="contact"] .site-footer .footer-link {
  color: var(--xd-grey);
  transition: color 0.25s ease;
}

body[data-page="about"] .site-footer .footer-link:hover,
body[data-page="about"] .site-footer .footer-link:focus-visible,
body[data-page="contact"] .site-footer .footer-link:hover,
body[data-page="contact"] .site-footer .footer-link:focus-visible {
  color: var(--xd-light-yellow);
}

body[data-page="about"] .site-footer .footer-note,
body[data-page="contact"] .site-footer .footer-note {
  font-size: 0.8rem;
  color: rgba(210, 210, 210, 0.65);
}

body[data-page="about"] .site-footer .copyright-wrap,
body[data-page="contact"] .site-footer .copyright-wrap {
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(210, 210, 210, 0.62);
}

@media (max-width: 1080px) {
  .about-story-split,
  .contact-grid-layout,
  .auth-login-shell {
    grid-template-columns: 1fr;
  }

  .auth-login-shell {
    gap: 0.9rem;
  }

  body[data-page="auth-login"] .auth-login-main {
    align-items: flex-start;
  }

  .auth-login-copy h1 {
    max-width: 17ch;
  }

  body[data-page="about"] .site-footer .footer-wrap,
  body[data-page="contact"] .site-footer .footer-wrap {
    flex-direction: column;
  }

  body[data-page="about"] .site-footer .footer-right,
  body[data-page="contact"] .site-footer .footer-right {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-page="landing"] .site-header,
  body[data-page="about"] .site-header,
  body[data-page="contact"] .site-header,
  body[data-page="not-found"] .site-header,
  body[data-page="auth-login"] .site-header {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  body[data-page="landing"] .nav-container,
  body[data-page="about"] .nav-container,
  body[data-page="contact"] .nav-container,
  body[data-page="not-found"] .nav-container,
  body[data-page="auth-login"] .nav-container {
    padding: 0 10px;
  }

  body[data-page="landing"] .nav-toggle,
  body[data-page="about"] .nav-toggle,
  body[data-page="contact"] .nav-toggle,
  body[data-page="not-found"] .nav-toggle,
  body[data-page="auth-login"] .nav-toggle {
    display: inline-flex;
  }

  body[data-page="landing"] .site-nav,
  body[data-page="about"] .site-nav,
  body[data-page="contact"] .site-nav,
  body[data-page="not-found"] .site-nav,
  body[data-page="auth-login"] .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 10px;
    width: min(300px, calc(100vw - 20px));
    border: 1px solid var(--xd-stroke);
    border-radius: var(--xd-radius-12);
    background: rgba(12, 12, 15, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body[data-page="landing"] .site-nav.open,
  body[data-page="about"] .site-nav.open,
  body[data-page="contact"] .site-nav.open,
  body[data-page="not-found"] .site-nav.open,
  body[data-page="auth-login"] .site-nav.open {
    display: flex;
  }

  body[data-page="landing"] .site-nav a,
  body[data-page="about"] .site-nav a,
  body[data-page="contact"] .site-nav a,
  body[data-page="not-found"] .site-nav a,
  body[data-page="auth-login"] .site-nav a {
    padding: 4px 0;
  }

  body[data-page="landing"] .site-nav .nav-cta,
  body[data-page="about"] .site-nav .nav-cta,
  body[data-page="contact"] .site-nav .nav-cta,
  body[data-page="not-found"] .site-nav .nav-cta,
  body[data-page="auth-login"] .site-nav .nav-cta {
    margin-top: 8px;
    width: 100%;
  }

  .inner-page-main,
  .auth-login-main,
  .not-found-main {
    width: calc(100% - 1.25rem);
  }

  .inner-page-main,
  .auth-login-main {
    padding-top: 102px;
    padding-bottom: 34px;
  }

  .inner-hero h1,
  .auth-login-copy h1 {
    font-size: clamp(1.85rem, 10vw, 2.95rem);
    max-width: none;
  }

  .auth-bullet-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid button {
    width: 100%;
  }

  body[data-page="about"] .site-footer .footer-right,
  body[data-page="contact"] .site-footer .footer-right {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .site-footer .copyright-wrap,
  body[data-page="contact"] .site-footer .copyright-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .not-found-main {
    padding-top: 108px;
  }
}

/* --- Refinements: smoother page transitions + updated page layouts --- */
body.page-transition-enabled {
  opacity: 0;
  transition: opacity 170ms ease;
}

body.page-transition-enabled.page-transition-ready {
  opacity: 1;
}

body.page-transition-enabled::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20000;
  background:
    radial-gradient(circle at 50% 10%, rgba(207, 254, 37, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(3, 7, 11, 0.2), rgba(3, 7, 11, 0.94));
  opacity: 0;
  transition: opacity 190ms ease;
}

body.page-transition-enabled.page-transitioning::after {
  opacity: 1;
}

body[data-page="landing"] h1.text-center {
  font-size: clamp(3.1rem, 6.4vw, 6.68rem);
}

body[data-page="landing"] .tech-core .tag-code {
  left: 12%;
  top: 24%;
}

body[data-page="landing"] .tech-core .tag-web {
  left: 70%;
  top: 22%;
}

body[data-page="landing"] .tech-core .tag-it {
  left: 78%;
  top: 48%;
}

body[data-page="landing"] .tech-core .tag-pc {
  left: 14%;
  top: 74%;
}

body[data-page="landing"] .tech-core .tag-auto {
  left: 69%;
  top: 78%;
}

body[data-page="landing"] .tech-core .tag-api {
  left: 82%;
  top: 10%;
}

body[data-page="landing"] .tech-core .tag-ops {
  left: 30%;
  top: 91%;
}

body[data-page="landing"] .tech-core .tag-cloud {
  left: 5%;
  top: 14%;
}

body[data-page="landing"] .tech-core .tag-data {
  left: 87%;
  top: 66%;
}

.about-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.about-media-card {
  margin: 0;
  padding: 0.7rem;
  display: grid;
  gap: 0.65rem;
}

.about-media-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.about-media-card figcaption {
  margin: 0;
  padding: 0 0.35rem 0.15rem;
  color: rgba(210, 210, 210, 0.72);
  font-size: 0.84rem;
}

.about-contrast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.about-wide-card {
  padding: 0.7rem;
  display: grid;
  gap: 0.85rem;
}

.about-wide-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: block;
}

.about-wide-copy {
  padding: 0.2rem 0.45rem 0.45rem;
}

.about-wide-copy h2 {
  margin: 0.1rem 0 0.55rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.about-side-list {
  display: grid;
  gap: 0.85rem;
}

.about-side-item {
  padding: 1rem 1.05rem;
}

.about-side-item h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.about-side-item p {
  margin: 0;
}

body[data-page="auth-login"] .auth-login-shell {
  grid-template-columns: minmax(0, 0.92fr) minmax(410px, 1fr);
}

body[data-page="auth-login"] .auth-login-copy h1 {
  max-width: 12.8ch;
}

body[data-page="auth-login"] .auth-login-help {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

body[data-page="auth-login"] .auth-login-help .button-01,
body[data-page="auth-login"] .auth-login-help .button-03 {
  padding: 11px 18px;
  font-size: 0.92rem;
}

body[data-page="not-found"] .not-found-main {
  min-height: calc(100vh - 360px);
}

body[data-page="landing"] .site-footer .footer-link[aria-current="page"],
body[data-page="about"] .site-footer .footer-link[aria-current="page"],
body[data-page="contact"] .site-footer .footer-link[aria-current="page"],
body[data-page="auth-login"] .site-footer .footer-link[aria-current="page"],
body[data-page="not-found"] .site-footer .footer-link[aria-current="page"] {
  color: var(--xd-yellow);
  font-weight: 700;
}

body[data-page="about"] .premium-footer,
body[data-page="contact"] .premium-footer,
body[data-page="auth-login"] .premium-footer,
body[data-page="not-found"] .premium-footer {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.7rem;
  position: relative;
  z-index: 1;
}

body[data-page="about"] .site-footer .footer-wrap,
body[data-page="contact"] .site-footer .footer-wrap,
body[data-page="auth-login"] .site-footer .footer-wrap,
body[data-page="not-found"] .site-footer .footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

body[data-page="about"] .site-footer .footer-left,
body[data-page="contact"] .site-footer .footer-left,
body[data-page="auth-login"] .site-footer .footer-left,
body[data-page="not-found"] .site-footer .footer-left {
  max-width: 340px;
  display: grid;
  gap: 15px;
}

body[data-page="about"] .site-footer .footer-pill,
body[data-page="contact"] .site-footer .footer-pill,
body[data-page="auth-login"] .site-footer .footer-pill,
body[data-page="not-found"] .site-footer .footer-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 14, 0.88);
  color: var(--xd-light-yellow);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body[data-page="about"] .site-footer .footer-cta,
body[data-page="contact"] .site-footer .footer-cta,
body[data-page="auth-login"] .site-footer .footer-cta,
body[data-page="not-found"] .site-footer .footer-cta {
  width: fit-content;
}

body[data-page="about"] .site-footer .footer-right,
body[data-page="contact"] .site-footer .footer-right,
body[data-page="auth-login"] .site-footer .footer-right,
body[data-page="not-found"] .site-footer .footer-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
}

body[data-page="about"] .site-footer .footer-title,
body[data-page="contact"] .site-footer .footer-title,
body[data-page="auth-login"] .site-footer .footer-title,
body[data-page="not-found"] .site-footer .footer-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-page="about"] .site-footer .footer-menu-list,
body[data-page="contact"] .site-footer .footer-menu-list,
body[data-page="auth-login"] .site-footer .footer-menu-list,
body[data-page="not-found"] .site-footer .footer-menu-list,
body[data-page="about"] .site-footer .footer-contact-list,
body[data-page="contact"] .site-footer .footer-contact-list,
body[data-page="auth-login"] .site-footer .footer-contact-list,
body[data-page="not-found"] .site-footer .footer-contact-list {
  display: grid;
  gap: 7px;
}

body[data-page="about"] .site-footer .footer-link,
body[data-page="contact"] .site-footer .footer-link,
body[data-page="auth-login"] .site-footer .footer-link,
body[data-page="not-found"] .site-footer .footer-link {
  color: var(--xd-grey);
  transition: color 0.25s ease;
}

body[data-page="about"] .site-footer .footer-link:hover,
body[data-page="about"] .site-footer .footer-link:focus-visible,
body[data-page="contact"] .site-footer .footer-link:hover,
body[data-page="contact"] .site-footer .footer-link:focus-visible,
body[data-page="auth-login"] .site-footer .footer-link:hover,
body[data-page="auth-login"] .site-footer .footer-link:focus-visible,
body[data-page="not-found"] .site-footer .footer-link:hover,
body[data-page="not-found"] .site-footer .footer-link:focus-visible {
  color: var(--xd-light-yellow);
}

body[data-page="about"] .site-footer .footer-note,
body[data-page="contact"] .site-footer .footer-note,
body[data-page="auth-login"] .site-footer .footer-note,
body[data-page="not-found"] .site-footer .footer-note {
  font-size: 0.8rem;
  color: rgba(210, 210, 210, 0.65);
}

body[data-page="about"] .site-footer .copyright-wrap,
body[data-page="contact"] .site-footer .copyright-wrap,
body[data-page="auth-login"] .site-footer .copyright-wrap,
body[data-page="not-found"] .site-footer .copyright-wrap {
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(210, 210, 210, 0.62);
}

@media (max-width: 1080px) {
  .about-intro-layout,
  .about-contrast-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .site-footer .footer-wrap,
  body[data-page="contact"] .site-footer .footer-wrap,
  body[data-page="auth-login"] .site-footer .footer-wrap,
  body[data-page="not-found"] .site-footer .footer-wrap {
    flex-direction: column;
  }

  body[data-page="about"] .site-footer .footer-right,
  body[data-page="contact"] .site-footer .footer-right,
  body[data-page="auth-login"] .site-footer .footer-right,
  body[data-page="not-found"] .site-footer .footer-right {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-page="landing"] .tech-core .tag-code {
    left: 8%;
    top: 22%;
  }

  body[data-page="landing"] .tech-core .tag-web {
    left: 72%;
    top: 20%;
  }

  body[data-page="landing"] .tech-core .tag-it {
    left: 76%;
    top: 48%;
  }

  body[data-page="landing"] .tech-core .tag-pc {
    left: 9%;
    top: 74%;
  }

  body[data-page="landing"] .tech-core .tag-auto {
    left: 66%;
    top: 76%;
  }

  body[data-page="auth-login"] .auth-login-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .site-footer .footer-right,
  body[data-page="contact"] .site-footer .footer-right,
  body[data-page="auth-login"] .site-footer .footer-right,
  body[data-page="not-found"] .site-footer .footer-right {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .site-footer .copyright-wrap,
  body[data-page="contact"] .site-footer .copyright-wrap,
  body[data-page="auth-login"] .site-footer .copyright-wrap,
  body[data-page="not-found"] .site-footer .copyright-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Orbit scale adapts to viewport while keeping ring layers free of clipping seams. */
body[data-page="landing"] .hero-tech-backdrop .tech-core {
  width: min(1360px, 98vw);
  min-height: clamp(460px, 42vw, 680px);
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-one {
  width: clamp(500px, 56vw, 980px);
  height: clamp(280px, 32vw, 560px);
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-two {
  width: clamp(400px, 46vw, 800px);
  height: clamp(400px, 46vw, 800px);
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-three {
  width: clamp(330px, 40vw, 700px);
  height: clamp(430px, 52vw, 820px);
}

@media (min-width: 1400px) {
  body[data-page="landing"] .nav-container,
  body[data-page="about"] .nav-container,
  body[data-page="contact"] .nav-container,
  body[data-page="not-found"] .nav-container,
  body[data-page="auth-login"] .nav-container {
    max-width: 1480px;
    padding-left: clamp(24px, 2vw, 34px);
    padding-right: clamp(24px, 2vw, 34px);
  }

  body[data-page="landing"] main,
  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main,
  body[data-page="auth-login"] .auth-login-main,
  body[data-page="not-found"] .not-found-main,
  body[data-page="about"] .premium-footer,
  body[data-page="contact"] .premium-footer,
  body[data-page="auth-login"] .premium-footer,
  body[data-page="not-found"] .premium-footer {
    width: min(1480px, calc(100% - 3rem));
  }

  body[data-page="landing"] .section {
    padding: clamp(84px, 7.5vw, 102px) 0;
  }

  body[data-page="landing"] .premium-footer {
    padding-top: clamp(64px, 5vw, 78px);
    padding-bottom: clamp(26px, 2.6vw, 34px);
  }

  body[data-page="landing"] .hero-v1,
  body[data-page="landing"] .hero-v1-wrap {
    min-height: clamp(680px, 78vh, 800px);
  }

  body[data-page="landing"] .hero-v1-main-wrap {
    padding-top: clamp(64px, 5vh, 76px);
    padding-bottom: clamp(46px, 5vh, 62px);
  }

  body[data-page="landing"] .hero-layout-grid {
    min-height: clamp(420px, 50vh, 560px);
  }

  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main {
    padding-top: clamp(108px, 6.8vh, 124px);
    padding-bottom: clamp(28px, 2.3vw, 40px);
  }

  body[data-page="auth-login"] .auth-login-main {
    padding-top: clamp(106px, 6.8vh, 124px);
  }

  body[data-page="not-found"] .not-found-main {
    min-height: clamp(420px, 62vh, 620px);
  }
}

@media (min-width: 1600px) {
  body[data-page="landing"] .nav-container,
  body[data-page="about"] .nav-container,
  body[data-page="contact"] .nav-container,
  body[data-page="not-found"] .nav-container,
  body[data-page="auth-login"] .nav-container {
    max-width: 1600px;
  }

  body[data-page="landing"] main,
  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main,
  body[data-page="auth-login"] .auth-login-main,
  body[data-page="not-found"] .not-found-main,
  body[data-page="about"] .premium-footer,
  body[data-page="contact"] .premium-footer,
  body[data-page="auth-login"] .premium-footer,
  body[data-page="not-found"] .premium-footer {
    width: min(1600px, calc(100% - 3.5rem));
  }

  body[data-page="landing"] .hero-v1,
  body[data-page="landing"] .hero-v1-wrap {
    min-height: clamp(660px, 72vh, 760px);
  }

  body[data-page="landing"] .section {
    padding: clamp(78px, 6vw, 92px) 0;
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-core {
    width: min(1480px, 96vw);
    min-height: clamp(520px, 36vw, 760px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-one {
    width: clamp(700px, 54vw, 1160px);
    height: clamp(380px, 30vw, 640px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-two {
    width: clamp(560px, 45vw, 960px);
    height: clamp(560px, 45vw, 960px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-three {
    width: clamp(460px, 38vw, 780px);
    height: clamp(620px, 48vw, 980px);
  }
}

@media (max-width: 820px) {
  body[data-page="landing"] .hero-tech-backdrop .tech-core {
    width: min(820px, 96vw);
    min-height: clamp(260px, 48vw, 400px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-one {
    width: clamp(260px, 74vw, 430px);
    height: clamp(150px, 42vw, 250px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-two {
    width: clamp(210px, 62vw, 360px);
    height: clamp(210px, 62vw, 360px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-three {
    width: clamp(190px, 55vw, 320px);
    height: clamp(260px, 76vw, 430px);
  }
}

@media (max-width: 560px) {
  body[data-page="landing"] .nav-container,
  body[data-page="about"] .nav-container,
  body[data-page="contact"] .nav-container,
  body[data-page="not-found"] .nav-container,
  body[data-page="auth-login"] .nav-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  body[data-page="landing"] main,
  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main,
  body[data-page="auth-login"] .auth-login-main,
  body[data-page="not-found"] .not-found-main,
  body[data-page="about"] .premium-footer,
  body[data-page="contact"] .premium-footer,
  body[data-page="auth-login"] .premium-footer,
  body[data-page="not-found"] .premium-footer {
    width: calc(100% - 1rem);
  }

  body[data-page="landing"] .hero-v1-main-wrap {
    padding-top: 66px;
    padding-bottom: 48px;
  }

  body[data-page="landing"] .hero-layout-grid {
    min-height: auto;
  }

  body[data-page="landing"] .hero-stats article {
    padding: 12px;
  }

  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main {
    padding-top: 94px;
    padding-bottom: 20px;
  }

  body[data-page="auth-login"] .auth-login-main {
    padding-top: 94px;
    padding-bottom: 24px;
  }
}

/* --- 2026-03: Global responsive calibration (Setrex-style rhythm) --- */
body[data-page="landing"] .nav-container,
body[data-page="landing"] .container,
body[data-page="landing"] .container.hero-shell {
  max-width: min(1460px, 100%);
  padding-left: clamp(14px, 2vw, 30px);
  padding-right: clamp(14px, 2vw, 30px);
}

body[data-page="landing"] .hero-v1,
body[data-page="landing"] .hero-v1-wrap {
  min-height: clamp(620px, 84vh, 790px);
}

body[data-page="landing"] .hero-v1-main-wrap {
  padding-top: clamp(58px, 6.2vh, 78px);
  padding-bottom: clamp(40px, 5.4vh, 62px);
}

body[data-page="landing"] .hero-layout-grid {
  min-height: clamp(380px, 47vh, 540px);
}

body[data-page="landing"] .hero-content-block {
  width: min(1320px, 100%);
}

body[data-page="landing"] .hero-subtitle-wrap {
  max-width: 940px;
}

body[data-page="landing"] .hero-stats {
  max-width: 1180px;
  margin-top: clamp(20px, 2.5vw, 30px);
}

body[data-page="landing"] main {
  width: min(1460px, calc(100% - 2.5rem));
}

body[data-page="landing"] .section {
  padding: clamp(58px, 6vw, 88px) 0;
}

body[data-page="landing"] .logo-marquee {
  margin-top: 0;
}

body[data-page="about"] .inner-page-main,
body[data-page="contact"] .inner-page-main,
body[data-page="auth-login"] .auth-login-main,
body[data-page="not-found"] .not-found-main,
body[data-page="about"] .premium-footer,
body[data-page="contact"] .premium-footer,
body[data-page="auth-login"] .premium-footer,
body[data-page="not-found"] .premium-footer {
  width: min(1380px, calc(100% - 2.5rem));
}

body[data-page="about"] .inner-page-main,
body[data-page="contact"] .inner-page-main {
  padding-top: clamp(102px, 6.4vh, 118px);
  padding-bottom: clamp(20px, 2.2vw, 34px);
}

body[data-page="about"] .inner-page-main .section,
body[data-page="contact"] .inner-page-main .section {
  padding-top: clamp(46px, 4.8vw, 66px);
  padding-bottom: clamp(46px, 4.8vw, 66px);
}

body[data-page="auth-login"] .auth-login-main {
  padding-top: clamp(102px, 6.2vh, 118px);
  padding-bottom: clamp(42px, 5.2vh, 78px);
}

body[data-page="auth-login"] .auth-login-shell {
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1fr);
}

body[data-page="about"] .contact-panel,
body[data-page="contact"] .contact-panel {
  margin-top: 0;
}

@media (min-width: 1700px) {
  body[data-page="landing"] .hero-v1,
  body[data-page="landing"] .hero-v1-wrap {
    min-height: clamp(640px, 76vh, 780px);
  }

  body[data-page="landing"] .section {
    padding: clamp(60px, 5vw, 84px) 0;
  }
}

@media (max-width: 1200px) {
  body[data-page="landing"] .hero-v1,
  body[data-page="landing"] .hero-v1-wrap {
    min-height: clamp(560px, 80vh, 720px);
  }

  body[data-page="landing"] .hero-v1-main-wrap {
    padding-top: clamp(60px, 7vh, 76px);
    padding-bottom: clamp(44px, 6vh, 60px);
  }

  body[data-page="landing"] .hero-layout-grid {
    min-height: clamp(340px, 44vh, 500px);
  }

  body[data-page="landing"] .section {
    padding: clamp(52px, 5.6vw, 74px) 0;
  }

  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main,
  body[data-page="auth-login"] .auth-login-main,
  body[data-page="not-found"] .not-found-main,
  body[data-page="about"] .premium-footer,
  body[data-page="contact"] .premium-footer,
  body[data-page="auth-login"] .premium-footer,
  body[data-page="not-found"] .premium-footer {
    width: min(1200px, calc(100% - 2rem));
  }
}

@media (max-width: 960px) {
  body[data-page="landing"] .hero-v1-main-wrap {
    padding-top: 70px;
    padding-bottom: 56px;
  }

  body[data-page="landing"] .hero-layout-grid {
    min-height: auto;
  }

  body[data-page="landing"] .hero-signal-row {
    display: none;
  }

  body[data-page="landing"] .hero-stats {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  body[data-page="landing"] .section {
    padding: 48px 0;
  }

  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main,
  body[data-page="auth-login"] .auth-login-main,
  body[data-page="not-found"] .not-found-main,
  body[data-page="about"] .premium-footer,
  body[data-page="contact"] .premium-footer,
  body[data-page="auth-login"] .premium-footer,
  body[data-page="not-found"] .premium-footer {
    width: calc(100% - 1.5rem);
  }

  body[data-page="about"] .inner-page-main .section,
  body[data-page="contact"] .inner-page-main .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  body[data-page="auth-login"] .auth-login-shell,
  body[data-page="about"] .about-intro-layout,
  body[data-page="about"] .about-contrast-layout,
  body[data-page="contact"] .contact-grid-layout {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

@media (max-width: 680px) {
  body[data-page="landing"] .nav-container,
  body[data-page="about"] .nav-container,
  body[data-page="contact"] .nav-container,
  body[data-page="not-found"] .nav-container,
  body[data-page="auth-login"] .nav-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  body[data-page="landing"] h1.text-center {
    font-size: clamp(2.05rem, 10vw, 2.75rem);
    max-width: 11.4ch;
  }

  body[data-page="landing"] .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body[data-page="landing"] .hero-button-wrap {
    width: 100%;
    gap: 10px;
  }

  body[data-page="landing"] .hero-button-wrap .button-01,
  body[data-page="landing"] .hero-button-wrap .button-03 {
    width: 100%;
  }

  body[data-page="landing"] .section {
    padding: 42px 0;
  }

  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main,
  body[data-page="auth-login"] .auth-login-main,
  body[data-page="not-found"] .not-found-main,
  body[data-page="about"] .premium-footer,
  body[data-page="contact"] .premium-footer,
  body[data-page="auth-login"] .premium-footer,
  body[data-page="not-found"] .premium-footer {
    width: calc(100% - 1rem);
  }

  body[data-page="about"] .inner-page-main,
  body[data-page="contact"] .inner-page-main,
  body[data-page="auth-login"] .auth-login-main {
    padding-top: 96px;
  }

  body[data-page="contact"] .contact-form-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .site-footer .footer-wrap,
  body[data-page="contact"] .site-footer .footer-wrap,
  body[data-page="auth-login"] .site-footer .footer-wrap,
  body[data-page="not-found"] .site-footer .footer-wrap {
    gap: 18px;
  }
}

/* --- 2026-03: Hero full-bleed immersive pass --- */
body[data-page="landing"] .hero-v1 {
  overflow: clip;
}

body[data-page="landing"] .hero-v1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -44%;
  width: min(2800px, 172vw);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 22%, rgba(245, 251, 255, 0.52) 0%, rgba(220, 236, 255, 0.22) 24%, rgba(20, 27, 38, 0.12) 44%, rgba(2, 5, 9, 0) 62%),
    radial-gradient(circle at 50% 56%, rgba(207, 254, 37, 0.1) 0%, rgba(207, 254, 37, 0.04) 34%, transparent 62%);
  filter: blur(1.2px);
  opacity: 0.62;
}

body[data-page="landing"] .hero-v1-main-wrap {
  max-width: none;
  width: 100%;
  padding-left: clamp(14px, 2.1vw, 30px);
  padding-right: clamp(14px, 2.1vw, 30px);
}

body[data-page="landing"] .hero-tech-backdrop::before {
  width: min(2120px, 150vw);
  aspect-ratio: 2.2 / 1;
  opacity: 0.44;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core {
  width: min(2500px, 158vw);
  min-height: clamp(620px, 74vw, 1220px);
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-one {
  width: clamp(900px, 84vw, 1860px);
  height: clamp(460px, 43vw, 980px);
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-two {
  width: clamp(700px, 66vw, 1500px);
  height: clamp(700px, 66vw, 1500px);
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-three {
  width: clamp(560px, 54vw, 1200px);
  height: clamp(760px, 72vw, 1600px);
}

@media (max-width: 1200px) {
  body[data-page="landing"] .hero-v1::after {
    bottom: -52%;
    width: min(2200px, 184vw);
    opacity: 0.54;
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-core {
    width: min(1700px, 168vw);
    min-height: clamp(500px, 82vw, 960px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-one {
    width: clamp(620px, 98vw, 1260px);
    height: clamp(340px, 56vw, 700px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-two {
    width: clamp(500px, 82vw, 1020px);
    height: clamp(500px, 82vw, 1020px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-three {
    width: clamp(400px, 70vw, 860px);
    height: clamp(560px, 96vw, 1180px);
  }
}

@media (max-width: 820px) {
  body[data-page="landing"] .hero-v1::after {
    bottom: -56%;
    width: min(1700px, 202vw);
    opacity: 0.5;
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-core {
    width: min(1180px, 188vw);
    min-height: clamp(360px, 96vw, 720px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-one {
    width: clamp(380px, 112vw, 820px);
    height: clamp(220px, 64vw, 500px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-two {
    width: clamp(300px, 94vw, 680px);
    height: clamp(300px, 94vw, 680px);
  }

  body[data-page="landing"] .hero-tech-backdrop .tech-ring-three {
    width: clamp(250px, 82vw, 540px);
    height: clamp(340px, 118vw, 860px);
  }
}

/* --- 2026-03: Landing CTA flow + placeholder media cards --- */
body[data-page="landing"] #services .service-card,
body[data-page="landing"] #work .highlight-list .service-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body[data-page="landing"] #services .service-media,
body[data-page="landing"] #work .work-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.2rem;
}

body[data-page="landing"] #services .service-card ul {
  margin-bottom: 0.25rem;
}

body[data-page="landing"] .service-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 254, 37, 0.44);
  color: #eef8ca;
  background: rgba(207, 254, 37, 0.08);
  font-size: 0.8rem;
  line-height: 1.2;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body[data-page="landing"] .service-card-link::after {
  content: "->";
  font-size: 0.76rem;
}

body[data-page="landing"] .service-card-link:hover,
body[data-page="landing"] .service-card-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(207, 254, 37, 0.8);
  color: #ffffff;
  background: rgba(207, 254, 37, 0.16);
}

@media (max-width: 680px) {
  body[data-page="landing"] .service-card-link {
    width: 100%;
    justify-content: center;
  }
}

/* --- 2026-03: Founder story content pass --- */
body[data-page="landing"] .founder-story-section {
  padding-top: clamp(54px, 6vw, 86px);
}

.founder-story-grid,
.founder-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 1rem;
  align-items: stretch;
}

.founder-story-card,
.founder-about-card {
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 16px;
}

.founder-story-card h2,
.founder-about-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
  line-height: 1.08;
}

.founder-story-card p,
.founder-about-card p {
  margin-top: 0.8rem;
  color: rgba(220, 224, 232, 0.86);
}

.founder-story-media,
.founder-about-media {
  padding: 14px;
  border-radius: 16px;
  display: grid;
  gap: 10px;
}

.founder-story-media img,
.founder-about-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.founder-story-media figcaption,
.founder-about-media figcaption {
  color: rgba(220, 224, 232, 0.7);
  font-size: 0.82rem;
  line-height: 1.45;
}

body[data-page="landing"] .founder-story-card .hero-actions {
  margin-top: 1rem;
  justify-content: flex-start;
}

body[data-page="about"] .founder-about-section {
  padding-top: clamp(42px, 4.6vw, 66px);
  padding-bottom: clamp(42px, 4.6vw, 66px);
}

body[data-page="about"] .founder-about-card .check-list {
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .founder-story-grid,
  .founder-about-grid {
    grid-template-columns: 1fr;
  }

  .founder-story-media,
  .founder-about-media {
    order: 2;
  }

  .founder-story-card,
  .founder-about-card {
    order: 1;
  }
}

/* --- 2026-03: Visual consistency hotfix (header offset + smooth marquee) --- */
body[data-page="landing"],
body[data-page="about"],
body[data-page="contact"],
body[data-page="not-found"],
body[data-page="auth-login"] {
  --xd-header-safe-offset: 114px;
}

body[data-page="landing"] .hero-v1-main-wrap {
  padding-top: calc(var(--xd-header-safe-offset) + clamp(10px, 2.1vh, 24px));
}

body[data-page="landing"] section[id],
body[data-page="about"] section[id],
body[data-page="contact"] section[id],
body[data-page="not-found"] section[id],
body[data-page="auth-login"] section[id] {
  scroll-margin-top: calc(var(--xd-header-safe-offset) + 10px);
}

body[data-page="landing"] .logo-marquee .marquee-track {
  gap: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: marqueeX 32s linear infinite;
}

body[data-page="landing"] .logo-marquee .marquee-item {
  margin-right: 0.65rem;
  transform: translateZ(0);
}

@keyframes marqueeX {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1200px) {
  body[data-page="landing"],
  body[data-page="about"],
  body[data-page="contact"],
  body[data-page="not-found"],
  body[data-page="auth-login"] {
    --xd-header-safe-offset: 106px;
  }
}

@media (max-width: 820px) {
  body[data-page="landing"],
  body[data-page="about"],
  body[data-page="contact"],
  body[data-page="not-found"],
  body[data-page="auth-login"] {
    --xd-header-safe-offset: 92px;
  }

  body[data-page="landing"] .hero-v1-main-wrap {
    padding-top: calc(var(--xd-header-safe-offset) + 6px);
  }
}

/* --- 2026-03: Landing visual consistency pass (typography + surfaces + marquee) --- */
body[data-page="landing"] {
  --lp-text-muted: rgba(220, 228, 234, 0.8);
  --lp-card-bg: linear-gradient(160deg, rgba(10, 14, 20, 0.86), rgba(6, 9, 14, 0.82));
  --lp-card-border: rgba(255, 255, 255, 0.14);
  --lp-card-border-strong: rgba(207, 254, 37, 0.34);
  --lp-section-space: clamp(54px, 5.8vw, 82px);
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(207, 254, 37, 0.12), transparent 62%),
    radial-gradient(1050px 640px at 50% 112%, rgba(68, 118, 46, 0.18), transparent 66%),
    linear-gradient(180deg, #02060a 0%, #010308 54%, #010204 100%);
}

body[data-page="landing"] .hero-v1,
body[data-page="landing"] .hero-v1-wrap {
  min-height: clamp(640px, 86vh, 800px);
}

body[data-page="landing"] h1.text-center {
  font-size: clamp(2.8rem, 6.1vw, 5.9rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  max-width: 14.2ch;
}

body[data-page="landing"] .hero-subtitle-wrap {
  max-width: 860px;
}

body[data-page="landing"] .hero-subtitle {
  color: var(--lp-text-muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.55;
}

body[data-page="landing"] .hero-tech-backdrop::before {
  opacity: 0.28;
  filter: blur(16px);
}

body[data-page="landing"] .hero-tech-backdrop::after {
  opacity: 0.22;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core::before {
  opacity: 0.18;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core::after {
  opacity: 0.14;
}

body[data-page="landing"] main {
  width: min(1360px, calc(100% - 2.4rem));
}

body[data-page="landing"] .section {
  padding: var(--lp-section-space) 0;
}

body[data-page="landing"] .section-head h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

body[data-page="landing"] #work .eyebrow,
body[data-page="landing"] #process .eyebrow,
body[data-page="landing"] #faq .eyebrow {
  color: var(--xd-yellow);
}

body[data-page="landing"] .service-card,
body[data-page="landing"] .process-card,
body[data-page="landing"] .faq details,
body[data-page="landing"] .xp-card,
body[data-page="landing"] .founder-story-card,
body[data-page="landing"] .founder-story-media,
body[data-page="landing"] .contact-panel {
  border-color: var(--lp-card-border);
  background: var(--lp-card-bg);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.36);
}

body[data-page="landing"] #services .service-card {
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--tone-rgb, 207, 254, 37), 0.1), transparent 40%),
    var(--lp-card-bg);
}

body[data-page="landing"] #process .process-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--tone-rgb, 207, 254, 37), 0.1), transparent 42%),
    var(--lp-card-bg);
}

body[data-page="landing"] .service-card:hover,
body[data-page="landing"] .process-card:hover,
body[data-page="landing"] .xp-card:hover,
body[data-page="landing"] .faq details:hover {
  border-color: var(--lp-card-border-strong);
}

body[data-page="landing"] .service-card p,
body[data-page="landing"] .service-card li,
body[data-page="landing"] .process-card p,
body[data-page="landing"] .xp-card p,
body[data-page="landing"] .check-item,
body[data-page="landing"] .faq p,
body[data-page="landing"] .contact-panel p,
body[data-page="landing"] .founder-story-card p {
  color: var(--lp-text-muted);
}

body[data-page="landing"] .service-card h3,
body[data-page="landing"] .process-card h3 {
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.25;
}

body[data-page="landing"] .xp-card h3 {
  font-size: clamp(1.75rem, 2.7vw, 2.3rem);
  line-height: 1.08;
}

body[data-page="landing"] .faq summary {
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  font-weight: 500;
}

body[data-page="landing"] .contact-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
}

body[data-page="landing"] .logo-marquee {
  margin-top: 0;
  margin-bottom: 0;
}

body[data-page="landing"] .logo-marquee .marquee {
  border-top: 1px solid var(--lp-card-border);
  border-bottom: 1px solid var(--lp-card-border);
  background: rgba(9, 12, 17, 0.72);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}

body[data-page="landing"] .logo-marquee .marquee-track {
  gap: 0.72rem;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

body[data-page="landing"] .logo-marquee .marquee-item {
  margin-right: 12px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(220, 228, 236, 0.86);
}

body[data-page="landing"] .premium-footer {
  padding: clamp(62px, 6.8vw, 86px) 0 32px;
  background:
    radial-gradient(circle at 14% 6%, rgba(207, 254, 37, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(7, 10, 14, 0.92), rgba(2, 4, 7, 0.98) 68%);
}

body[data-page="landing"] .site-footer .footer-title {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

body[data-page="landing"] .site-footer .footer-link {
  color: rgba(218, 224, 232, 0.78);
}

@media (max-width: 960px) {
  body[data-page="landing"] main {
    width: calc(100% - 1.6rem);
  }

  body[data-page="landing"] h1.text-center {
    font-size: clamp(2.4rem, 9vw, 4.2rem);
  }

  body[data-page="landing"] .section {
    padding: 48px 0;
  }
}

@media (max-width: 680px) {
  body[data-page="landing"] main {
    width: calc(100% - 1rem);
  }

  body[data-page="landing"] h1.text-center {
    font-size: clamp(2.1rem, 10.5vw, 3.2rem);
    max-width: 12ch;
  }

  body[data-page="landing"] .hero-subtitle {
    font-size: 0.95rem;
  }

  body[data-page="landing"] .logo-marquee .marquee-item {
    margin-right: 10px;
  }
}

/* --- 2026-03: Landing deep consistency + performance pass (dark hero + smooth motion) --- */
body[data-page="landing"] {
  --lp-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-motion-fast: 220ms;
  --lp-motion-base: 560ms;
  --lp-card-bg: linear-gradient(160deg, rgba(8, 12, 18, 0.88), rgba(5, 8, 13, 0.84));
  --lp-card-border: rgba(214, 224, 234, 0.16);
  --lp-card-border-strong: rgba(198, 224, 110, 0.28);
  background:
    radial-gradient(1220px 600px at 50% -14%, rgba(195, 228, 92, 0.06), transparent 60%),
    radial-gradient(980px 680px at 50% 112%, rgba(60, 102, 150, 0.12), transparent 66%),
    linear-gradient(180deg, #02060b 0%, #010309 54%, #010205 100%);
}

body[data-page="landing"] .hero-v1 {
  background:
    radial-gradient(124% 92% at 50% -14%, rgba(186, 224, 82, 0.07), transparent 58%),
    radial-gradient(84% 70% at 52% 50%, rgba(54, 92, 140, 0.14), transparent 72%),
    linear-gradient(180deg, #03070c 0%, #02050b 56%, #010308 100%);
}

body[data-page="landing"] .hero-v1::before {
  background-image:
    radial-gradient(circle, rgba(182, 214, 212, 0.2) 0.72px, transparent 1.18px),
    radial-gradient(circle, rgba(196, 230, 88, 0.16) 0.65px, transparent 1.1px);
  opacity: 0.12;
  animation: none;
}

body[data-page="landing"] .hero-v1::after {
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(225, 236, 248, 0.42) 0%,
      rgba(188, 212, 236, 0.18) 24%,
      rgba(18, 28, 42, 0.1) 44%,
      rgba(2, 6, 9, 0) 62%
    ),
    radial-gradient(circle at 50% 56%, rgba(198, 230, 88, 0.06) 0%, rgba(198, 230, 88, 0.025) 34%, transparent 62%);
  opacity: 0.4;
  filter: none;
}

body[data-page="landing"] .hero-overlay-noise {
  display: none;
}

body[data-page="landing"] .hero-tech-backdrop::before {
  opacity: 0.16;
  filter: none;
}

body[data-page="landing"] .hero-tech-backdrop::after {
  opacity: 0.1;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core::before {
  opacity: 0.1;
}

body[data-page="landing"] .hero-tech-backdrop .tech-core::after {
  opacity: 0.08;
}

body[data-page="landing"] .site-header::before {
  background: linear-gradient(180deg, rgba(3, 8, 12, 0.86), rgba(3, 8, 12, 0.46) 64%, rgba(3, 8, 12, 0.08) 100%);
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity 220ms ease, transform 240ms ease, backdrop-filter 240ms ease;
  backdrop-filter: blur(0px) saturate(1.02);
  -webkit-backdrop-filter: blur(0px) saturate(1.02);
  box-shadow: none;
}

body[data-page="landing"] .site-header.header-solid::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 14px 34px rgba(1, 4, 9, 0.24);
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}

body[data-page="landing"] .site-header.header-top::before,
body[data-page="landing"] .site-header.header-hidden::before {
  opacity: 0 !important;
  backdrop-filter: blur(0px) saturate(1.02);
  -webkit-backdrop-filter: blur(0px) saturate(1.02);
  box-shadow: none;
}

body[data-page="landing"] .badge-wrap.badge-transparent,
body[data-page="landing"] .hero-stats article {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="landing"] .premium-card {
  will-change: auto;
  transition:
    transform var(--lp-motion-fast) var(--lp-motion-ease),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

body[data-page="landing"] .premium-card.card-tilt-active,
body[data-page="landing"] .premium-card:hover {
  will-change: transform;
}

body[data-page="landing"] .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.995);
  transition:
    opacity var(--lp-motion-base) var(--lp-motion-ease),
    transform var(--lp-motion-base) var(--lp-motion-ease);
  will-change: opacity, transform;
}

body[data-page="landing"] .reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

body[data-page="landing"] .tech-core .orbit-tag {
  display: none;
}

body[data-page="landing"] .tech-core .tag-api,
body[data-page="landing"] .tech-core .tag-ops,
body[data-page="landing"] .tech-core .tag-cloud,
body[data-page="landing"] .tech-core .tag-data {
  display: none;
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-three {
  display: none;
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-one {
  animation: ringSpin 72s linear infinite;
  opacity: 0.22;
}

body[data-page="landing"] .hero-tech-backdrop .tech-ring-two {
  animation: none;
  opacity: 0.18;
}

body[data-page="landing"] .logo-marquee .marquee-track,
body[data-page="landing"] .hero-tech-backdrop .tech-ring,
body[data-page="landing"] .integration-ring,
body[data-page="landing"] .integration-node {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

body[data-page="landing"] .logo-marquee .marquee {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 0;
  border-bottom: 0;
  background: transparent;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

body[data-page="landing"] .logo-marquee .marquee::before,
body[data-page="landing"] .logo-marquee .marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(36px, 5.4vw, 96px);
  pointer-events: none;
  z-index: 2;
}

body[data-page="landing"] .logo-marquee .marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(2, 6, 11, 0.95) 0%, rgba(2, 6, 11, 0) 100%);
}

body[data-page="landing"] .logo-marquee .marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(2, 6, 11, 0.95) 0%, rgba(2, 6, 11, 0) 100%);
}

body[data-page="landing"] main > .section {
  border-top: 0;
}

body[data-page="landing"] .logo-marquee .marquee-track {
  width: max-content;
  gap: 0.72rem;
  padding: 0.7rem 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: xdMarqueeFlow 36s linear infinite;
}

body[data-page="landing"] .logo-marquee .marquee-track.marquee-lite {
  animation-duration: 52s;
}

body[data-page="landing"] .logo-marquee .marquee-track.is-paused {
  animation-play-state: paused;
}

@keyframes xdMarqueeFlow {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes tagDepthLite {
  0%,
  24% {
    opacity: 0;
    transform: translate3d(calc(var(--tag-drift-x) * -0.24), calc(var(--tag-drift-y) * -0.24), 0) scale(0.8);
  }
  42%,
  68% {
    opacity: 0.58;
    transform: translate3d(var(--tag-drift-x), var(--tag-drift-y), 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--tag-drift-x) * 1.2), calc(var(--tag-drift-y) * 1.2), 0) scale(1.12);
  }
}

body[data-page="landing"].hero-lite .hero-v1::before {
  opacity: 0.06;
}

body[data-page="landing"].hero-lite .hero-v1::after {
  opacity: 0.3;
}

body[data-page="landing"].hero-lite .hero-tech-backdrop {
  opacity: 0.56;
}

body[data-page="landing"].hero-lite .hero-tech-backdrop .tech-ring-one {
  animation: none;
}

body[data-page="landing"] #work.work-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="landing"] #work .work-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

body[data-page="landing"] #work .work-intro {
  position: sticky;
  top: calc(var(--xd-header-safe-offset) + 10px);
  border: 1px solid var(--lp-card-border);
  border-radius: 16px;
  padding: clamp(18px, 2.2vw, 30px);
  background:
    radial-gradient(circle at 14% 0%, rgba(90, 212, 255, 0.08), transparent 44%),
    var(--lp-card-bg);
}

body[data-page="landing"] #work .work-intro h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

body[data-page="landing"] #work .work-intro .lead-sm {
  margin-bottom: 1rem;
}

body[data-page="landing"] #work .work-intro-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body[data-page="landing"] #work .work-intro-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(221, 229, 237, 0.9);
  font-size: 0.76rem;
  line-height: 1.2;
}

body[data-page="landing"] #work .work-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}

body[data-page="landing"] #work .work-cards-grid .service-card {
  min-height: 100%;
}

body[data-page="landing"] #work .work-cards-grid .work-card-featured {
  grid-column: 1 / -1;
}

body[data-page="landing"] #work .work-cards-grid .work-card-featured .work-media {
  aspect-ratio: 18 / 8;
}

body[data-page="landing"] .founder-story-grid,
body[data-page="landing"] .card-grid,
body[data-page="landing"] .experience-grid,
body[data-page="landing"] .highlight-list,
body[data-page="landing"] .process-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 620px;
}

body[data-page="landing"].hero-motion-paused .hero-v1::before,
body[data-page="landing"].hero-motion-paused .hero-tech-backdrop .tech-ring,
body[data-page="landing"].hero-motion-paused .tech-core .orbit-tag {
  animation-play-state: paused !important;
}

body[data-page="landing"].experience-motion-paused .integration-ring,
body[data-page="landing"].experience-motion-paused .integration-node {
  animation-play-state: paused !important;
}

body[data-page="landing"].landing-motion-limited .hero-v1::before,
body[data-page="landing"].landing-motion-limited .hero-tech-backdrop .tech-ring,
body[data-page="landing"].landing-motion-limited .tech-core .orbit-tag,
body[data-page="landing"].landing-motion-limited .integration-ring,
body[data-page="landing"].landing-motion-limited .integration-node {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
}

body[data-page="landing"].landing-motion-limited .tech-core .orbit-tag {
  display: none;
}

@media (max-width: 960px) {
  body[data-page="landing"] #work .work-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="landing"] #work .work-intro {
    position: static;
  }

  body[data-page="landing"] #work .work-cards-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="landing"] #work .work-cards-grid .work-card-featured .work-media {
    aspect-ratio: 16 / 10;
  }

  body[data-page="landing"] .tech-core .orbit-tag {
    display: none;
  }

  body[data-page="landing"] .reveal {
    transform: translate3d(0, 12px, 0) scale(0.998);
  }
}

/* --- 2026-03: Brand usage lock (always PNG mark over black tile) --- */
body[data-page] .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  padding: 4px;
  background: #020306;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #fff;
}

body[data-page] .brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* --- 2026-03: Auth login visual cleanup (landing palette alignment) --- */
body[data-page="auth-login"] {
  background:
    radial-gradient(1180px 560px at 50% -10%, rgba(198, 230, 88, 0.07), transparent 60%),
    radial-gradient(980px 640px at 50% 110%, rgba(62, 102, 152, 0.16), transparent 66%),
    linear-gradient(180deg, #02060b 0%, #010309 56%, #010205 100%);
}

body[data-page="auth-login"]::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0.012) 100%),
    radial-gradient(circle at 50% 0%, rgba(111, 152, 255, 0.07), transparent 44%);
  opacity: 1;
}

body[data-page="auth-login"] .auth-login-copy,
body[data-page="auth-login"] .auth-card {
  border: 1px solid rgba(198, 214, 232, 0.17);
  background: linear-gradient(158deg, rgba(7, 12, 18, 0.88), rgba(4, 8, 13, 0.84));
  box-shadow: 0 24px 64px rgba(1, 6, 11, 0.46);
  backdrop-filter: blur(8px) saturate(1.04);
  -webkit-backdrop-filter: blur(8px) saturate(1.04);
}

body[data-page="auth-login"] .auth-login-copy {
  background:
    radial-gradient(130% 95% at 12% 0%, rgba(198, 230, 88, 0.1), transparent 56%),
    radial-gradient(90% 80% at 86% 18%, rgba(111, 152, 255, 0.11), transparent 58%),
    linear-gradient(160deg, rgba(8, 13, 19, 0.9), rgba(4, 8, 13, 0.84));
}

body[data-page="auth-login"] .auth-card {
  background:
    radial-gradient(110% 90% at 16% 0%, rgba(198, 230, 88, 0.08), transparent 54%),
    linear-gradient(160deg, rgba(8, 13, 19, 0.88), rgba(4, 8, 13, 0.84));
}

body[data-page="auth-login"] .auth-login-copy .lead-sm,
body[data-page="auth-login"] .auth-card .lead-sm,
body[data-page="auth-login"] .auth-card .mini-note {
  color: rgba(214, 224, 234, 0.8);
}

body[data-page="auth-login"] .auth-form input {
  border-color: rgba(198, 214, 232, 0.18);
  background: rgba(5, 10, 16, 0.82);
  color: rgba(232, 239, 245, 0.96);
}

body[data-page="auth-login"] .auth-form input:focus {
  border-color: rgba(198, 230, 88, 0.56);
  box-shadow: 0 0 0 3px rgba(198, 230, 88, 0.12), 0 0 0 1px rgba(111, 152, 255, 0.2) inset;
}

body[data-page="auth-login"] .auth-login-help .button-03 {
  border-color: rgba(198, 214, 232, 0.2);
  background: rgba(232, 238, 244, 0.9);
}

body[data-page="auth-login"] .premium-footer {
  border-top-color: rgba(190, 208, 226, 0.14);
}

/* --- 2026-03: Backend app redesign (light mode, modern SaaS layout) --- */
body[data-page="admin-dashboard"],
body[data-page="client-dashboard"],
body[data-page="portal"] {
  --xd-app-bg: #eff4fb;
  --xd-app-bg-soft: #f6f9ff;
  --xd-app-surface: #ffffff;
  --xd-app-surface-soft: #f7faff;
  --xd-app-border: #d7e2ef;
  --xd-app-border-strong: #c1d2e5;
  --xd-app-text: #111b2b;
  --xd-app-muted: #5f7086;
  --xd-app-muted-soft: #7486a0;
  --xd-app-accent: #cffe25;
  --xd-app-accent-ink: #1a2402;
  --xd-app-info: #2f7cf6;
  --xd-app-success: #149a66;
  --xd-app-warning: #dd8c1f;
  --xd-app-danger: #d0455d;
  --xd-app-shadow-soft: 0 18px 40px rgba(17, 28, 45, 0.08);
  --xd-app-shadow-card: 0 10px 28px rgba(17, 28, 45, 0.08);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(120% 80% at 12% -12%, rgba(207, 254, 37, 0.28), transparent 52%),
    radial-gradient(110% 92% at 100% 0%, rgba(111, 152, 255, 0.2), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #eff5fc 52%, #eaf1fa 100%);
  color: var(--xd-app-text);
  font-family: "BDO Grotesk", Arial, sans-serif;
  letter-spacing: -0.01em;
}

body[data-page="admin-dashboard"]::before,
body[data-page="client-dashboard"]::before,
body[data-page="portal"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.14) 52%, rgba(255, 255, 255, 0.24) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(17, 28, 45, 0.02) 0,
      rgba(17, 28, 45, 0.02) 1px,
      transparent 1px,
      transparent 80px
    );
  opacity: 1;
  animation: none;
}

body[data-page="admin-dashboard"] .bg-grid,
body[data-page="client-dashboard"] .bg-grid,
body[data-page="portal"] .bg-grid,
body[data-page="admin-dashboard"] .bg-orb,
body[data-page="client-dashboard"] .bg-orb,
body[data-page="portal"] .bg-orb {
  display: none !important;
}

body[data-page="admin-dashboard"] h1,
body[data-page="admin-dashboard"] h2,
body[data-page="admin-dashboard"] h3,
body[data-page="client-dashboard"] h1,
body[data-page="client-dashboard"] h2,
body[data-page="client-dashboard"] h3,
body[data-page="portal"] h1,
body[data-page="portal"] h2,
body[data-page="portal"] h3 {
  color: var(--xd-app-text);
  letter-spacing: -0.04em;
}

body[data-page="admin-dashboard"] .eyebrow,
body[data-page="client-dashboard"] .eyebrow,
body[data-page="portal"] .eyebrow {
  color: #7d9a13;
  letter-spacing: -0.015em;
  font-weight: 700;
}

body[data-page="admin-dashboard"] .lead-sm,
body[data-page="admin-dashboard"] .mini-note,
body[data-page="client-dashboard"] .lead-sm,
body[data-page="client-dashboard"] .mini-note,
body[data-page="portal"] .lead-sm,
body[data-page="portal"] .mini-note {
  color: var(--xd-app-muted);
}

body[data-page="admin-dashboard"] .glass-card,
body[data-page="client-dashboard"] .glass-card,
body[data-page="portal"] .glass-card {
  border: 1px solid var(--xd-app-border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--xd-app-surface) 0%, var(--xd-app-surface-soft) 100%);
  box-shadow: var(--xd-app-shadow-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="admin-dashboard"] .portal-topbar,
body[data-page="client-dashboard"] .portal-topbar,
body[data-page="portal"] .portal-topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 42;
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0;
  padding: 0.74rem 0.92rem;
  border: 1px solid var(--xd-app-border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--xd-app-shadow-soft);
}

body[data-page="admin-dashboard"] .portal-topbar::before,
body[data-page="client-dashboard"] .portal-topbar::before,
body[data-page="portal"] .portal-topbar::before {
  display: none;
}

body[data-page="admin-dashboard"] .brand-text,
body[data-page="client-dashboard"] .brand-text,
body[data-page="portal"] .brand-text {
  color: var(--xd-app-text);
}

body[data-page="admin-dashboard"] .badge,
body[data-page="client-dashboard"] .badge,
body[data-page="portal"] .badge {
  border: 1px solid rgba(47, 124, 246, 0.28);
  background: rgba(47, 124, 246, 0.09);
  color: #2f5fa6;
}

body[data-page="admin-dashboard"] .btn,
body[data-page="client-dashboard"] .btn,
body[data-page="portal"] .btn {
  border-radius: 12px;
  border: 1px solid var(--xd-app-border);
  background: #fff;
  color: var(--xd-app-text);
  font-family: "BDO Grotesk", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

body[data-page="admin-dashboard"] .btn:hover,
body[data-page="client-dashboard"] .btn:hover,
body[data-page="portal"] .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 28, 45, 0.12);
}

body[data-page="admin-dashboard"] .btn-primary,
body[data-page="client-dashboard"] .btn-primary,
body[data-page="portal"] .btn-primary {
  border-color: #bdd92b;
  background: var(--xd-app-accent);
  color: var(--xd-app-accent-ink);
  box-shadow: 0 12px 24px rgba(177, 217, 39, 0.26);
}

body[data-page="admin-dashboard"] .btn-primary:hover,
body[data-page="client-dashboard"] .btn-primary:hover,
body[data-page="portal"] .btn-primary:hover {
  box-shadow: 0 14px 30px rgba(177, 217, 39, 0.3);
}

body[data-page="admin-dashboard"] .btn-ghost,
body[data-page="client-dashboard"] .btn-ghost,
body[data-page="portal"] .btn-ghost {
  border-color: var(--xd-app-border);
  background: #fff;
  color: var(--xd-app-muted);
}

body[data-page="admin-dashboard"] .btn-ghost:hover,
body[data-page="client-dashboard"] .btn-ghost:hover,
body[data-page="portal"] .btn-ghost:hover {
  border-color: var(--xd-app-border-strong);
  color: var(--xd-app-text);
}

body[data-page="admin-dashboard"] .btn:focus-visible,
body[data-page="client-dashboard"] .btn:focus-visible,
body[data-page="portal"] .btn:focus-visible,
body[data-page="admin-dashboard"] .stack-form input:focus,
body[data-page="admin-dashboard"] .stack-form select:focus,
body[data-page="admin-dashboard"] .stack-form textarea:focus,
body[data-page="client-dashboard"] .stack-form input:focus,
body[data-page="portal"] .field-control:focus,
body[data-page="portal"] .tab-btn:focus-visible {
  outline: none;
  border-color: rgba(47, 124, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.14);
}

body[data-page="admin-dashboard"] .dashboard-shell,
body[data-page="client-dashboard"] .dashboard-shell {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto 1.5rem;
  padding-top: 126px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.92rem;
}

body[data-page="admin-dashboard"] .dashboard-shell > *,
body[data-page="client-dashboard"] .dashboard-shell > * {
  grid-column: span 12;
}

body[data-page="admin-dashboard"] .span-12,
body[data-page="client-dashboard"] .span-12 {
  grid-column: span 12;
}

body[data-page="admin-dashboard"] .span-8,
body[data-page="client-dashboard"] .span-8 {
  grid-column: span 8;
}

body[data-page="admin-dashboard"] .span-7,
body[data-page="client-dashboard"] .span-7 {
  grid-column: span 7;
}

body[data-page="admin-dashboard"] .span-6,
body[data-page="client-dashboard"] .span-6 {
  grid-column: span 6;
}

body[data-page="admin-dashboard"] .span-5,
body[data-page="client-dashboard"] .span-5 {
  grid-column: span 5;
}

body[data-page="admin-dashboard"] .span-4,
body[data-page="client-dashboard"] .span-4 {
  grid-column: span 4;
}

body[data-page="admin-dashboard"] .card-hero,
body[data-page="client-dashboard"] .card-hero,
body[data-page="portal"] .card-hero {
  border-color: rgba(191, 214, 68, 0.52);
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(207, 254, 37, 0.2), transparent 56%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

body[data-page="admin-dashboard"] .dashboard-card,
body[data-page="client-dashboard"] .dashboard-card,
body[data-page="portal"] .tab-panel,
body[data-page="portal"] .portal-sidebar,
body[data-page="portal"] .account-head,
body[data-page="portal"] .kpi-card,
body[data-page="portal"] .client-item,
body[data-page="portal"] .timeline li,
body[data-page="portal"] .switch-item {
  border-color: var(--xd-app-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  content-visibility: auto;
  contain-intrinsic-size: 1px 340px;
}

body[data-page="admin-dashboard"] .dashboard-card h2,
body[data-page="client-dashboard"] .dashboard-card h2 {
  font-size: 1.02rem;
}

body[data-page="admin-dashboard"] .kpi-grid,
body[data-page="portal"] .kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
}

body[data-page="admin-dashboard"] .kpi-card,
body[data-page="portal"] .kpi-card {
  border: 1px solid var(--xd-app-border);
  border-radius: 14px;
  padding: 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-page="admin-dashboard"] .kpi-card h2,
body[data-page="portal"] .kpi-card h2 {
  color: var(--xd-app-muted-soft);
  font-size: 0.78rem;
  letter-spacing: 0;
}

body[data-page="admin-dashboard"] .kpi-value,
body[data-page="portal"] .kpi-value {
  margin-top: 0.3rem;
  color: #21375b;
  font-size: 1.12rem;
}

body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 1),
body[data-page="portal"] .kpi-card:nth-child(4n + 1) {
  border-color: rgba(47, 124, 246, 0.35);
}

body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 2),
body[data-page="portal"] .kpi-card:nth-child(4n + 2) {
  border-color: rgba(191, 214, 68, 0.52);
}

body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 3),
body[data-page="portal"] .kpi-card:nth-child(4n + 3) {
  border-color: rgba(221, 140, 31, 0.42);
}

body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 4),
body[data-page="portal"] .kpi-card:nth-child(4n + 4) {
  border-color: rgba(208, 69, 93, 0.38);
}

body[data-page="admin-dashboard"] .stack-form input,
body[data-page="admin-dashboard"] .stack-form select,
body[data-page="admin-dashboard"] .stack-form textarea,
body[data-page="client-dashboard"] .stack-form input,
body[data-page="portal"] .field-control,
body[data-page="portal"] .tab-btn {
  border: 1px solid var(--xd-app-border);
  background: #fff;
  color: var(--xd-app-text);
}

body[data-page="admin-dashboard"] .stack-form input::placeholder,
body[data-page="admin-dashboard"] .stack-form textarea::placeholder,
body[data-page="client-dashboard"] .stack-form input::placeholder {
  color: #8ea0b8;
}

body[data-page="admin-dashboard"] .list-wrap,
body[data-page="client-dashboard"] .list-wrap {
  gap: 0.65rem;
}

body[data-page="admin-dashboard"] .list-item,
body[data-page="client-dashboard"] .list-item,
body[data-page="portal"] .list-item {
  border: 1px solid var(--xd-app-border);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 6px 18px rgba(17, 28, 45, 0.06);
}

body[data-page="admin-dashboard"] .list-item p,
body[data-page="client-dashboard"] .list-item p,
body[data-page="portal"] .two-col p,
body[data-page="portal"] .timeline p {
  color: #2b3b51;
}

body[data-page="admin-dashboard"] .list-item strong,
body[data-page="client-dashboard"] .list-item strong,
body[data-page="portal"] .two-col strong {
  color: var(--xd-app-muted-soft);
}

body[data-page="admin-dashboard"] .code-block,
body[data-page="client-dashboard"] .code-block,
body[data-page="portal"] .code-block {
  border: 1px solid rgba(32, 49, 79, 0.44);
  border-radius: 12px;
  background: linear-gradient(180deg, #11182a 0%, #0c1423 100%);
  color: #d8f86f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-page="admin-dashboard"] .mfa-qr {
  border-color: var(--xd-app-border);
  box-shadow: 0 12px 24px rgba(17, 28, 45, 0.12);
}

body[data-page="admin-dashboard"] #admin-status,
body[data-page="client-dashboard"] #client-status {
  min-height: 20px;
  padding: 0.25rem 0.1rem 0.1rem;
  color: #42536b;
}

body[data-page="portal"] .portal-layout {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: 126px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: minmax(270px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
}

body[data-page="portal"] .portal-sidebar {
  padding: 1rem;
  position: sticky;
  top: 106px;
}

body[data-page="portal"] .field-label {
  color: var(--xd-app-muted);
}

body[data-page="portal"] .client-item {
  border: 1px solid var(--xd-app-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body[data-page="portal"] .client-item small {
  color: #7c8da4;
}

body[data-page="portal"] .client-item.active {
  border-color: rgba(47, 124, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 124, 246, 0.18), 0 12px 24px rgba(47, 124, 246, 0.14);
}

body[data-page="portal"] .status-pill {
  border-color: var(--xd-app-border);
  color: #3f526d;
  background: #fff;
}

body[data-page="portal"] .status-pill.active {
  border-color: rgba(20, 154, 102, 0.44);
  color: #0e7d53;
  background: rgba(20, 154, 102, 0.11);
}

body[data-page="portal"] .status-pill.inactive {
  border-color: rgba(208, 69, 93, 0.4);
  color: #b33248;
  background: rgba(208, 69, 93, 0.1);
}

body[data-page="portal"] .tab-nav {
  gap: 0.45rem;
}

body[data-page="portal"] .tab-btn {
  border-radius: 10px;
  padding: 0.42rem 0.74rem;
  color: #4b5f7a;
}

body[data-page="portal"] .tab-btn.active {
  border-color: rgba(191, 214, 68, 0.6);
  background: rgba(207, 254, 37, 0.28);
  color: #344708;
}

body[data-page="portal"] .timeline .time-chip {
  border-color: var(--xd-app-border);
  color: #667992;
  background: #fff;
}

body[data-page="portal"] .timeline .type-chip {
  border-color: rgba(47, 124, 246, 0.35);
  background: rgba(47, 124, 246, 0.13);
  color: #2157a6;
}

body[data-page="portal"] .switch-item span {
  color: #2a3b51;
}

body[data-page="portal"] input[type="checkbox"] {
  accent-color: #7fa20f;
}

body[data-page="admin-dashboard"] .reveal,
body[data-page="client-dashboard"] .reveal,
body[data-page="portal"] .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  body[data-page="admin-dashboard"] .span-8,
  body[data-page="admin-dashboard"] .span-7,
  body[data-page="admin-dashboard"] .span-6,
  body[data-page="admin-dashboard"] .span-5,
  body[data-page="admin-dashboard"] .span-4,
  body[data-page="client-dashboard"] .span-8,
  body[data-page="client-dashboard"] .span-7,
  body[data-page="client-dashboard"] .span-6,
  body[data-page="client-dashboard"] .span-5,
  body[data-page="client-dashboard"] .span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 980px) {
  body[data-page="portal"] .portal-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="portal"] .portal-sidebar {
    position: static;
  }

}

@media (max-width: 820px) {
  body[data-page="admin-dashboard"] .portal-topbar,
  body[data-page="client-dashboard"] .portal-topbar,
  body[data-page="portal"] .portal-topbar {
    width: calc(100% - 1.25rem);
  }

  body[data-page="admin-dashboard"] .portal-topbar,
  body[data-page="client-dashboard"] .portal-topbar,
  body[data-page="portal"] .portal-topbar {
    top: 8px;
    padding: 0.62rem 0.76rem;
  }

  body[data-page="admin-dashboard"] .dashboard-shell,
  body[data-page="client-dashboard"] .dashboard-shell,
  body[data-page="portal"] .portal-layout {
    width: calc(100% - 1.25rem);
    padding-top: 108px;
  }

}

/* --- 2026-03: Admin console overhaul (enterprise layout system) --- */
body[data-page="admin-dashboard"] {
  --xd-admin-bg: #f2f5fb;
  --xd-admin-surface: #ffffff;
  --xd-admin-surface-soft: #f8fbff;
  --xd-admin-border: #e3e9f2;
  --xd-admin-border-strong: #d3ddeb;
  --xd-admin-text: #1a2336;
  --xd-admin-muted: #67778f;
  --xd-admin-primary: #0d7f8a;
  --xd-admin-primary-soft: rgba(13, 127, 138, 0.12);
  --xd-admin-success: #1f9966;
  --xd-admin-warning: #cc841f;
  --xd-admin-danger: #d0455d;
  --xd-admin-shadow: 0 10px 24px rgba(24, 36, 59, 0.08);
  background:
    radial-gradient(120% 110% at 100% -10%, rgba(111, 152, 255, 0.22), transparent 48%),
    radial-gradient(120% 90% at 0% 100%, rgba(200, 240, 42, 0.14), transparent 52%),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fc 55%, #ecf2fa 100%);
}

body[data-page="admin-dashboard"]::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0.2) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(17, 28, 45, 0.018) 0,
      rgba(17, 28, 45, 0.018) 1px,
      transparent 1px,
      transparent 86px
    );
}

body[data-page="admin-dashboard"] .admin-console-shell {
  width: min(1520px, calc(100% - 1.6rem));
  margin: 0 auto;
  padding: 0.95rem 0 1.4rem;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

body[data-page="admin-dashboard"] .admin-workspace {
  min-width: 0;
}

body[data-page="admin-dashboard"] .glass-card {
  border: 1px solid var(--xd-admin-border);
  border-radius: 14px;
  background: var(--xd-admin-surface);
  box-shadow: var(--xd-admin-shadow);
}

body[data-page="admin-dashboard"] .admin-side {
  position: sticky;
  top: 0.9rem;
  max-height: calc(100vh - 1.8rem);
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

body[data-page="admin-dashboard"] .admin-side-brand {
  display: inline-flex;
  width: fit-content;
}

body[data-page="admin-dashboard"] .admin-side-nav {
  display: grid;
  gap: 0.34rem;
}

body[data-page="admin-dashboard"] .admin-nav-title {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7c889d;
}

body[data-page="admin-dashboard"] .admin-nav-link {
  display: block;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.52rem 0.64rem;
  color: var(--xd-admin-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body[data-page="admin-dashboard"] .admin-nav-link:hover,
body[data-page="admin-dashboard"] .admin-nav-link:focus-visible {
  border-color: rgba(13, 127, 138, 0.18);
  background: var(--xd-admin-primary-soft);
  color: var(--xd-admin-primary);
}

body[data-page="admin-dashboard"] .admin-nav-link.active {
  border-color: rgba(13, 127, 138, 0.24);
  background: var(--xd-admin-primary-soft);
  color: var(--xd-admin-primary);
  font-weight: 600;
}

body[data-page="admin-dashboard"] .admin-side-footer {
  display: grid;
  gap: 0.45rem;
}

body[data-page="admin-dashboard"] .admin-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(31, 153, 102, 0.28);
  background: rgba(31, 153, 102, 0.11);
  color: #147651;
  padding: 0.2rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 600;
}

body[data-page="admin-dashboard"] .admin-pill-soft {
  border-color: rgba(13, 127, 138, 0.22);
  background: rgba(13, 127, 138, 0.08);
  color: #0f626b;
}

body[data-page="admin-dashboard"] .portal-topbar.admin-topbar {
  position: sticky;
  top: 0.9rem;
  left: auto;
  transform: none;
  width: 100%;
  margin: 0 0 0.95rem;
  padding: 0.76rem 0.95rem;
  z-index: 25;
  border-color: var(--xd-admin-border-strong);
  box-shadow: 0 6px 18px rgba(24, 36, 59, 0.08);
}

body[data-page="admin-dashboard"] .portal-topbar.admin-topbar::before {
  display: none;
}

body[data-page="admin-dashboard"] .admin-topbar-start h2 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--xd-admin-text);
  letter-spacing: -0.015em;
}

body[data-page="admin-dashboard"] .admin-kicker {
  margin: 0 0 0.18rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #7e8ba1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-page="admin-dashboard"] .admin-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
}

body[data-page="admin-dashboard"] .dashboard-shell.admin-shell {
  width: 100%;
  margin: 0;
  padding-top: 0;
  gap: 1rem;
}

body[data-page="admin-dashboard"] .dashboard-card {
  border-radius: 14px;
  border-color: var(--xd-admin-border);
  background: var(--xd-admin-surface);
  box-shadow: var(--xd-admin-shadow);
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

body[data-page="admin-dashboard"] .admin-page-head {
  border-color: var(--xd-admin-border-strong);
  background:
    radial-gradient(140% 90% at 6% 0%, rgba(200, 240, 42, 0.16), transparent 62%),
    radial-gradient(120% 100% at 100% 0%, rgba(111, 152, 255, 0.13), transparent 56%),
    var(--xd-admin-surface);
}

body[data-page="admin-dashboard"] .admin-page-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}

body[data-page="admin-dashboard"] .admin-page-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.46rem;
}

body[data-page="admin-dashboard"] .admin-tab-btn {
  border: 1px solid var(--xd-admin-border);
  border-radius: 999px;
  background: var(--xd-admin-surface);
  color: #56657d;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.28rem 0.62rem;
}

body[data-page="admin-dashboard"] .admin-tab-btn.active {
  border-color: rgba(13, 127, 138, 0.25);
  background: var(--xd-admin-primary-soft);
  color: var(--xd-admin-primary);
}

body[data-page="admin-dashboard"] .admin-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

body[data-page="admin-dashboard"] .kpi-card {
  border-radius: 12px;
  border: 1px solid var(--xd-admin-border);
  background: var(--xd-admin-surface-soft);
  box-shadow: none;
  padding: 0.78rem;
}

body[data-page="admin-dashboard"] .kpi-card h2 {
  color: #71829a;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body[data-page="admin-dashboard"] .kpi-value {
  margin-top: 0.32rem;
  font-size: 1.15rem;
  color: var(--xd-admin-text);
}

body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 1) {
  border-color: rgba(13, 127, 138, 0.24);
}

body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 2) {
  border-color: rgba(111, 152, 255, 0.28);
}

body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 3) {
  border-color: rgba(200, 240, 42, 0.44);
}

body[data-page="admin-dashboard"] .kpi-card:nth-child(4n + 4) {
  border-color: rgba(208, 69, 93, 0.28);
}

body[data-page="admin-dashboard"] .admin-section-band {
  padding: 0.95rem 1rem;
  border-style: dashed;
  border-color: var(--xd-admin-border-strong);
  background: rgba(255, 255, 255, 0.78);
}

body[data-page="admin-dashboard"] .admin-section-band h2 {
  margin: 0.2rem 0 0.25rem;
}

body[data-page="admin-dashboard"] .admin-module-card {
  padding: 1rem;
}

body[data-page="admin-dashboard"] .admin-module-head {
  margin-bottom: 0.82rem;
}

body[data-page="admin-dashboard"] .admin-module-head h2 {
  margin-bottom: 0.26rem;
  font-size: 1.02rem;
}

body[data-page="admin-dashboard"] .stack-form {
  display: grid;
  gap: 0.62rem;
}

body[data-page="admin-dashboard"] .stack-form input,
body[data-page="admin-dashboard"] .stack-form select,
body[data-page="admin-dashboard"] .stack-form textarea {
  min-height: 42px;
  border: 1px solid var(--xd-admin-border);
  border-radius: 10px;
  background: #fff;
  color: var(--xd-admin-text);
  padding: 0.58rem 0.72rem;
}

body[data-page="admin-dashboard"] .stack-form textarea {
  min-height: 110px;
}

body[data-page="admin-dashboard"] .stack-form input::placeholder,
body[data-page="admin-dashboard"] .stack-form textarea::placeholder {
  color: #91a1b8;
}

body[data-page="admin-dashboard"] .stack-form input:focus,
body[data-page="admin-dashboard"] .stack-form select:focus,
body[data-page="admin-dashboard"] .stack-form textarea:focus {
  border-color: rgba(13, 127, 138, 0.45);
  box-shadow: 0 0 0 3px rgba(13, 127, 138, 0.12);
  outline: none;
}

body[data-page="admin-dashboard"] .btn {
  border-radius: 10px;
  border: 1px solid var(--xd-admin-border);
  background: #fff;
  color: var(--xd-admin-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

body[data-page="admin-dashboard"] .btn-primary {
  border-color: var(--xd-admin-primary);
  background: var(--xd-admin-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 127, 138, 0.24);
}

body[data-page="admin-dashboard"] .btn-primary:hover {
  border-color: #0a6f78;
  background: #0a6f78;
  box-shadow: 0 10px 20px rgba(13, 127, 138, 0.28);
}

body[data-page="admin-dashboard"] .btn-ghost {
  border-color: var(--xd-admin-border);
  background: #fff;
  color: #55657c;
}

body[data-page="admin-dashboard"] .btn-ghost:hover {
  border-color: var(--xd-admin-border-strong);
  color: var(--xd-admin-text);
}

body[data-page="admin-dashboard"] .badge {
  border: 1px solid rgba(13, 127, 138, 0.26);
  background: var(--xd-admin-primary-soft);
  color: #0d5b64;
}

body[data-page="admin-dashboard"] .list-wrap {
  display: grid;
  gap: 0.62rem;
}

body[data-page="admin-dashboard"] .list-item {
  border: 1px solid var(--xd-admin-border);
  border-radius: 12px;
  background: var(--xd-admin-surface-soft);
  box-shadow: none;
  padding: 0.8rem 0.86rem;
}

body[data-page="admin-dashboard"] .list-item h3 {
  margin: 0 0 0.32rem;
  color: var(--xd-admin-text);
  font-size: 0.93rem;
}

body[data-page="admin-dashboard"] .list-item p,
body[data-page="admin-dashboard"] .list-item li {
  color: #4c5e77;
  font-size: 0.82rem;
}

body[data-page="admin-dashboard"] .list-item ul {
  margin: 0.38rem 0 0 1rem;
  padding: 0;
}

body[data-page="admin-dashboard"] .list-item button {
  margin: 0.32rem 0.32rem 0 0;
}

body[data-page="admin-dashboard"] .code-block {
  border: 1px solid #20314f;
  border-radius: 12px;
  background: linear-gradient(180deg, #11182a 0%, #0c1423 100%);
  color: #dbf86f;
  padding: 0.74rem;
  max-height: 240px;
  overflow: auto;
}

body[data-page="admin-dashboard"] .mfa-qr {
  border-color: var(--xd-admin-border);
}

body[data-page="admin-dashboard"] #admin-status {
  min-height: 20px;
  margin: 0;
  border: 1px dashed var(--xd-admin-border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #42536c;
  padding: 0.72rem 0.86rem;
}

@media (max-width: 1320px) {
  body[data-page="admin-dashboard"] .admin-console-shell {
    grid-template-columns: 238px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  body[data-page="admin-dashboard"] .admin-console-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="admin-dashboard"] .admin-side {
    position: relative;
    top: 0;
    max-height: none;
  }

  body[data-page="admin-dashboard"] .admin-side-nav {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  body[data-page="admin-dashboard"] .portal-topbar.admin-topbar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 900px) {
  body[data-page="admin-dashboard"] .admin-page-heading {
    flex-direction: column;
  }

  body[data-page="admin-dashboard"] .admin-page-tabs {
    justify-content: flex-start;
  }

  body[data-page="admin-dashboard"] .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body[data-page="admin-dashboard"] .admin-console-shell {
    width: calc(100% - 1rem);
    padding-top: 0.55rem;
  }

  body[data-page="admin-dashboard"] .admin-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  body[data-page="admin-dashboard"] .admin-topbar {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  body[data-page="admin-dashboard"] .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 2026-03: Admin full-bleed workspace + enterprise line tabs --- */
body[data-page="admin-dashboard"] .admin-console-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  min-height: 100vh;
  grid-template-columns: 258px minmax(0, 1fr);
}

body[data-page="admin-dashboard"] .admin-side {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid #dde4ee;
  box-shadow: none;
  padding: 0.72rem 0.55rem 0.95rem;
  gap: 0.72rem;
  background: #f6f8fc;
}

body[data-page="admin-dashboard"] .admin-side-brand {
  margin: 0.1rem 0.2rem 0.45rem;
}

body[data-page="admin-dashboard"] .admin-side-brand .brand-text {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

body[data-page="admin-dashboard"] .admin-side-search {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  padding: 0.36rem 0.5rem;
}

body[data-page="admin-dashboard"] .admin-side-search svg {
  width: 14px;
  height: 14px;
  color: #7d8ba2;
  flex: 0 0 14px;
}

body[data-page="admin-dashboard"] .admin-side-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #2b3b52;
  width: 100%;
  min-width: 0;
  font-size: 0.82rem;
}

body[data-page="admin-dashboard"] .admin-side-search input::placeholder {
  color: #9aa7bb;
}

body[data-page="admin-dashboard"] .admin-side-nav {
  gap: 0.22rem;
}

body[data-page="admin-dashboard"] .admin-nav-title {
  margin: 0.62rem 0.34rem 0.32rem;
  font-size: 0.67rem;
  color: #9aa6ba;
  letter-spacing: 0.06em;
}

body[data-page="admin-dashboard"] .admin-nav-link {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  border-radius: 8px;
  padding: 0.34rem 0.5rem;
  color: #42536c;
  font-size: 0.81rem;
  line-height: 1;
}

body[data-page="admin-dashboard"] .admin-nav-link span {
  min-width: 0;
}

body[data-page="admin-dashboard"] .admin-nav-link:hover,
body[data-page="admin-dashboard"] .admin-nav-link:focus-visible {
  border-color: rgba(15, 145, 154, 0.24);
  background: #ebf8f7;
  color: #0e7781;
}

body[data-page="admin-dashboard"] .admin-nav-link.active {
  border-color: rgba(15, 145, 154, 0.3);
  background: #e7f7f7;
  color: #0c6f79;
}

body[data-page="admin-dashboard"] .admin-nav-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="admin-dashboard"] .admin-nav-badge {
  border-radius: 999px;
  border: 1px solid rgba(208, 69, 93, 0.24);
  background: rgba(208, 69, 93, 0.13);
  color: #be3e54;
  padding: 0.08rem 0.34rem;
  font-size: 0.61rem;
  font-weight: 700;
}

body[data-page="admin-dashboard"] .admin-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #17a66f;
}

body[data-page="admin-dashboard"] .admin-nav-dot-danger {
  background: #d0455d;
}

body[data-page="admin-dashboard"] .admin-side-footer {
  margin-top: 0.16rem;
  padding: 0 0.3rem;
}

body[data-page="admin-dashboard"] .admin-workspace {
  padding: 0 1rem 1rem;
}

body[data-page="admin-dashboard"] .portal-topbar.admin-topbar {
  position: sticky;
  top: 0;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  margin: 0 -1rem 1rem;
  padding: 0.55rem 1rem;
  background: rgba(247, 250, 255, 0.94);
  box-shadow: 0 1px 0 #dce4ef;
  backdrop-filter: saturate(1.05) blur(4px);
}

body[data-page="admin-dashboard"] .admin-topbar-search {
  display: flex;
  align-items: center;
  min-width: 290px;
  max-width: 430px;
  flex: 1;
  gap: 0.42rem;
  border: 1px solid #dae3ee;
  border-radius: 7px;
  background: #fff;
  padding: 0.3rem 0.5rem;
}

body[data-page="admin-dashboard"] .admin-topbar-search svg {
  width: 15px;
  height: 15px;
  color: #7f8ea5;
  flex: 0 0 15px;
}

body[data-page="admin-dashboard"] .admin-topbar-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #2b3c52;
  min-width: 0;
  width: 100%;
  font-size: 0.82rem;
}

body[data-page="admin-dashboard"] .admin-topbar-search input::placeholder {
  color: #98a8bd;
}

body[data-page="admin-dashboard"] .admin-topbar-search kbd {
  border: 1px solid #d9e2ee;
  border-radius: 6px;
  background: #f9fbff;
  color: #8d9bb0;
  padding: 0.04rem 0.28rem;
  font-size: 0.67rem;
  font-family: "BDO Grotesk", Arial, sans-serif;
}

body[data-page="admin-dashboard"] .admin-topbar-actions {
  gap: 0.42rem;
}

body[data-page="admin-dashboard"] .icon-action-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #fff;
  color: #60718a;
}

body[data-page="admin-dashboard"] .icon-action-btn svg {
  width: 15px;
  height: 15px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="admin-dashboard"] .dashboard-shell.admin-shell {
  width: 100%;
  padding-top: 0;
  margin: 0;
}

body[data-page="admin-dashboard"] .admin-page-head {
  background: #fff;
}

body[data-page="admin-dashboard"] .admin-page-heading {
  margin-bottom: 0;
}

body[data-page="admin-dashboard"] .admin-page-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin: 0.4rem 0 0.75rem;
  gap: 1.06rem;
  border-bottom: 1px solid #dbe4ef;
}

body[data-page="admin-dashboard"] .admin-tab-btn {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #6d7d95;
  padding: 0.52rem 0.08rem 0.56rem;
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1;
}

body[data-page="admin-dashboard"] .admin-tab-btn:hover,
body[data-page="admin-dashboard"] .admin-tab-btn:focus-visible {
  color: #246dbe;
  border-bottom-color: rgba(45, 118, 206, 0.35);
  outline: none;
}

body[data-page="admin-dashboard"] .admin-tab-btn.active {
  border-color: #28a4ac;
  background: transparent;
  color: #0f8b93;
}

body[data-page="admin-dashboard"] .admin-tab-panel {
  display: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

body[data-page="admin-dashboard"] .admin-tab-panel.admin-tab-panel-active {
  display: grid;
}

body[data-page="admin-dashboard"] .admin-section-band {
  border-style: solid;
  border-radius: 12px;
  border-color: #dce5f1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body[data-page="admin-dashboard"] #admin-status {
  border: 1px dashed #d2dceb;
  border-radius: 10px;
  background: #fff;
  margin-top: 0.06rem;
  padding: 0.65rem 0.8rem;
}

@media (max-width: 1240px) {
  body[data-page="admin-dashboard"] .admin-console-shell {
    grid-template-columns: 226px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  body[data-page="admin-dashboard"] .admin-console-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="admin-dashboard"] .admin-side {
    position: relative;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #dde4ee;
  }

  body[data-page="admin-dashboard"] .admin-side-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  body[data-page="admin-dashboard"] .admin-nav-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body[data-page="admin-dashboard"] .admin-workspace {
    padding: 0 0.6rem 0.8rem;
  }

  body[data-page="admin-dashboard"] .portal-topbar.admin-topbar {
    margin: 0 -0.6rem 0.76rem;
    padding: 0.55rem 0.6rem;
  }

  body[data-page="admin-dashboard"] .admin-topbar {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  body[data-page="admin-dashboard"] .admin-topbar-search {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  body[data-page="admin-dashboard"] .admin-page-tabs {
    gap: 0.86rem;
  }
}

@media (max-width: 680px) {
  body[data-page="admin-dashboard"] .admin-side-nav {
    grid-template-columns: 1fr;
  }

  body[data-page="admin-dashboard"] .admin-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Internal workspace refresh: full-width client console */
body[data-page="client-dashboard"] {
  --client-bg: #f2f8f6;
  --client-bg-soft: #eaf3ef;
  --client-surface: #ffffff;
  --client-line: #d6e4df;
  --client-line-strong: #c2d8d0;
  --client-text: #162420;
  --client-muted: #60756f;
  --client-brand: #0d8f74;
  --client-brand-strong: #0a7a63;
  --client-brand-soft: #e2f4ef;
  --client-brand-ink: #0f5f51;
  --client-danger: #c94a63;
}

body[data-page="client-dashboard"]::before {
  background:
    radial-gradient(1080px 540px at 0% -8%, rgba(13, 143, 116, 0.08), transparent 66%),
    radial-gradient(860px 520px at 100% 0%, rgba(23, 92, 149, 0.07), transparent 70%),
    linear-gradient(180deg, #f8fcfb 0%, #f2f8f6 46%, #edf5f2 100%);
  opacity: 1;
}

body[data-page="client-dashboard"].portal-body {
  padding: 0;
  color: var(--client-text);
}

body[data-page="client-dashboard"] main {
  width: 100%;
  max-width: none;
  margin: 0;
}

body[data-page="client-dashboard"] .bg-grid,
body[data-page="client-dashboard"] .bg-orb {
  display: none;
}

body[data-page="client-dashboard"] .glass-card {
  border: 1px solid var(--client-line);
  background: var(--client-surface);
  box-shadow: 0 12px 30px rgba(14, 53, 46, 0.08);
  backdrop-filter: none;
}

body[data-page="client-dashboard"] h1,
body[data-page="client-dashboard"] h2,
body[data-page="client-dashboard"] h3 {
  color: #12221e;
}

body[data-page="client-dashboard"] .lead-sm,
body[data-page="client-dashboard"] .mini-note {
  color: var(--client-muted);
}

body[data-page="client-dashboard"] .client-console-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

body[data-page="client-dashboard"] .client-side {
  position: sticky;
  top: 0;
  height: 100vh;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid var(--client-line);
  box-shadow: none;
  padding: 0.9rem 0.72rem 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  overflow-y: auto;
}

body[data-page="client-dashboard"] .client-side-brand {
  padding: 0.28rem 0.32rem;
}

body[data-page="client-dashboard"] .client-side-search {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid var(--client-line);
  border-radius: 8px;
  background: #f8fcfb;
  padding: 0.32rem 0.5rem;
}

body[data-page="client-dashboard"] .client-side-search svg {
  width: 14px;
  height: 14px;
  color: #7d938d;
  flex: 0 0 14px;
}

body[data-page="client-dashboard"] .client-side-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #2a3b36;
  width: 100%;
  min-width: 0;
  font-size: 0.81rem;
}

body[data-page="client-dashboard"] .client-side-search input::placeholder {
  color: #93a39e;
}

body[data-page="client-dashboard"] .client-side-nav {
  display: grid;
  gap: 0.2rem;
}

body[data-page="client-dashboard"] .client-nav-title {
  margin: 0.64rem 0.34rem 0.34rem;
  font-size: 0.66rem;
  color: #90a39d;
  letter-spacing: 0.06em;
}

body[data-page="client-dashboard"] .client-nav-link {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 0.46rem;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.34rem 0.5rem;
  color: #425b54;
  font-size: 0.81rem;
  line-height: 1;
}

body[data-page="client-dashboard"] .client-nav-link span {
  min-width: 0;
}

body[data-page="client-dashboard"] .client-nav-link:hover,
body[data-page="client-dashboard"] .client-nav-link:focus-visible {
  border-color: rgba(13, 143, 116, 0.24);
  background: #ecf8f4;
  color: var(--client-brand-ink);
  outline: none;
}

body[data-page="client-dashboard"] .client-nav-link.active {
  border-color: rgba(13, 143, 116, 0.3);
  background: var(--client-brand-soft);
  color: var(--client-brand-ink);
}

body[data-page="client-dashboard"] .client-nav-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="client-dashboard"] .client-side-footer {
  margin-top: auto;
  display: grid;
  gap: 0.4rem;
}

body[data-page="client-dashboard"] .client-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 143, 116, 0.28);
  border-radius: 999px;
  background: #ecf8f4;
  color: var(--client-brand-ink);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.24rem 0.56rem;
  width: fit-content;
}

body[data-page="client-dashboard"] .client-pill-soft {
  border-color: var(--client-line-strong);
  background: #f5faf8;
  color: #5f716b;
}

body[data-page="client-dashboard"] .client-workspace {
  padding: 0 1rem 1rem;
}

body[data-page="client-dashboard"] .portal-topbar.client-topbar {
  position: sticky;
  top: 0;
  margin: 0 -1rem 0.95rem;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: 0 1px 0 var(--client-line);
  background: rgba(246, 251, 249, 0.95);
  backdrop-filter: saturate(1.08) blur(4px);
  padding: 0.56rem 1rem;
}

body[data-page="client-dashboard"] .client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

body[data-page="client-dashboard"] .client-topbar-search {
  display: flex;
  align-items: center;
  min-width: 320px;
  max-width: 450px;
  flex: 1;
  gap: 0.42rem;
  border: 1px solid var(--client-line);
  border-radius: 8px;
  background: #fff;
  padding: 0.31rem 0.5rem;
}

body[data-page="client-dashboard"] .client-topbar-search svg {
  width: 15px;
  height: 15px;
  color: #7f938d;
  flex: 0 0 15px;
}

body[data-page="client-dashboard"] .client-topbar-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #293d37;
  min-width: 0;
  width: 100%;
  font-size: 0.82rem;
}

body[data-page="client-dashboard"] .client-topbar-search input::placeholder {
  color: #92a39e;
}

body[data-page="client-dashboard"] .client-topbar-search kbd {
  border: 1px solid var(--client-line);
  border-radius: 6px;
  background: #f8fcfb;
  color: #8ca09a;
  padding: 0.04rem 0.28rem;
  font-size: 0.67rem;
  font-family: "BDO Grotesk", Arial, sans-serif;
}

body[data-page="client-dashboard"] .client-topbar-actions {
  gap: 0.48rem;
}

body[data-page="client-dashboard"] .dashboard-shell.client-shell {
  width: 100%;
  margin: 0;
  padding-top: 0;
}

body[data-page="client-dashboard"] .client-page-head {
  background: #fff;
}

body[data-page="client-dashboard"] .client-page-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin: 0.44rem 0 0.8rem;
  gap: 1.02rem;
  border-bottom: 1px solid var(--client-line);
}

body[data-page="client-dashboard"] .client-tab-btn {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #697f78;
  padding: 0.52rem 0.08rem 0.56rem;
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1;
}

body[data-page="client-dashboard"] .client-tab-btn:hover,
body[data-page="client-dashboard"] .client-tab-btn:focus-visible {
  color: var(--client-brand-ink);
  border-bottom-color: rgba(13, 143, 116, 0.35);
  outline: none;
}

body[data-page="client-dashboard"] .client-tab-btn.active {
  color: var(--client-brand);
  border-bottom-color: var(--client-brand);
}

body[data-page="client-dashboard"] .client-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.84rem;
}

body[data-page="client-dashboard"] .client-kpi-grid .kpi-card {
  border: 1px solid var(--client-line);
  border-left: 3px solid var(--client-brand);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  box-shadow: none;
  padding: 0.86rem 0.92rem;
}

body[data-page="client-dashboard"] .client-kpi-grid .kpi-card h2 {
  color: #728880;
  font-size: 0.71rem;
  letter-spacing: 0.07em;
}

body[data-page="client-dashboard"] .client-kpi-grid .kpi-value {
  color: #17332d;
  font-size: clamp(1.16rem, 1vw + 0.84rem, 1.54rem);
}

body[data-page="client-dashboard"] .client-tab-panel {
  display: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

body[data-page="client-dashboard"] .client-tab-panel.client-tab-panel-active {
  display: grid;
  animation: clientPanelIn 0.26s ease;
}

body[data-page="client-dashboard"] .client-tab-panel[hidden] {
  display: none !important;
}

body[data-page="client-dashboard"] .dashboard-card {
  border-radius: 12px;
  border-color: var(--client-line);
  background: #fff;
}

body[data-page="client-dashboard"] .list-wrap {
  display: grid;
  gap: 0.72rem;
}

body[data-page="client-dashboard"] .list-item {
  border: 1px solid var(--client-line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
  box-shadow: none;
  padding: 0.8rem 0.86rem;
}

body[data-page="client-dashboard"] .list-item h3 {
  font-size: 0.86rem;
  color: #183731;
}

body[data-page="client-dashboard"] .list-item p,
body[data-page="client-dashboard"] .list-item li {
  color: #4c615b;
  font-size: 0.79rem;
}

body[data-page="client-dashboard"] #client-status {
  border: 1px dashed var(--client-line-strong);
  border-radius: 10px;
  background: #fbfefd;
  padding: 0.66rem 0.82rem;
}

body[data-page="client-dashboard"] .btn {
  border-radius: 8px;
}

body[data-page="client-dashboard"] .btn-primary {
  background: linear-gradient(140deg, #0f9a7d 0%, #0d866d 100%);
  border-color: #0d866d;
  color: #f4fffb;
  box-shadow: 0 10px 22px rgba(13, 134, 109, 0.18);
}

body[data-page="client-dashboard"] .btn-primary:hover {
  background: linear-gradient(140deg, #108f76 0%, #0a705b 100%);
  border-color: #0a705b;
}

body[data-page="client-dashboard"] .btn-ghost {
  background: #f8fcfb;
  border-color: var(--client-line);
  color: #3e5650;
}

body[data-page="client-dashboard"] .btn-ghost:hover {
  background: var(--client-brand-soft);
  border-color: rgba(13, 143, 116, 0.32);
  color: var(--client-brand-ink);
}

body[data-page="client-dashboard"] .dashboard-shell.client-shell > * {
  animation: clientRise 0.4s ease both;
}

body[data-page="client-dashboard"] .dashboard-shell.client-shell > *:nth-child(2) {
  animation-delay: 0.04s;
}

body[data-page="client-dashboard"] .dashboard-shell.client-shell > *:nth-child(3) {
  animation-delay: 0.08s;
}

body[data-page="client-dashboard"] .dashboard-shell.client-shell > *:nth-child(4) {
  animation-delay: 0.12s;
}

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

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

@media (max-width: 1240px) {
  body[data-page="client-dashboard"] .client-console-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  body[data-page="client-dashboard"] .client-console-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="client-dashboard"] .client-side {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--client-line);
  }

  body[data-page="client-dashboard"] .client-side-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  body[data-page="client-dashboard"] .client-nav-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body[data-page="client-dashboard"] .client-workspace {
    padding: 0 0.64rem 0.84rem;
  }

  body[data-page="client-dashboard"] .portal-topbar.client-topbar {
    margin: 0 -0.64rem 0.76rem;
    padding: 0.54rem 0.64rem;
  }

  body[data-page="client-dashboard"] .client-topbar {
    flex-wrap: wrap;
    gap: 0.62rem;
  }

  body[data-page="client-dashboard"] .client-topbar-search {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  body[data-page="client-dashboard"] .client-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-page="client-dashboard"] .client-side-nav {
    grid-template-columns: 1fr;
  }

  body[data-page="client-dashboard"] .client-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  body[data-page="client-dashboard"] .client-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="client-dashboard"] .dashboard-shell.client-shell > *,
  body[data-page="client-dashboard"] .client-tab-panel.client-tab-panel-active {
    animation: none !important;
  }
}

/* Internal brand harmonization */
body[data-page="admin-dashboard"] {
  --admin-brand: #0d8f74;
  --admin-brand-ink: #0f6051;
  --admin-brand-soft: #e3f5f0;
}

body[data-page="admin-dashboard"] .admin-nav-link:hover,
body[data-page="admin-dashboard"] .admin-nav-link:focus-visible {
  border-color: rgba(13, 143, 116, 0.24);
  background: #ecf8f4;
  color: var(--admin-brand-ink);
}

body[data-page="admin-dashboard"] .admin-nav-link.active {
  border-color: rgba(13, 143, 116, 0.32);
  background: var(--admin-brand-soft);
  color: var(--admin-brand-ink);
}

body[data-page="admin-dashboard"] .admin-tab-btn.active {
  border-color: var(--admin-brand);
  color: var(--admin-brand);
}

body[data-page="admin-dashboard"] .btn-primary {
  background: linear-gradient(140deg, #0f9a7d 0%, #0d866d 100%);
  border-color: #0d866d;
}

body[data-page="admin-dashboard"] .btn-primary:hover {
  background: linear-gradient(140deg, #108f76 0%, #0a705b 100%);
  border-color: #0a705b;
}

/* Setrex style-guide alignment: core palette + typography */
:root {
  --core-black: #010104;
  --core-bg: #0c0c0f;
  --core-card: #0d0d10;
  --core-white: #ffffff;
  --core-grey: #d2d2d2;
  --core-primary: #cffe25;
  --core-primary-soft: #f3ff9b;
  --core-primary-mint: #d8f7d6;
  /* Secondary modern palette for accents and states */
  --core-cyan: #5ad4ff;
  --core-blue: #6f98ff;
  --core-coral: #ff8e74;
  --core-amber: #ffcc74;
  --core-line: rgba(255, 255, 255, 0.1);
}

body,
input,
button,
textarea,
select {
  font-family: "BDO Grotesk", Arial, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
.btn,
.brand-text,
.eyebrow,
.kpi-value,
.tab-btn {
  font-family: "BDO Grotesk", Arial, sans-serif !important;
  letter-spacing: -0.02em;
}

body[data-page="auth-login"],
body[data-page="portal"] {
  --bg-0: var(--core-black);
  --bg-1: var(--core-bg);
  --bg-2: var(--core-card);
  --text: var(--core-white);
  --muted: rgba(210, 210, 210, 0.82);
  --line: var(--core-line);
  --line-strong: rgba(207, 254, 37, 0.52);
  --accent: var(--core-primary);
  --accent-alt: var(--core-primary-soft);
  --accent-soft: #dfff67;
  --accent-mint: var(--core-primary-mint);
  --success: var(--core-primary);
  --warning: var(--core-amber);
  --danger: var(--core-coral);
}

body[data-page="admin-dashboard"] {
  --admin-brand: var(--core-primary);
  --admin-brand-ink: #4c5c14;
  --admin-brand-soft: #f5ffd0;
}

body[data-page="admin-dashboard"] .admin-nav-link:hover,
body[data-page="admin-dashboard"] .admin-nav-link:focus-visible {
  border-color: rgba(207, 254, 37, 0.34);
  background: #f8ffd8;
  color: #4c5c14;
}

body[data-page="admin-dashboard"] .admin-nav-link.active {
  border-color: rgba(207, 254, 37, 0.44);
  background: #f4ffd0;
  color: #4c5c14;
}

body[data-page="admin-dashboard"] .admin-tab-btn.active {
  border-color: var(--core-primary);
  color: #596b16;
}

body[data-page="admin-dashboard"] .btn-primary {
  background: linear-gradient(140deg, #dbff5f 0%, #cffe25 100%);
  border-color: #badf1f;
  color: #21290a;
  box-shadow: 0 10px 22px rgba(157, 193, 31, 0.24);
}

body[data-page="admin-dashboard"] .btn-primary:hover {
  background: linear-gradient(140deg, #e4ff79 0%, #d2ff38 100%);
  border-color: #c3ea29;
}

body[data-page="client-dashboard"] {
  --client-brand: var(--core-primary);
  --client-brand-strong: #badf1f;
  --client-brand-soft: #f5ffd0;
  --client-brand-ink: #4f5f13;
}

body[data-page="client-dashboard"] .client-nav-link:hover,
body[data-page="client-dashboard"] .client-nav-link:focus-visible {
  border-color: rgba(207, 254, 37, 0.34);
  background: #f8ffd8;
  color: #4f5f13;
}

body[data-page="client-dashboard"] .client-nav-link.active {
  border-color: rgba(207, 254, 37, 0.44);
  background: #f5ffd0;
  color: #4f5f13;
}

body[data-page="client-dashboard"] .client-tab-btn:hover,
body[data-page="client-dashboard"] .client-tab-btn:focus-visible {
  color: #4f5f13;
  border-bottom-color: rgba(207, 254, 37, 0.4);
}

body[data-page="client-dashboard"] .client-tab-btn.active {
  color: #5e7118;
  border-bottom-color: var(--core-primary);
}

body[data-page="client-dashboard"] .client-kpi-grid .kpi-card {
  border-left-color: var(--core-primary);
}

body[data-page="client-dashboard"] .btn-primary {
  background: linear-gradient(140deg, #dbff5f 0%, #cffe25 100%);
  border-color: #badf1f;
  color: #21290a;
  box-shadow: 0 10px 22px rgba(157, 193, 31, 0.24);
}

body[data-page="client-dashboard"] .btn-primary:hover {
  background: linear-gradient(140deg, #e4ff79 0%, #d2ff38 100%);
  border-color: #c3ea29;
}

/* Core type scale aligned to style guide */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.875rem);
  line-height: 1.13;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.95rem, 3.2vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: -0.06em;
}

h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.625rem);
  line-height: 1.18;
  letter-spacing: -0.06em;
}

h4 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.06em;
}

h5 {
  font-size: clamp(1.12rem, 1.5vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0;
}

h6 {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: 0;
}

/* Admin/client dashboard layout stabilization */
body[data-page="admin-dashboard"].portal-body,
body[data-page="client-dashboard"].portal-body {
  padding: 0;
}

body[data-page="admin-dashboard"] .admin-console-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 0;
}

body[data-page="admin-dashboard"] .admin-side {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="admin-dashboard"] .admin-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0 0.2rem 0.3rem;
}

body[data-page="admin-dashboard"] .admin-side-toggle {
  width: 28px;
  height: 28px;
  border-color: #d4dee9;
}

body[data-page="admin-dashboard"] .admin-side-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

body[data-page="admin-dashboard"] .admin-side-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.18rem;
}

body[data-page="admin-dashboard"] .admin-side-footer {
  margin-top: 0.52rem;
}

body[data-page="admin-dashboard"] .admin-workspace {
  min-width: 0;
  min-height: 100vh;
  padding: 0 1rem 1rem;
}

body[data-page="admin-dashboard"] {
  color: #2c3f49;
}

body[data-page="admin-dashboard"]::before {
  background:
    radial-gradient(1200px 580px at 2% -10%, rgba(207, 254, 37, 0.07), transparent 68%),
    radial-gradient(960px 580px at 100% 0%, rgba(90, 212, 255, 0.06), transparent 72%),
    linear-gradient(180deg, #f9fbfe 0%, #f3f7fc 100%);
  opacity: 1;
}

body[data-page="admin-dashboard"] h1,
body[data-page="admin-dashboard"] h2,
body[data-page="admin-dashboard"] h3 {
  color: #1d3138;
}

body[data-page="admin-dashboard"] .lead-sm,
body[data-page="admin-dashboard"] .mini-note {
  color: #687d88;
}

body[data-page="admin-dashboard"] .glass-card {
  background: #fff;
  border: 1px solid #dce6f1;
  box-shadow: 0 10px 28px rgba(17, 35, 48, 0.08);
}

body[data-page="admin-dashboard"] .portal-topbar.admin-topbar {
  width: calc(100% + 2rem);
  max-width: none;
  margin: 0 -1rem 1rem;
}

body[data-page="admin-dashboard"] .admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

body[data-page="admin-dashboard"] .admin-topbar-start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

body[data-page="admin-dashboard"] .admin-collapse-btn {
  display: none;
}

body[data-page="admin-dashboard"] .admin-collapse-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

body[data-page="admin-dashboard"] .admin-topbar-search {
  min-width: 300px;
  max-width: 460px;
}

body[data-page="admin-dashboard"] .admin-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  flex-wrap: nowrap;
}

body[data-page="admin-dashboard"] .icon-action-btn-badge {
  position: relative;
}

body[data-page="admin-dashboard"] .icon-counter {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #12312a;
  border: 1px solid #f2ffbb;
  background: #cffe25;
}

body[data-page="admin-dashboard"] .icon-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1ca76d;
  box-shadow: 0 0 0 2px #fff;
}

body[data-page="admin-dashboard"] .admin-notify-wrap {
  position: relative;
}

body[data-page="admin-dashboard"] .admin-notify-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(320px, 86vw);
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 30, 44, 0.15);
  padding: 0.7rem 0.72rem;
  z-index: 40;
}

body[data-page="admin-dashboard"] .admin-notify-panel h3 {
  margin: 0 0 0.46rem;
  font-size: 0.9rem;
  color: #22343c;
}

body[data-page="admin-dashboard"] .admin-notify-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

body[data-page="admin-dashboard"] .admin-notify-panel li {
  border: 1px solid #e4ebf4;
  border-radius: 10px;
  background: #f9fbff;
  padding: 0.46rem 0.54rem;
  display: grid;
  gap: 0.16rem;
}

body[data-page="admin-dashboard"] .admin-notify-panel li strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2a3d45;
}

body[data-page="admin-dashboard"] .admin-notify-panel li span {
  font-size: 0.73rem;
  color: #6a7d87;
}

body[data-page="admin-dashboard"] .admin-user-chip {
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #fff;
  color: #2f4351;
  padding: 0.12rem 0.2rem 0.12rem 0.12rem;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 32px;
}

body[data-page="admin-dashboard"] .admin-user-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1f312f;
  background: linear-gradient(145deg, #d9ffc8, #bff3f6);
}

body[data-page="admin-dashboard"] .admin-user-chip-label {
  font-size: 0.78rem;
  font-weight: 500;
  max-width: 82px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body[data-page="admin-dashboard"] .dashboard-shell.admin-shell {
  width: 100%;
  max-width: none;
}

body[data-page="admin-dashboard"] .admin-page-head,
body[data-page="admin-dashboard"] .admin-tab-panel {
  width: 100%;
  max-width: none;
}

body[data-page="admin-dashboard"] .admin-module-card {
  min-height: 100%;
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-console-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-brand .brand-text,
body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-nav-title,
body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-nav-link span:not(.admin-nav-dot):not(.admin-nav-badge),
body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-search,
body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-footer {
  display: none;
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side {
  padding-left: 0.42rem;
  padding-right: 0.42rem;
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-head {
  justify-content: center;
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed [data-admin-sidebar-toggle] svg {
  transform: rotate(180deg);
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-brand {
  margin: 0;
  justify-content: center;
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  overflow-x: hidden;
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-nav-link {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 34px;
  padding: 0.35rem 0.2rem;
}

body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-nav-icon {
  width: 17px;
  height: 17px;
}

body[data-page="client-dashboard"] .portal-topbar.client-topbar {
  width: calc(100% + 2rem);
  max-width: none;
}

body[data-page="client-dashboard"] .client-console-shell {
  min-height: 100vh;
}

body[data-page="client-dashboard"] .client-side {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="client-dashboard"] .client-side-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 1100px) {
  body[data-page="admin-dashboard"] .admin-console-shell {
    grid-template-columns: 1fr !important;
  }

  body[data-page="admin-dashboard"] .admin-side {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #dde4ee;
  }

  body[data-page="admin-dashboard"] .portal-topbar.admin-topbar {
    width: calc(100% + 1.2rem);
    margin: 0 -0.6rem 0.8rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  body[data-page="admin-dashboard"] .admin-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-search,
  body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-nav-title,
  body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-footer {
    display: initial;
  }

  body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-brand .brand-text,
  body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-nav-link span:not(.admin-nav-dot):not(.admin-nav-badge) {
    display: inline;
  }

  body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-nav-link {
    grid-template-columns: 16px 1fr auto;
    justify-items: stretch;
    padding: 0.34rem 0.5rem;
  }

  body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-head {
    justify-content: space-between;
  }

  body[data-page="admin-dashboard"].admin-sidebar-collapsed .admin-side-brand {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body[data-page="admin-dashboard"] .admin-topbar {
    flex-wrap: wrap;
  }

  body[data-page="admin-dashboard"] .admin-topbar-start {
    width: 100%;
  }

  body[data-page="admin-dashboard"] .admin-collapse-btn {
    display: inline-flex;
  }

  body[data-page="admin-dashboard"] .admin-topbar-search {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  body[data-page="admin-dashboard"] .admin-user-chip-label {
    display: none;
  }

  body[data-page="client-dashboard"] .portal-topbar.client-topbar {
    width: calc(100% + 1.28rem);
    margin: 0 -0.64rem 0.76rem;
  }
}
