/* ============================================
   BoomScale Technology — Core stylesheet
   ============================================ */

:root {
  --ink: #0A0F1F;
  --ink-soft: #151C33;
  --body: #4E5A72;
  --muted: #7A869E;
  --line: #E4E9F4;
  --soft: #F5F7FC;
  --brand: #2F5BFF;
  --brand-2: #7B5CFF;
  --accent: #00C2CB;
  --radius: 20px;
  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-sm: 0 1px 2px rgba(10, 15, 31, 0.04), 0 8px 24px -12px rgba(10, 15, 31, 0.14);
  --shadow-lg: 0 32px 70px -28px rgba(10, 15, 31, 0.3);
  --max: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0;
}

p { margin: 0; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.container--narrow { width: min(860px, calc(100% - 48px)); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px -12px rgba(10, 15, 31, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(47, 91, 255, 0.7);
  flex: none;
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 1px;
}

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

.nav a {
  color: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--ink); background: var(--soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.lang-switch button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.lang-switch button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(10, 15, 31, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(10, 15, 31, 0.6);
}

.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(10, 15, 31, 0.7); }

.btn--brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(47, 91, 255, 0.75);
}

.btn--brand:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(47, 91, 255, 0.8); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover { border-color: #cdd6e8; transform: translateY(-1px); }

.btn--onDark {
  background: #fff;
  color: var(--ink);
}

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

.btn--lg { padding: 14px 26px; font-size: 15.5px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 158px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #FBFCFF 0%, #fff 62%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 78%;
  background-image: linear-gradient(to right, rgba(47, 91, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 91, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 12%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 60% at 50% 12%, #000 10%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -280px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.16) 0%, rgba(123, 92, 255, 0) 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(47, 91, 255, 0.07);
  border: 1px solid rgba(47, 91, 255, 0.16);
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.18);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.25rem, 3.7vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(112deg, var(--brand) 8%, var(--brand-2) 58%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.8px;
  font-weight: 550;
  color: #45506A;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  box-shadow: 0 1px 2px rgba(10, 15, 31, 0.03);
}

.chip svg { width: 13px; height: 13px; color: var(--brand); flex: none; }

/* ---------- Hero visual ---------- */

.panel {
  position: relative;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FCFDFF, #F7F9FE);
}

.panel-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #DDE4F1;
  flex: none;
}

.panel-title {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.panel-body { padding: 20px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 12px;
  background: #FBFCFE;
}

.stat-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-value small {
  font-size: 11px;
  font-weight: 600;
  color: #12B76A;
  letter-spacing: 0;
  margin-left: 2px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 16px 12px;
  background: #fff;
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-head strong {
  font-size: 12.5px;
  font-weight: 620;
  color: var(--ink);
}

.chart-head span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 550;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 88px;
}

.bars i {
  flex: 1;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, rgba(47, 91, 255, 0.9), rgba(123, 92, 255, 0.35));
  animation: grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: bottom;
}

.bars i:nth-child(2n) { background: linear-gradient(180deg, rgba(123, 92, 255, 0.85), rgba(0, 194, 203, 0.25)); }

@keyframes grow { from { transform: scaleY(0.05); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.panel-foot .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12B76A;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
  flex: none;
}

.panel-caption {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 14px;
  font-weight: 500;
}

/* ---------- Marquee / capability strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.strip-label {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}

.strip-inner .tag {
  font-size: 13px;
  font-weight: 600;
  color: #3A445C;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--soft);
}

/* ---------- Sections ---------- */

.section { padding: 100px 0; }
.section--soft { background: var(--soft); border-block: 1px solid var(--line); }
.section--tight { padding: 84px 0; }

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 16.5px;
  color: var(--body);
}

/* ---------- Service cards ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at 12% 0%, rgba(47, 91, 255, 0.055), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -30px rgba(10, 15, 31, 0.34);
  border-color: #D3DCF0;
}

.card:hover::after { opacity: 1; }

.card-num {
  position: absolute;
  top: 26px;
  right: 30px;
  font-size: 13px;
  font-weight: 650;
  color: #C3CCE0;
  letter-spacing: 0.06em;
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(47, 91, 255, 0.11), rgba(123, 92, 255, 0.09));
  border: 1px solid rgba(47, 91, 255, 0.14);
  color: var(--brand);
  margin-bottom: 20px;
}

.icon-box svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 19.5px;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.card .sub-en {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.card p { font-size: 15px; line-height: 1.72; }

.card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.card ul li {
  position: relative;
  padding-left: 21px;
  font-size: 14px;
  color: #55617A;
  line-height: 1.55;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}

/* ---------- Industries ---------- */

.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ind {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.ind:hover { transform: translateY(-4px); box-shadow: 0 32px 64px -34px rgba(10, 15, 31, 0.35); }

.ind-visual {
  position: relative;
  height: 168px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ind--tech .ind-visual {
  background: linear-gradient(135deg, #1B2A6B 0%, #2F5BFF 58%, #6E7BFF 100%);
}

.ind--game .ind-visual {
  background: linear-gradient(135deg, #2A1358 0%, #6C34D6 52%, #B45BFF 100%);
}

.ind-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 76%);
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 76%);
}

.ind-visual svg {
  position: relative;
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.94);
  stroke-width: 1.4;
}

.ind-body { padding: 28px 30px 32px; }

.ind-body h3 { font-size: 21px; margin-bottom: 4px; }

.ind-body .kicker {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 10px;
  display: block;
}

.ind-body p { font-size: 15px; }

.ind-body ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.ind-body ul li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #55617A;
  align-items: flex-start;
}

.ind-body ul li svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--brand);
  flex: none;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  position: relative;
}

