:root {
  color-scheme: dark;
  --apex-cyan-50: #e6f4ff;
  --apex-cyan-100: #b8deff;
  --apex-cyan-200: #7ac1ff;
  --apex-cyan-300: #3da5ff;
  --apex-cyan-400: #0096ff;
  --apex-cyan-500: #007ed9;
  --apex-blue-400: #0066d6;
  --apex-blue-500: #0047ab;
  --apex-blue-600: #003080;
  --apex-ink-0: #ffffff;
  --apex-ink-100: #e6e9ef;
  --apex-ink-200: #c9cfdb;
  --apex-ink-300: #9aa3b5;
  --apex-ink-400: #6b7588;
  --apex-ink-600: #2f3645;
  --apex-ink-700: #1a1f2c;
  --apex-ink-800: #11151e;
  --apex-ink-900: #0b0e14;
  --apex-ink-950: #05070c;
  --success: #1fae6a;
  --warning: #f2a23b;
  --danger: #e5484d;
  --bg: var(--apex-ink-900);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.065);
  --surface-muted: rgba(255, 255, 255, 0.08);
  --sunken: rgba(5, 7, 12, 0.72);
  --ink: var(--apex-ink-0);
  --muted: var(--apex-ink-200);
  --subtle: var(--apex-ink-300);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: var(--apex-cyan-400);
  --accent-strong: var(--apex-cyan-300);
  --action: var(--apex-blue-500);
  --action-hover: var(--apex-blue-600);
  --glow: rgba(0, 150, 255, 0.32);
  --blue-glow: rgba(0, 71, 171, 0.45);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.46);
  --shadow-focus: 0 0 0 3px rgba(0, 150, 255, 0.34);
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --sans: "Space Grotesk", "Satoshi", "Avenir Next", sans-serif;
  --display: "Syncopate", "Space Grotesk", "Avenir Next", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(118deg, rgba(0, 150, 255, 0.15), transparent 34%),
    linear-gradient(248deg, rgba(0, 71, 171, 0.2), transparent 42%),
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.018) 3px,
    rgba(255, 255, 255, 0.018) 4px
  );
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.lp-page {
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(0, 150, 255, 0.14), transparent 36%),
    linear-gradient(245deg, rgba(48, 88, 145, 0.22), transparent 42%),
    linear-gradient(140deg, #05070c 0%, #090d15 42%, #101826 100%);
  color: #f8fbff;
  font-family: "Space Grotesk", "Satoshi", "Avenir Next", sans-serif;
}

.lp-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 10%, black, transparent 72%);
}

.lp-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.7) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(255, 255, 255, 0.45) 4px 5px);
}

.lp-page a {
  color: inherit;
}

