:root {
  --bg: #12061e;
  --bg-alt: #1a0a2e;
  --accent: #8b5cf6;
  --accent-soft: rgba(139,92,246,0.12);
  --accent-2: #f472b6;
  --text: #f8fafc;
  --muted: #9aa4c0;
  --border: rgba(148,163,184,0.25);
  --radius-lg: 1.75rem;
  --radius-md: 1rem;
  --shadow-soft: 0 18px 45px rgba(12,10,24,0.92);
  --shadow-subtle: 0 10px 25px rgba(12,10,24,0.7);
  --max-w: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle at top, #2b0a4f 0, #1a0a2e 45%, #12061e 100%);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.05rem;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
html {
  scroll-behavior: auto;
}
header,
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(26,10,46,0.98) 0%, rgba(18,6,30,0.98) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148,163,184,0.08);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 0.5rem 0.8rem;
  background: #0f172a;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text);
  border-radius: 0.6rem;
  z-index: 200;
}
.skip-link:focus {
  left: 10px;
}
.page :focus-visible,
.nav-links a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid rgba(139,92,246,0.9);
  outline-offset: 3px;
}
.page {
  flex: 1;
  width: 100%;
}

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.2rem;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand-link {
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 20px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), #c084fc, var(--accent));
  padding: 2px;
  box-shadow: var(--shadow-subtle);
}
.brand-mark-inner {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(circle at 15% 0, #1f1140 0, #0a0414 55%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
}
.logo-mark {
  width: 26px;
  height: 26px;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.brand-title {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  row-gap: 0.2rem;
}
.brand-logo {
  height: 92px;
  max-width: 240px;
  width: auto;
  display: block;
}
.brand-name {
  font-size: 1rem;
  letter-spacing: 0.14em;
  line-height: 1.1;
  word-break: break-word;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding-bottom: 0.12rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #a78bfa, #f472b6);
  transition: width 0.22s ease-out;
}
.nav-links .nav-cta {
  margin-left: auto;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(139,92,246,0.6);
  background: rgba(139,92,246,0.15);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
}
.nav-links .nav-cta::after {
  display: none;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(15,23,42,0.6);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* HERO SECTION */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.6rem;
  align-items: center;
  padding: 2rem 1.2rem 0;
  max-width: var(--max-w);
  margin: 0 auto;
  scroll-margin-top: 90px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.65rem 0.32rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: radial-gradient(circle at 0 0, rgba(139,92,246,0.28), rgba(15,23,42,1));
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.pill-tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.45);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e7eb;
}
.hero-title {
  font-size: clamp(2.5rem, 4.7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.hero-title span.accent {
  background: linear-gradient(120deg, #a78bfa, #8b5cf6, #f472b6);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.8rem;
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  font-size: 0.9rem;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.metric-label {
  color: var(--muted);
}
.metric-value {
  font-weight: 600;
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background-image: linear-gradient(135deg, #8b5cf6, #f472b6);
  color: #f9fafb;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  white-space: nowrap;
}
.btn-ghost {
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.78);
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}
.billing-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  color: #f9fafb;
  border-color: rgba(139,92,246,0.55);
  background: rgba(15,23,42,0.9);
  box-shadow: var(--shadow-subtle);
}
.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: -1;
  border-radius: var(--radius-lg);
}
.hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.hero-orbit svg {
  width: 100%;
  height: 100%;
  display: block;
}
.console {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at 0 0, rgba(139,92,246,0.28), rgba(15,23,42,1));
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.2rem;
  overflow: hidden;
  font-size: 0.85rem;
  z-index: 1;
  width: 100%;
}
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.console-dots {
  display: flex;
  gap: 0.32rem;
}
.console-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(148,163,184,0.6);
}
.console-dot:nth-child(1) { background: #f97373; }
.console-dot:nth-child(2) { background: #facc15; }
.console-dot:nth-child(3) { background: #22c55e; }
.console-badge {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.45);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e7eb;
}
.console-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
  font-size: 0.85rem;
}
.code-block {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.9) 60%, rgba(2,6,23,0.9) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31,41,55,0.9);
  padding: 1rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow: hidden;
  position: relative;
}
.code-line {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #e5e7eb;
}
.code-line.muted {
  color: #6b7280;
}
.code-line span.key { color: #22c55e; }
.code-line span.str { color: #38bdf8; }
.code-line span.num { color: #f97316; }
.glow-bar {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(139,92,246,0.22), transparent 70%);
  opacity: 0.75;
  pointer-events: none;
}
.stats-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at 0 0, rgba(244,114,182,0.2), rgba(15,23,42,1));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
}
.stats-label { color: var(--muted); }
.stats-value { font-weight: 600; }

