/* ============ THEME TOKENS ============ */
:root,
[data-theme="dark"] {
  --bg: #0d0d12;
  --bg-2: #131318;
  --surface: #17171d;
  --surface-2: #1e1e26;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f0f0f7;
  --text-2: #8888aa;
  --text-3: #50506a;
  --brand: #6682fb;
  --brand-2: #4f6be8;
  --brand-soft: rgba(102, 130, 251, 0.14);
  --brand-glow: 102, 130, 251;
  --teal: #20b6b2;
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.10);
  --warning: #fbbf24;
  --ink: #0d0d12;
  --pop: #ffffff;
  --code-bg: #070710;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
  --bg: #f5f5f8;
  --bg-2: #eaeaee;
  --surface: #ffffff;
  --surface-2: #f2f2f6;
  --line: #e3e3ec;
  --line-2: #c8c8d8;
  --text: #0d0d16;
  --text-2: #404060;
  --text-3: #7878a0;
  --brand: #4f6be8;
  --brand-2: #6682fb;
  --brand-soft: rgba(79, 107, 232, 0.10);
  --brand-glow: 79, 107, 232;
  --teal: #0c9490;
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.10);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --warning: #d97706;
  --ink: #0d0d16;
  --pop: #0d0d16;
  --code-bg: #0d0d16;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10), 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ============ RESET ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background 220ms ease,
    color 220ms ease;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.page {
  width: 100%;
  margin: 0;
  background: var(--bg);
}
.pad {
  padding-left: 48px;
  padding-right: 48px;
}
.inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark img.logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: block;
}
.brand-mark .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.brand-mark .by {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-left: 4px;
  border-left: 1px solid var(--line-2);
  padding-left: 10px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  position: relative;
  transition: color 120ms;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px 1px 0 0;
}
.nav-spacer {
  flex: 1;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--text);
  transition: opacity 120ms;
}
.nav-cta:hover {
  opacity: 0.85;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
.theme-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: color 120ms, border-color 120ms;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--surface-2);
}
.theme-toggle .sun {
  display: none;
}
.theme-toggle .moon {
  display: block;
}
[data-theme="light"] .theme-toggle .sun {
  display: block;
}
[data-theme="light"] .theme-toggle .moon {
  display: none;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(var(--brand-glow), 0.38),
      transparent 60%
    ),
    radial-gradient(
      700px 380px at 85% 110%,
      rgba(32, 182, 178, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #0e1220 0%, #07090f 100%);
  color: #fff;
}
[data-theme="light"] .hero {
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(var(--brand-glow), 0.28),
      transparent 55%
    ),
    radial-gradient(
      700px 380px at 85% 110%,
      rgba(12, 148, 144, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, #ffffff 0%, #eaeaee 100%);
  color: var(--text);
}
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
[data-theme="light"] .grid-bg {
  background-image:
    linear-gradient(rgba(13, 13, 22, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 22, 0.04) 1px, transparent 1px);
}
.hero-inner {
  position: relative;
  padding: 80px 56px 0 56px;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px;
  border-radius: 5px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: #c8cedf;
}
[data-theme="light"] .eyebrow {
  border-color: rgba(13, 13, 22, 0.16);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-2);
}
.eyebrow .star {
  color: var(--brand);
}
.eyebrow .sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.18);
}
[data-theme="light"] .eyebrow .sep {
  background: rgba(13, 13, 22, 0.16);
}
.eyebrow b {
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
}

h1.headline {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 24px 0 0;
  color: inherit;
}
h1.headline em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
h1.headline em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 5px;
  background: rgba(var(--brand-glow), 0.24);
  z-index: -1;
}
.hero p.lede {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: #a8b0c8;
  font-weight: 400;
}
[data-theme="light"] .hero p.lede {
  color: var(--text-2);
}

.cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.gbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px 0 16px;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid #ffffff;
  border-radius: 6px;
  transition: box-shadow 150ms;
}
.gbtn:hover {
  box-shadow: 0 0 0 5px rgba(var(--brand-glow), 0.22);
}
.gbtn .gicon {
  width: 18px;
  height: 18px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #e8eaf2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 150ms;
}
[data-theme="light"] .btn-ghost {
  background: rgba(13, 13, 22, 0.04);
  color: var(--text);
  border-color: rgba(13, 13, 22, 0.16);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(13, 13, 22, 0.08);
}
.micro {
  margin-top: 16px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 11px;
  color: #60647a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.micro .sep {
  margin: 0 10px;
  opacity: 0.4;
}