.lp-hero,
.lp-section {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.lp-hero {
  min-height: 94dvh;
  padding: 24px 0 72px;
}

.lp-nav {
  position: sticky;
  top: 24px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.lp-brand,
.lp-nav-cta,
.lp-button {
  text-decoration: none;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 14px 4px 5px;
  border-radius: 999px;
}

.lp-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.lp-brand-mark img {
  width: 22px;
  height: 22px;
}

.lp-brand small,
.lp-brand strong {
  display: block;
}

.lp-brand small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.lp-brand strong {
  font-family: "Syncopate", "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  text-decoration: none;
  transition: color 700ms cubic-bezier(0.32, 0.72, 0, 1), background 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.lp-nav-links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.lp-page .lp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 5px 4px 17px;
  border-radius: 999px;
  background: #f8fbff;
  color: #05070c;
  font-size: 13px;
  font-weight: 800;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.lp-page .lp-nav-cta span,
.lp-page .lp-button span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1), background 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.lp-page .lp-nav-cta span {
  background: rgba(5, 7, 12, 0.08);
  color: #05070c;
}

.lp-page .lp-nav-cta:hover,
.lp-page .lp-button:hover {
  transform: translateY(-2px);
}

.lp-page .lp-nav-cta:hover span,
.lp-page .lp-button:hover span {
  transform: translateX(3px) translateY(-1px) scale(1.04);
}

.lp-page .lp-nav-cta:active,
.lp-page .lp-button:active {
  transform: scale(0.98);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 42px;
  align-items: center;
  padding: 96px 0 18px;
}

.lp-hero-copy h1,
.lp-section-heading h2,
.lp-pricing-copy h2 {
  margin: 0;
  max-width: 900px;
  font-family: "Syncopate", "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lp-hero-copy h1 {
  max-width: 780px;
  font-size: clamp(38px, 5.8vw, 74px);
}

.lp-hero-copy p,
.lp-pricing-copy p {
  max-width: 660px;
  color: rgba(232, 240, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.lp-eyebrow,
.lp-price-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 28px;
  margin: 0 0 18px;
  padding: 0 12px;
  border: 1px solid rgba(0, 150, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 150, 255, 0.08);
  color: #9edcff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lp-actions,
.lp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lp-page .lp-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 7px 6px 21px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1), background 700ms cubic-bezier(0.32, 0.72, 0, 1), border-color 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.lp-page .lp-button-primary {
  background: #eef6ff;
  color: #07111f;
}

.lp-page .lp-button-primary span {
  background: rgba(7, 17, 31, 0.08);
  color: #07111f;
}

.lp-page .lp-button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fbff;
}

.lp-page .lp-button-ghost span {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
}

.lp-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(232, 240, 255, 0.68);
  font-size: 12px;
}

.lp-proof strong {
  color: #fff;
}

.lp-dashboard-shell,
.lp-card,
.lp-price-shell {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 34px 100px rgba(0, 0, 0, 0.38);
}

.lp-dashboard-shell {
  transform: rotate(1.4deg);
}

.lp-dashboard-core,
.lp-card-core,
.lp-price-core {
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(10, 16, 27, 0.98), rgba(5, 7, 12, 0.96));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.lp-dashboard-core {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.lp-dash-top,
.lp-command-row,
.lp-metrics,
.lp-lead-strip {
  display: grid;
  gap: 12px;
}

.lp-dash-top {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.lp-dash-top span,
.lp-metrics small,
.lp-log-panel span,
.lp-lead-strip span {
  color: rgba(232, 240, 255, 0.55);
  font-size: 12px;
}

.lp-dash-top strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.1;
}

.lp-dash-top small {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(31, 174, 106, 0.12);
  color: #91f0bc;
}

.lp-command-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 66px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(0, 150, 255, 0.1);
}

.lp-command-row strong {
  color: #9edcff;
  font-size: 12px;
}

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

.lp-metrics div {
  min-height: 100px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.lp-metrics strong {
  display: block;
  margin-top: 16px;
  font-size: 34px;
}

.lp-log-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.lp-lead-strip {
  grid-template-columns: 1.2fr 1fr 1fr 0.6fr;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.lp-section {
  padding: 96px 0;
}

.lp-section-tight {
  padding-top: 72px;
}

.lp-section-heading {
  margin-bottom: 36px;
}

.lp-section-heading h2,
.lp-pricing-copy h2 {
  max-width: 820px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
}

.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.lp-card {
  min-height: 250px;
}

.lp-card:nth-child(1) {
  grid-column: span 7;
}

.lp-card:nth-child(2) {
  grid-column: span 5;
}

.lp-card:nth-child(3) {
  grid-column: span 5;
}

.lp-card:nth-child(4) {
  grid-column: span 7;
}

.lp-card-core {
  height: 100%;
  padding: 28px;
}

.lp-card-core span {
  color: #4db6ff;
  font-family: var(--mono);
  font-size: 12px;
}

.lp-card-core h3 {
  max-width: 420px;
  margin: 36px 0 12px;
  font-size: 24px;
  line-height: 1.12;
}

.lp-card-core p {
  max-width: 520px;
  margin: 0;
  color: rgba(232, 240, 255, 0.65);
  line-height: 1.65;
}

.lp-pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 34px;
  align-items: center;
}

.lp-price-core {
  padding: 30px;
}

.lp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 20px 0 22px;
}

.lp-price s {
  color: rgba(232, 240, 255, 0.42);
  font-size: 22px;
  text-decoration-color: rgba(229, 72, 77, 0.8);
}

.lp-price strong {
  font-size: 48px;
  line-height: 1;
}

.lp-price small {
  color: rgba(232, 240, 255, 0.56);
}

.lp-price-core ul {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.lp-price-core li {
  display: flex;
  gap: 10px;
  color: rgba(232, 240, 255, 0.72);
}

.lp-price-core li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: #0096ff;
}

.lp-price-core .lp-button {
  width: 100%;
  justify-content: space-between;
}

.lp-faq {
  padding-bottom: 120px;
}

.lp-faq-list {
  display: grid;
  gap: 12px;
}

.lp-faq details {
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.lp-faq summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
}

.lp-faq p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(232, 240, 255, 0.66);
  line-height: 1.65;
}