/* Additional small elements inside stats card */
.stats-pill {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(139,92,246,0.16);
  font-size: 0.75rem;
  color: #e9d5ff;
}
.note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* SECTIONS */
.section {
  padding: 4rem 1.2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  scroll-margin-top: 90px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 2rem;
}
.section-kicker {
  font-size: 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 36rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}
.card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.snippet {
  background: rgba(2,6,23,0.75);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  color: #e5e7eb;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card-icon svg {
  width: 42px;
  height: 42px;
  display: block;
}
.card-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 600;
}
.card-body {
  font-size: 0.95rem;
  color: var(--muted);
}
/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2rem;
}
.pricing-card {
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}
.pricing-card.featured {
  border-color: rgba(139,92,246,0.7);
  background: radial-gradient(circle at 0 0, rgba(139,92,246,0.28), rgba(15,23,42,0.95));
}
.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pricing-price {
  font-size: 2rem;
  font-weight: 600;
}
.pricing-price span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}
.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.pricing-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
}

/* ROI */
.roi-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
}
.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1rem;
}
.roi-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.roi-grid input {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(15,23,42,0.9);
  color: var(--text);
}
.roi-results {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.roi-label {
  color: var(--muted);
  font-size: 0.85rem;
}
.roi-value {
  font-size: 1.4rem;
  font-weight: 600;
}
.roi-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.outcomes-cards {
  display: grid;
  gap: 1rem;
}
.outcomes-cards .card {
  padding: 1.25rem;
}
.faq-item {
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.85);
  padding: 1rem 1.5rem;
}
.faq-q {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 1.3rem;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--accent);
}
.faq-item.open .faq-q::after {
  content: '-';
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--muted);
  transition: max-height 0.3s ease;
  padding-top: 0.5rem;
}
.faq-item.open .faq-a {
  max-height: 200px;
}

/* FORM */
.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-label {
  font-size: 0.9rem;
  font-weight: 600;
}
.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  font-size: 0.95rem;
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.form-status {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.form-status.error {
  color: #f87171;
}
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* FOOTER */
.footer {
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(148,163,184,0.25);
  gap: 0.8rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  row-gap: 0.6rem;
}
.footer-links a {
  white-space: normal;
  overflow-wrap: anywhere;
}
.footer-links a:hover {
  color: var(--accent);
}

/* DASHBOARD */
.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.dashboard-main {
  min-width: 0;
}
.dashboard-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.dashboard-body .section {
  max-width: 1500px;
}
.sidebar-group {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-sub {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.1rem 0 0.6rem 0.35rem;
}
.sidebar-sub a {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
}
.sidebar-sub a:hover {
  color: var(--text);
  background: rgba(139,92,246,0.12);
}
.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.sidebar-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.sidebar-link.active,
.sidebar-link:hover {
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.15);
  color: var(--text);
}
.tab-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  display: none;
}
.tab-btn {
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.8);
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}
.tab-btn.active,
.tab-btn:hover {
  color: var(--text);
  border-color: rgba(139,92,246,0.6);
  background: rgba(139,92,246,0.2);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.panel-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}