/* ============ COMPARE SLIDER ============ */
.compare-wrap {
  position: relative;
  margin: 56px auto 0;
  padding-bottom: 0;
  max-width: 1200px;
  padding-left: 40px;
  padding-right: 40px;
}
.compare {
  position: relative;
  background: #090c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  box-shadow: 0 -16px 56px rgba(var(--brand-glow), 0.18);
  aspect-ratio: 2936 / 1700;
  user-select: none;
  cursor: ew-resize;
}
.compare-top {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #8892a8;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.compare-top .traffic {
  display: flex;
  gap: 6px;
}
.compare-top .traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #282d3c;
  display: block;
}
.compare-top .url {
  flex: 1;
  text-align: center;
  color: #9096aa;
}
.compare-top .url b {
  color: #fff;
  font-weight: 500;
}
.compare-top .legend {
  display: flex;
  gap: 14px;
  align-items: center;
}
.compare-top .legend .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.compare-top .legend .pill i.sq {
  width: 8px;
  height: 8px;
  background: var(--brand);
  display: inline-block;
}
.compare-top .legend .pill.right i.sq {
  background: #6ecfc8;
}

.compare-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.compare-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}
.compare-pane.right {
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.compare-pane.left {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.compare-label {
  position: absolute;
  top: 60px;
  z-index: 6;
  background: rgba(7, 8, 16, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 7px 12px;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-label.left {
  left: 24px;
}
.compare-label.right {
  right: 24px;
}
.compare-label .sq {
  width: 8px;
  height: 8px;
  background: var(--brand);
  display: inline-block;
}
.compare-label.right .sq {
  background: #6ecfc8;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  z-index: 7;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(var(--brand-glow), 0.4);
}
.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0d12;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.16),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
.compare-grip svg {
  width: 16px;
  height: 16px;
}

.compare-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(
    200px 200px at var(--pos, 50%) 50%,
    rgba(var(--brand-glow), 0.38),
    transparent 70%
  );
  mix-blend-mode: screen;
  transition: opacity 200ms;
}
.compare-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 8, 16, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ SECTIONS ============ */
section.bk {
  padding: 80px max(48px, calc((100% - 1184px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.sec-tag {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.sec-h {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 10px 0 0;
  max-width: 820px;
}
.sec-h em {
  font-style: normal;
  color: var(--brand);
}
.sec-sub {
  max-width: 380px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.step {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child {
  border-right: 0;
}
.step .step-no {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.step h3 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  font-weight: 700;
  color: var(--text);
}
.step p {
  color: var(--text-2);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.step .code {
  margin-top: 20px;
  background: var(--code-bg);
  color: #dde2f0;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  border: 1px solid var(--line);
}
.step .code .c {
  color: #4e5270;
}
.step .code .k {
  color: #8fa4ff;
}
.step .code .s {
  color: #6ecfc8;
}
.step .code .b {
  color: #f0f0f7;
}

/* ============ TOOLS TABLE ============ */
.tools-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tools-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tools-tab {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  text-align: left;
  color: var(--text-2);
  transition: background 120ms;
}
.tools-tab:last-child {
  border-right: 0;
}
.tools-tab .lbl {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-3);
}
.tools-tab .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.tools-tab .count {
  margin-left: auto;
}
.tools-tab.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.tools-tab:hover:not(.active) {
  background: var(--surface-2);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 480px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}
.tools-grid.expanded {
  max-height: none;
}
.tools-grid:not(.expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}
.tools-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  width: 100%;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  gap: 8px;
  transition: color 0.15s;
}
.tools-expand:hover {
  color: var(--text);
}
.tools-expand svg {
  transition: transform 0.3s;
}
.tools-expand.expanded svg {
  transform: rotate(180deg);
}
.tool-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px 14px;
  align-items: start;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.tool-row:nth-child(2n) {
  border-right: 0;
}
.tool-row .num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.03em;
  padding-top: 3px;
}
.tool-row .name {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-row .name .verb {
  color: var(--brand);
}
.tool-row .name .flag {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
}
.tool-row .name .flag.read {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.22);
}
.tool-row .name .flag.write {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.tool-row .name .flag.delete {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.22);
}
.tool-row .name .flag.bulk {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.32);
}
.tool-row .name .flag.jpd {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.32);
}
.tool-row .desc {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.4;
  margin-top: -2px;
}

/* ============ SECURITY ============ */
.sec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sec-item {
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-item:nth-child(2n) {
  border-right: 0;
}
.sec-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.sec-item .ic {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  color: var(--text);
}
.sec-item h5 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
}
.sec-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.sec-item code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--text);
}

/* ============ FINAL CTA ============ */
.final {
  position: relative;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background:
    radial-gradient(
      700px 400px at 50% 120%,
      rgba(var(--brand-glow), 0.40),
      transparent 60%
    ),
    linear-gradient(180deg, #0e1220 0%, #07090f 100%);
  color: #fff;
  padding: 88px max(48px, calc((100% - 1184px) / 2));
  text-align: center;
  overflow: hidden;
}
[data-theme="light"] .final {
  background:
    radial-gradient(
      700px 400px at 50% 120%,
      rgba(var(--brand-glow), 0.30),
      transparent 60%
    ),
    linear-gradient(180deg, #ffffff 0%, #eaeaee 100%);
  color: var(--text);
}
.final h2 {
  font-family: "Outfit", sans-serif;
  font-size: 60px;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 800;
  position: relative;
}
.final h2 em {
  font-style: normal;
  color: var(--brand);
}
.final p {
  position: relative;
  color: #a0a8be;
  max-width: 520px;
  margin: 16px auto 28px;
  font-size: 16px;
}
[data-theme="light"] .final p {
  color: var(--text-2);
}
.final .cta-row {
  position: relative;
}
.final .tiny {
  position: relative;
  margin-top: 16px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 11px;
  color: #5c6278;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============ FOOTER ============ */
footer {
  padding: 48px max(48px, calc((100% - 1184px) / 2));
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
footer .brand-mark img.logo {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}
footer .col h6 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 600;
}
footer .col a {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  padding: 5px 0;
  transition: color 120ms;
}
footer .col a:hover {
  color: var(--text);
}
footer .about p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 340px;
}
footer .legal {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-3);
  font-family: "Outfit", system-ui, sans-serif;
  letter-spacing: 0.02em;
}

/* ============ UTILITY ============ */
.ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  color: currentColor;
}
.ico-sm {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

/* ============ SKELETON LOADER ============ */
@keyframes sk-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.sk-bar {
  display: inline-block;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--line-2) 50%,
    var(--surface-2) 100%
  );
  background-size: 800px 100%;
  animation: sk-shimmer 1.4s linear infinite;
  vertical-align: middle;
}
.sk-bar.w-xs  { width: 32px;  }
.sk-bar.w-sm  { width: 60px;  }
.sk-bar.w-md  { width: 110px; }
.sk-bar.w-lg  { width: 180px; }
.sk-bar.w-xl  { width: 260px; }
.sk-bar.w-full{ width: 100%;  }
.sk-bar.h-lg  { height: 18px; }
.sk-circle {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--line-2) 50%,
    var(--surface-2) 100%
  );
  background-size: 800px 100%;
  animation: sk-shimmer 1.4s linear infinite;
  flex: 0 0 32px;
}
tr.sk-row td {
  padding: 14px 12px;
}
.sk-row .sk-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sk-row .sk-user-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============ ERROR BANNER (inline retry) ============ */
.err-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  border-radius: 8px;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.err-banner .err-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--danger);
  margin-top: 1px;
}
.err-banner .err-body { flex: 1; min-width: 0; }
.err-banner .err-title {
  font-weight: 600;
  margin-bottom: 2px;
}
.err-banner .err-detail {
  color: var(--text-2);
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  word-break: break-word;
}
.err-banner .err-retry {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.err-banner .err-retry:hover {
  background: var(--surface-2);
  border-color: var(--brand);
  color: var(--brand);
}
.err-banner .err-retry:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ============ THEME-SWITCH RADIAL RIPPLE ============ */
::view-transition-old(root) {
  animation: none;
  z-index: 1;
}
::view-transition-new(root) {
  animation: ripple-in 650ms cubic-bezier(0.4, 0, 0.2, 1) both;
  z-index: 2;
}
@keyframes ripple-in {
  from {
    clip-path: circle(0 at var(--ripple-x, 50%) var(--ripple-y, 50%));
  }
  to {
    clip-path: circle(
      var(--ripple-r, 150vmax)
      at var(--ripple-x, 50%) var(--ripple-y, 50%)
    );
  }
}
