:root {
  --black: #050607;
  --dark: #0a0d12;
  --panel: #11171c;
  --lime: #8fe000;
  --lime-bright: #64f500;
  --lime-soft: rgba(143, 224, 0, 0.12);
  --lime-glow: rgba(143, 224, 0, 0.35);
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-muted: #eef2f6;
  --text: #0f1419;
  --text-muted: #5a6578;
  --line: rgba(15, 20, 25, 0.08);
  --line-strong: rgba(15, 20, 25, 0.14);
  --text-on-dark: #f4f6f8;
  --muted-on-dark: rgba(220, 228, 242, 0.68);
  --line-on-dark: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --wrap: min(1180px, calc(100% - 40px));
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 16px 48px rgba(5, 6, 7, 0.08);
  --shadow-lg: 0 24px 64px rgba(5, 6, 7, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--lime); color: var(--black); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
}
.brand-dot {
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: -0.02em;
}
.brand-x {
  color: var(--lime);
  text-shadow: 0 0 20px var(--lime-glow);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 6, 7, 0.88);
  border-bottom: 1px solid var(--line-on-dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled {
  background: rgba(5, 6, 7, 0.97);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-on-dark);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.is-active { color: var(--lime); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--lime);
  color: var(--black);
  box-shadow: 0 4px 20px var(--lime-glow);
}
.btn-primary:hover { box-shadow: 0 8px 28px var(--lime-glow); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--line-on-dark);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 0.88rem; }
.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover { background: var(--panel); }

/* Hero (dark) */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  background: var(--black);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(143, 224, 0, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(143, 224, 0, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero--compact { padding-bottom: 56px; }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime-soft);
  border: 1px solid rgba(143, 224, 0, 0.2);
}
.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.hero-lead {
  margin: 0 auto 32px;
  max-width: 640px;
  font-size: 1.12rem;
  color: var(--muted-on-dark);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.text-lime { color: var(--lime); }

/* Sections */
.section {
  padding: 80px 0;
}
.section--surface {
  background: var(--surface);
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-lead {
  margin: 0 0 40px;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-header {
  margin-bottom: 40px;
}
.section-header--center {
  text-align: center;
}
.section-header--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* App cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.app-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(143, 224, 0, 0.35);
}
.app-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--lime-soft);
  color: #4a6600;
}
.app-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
}
.app-card__logo {
  width: auto;
  max-width: 200px;
  height: 48px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
}
.app-card__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.app-card__desc {
  margin: 0 0 20px;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.app-card__link {
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-card__link::after {
  content: "→";
  color: var(--lime-bright);
  transition: transform 0.2s;
}
.app-card:hover .app-card__link::after { transform: translateX(4px); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--lime-soft);
  color: #4a6600;
}
.feature-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.feature-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Pill list */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

/* CTA band */
.cta-band {
  padding: 64px 0;
  background: var(--dark);
  color: var(--text-on-dark);
  text-align: center;
}
.cta-band .section-title { color: #fff; }
.cta-band .section-lead { color: var(--muted-on-dark); margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { margin-top: 8px; }

/* Support page */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.support-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.support-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--lime-soft);
  color: #4a6600;
}
.support-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}
.support-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.support-card a {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.support-card a:hover { color: #4a6600; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
#pricing {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plan-card.is-featured {
  border-color: rgba(143, 224, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(143, 224, 0, 0.12), var(--shadow-lg);
}
.plan-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--lime-soft);
  color: #4a6600;
  border: 1px solid rgba(143, 224, 0, 0.3);
}
.plan-card__badge--limited {
  background: rgba(5, 6, 7, 0.06);
  color: var(--text);
  border-color: var(--line-strong);
}
.plan-card__title {
  margin: 0 0 6px;
  padding-right: 72px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-card__desc {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
}
.plan-price {
  margin: 0 0 4px;
  line-height: 1.1;
}
.plan-price__amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.plan-price__term {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}
.plan-price__note {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4a6600;
}
.plan-features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.plan-features li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.plan-card__cta {
  width: 100%;
  margin-top: auto;
}
.pricing-footnote {
  margin: 28px auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-footnote a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-footnote a:hover { color: #4a6600; }

/* WHMCS Metrics product page */
.product-hero {
  padding-bottom: 48px;
}
.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-split__copy .hero-lead {
  margin-left: 0;
  text-align: left;
}
.product-split__copy .hero-actions {
  justify-content: flex-start;
}
.product-logo {
  display: block;
  width: auto;
  max-width: min(280px, 100%);
  height: auto;
  margin-bottom: 20px;
}
.dashboard-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dashboard-preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}
.dashboard-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.dashboard-preview__dot:nth-child(1) { background: #ff5f57; }
.dashboard-preview__dot:nth-child(2) { background: #febc2e; }
.dashboard-preview__dot:nth-child(3) { background: #28c840; }
.dashboard-preview__title {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.dashboard-preview__body { padding: 20px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.stat-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.stat-card__value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-card__value.is-lime { color: #4a6600; }
.stat-card__trend {
  font-size: 0.78rem;
  font-weight: 600;
  color: #16a34a;
  margin-top: 4px;
}
.chart-preview {
  height: 100px;
  background: linear-gradient(180deg, var(--lime-soft) 0%, transparent 100%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.chart-preview svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
}

.widget-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.widget-mini {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.78rem;
}
.widget-mini strong {
  display: block;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Dark inset section on light page */
.section-dark-inset {
  margin: 0;
  padding: 64px 0;
  background: var(--dark);
  color: var(--text-on-dark);
}
.section-dark-inset .section-title { color: #fff; }
.section-dark-inset .section-lead { color: var(--muted-on-dark); }
.section-dark-inset .feature-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-on-dark);
}
.section-dark-inset .feature-card__desc { color: var(--muted-on-dark); }
.section-dark-inset .feature-card__title { color: #fff; }
.section-dark-inset .feature-card__icon {
  background: var(--lime-soft);
  color: var(--lime);
}

/* Footer */
.site-footer {
  padding: 64px 0 32px;
  background: var(--black);
  color: var(--muted-on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer-tagline {
  margin: 12px 0 0;
  max-width: 280px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.footer-heading {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.footer-links li + li { margin-top: 8px; }
.footer-links a {
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--lime); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--lime); }
.footer-legal-line { margin: 0; opacity: 0.72; }

/* Page offset for fixed header */
main { min-height: 50vh; }

/* Responsive */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card__title { padding-right: 0; }
  .plan-card__badge { position: static; align-self: flex-start; margin-bottom: 12px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    background: var(--black);
    transform: translateX(100%);
    transition: transform 0.25s;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { padding: 14px 16px; }
  .site-nav .btn { margin-top: 16px; width: 100%; }
  body.nav-open { overflow: hidden; }

  .product-split { grid-template-columns: 1fr; }
  .product-split__copy .hero-lead { margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