.panel-card + .panel-card {
  margin-top: 1.5rem;
}
.workflow-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.workflow-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: calc(100vh - 120px);
  overflow-y: auto;
}
.workflow-group {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.4rem;
}
.workflow-sub {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-left: 0.35rem;
}
.workflow-sub a {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
}
.workflow-sub a:hover {
  color: var(--text);
  background: rgba(139,92,246,0.12);
}
.workflow-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  text-decoration: none;
}
.workflow-link:hover,
.workflow-link:focus {
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.15);
  color: var(--text);
}
.workflow-content .workflow-section {
  max-width: 100%;
  margin: 0;
  padding: 2.5rem 0;
}
.workflow-content [id] {
  scroll-margin-top: 110px;
}
.workflow-content .section-header {
  margin-bottom: 1.5rem;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.5rem;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.chart-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
}
.chart-tooltip {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.4);
  border-radius: 0.6rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.has-tooltip {
  position: relative;
}
.metric-card.has-tooltip {
  cursor: help;
}
.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: -10px;
  transform: translateY(-100%);
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.4);
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.78rem;
  width: max-content;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
  white-space: normal;
}
.has-tooltip:hover::after,
.has-tooltip:focus::after {
  opacity: 1;
}
.donut {
  --chart-value: 0%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--chart-value), rgba(148,163,184,0.2) 0);
  display: grid;
  place-items: center;
  margin: 1rem auto 0.75rem;
  position: relative;
  cursor: help;
}
.donut::after {
  content: "";
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #0b0718;
}
.donut span {
  position: absolute;
  font-weight: 600;
}
.donut.multi {
  --mix-1: 0%;
  --mix-2: 0%;
  --mix-3: 100%;
  background: conic-gradient(
    #8b5cf6 0 var(--mix-1),
    #22d3ee var(--mix-1) calc(var(--mix-1) + var(--mix-2)),
    #f59e0b calc(var(--mix-1) + var(--mix-2)) 100%
  );
}
.mix-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}
.mix-legend div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.mix-legend strong {
  color: var(--text);
  font-weight: 600;
}
.truncate {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swatch-1 { background: #8b5cf6; }
.swatch-2 { background: #22d3ee; }
.swatch-3 { background: #f59e0b; }
.chart-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.chart-meta strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid rgba(148,163,184,0.2);
}
.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(139,92,246,0.18);
  color: var(--text);
  font-size: 0.75rem;
}
.table-wrap {
  overflow-x: auto;
}
.status-grid {
  align-items: stretch;
}
.status-grid .panel-card {
  min-height: 130px;
  height: 100%;
}
.install-details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 1rem;
}
.focus-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.focus-list strong {
  color: var(--text);
}

.table {
  width: 100%;
}

/* SUPPORT BOT */
.support-widget {
  position: fixed !important;
  right: calc(1rem + env(safe-area-inset-right)) !important;
  bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  transform: none !important;
  animation: none !important;
}
.support-widget:hover {
  transform: none !important;
}
.support-toggle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #f472b6);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  animation: supportPulse 2.6s ease-in-out infinite;
  position: relative;
}
.support-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}
.support-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #22c55e;
  color: #081018;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(34,197,94,0.4);
}
.support-panel {
  width: min(320px, calc(100vw - 2rem));
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.support-widget.open .support-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.support-header {
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(148,163,184,0.2);
}
.support-header h4 {
  font-size: 0.95rem;
}
.support-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.support-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.9rem;
}
.support-actions {
  padding: 0 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.support-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.12);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
}
.support-call:hover {
  background: rgba(139,92,246,0.2);
}
.support-msg {
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(148,163,184,0.1);
  color: var(--text);
}
.support-msg.bot {
  border: 1px solid rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.08);
}
.support-msg.user {
  align-self: flex-end;
  background: rgba(139,92,246,0.2);
}
.support-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem 1rem;
  border-top: 1px solid rgba(148,163,184,0.2);
}
.support-input input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.85);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}
.support-input button {
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #f472b6);
  color: #fff;
  border-radius: 999px;
  padding: 0 1rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Consent banner */
.consent-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  display: flex;
  justify-content: center;
}
.consent-card {
  width: min(620px, 100%);
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}
.consent-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.consent-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.consent-btn {
  border-radius: 999px;
  padding: 0.6rem 1rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.consent-btn.primary {
  background: linear-gradient(135deg, #8b5cf6, #f472b6);
  color: #fff;
}
.consent-btn.ghost {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--muted);
}

/* Preferences */
.pref-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(148,163,184,0.2);
}
.pref-row:last-child {
  border-bottom: none;
}
.pref-label {
  font-weight: 600;
}
.pref-note {
  font-size: 0.85rem;
  color: var(--muted);
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.toggle input {
  width: 42px;
  height: 24px;
}


@keyframes supportPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139,92,246,0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(139,92,246,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139,92,246,0);
  }
}
@keyframes supportFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: 2;
    margin-top: 2rem;
    min-height: 360px;
  }
  .hero > div:first-child {
    order: 1;
  }
}
@media (max-width: 960px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .brand {
    width: 100%;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .hero-visual {
    margin-top: 2rem;
    min-height: 360px;
    justify-content: center;
    align-items: center;
  }
  .console {
    max-width: 560px;
    margin: 0 auto;
  }
  .console-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .nav,
  .navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
  }
  .brand {
    align-self: center;
  }
  .nav-toggle {
    display: inline-flex;
    align-self: center;
    justify-self: end;
    grid-column: 3;
    margin-top: 0;
  }
  .nav-links {
    width: 100%;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.45s ease, opacity 0.3s ease, transform 0.3s ease;
    grid-column: 1 / -1;
  }
  .nav.open .nav-links,
  .navbar.open .nav-links {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding-top: 0.75rem;
  }
  .nav-links a {
    width: 100%;
  }
  .nav-links .nav-cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .navbar .nav-links a {
    margin-left: 0;
  }
  .dashboard-sidebar {
    display: none;
  }
  .tab-row {
    display: flex;
  }
  .workflow-shell {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.2rem;
  }
  .workflow-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    height: auto;
    align-items: start;
    grid-auto-flow: row;
    width: 100%;
  }
  .workflow-group,
  .workflow-sub {
    display: none;
  }
  .workflow-link {
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    text-align: center;
  }
}
@media (max-width: 720px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.6rem;
  }
  .nav-links a {
    display: inline-flex;
    width: 100%;
  }
  .brand-title {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
  .brand-sub {
    font-size: 0.74rem;
  }
  .hero-metrics {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hero-visual {
    min-height: 320px;
  }
  .hero-orbit {
    opacity: 0.65;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions a,
  .hero-actions button {
    width: 100%;
    justify-content: center;
  }
  .pricing-grid,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .table {
    display: block;
    overflow-x: auto;
  }
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
  }
  .tab-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
  .console {
    padding: 0.95rem;
  }
  .console-body {
    gap: 0.75rem;
  }
  .code-block,
  .stats-card {
    padding: 0.85rem;
  }
}
@media (max-width: 900px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
  .outcomes-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  header {
    padding: 0 1rem;
  }
  body {
    font-size: 1rem;
  }
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }
  .brand {
    gap: 0.6rem;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .brand-logo {
    height: 72px;
  }
  .brand-name {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .hero {
    padding: 1.5rem 1rem 0;
  }
  .hero-visual {
    min-height: 300px;
  }
  .console {
    padding: 0.85rem;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .support-widget {
    right: calc(0.8rem + env(safe-area-inset-right));
    bottom: calc(0.8rem + env(safe-area-inset-bottom));
  }
  .workflow-nav {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1100px) {
  .chart-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