.step {
  position: relative;
  padding-right: 28px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgba(47, 91, 255, 0.8);
}

.step h4 {
  font-size: 16.5px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.step p { font-size: 14px; line-height: 1.65; color: #55617A; }

.step::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 46px;
  right: 8px;
  height: 1px;
  background: linear-gradient(to right, #D6DFF2, rgba(214, 223, 242, 0.15));
}

.step:last-child::before { display: none; }

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 44px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(47, 91, 255, 0.045);
  border: 1px solid rgba(47, 91, 255, 0.14);
  font-size: 14px;
  color: #44506B;
  line-height: 1.65;
}

.note svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }

/* ---------- Compliance ---------- */

.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.comp {
  display: flex;
  gap: 16px;
  padding: 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comp:hover { border-color: #D3DCF0; box-shadow: var(--shadow-sm); }

.comp-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(18, 183, 106, 0.1);
  color: #0E9F5D;
  display: grid;
  place-items: center;
  flex: none;
}

.comp-icon svg { width: 17px; height: 17px; }

.comp h4 { font-size: 15.5px; margin-bottom: 6px; letter-spacing: -0.01em; }

.comp p { font-size: 14px; line-height: 1.65; color: #55617A; }

/* ---------- CTA band ---------- */

.cta-wrap { padding: 0 0 100px; }

.cta {
  position: relative;
  border-radius: 28px;
  padding: 64px 56px;
  background: linear-gradient(125deg, #0A0F1F 0%, #17204A 48%, #35216B 100%);
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.cta::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.45) 0%, transparent 66%);
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  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: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 78% 40%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 78% 40%, #000, transparent 72%);
  pointer-events: none;
}

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

.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta p { color: rgba(255, 255, 255, 0.7); font-size: 16px; max-width: 520px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.contact-card .icon-box { margin-bottom: 0; width: 40px; height: 40px; border-radius: 11px; }
.contact-card .icon-box svg { width: 18px; height: 18px; }

.contact-card .label {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-card .value {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.contact-card .value a { color: var(--ink); }
.contact-card .value a:hover { color: var(--brand); }

.contact-card .meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Footer ---------- */

.site-footer {
  background: #070B16;
  color: rgba(255, 255, 255, 0.62);
  padding: 64px 0 30px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer .brand { color: #fff; }

.site-footer .brand-mark { box-shadow: none; }

.footer-about {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
}

.footer-col h5 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.65;
}

.footer-legal { max-width: 620px; }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 140px 0 48px;
  background: linear-gradient(180deg, #FBFCFF, #fff);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.legal-hero p { font-size: 15px; color: var(--muted); }

.legal-body { padding: 56px 0 90px; }

.legal-body h2 {
  font-size: 20px;
  margin: 42px 0 14px;
  letter-spacing: -0.02em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li {
  font-size: 15px;
  line-height: 1.78;
  color: #4E5A72;
}

.legal-body ul { padding-left: 20px; margin: 12px 0; }
.legal-body li { margin-bottom: 8px; }

.legal-body a { text-decoration: underline; text-underline-offset: 3px; }

.legal-updated {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 8px;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bars i { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-lead { max-width: none; }
  .panel { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta { grid-template-columns: 1fr; padding: 48px 36px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .hero { padding: 128px 0 68px; }
  .section { padding: 72px 0; }
  .section--tight { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .grid-2, .ind-grid, .comp-grid, .contact-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .card-num { top: 22px; right: 24px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .cta-wrap { padding-bottom: 68px; }
  .cta { padding: 38px 26px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 48px 0 26px; }
  .header-inner { height: 66px; gap: 8px; }
  .brand-sub { display: none; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
  .header-actions { gap: 8px; }
  .header-actions > .btn { padding: 9px 13px; font-size: 13px; }
  .header-actions > .btn--ghost { display: none; }
  .lang-switch button { font-size: 11.5px; padding: 4px 9px; }
  .nav-toggle { width: 36px; height: 36px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .legal-hero { padding: 108px 0 36px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .stat { padding: 10px 8px; }
  .stat-value { font-size: 16px; }
  .stat-label { font-size: 9px; letter-spacing: 0.03em; }
}

/* Mobile dropdown nav */
.nav.is-open {
  display: flex;
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 14px 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(10, 15, 31, 0.3);
}

.nav.is-open a { padding: 12px 10px; font-size: 15px; }

/* ============================================
   Auth pages
   ============================================ */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, #0A0F1F 0%, #17204A 52%, #35216B 100%);
  color: #fff;
}

.auth-aside::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.5), transparent 66%);
}

.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 70%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 70%, #000, transparent 72%);
}

.auth-aside > * { position: relative; z-index: 1; }

.auth-aside .brand { color: #fff; }
.auth-aside .brand-sub { color: rgba(255, 255, 255, 0.55); }

.auth-aside-body { max-width: 420px; }

.auth-aside-body h2 {
  color: #fff;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.auth-aside-body p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.7;
}

.auth-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.auth-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.auth-list svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: #8FD8FF; }

.auth-aside-foot {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.65;
  max-width: 380px;
}

.auth-main {
  display: flex;
  flex-direction: column;
  padding: 36px 40px;
}

.auth-main-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.auth-back {
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-back:hover { color: var(--ink); }

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 40px 0;
}

.auth-card h1 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.auth-card .lede { font-size: 15px; color: var(--body); margin-bottom: 30px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3D4761;
  margin-bottom: 7px;
}

.field .hint { font-size: 12px; color: var(--muted); font-weight: 500; }

.input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder { color: #ADB6C8; }

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.13);
}

.input[aria-invalid="true"] { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12); }

textarea.input { resize: vertical; min-height: 120px; line-height: 1.6; }

.btn--block { width: 100%; }

.btn[disabled] { opacity: 0.62; cursor: not-allowed; transform: none !important; }

.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 18px;
  border: 1px solid rgba(229, 72, 77, 0.28);
  background: rgba(229, 72, 77, 0.06);
  color: #B4232A;
}

.form-alert.is-visible { display: flex; }

.form-alert.is-success {
  border-color: rgba(18, 183, 106, 0.3);
  background: rgba(18, 183, 106, 0.08);
  color: #087443;
}

.form-alert svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.auth-switch {
  margin-top: 24px;
  font-size: 14px;
  color: var(--body);
  text-align: center;
}

.auth-switch a { font-weight: 600; }

.auth-legal {
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.auth-legal a { text-decoration: underline; text-underline-offset: 2px; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A6B0C4;
}

.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.demo-box {
  border: 1px dashed #C9D3E6;
  background: #FAFBFE;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: #55617A;
  line-height: 1.6;
}

.demo-box strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 13px; }

.demo-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #EEF2FA;
  border-radius: 5px;
  padding: 1px 5px;
  color: #2B3651;
}

/* ============================================
   Workspace (dashboard)
   ============================================ */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px 1fr;
  background: #F7F9FD;
}

.app-side {
  background: #070B16;
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.app-side .brand { color: #fff; padding: 6px 8px 18px; }
.app-side .brand-mark { box-shadow: none; }

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.66);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.app-nav-item svg { width: 17px; height: 17px; flex: none; opacity: 0.8; }

.app-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.app-nav-item.is-active { background: rgba(47, 91, 255, 0.22); color: #fff; }

.app-nav-item.is-active svg { opacity: 1; }

.app-side-foot {
  margin-top: auto;
  padding: 14px 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.app-main { min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.app-topbar h1 { font-size: 17px; letter-spacing: -0.02em; }

.app-topbar .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.app-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.segmented button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.segmented button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 15, 31, 0.12); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.user-chip .name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.user-chip .role { font-size: 11px; color: var(--muted); text-transform: capitalize; }

.app-content { padding: 26px; display: grid; gap: 18px; align-content: start; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.stat-card .label {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.stat-card .foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat-card .foot b { color: #0E9F5D; font-weight: 650; }

.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.panel-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-card-head h2 { font-size: 15px; letter-spacing: -0.015em; }
.panel-card-head .meta { font-size: 12.5px; color: var(--muted); margin-left: auto; }

.panel-card-body { padding: 20px; }

.chart-tall { display: flex; align-items: flex-end; gap: 10px; height: 168px; }

.chart-tall .bar {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 2px;
}

.chart-tall .bar span {
  display: block;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(47, 91, 255, 0.92), rgba(123, 92, 255, 0.42));
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-tall .bar:hover span { background: linear-gradient(180deg, #2F5BFF, #7B5CFF); }

.chart-axis {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted);
}

.chart-axis span { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; }

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}

table.data th {
  text-align: left;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: #FCFDFF;
}

table.data td {
  padding: 14px 20px;
  border-bottom: 1px solid #EEF2F9;
  color: #45506A;
  white-space: nowrap;
}

table.data tr:last-child td { border-bottom: 0; }

table.data .acct-name { font-weight: 620; color: var(--ink); }
table.data .acct-id { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
table.data .num { font-variant-numeric: tabular-nums; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: capitalize;
}

.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.pill--active { background: rgba(18, 183, 106, 0.12); color: #087443; }
.pill--paused { background: rgba(122, 134, 158, 0.14); color: #55617A; }
.pill--review { background: rgba(245, 165, 36, 0.16); color: #9A6300; }

.status-select {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #45506A;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 6px;
  background: #fff;
  cursor: pointer;
}

.activity-list { list-style: none; margin: 0; padding: 0; }

.activity-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EEF2F9;
  font-size: 13px;
}

.activity-list li:last-child { border-bottom: 0; }

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 6px;
  flex: none;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.14);
}

.activity-list .act { font-weight: 600; color: var(--ink); }
.activity-list .time { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.skeleton {
  background: linear-gradient(90deg, #EEF2F9 25%, #F6F8FC 50%, #EEF2F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 6px;
  color: transparent !important;
}

@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.empty-state {
  padding: 34px 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}

.toast {
  background: #0A0F1F;
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(10, 15, 31, 0.7);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast--error { background: #B4232A; }

@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 1fr; }
  .app-side {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    overflow-x: auto;
  }
  .app-side .brand { padding: 0 12px 0 4px; }
  .app-side .brand span:last-child { display: none; }
  .app-nav-item { width: auto; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .app-side-foot { display: none; }
}

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 24px 22px 40px; }
  .auth-card { padding: 24px 0; max-width: 440px; }
  .app-content { padding: 16px; }
  .app-topbar { padding: 12px 16px; flex-wrap: wrap; }
  .app-topbar h1 { font-size: 15px; }
  .user-chip .name, .user-chip .role { display: none; }
  .user-chip { padding: 4px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .value { font-size: 21px; }
  .chart-tall { height: 120px; gap: 6px; }
  .chart-axis { gap: 6px; font-size: 9px; }
  .chart-axis span { overflow: visible; }
}

/* Mobile workspace top bar: let the control cluster wrap onto its own rows */
@media (max-width: 640px) {
  .app-topbar { padding: 10px 14px; gap: 10px; }
  .app-topbar > div:first-child { width: 100%; }
  .app-topbar-actions {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .app-topbar-actions > .btn { padding: 8px 12px; font-size: 12.5px; }
  .segmented button { padding: 4px 9px; }
  .app-content { padding: 14px; gap: 14px; }
}

/* Compact workspace nav on small phones so all three items fit */
@media (max-width: 640px) {
  .app-side { padding: 8px 10px; gap: 2px; }
  .app-side .brand { padding: 0 8px 0 2px; }
  .app-side .brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
  .app-nav-item { padding: 7px 9px; font-size: 12px; gap: 6px; }
  .app-nav-item svg { width: 15px; height: 15px; }
}