.lp-reveal {
  animation: lpReveal 900ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.lp-delay-1 {
  animation-delay: 110ms;
}

.lp-delay-2 {
  animation-delay: 220ms;
}

@keyframes lpReveal {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .lp-hero,
  .lp-section {
    width: min(100% - 28px, 680px);
  }

  .lp-nav {
    top: 12px;
  }

  .lp-nav-links {
    display: none;
  }

  .lp-hero-grid,
  .lp-pricing-section {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .lp-dashboard-shell {
    transform: none;
  }

  .lp-bento {
    grid-template-columns: 1fr;
  }

  .lp-card,
  .lp-card:nth-child(n) {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .lp-page {
    font-size: 15px;
  }

  .lp-hero {
    padding-top: 14px;
  }

  .lp-nav {
    padding: 6px;
  }

  .lp-brand span:last-child {
    display: none;
  }

  .lp-hero-copy h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .lp-hero-copy p,
  .lp-pricing-copy p {
    font-size: 16px;
  }

  .lp-actions {
    display: grid;
  }

  .lp-button {
    justify-content: space-between;
  }

  .lp-dashboard-core,
  .lp-card-core,
  .lp-price-core {
    padding: 20px;
  }

  .lp-dash-top,
  .lp-command-row,
  .lp-metrics,
  .lp-lead-strip {
    grid-template-columns: 1fr;
  }

  .lp-section {
    padding: 72px 0;
  }

  .lp-price strong {
    font-size: 40px;
  }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(130deg, rgba(0, 150, 255, 0.16), transparent 42%),
    rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(18px);
}

.auth-gate.hidden {
  display: none;
}

.auth-card {
  display: grid;
  gap: 18px;
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 14, 20, 0.92);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  max-width: 12ch;
  font-size: clamp(30px, 7vw, 44px);
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #05070c;
  box-shadow: 0 0 30px rgba(0, 150, 255, 0.2);
  overflow: hidden;
}

.brand-mark img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.brand-lockup small,
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-lockup small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-lockup span,
.sidebar-note,
.field small,
.control-panel p,
.empty-state p,
.topbar-lede {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.55;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.nav-item svg,
.icon-button svg,
.primary-action svg,
.secondary-action svg,
.run-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line);
  background: var(--surface-muted);
  color: #fff;
}

.nav-item.active {
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-item:active,
.primary-action:active,
.secondary-action:active,
.icon-button:active,
.run-action:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.billing-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.billing-card strong {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.billing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.billing-price s {
  color: var(--subtle);
  font-size: 12px;
  text-decoration-color: rgba(229, 72, 77, 0.78);
}

.billing-price strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.billing-price em {
  padding: 2px 6px;
  border: 1px solid rgba(0, 150, 255, 0.34);
  border-radius: 999px;
  color: #9edcff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-card small {
  min-height: 20px;
  color: var(--subtle);
  line-height: 1.45;
}

.billing-eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.billing-card .secondary-action {
  width: 100%;
}

.billing-card .secondary-action.is-active {
  border-color: rgba(40, 199, 111, 0.44);
  background: rgba(40, 199, 111, 0.12);
  color: #bff5d3;
}

.signout-action {
  width: 100%;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse-ring 2s var(--ease-out) infinite;
}

.workspace {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 32px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 26px 28px 30px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(0, 150, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.topbar::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 170px;
  height: 170px;
  background: url("/assets/apex-symbol.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(34px, 5.5vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
}

.topbar-lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(5, 7, 12, 0.34);
  color: var(--subtle);
  font-size: 12px;
}

.hero-metrics strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button,
.primary-action,
.secondary-action,
.run-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 4px;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.icon-button:hover,
.secondary-action:hover {
  border-color: rgba(0, 150, 255, 0.44);
  background: rgba(0, 150, 255, 0.1);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(380px, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.control-panel,
.coverage-panel,
.queue-section,
.leads-section,
.activity-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.22);
}

.control-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.section-title {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
}

.section-title > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 150, 255, 0.36);
  border-radius: 4px;
  background: rgba(0, 150, 255, 0.12);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(5, 7, 12, 0.35);
  color: var(--subtle);
}

.workflow-steps li::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--line);
}

.workflow-steps li:last-child::after {
  display: none;
}

.workflow-steps span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
}

.workflow-steps strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-steps li.is-active {
  border-color: rgba(0, 150, 255, 0.38);
  background: rgba(0, 150, 255, 0.11);
  color: var(--ink);
}

.workflow-steps li.is-active span,
.workflow-steps li.is-done span {
  background: var(--accent);
  color: #fff;
}

.workflow-steps li.is-running span {
  animation: pulse-ring 2s var(--ease-out) infinite;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.queue-tools input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: rgba(5, 7, 12, 0.72);
  color: var(--ink);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.field input:focus,
.field select:focus,
.queue-tools input:focus {
  border-color: var(--accent);
  background: rgba(5, 7, 12, 0.92);
  box-shadow: var(--shadow-focus);
}

.primary-action {
  min-height: 46px;
  border: 1px solid var(--action);
  background: var(--action);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px var(--blue-glow);
}

.primary-action:hover {
  background: var(--action-hover);
}

.primary-action:disabled {
  opacity: 0.68;
}

.action-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.campaign-summary {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 150, 255, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(0, 150, 255, 0.12), transparent),
    rgba(5, 7, 12, 0.42);
}

.campaign-summary span,
.campaign-summary small,
.section-meta {
  color: var(--subtle);
  font-size: 12px;
}

.campaign-summary span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.campaign-summary strong {
  color: var(--ink);
  font-size: 15px;
}

.run-action {
  min-height: 46px;
  border: 1px solid rgba(0, 150, 255, 0.52);
  background: rgba(0, 150, 255, 0.13);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.run-action:hover:not(:disabled) {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 150, 255, 0.2);
}

.run-action:disabled {
  opacity: 0.42;
}

.run-action.is-loading svg,
.icon-button.is-spinning svg,
.secondary-action.is-loading svg {
  animation: spin 900ms linear infinite;
}

.run-hint {
  margin: -6px 0 0;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.45;
}

.secondary-action {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.inline-error {
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(229, 72, 77, 0.34);
  border-radius: 4px;
  background: rgba(229, 72, 77, 0.1);
  color: #ffb5b8;
  font-size: 13px;
}

.inline-error.visible {
  display: block;
}

.coverage-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  padding: 22px;
}

.coverage-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.status-pill {
  width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(0, 150, 255, 0.24);
  border-radius: 4px;
  background: rgba(0, 150, 255, 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.status-pill[data-status="running"] {
  border-color: rgba(31, 174, 106, 0.34);
  background: rgba(31, 174, 106, 0.12);
  color: #7ee0af;
}

.status-pill[data-status="completed"] {
  border-color: rgba(0, 150, 255, 0.34);
  background: rgba(0, 150, 255, 0.12);
}

.status-pill[data-status="failed"] {
  border-color: rgba(229, 72, 77, 0.34);
  background: rgba(229, 72, 77, 0.12);
  color: #ffb5b8;
}

.coverage-ring {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}

.coverage-ring svg {
  width: min(220px, 100%);
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 22px rgba(0, 150, 255, 0.22));
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 10;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-fill {
  stroke: var(--accent);
  stroke-dasharray: 301.59;
  stroke-dashoffset: 301.59;
  transition: stroke-dashoffset 500ms var(--ease-out);
}

.coverage-ring > div {
  position: absolute;
  display: grid;
  place-items: center;
}

.coverage-ring strong,
.metrics-grid strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.coverage-ring strong {
  font-size: 38px;
}

.coverage-ring span {
  color: var(--subtle);
  font-size: 12px;
}

.metrics-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.metrics-grid article {
  display: grid;
  gap: 6px;
  padding: 16px 14px 0 0;
}

.metrics-grid span {
  color: var(--subtle);
  font-size: 12px;
}

.metrics-grid strong {
  font-size: 24px;
}

.queue-section,
.leads-section {
  margin-top: 18px;
  overflow: hidden;
}

.activity-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.activity-panel {
  min-height: 260px;
  overflow: hidden;
}

.panel-header,
.queue-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 7, 12, 0.24);
}

.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.compact-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.compact-action.is-confirmed {
  border-color: rgba(31, 174, 106, 0.38);
  background: rgba(31, 174, 106, 0.14);
  color: #7ee0af;
}

.log-list {
  display: grid;
  gap: 0;
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.log-list li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.log-list time,
.lead-row small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.log-list li.is-error {
  color: #ffb5b8;
}

.collection-status {
  display: grid;
  gap: 0;
}

.collection-status article {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.collection-status article:last-child {
  border-bottom: 0;
}

.collection-status span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.collection-status strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.lead-list {
  max-height: 320px;
  overflow: auto;
}

.lead-list > p {
  margin: 0;
  padding: 18px;
  color: var(--subtle);
  font-size: 13px;
}

.lead-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.lead-row:hover,
tbody tr:hover {
  background: rgba(0, 150, 255, 0.045);
}

.lead-row strong,
.lead-row span {
  display: block;
}

.lead-row strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.lead-row span {
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.35;
}

.queue-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.section-meta {
  margin: 8px 0 0;
}

.queue-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-tools input {
  width: 240px;
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 54px 20px;
  text-align: center;
}

.empty-state p {
  max-width: 430px;
}

.empty-visual {
  display: grid;
  gap: 8px;
  width: min(320px, 100%);
  margin-bottom: 20px;
}

.empty-visual span {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(0,150,255,0.22), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.empty-visual span:nth-child(2) {
  width: 82%;
}

.empty-visual span:nth-child(3) {
  width: 62%;
}

.table-shell {
  max-height: 520px;
  overflow: auto;
}

.hidden {
  display: none;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #090c12;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td:nth-child(2),
td:nth-child(4),
td:nth-child(5) {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.query-cell {
  max-width: 520px;
  color: var(--subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-status {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(0, 150, 255, 0.22);
  border-radius: 4px;
  background: rgba(0, 150, 255, 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.job-row[data-status="running"] .job-status {
  border-color: rgba(31, 174, 106, 0.34);
  background: rgba(31, 174, 106, 0.12);
  color: #7ee0af;
}

.job-row[data-status="failed"] .job-status {
  border-color: rgba(229, 72, 77, 0.34);
  background: rgba(229, 72, 77, 0.12);
  color: #ffb5b8;
}

.job-row[data-status="completed"] .job-status {
  border-color: rgba(0, 150, 255, 0.28);
  background: rgba(0, 150, 255, 0.1);
}

.lead-title,
.lead-subtitle {
  display: block;
}

.lead-title {
  margin-bottom: 4px;
  font-size: 13px;
}

.lead-subtitle {
  color: var(--subtle);
  font-size: 12px;
}

td a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

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

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 var(--glow);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

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

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .layout-grid,
  .activity-grid,
  .coverage-panel {
    grid-template-columns: 1fr;
  }

  .queue-header,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .queue-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .queue-tools input {
    width: 100%;
  }

  .action-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .workspace {
    padding: 18px 14px;
  }

  .topbar {
    padding: 22px 18px 24px;
  }

  h1 {
    font-size: 34px;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  .nav-item {
    min-height: 40px;
  }

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

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

  .workflow-steps li::after {
    display: none;
  }
}
