/* ==========================================================
   Nelcbyte Technologies — NelcPanel Website
   Pure CSS design system · no frameworks · dark theme
   Brand palette mirrors the NelcPanel control panel
   ========================================================== */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --primary-light: #14233b;
  --primary-dark: #0d47a1;
  --grad-primary: linear-gradient(135deg, #1a73e8, #6366f1);

  --bg-body: #0f1419;
  --bg-card: #1a2332;
  --bg-card-alt: #1e2a3d;
  --bg-header: #0d1117;
  --bg-input: #1a2332;
  --bg-overlay: rgba(6, 10, 18, 0.72);

  --text-primary: #e6edf6;
  --text-secondary: #aeb9c8;
  --text-muted: #7d8a9c;
  --text-inverse: #ffffff;
  --text-link: #4c8dff;

  --border: #2a3850;
  --border-light: #223046;

  --success: #38a169;
  --warning: #d69e2e;
  --danger: #e53e3e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.55);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Roboto Mono", ui-monospace, monospace;

  --nav-h: 72px;
  --container: 1180px;
  --transition: 0.22s ease;
  --transition-slow: 0.4s cubic-bezier(0.22, 1, 0.36, 1);

  --grid-glow-1: rgba(26, 115, 232, 0.22);
  --grid-glow-2: rgba(99, 102, 241, 0.22);

  --hero-glow-1: rgba(26, 115, 232, 0.3);
  --hero-glow-2: rgba(99, 102, 241, 0.3);
  --hero-glow-3: rgba(56, 161, 105, 0.16);
  --aurora-1: rgba(26, 115, 232, 0.65);
  --aurora-2: rgba(124, 92, 240, 0.6);
  --aurora-3: rgba(56, 161, 105, 0.45);
  --orb-c1: rgba(26, 115, 232, 0.55);
  --orb-c2: rgba(99, 102, 241, 0.5);
  --orb-c3: rgba(56, 161, 105, 0.4);
  --orb-c4: rgba(232, 104, 26, 0.32);
  --orb-c5: rgba(232, 94, 180, 0.3);
  --particle-c: rgba(122, 170, 255, 0.7);
  --noise-o: 0.05;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  transition:
    background var(--transition),
    color var(--transition);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-hover);
}
ul,
ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #33455f;
  border-radius: 6px;
  border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
  background: #41587a;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 880px;
}

.section {
  padding: 96px 0;
}
.section--alt {
  background: var(--bg-card);
}
.section--soft {
  background: var(--bg-card-alt);
}
.section--dark {
  background: var(--bg-header);
  color: var(--text-inverse);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin: 16px 0 14px;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 1.075rem;
}
.section--dark .section-head p {
  color: #b6c2d4;
}

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fb0ff;
  background: var(--primary-light);
  border: 1px solid rgba(26, 115, 232, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge--primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge--green {
  background: rgba(56, 161, 105, 0.14);
  color: var(--success);
}
.badge--orange {
  background: rgba(214, 158, 46, 0.16);
  color: var(--warning);
}
.badge--red {
  background: rgba(229, 62, 62, 0.14);
  color: var(--danger);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
  white-space: nowrap;
}
.btn .fa,
.btn .fab,
.btn .fas,
.btn .far {
  font-size: 0.9em;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.35);
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(26, 115, 232, 0.4);
}

.btn--gradient {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(67, 92, 245, 0.4);
}
.btn--gradient:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(67, 92, 245, 0.5);
}

.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--primary);
  color: #7fb0ff;
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}
.btn--sm {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: 8px;
}
.btn--block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
}
.site-header.is-scrolled {
  background: var(--bg-header);
  box-shadow: 0 4px 24px rgba(10, 20, 40, 0.22);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled {
  --nav-link-c: #c7d2e0;
}
.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .nav-toggle {
  color: #c7d2e0;
}
.site-header.is-scrolled .nav-link:hover {
  color: #fff;
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}
.site-header.is-scrolled .nav-brand {
  color: #fff;
}
.nav-logo {
  width: 40px;
  height: 40px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
  flex-shrink: 0;
}
.nav-brand:hover {
  color: inherit;
}
.nav-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand-name strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.nav-brand-name span {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-header.is-scrolled .nav-brand-name span {
  color: #7d8a9c;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}
.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-link.is-active {
  color: var(--primary);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  font-size: 1.35rem;
  color: var(--text-primary);
}

/* Mobile menu */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-header);
    padding: 16px;
    gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links .nav-link {
    color: #d3ddec;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 1rem;
  }
  .nav-links .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
  }
  .nav-links .nav-link.is-active {
    color: #fff;
    background: var(--primary);
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn span {
    display: none;
  }
  .nav-actions .btn {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 56px 0;
  }
  .section-head h2 {
    font-size: 2rem;
  }
  .hero-copy h1 {
    font-size: 2.8rem;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }
  .hero-ctas .btn--lg {
    width: 100%;
  }
  .trust-strip .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .code-block pre {
    overflow-x: auto;
  }
  .mini-table {
    overflow-x: auto;
  }

  .teaser-grid {
    gap: 16px;
  }
}

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 88px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      1200px 720px at 50% -18%,
      var(--hero-glow-2),
      transparent 62%
    ),
    radial-gradient(
      1000px 600px at 92% 24%,
      var(--hero-glow-1),
      transparent 55%
    ),
    radial-gradient(
      760px 460px at -6% 112%,
      var(--hero-glow-3),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg-card-alt) 0%, var(--bg-body) 100%);
}

/* Slow-rotating aurora sweep behind everything */
.hero-aurora {
  position: absolute;
  inset: -40% -30% -30% -30%;
  z-index: -3;
  background: conic-gradient(
    from 0deg at 50% 42%,
    transparent 0deg,
    var(--aurora-1) 60deg,
    transparent 120deg,
    var(--aurora-2) 200deg,
    transparent 260deg,
    var(--aurora-3) 320deg,
    transparent 360deg
  );
  filter: blur(95px) saturate(1.35);
  opacity: 0.55;
  animation: aurora-spin 38s linear infinite;
  will-change: transform;
}
@keyframes aurora-spin {
  to {
    transform: rotate(1turn);
  }
}

/* Drifting blurred orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  animation: orb-drift 16s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-orbs .orb--1 {
  width: 560px;
  height: 560px;
  top: -170px;
  right: -80px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--orb-c1),
    transparent 68%
  );
}
.hero-orbs .orb--2 {
  width: 480px;
  height: 480px;
  bottom: -150px;
  left: 2%;
  background: radial-gradient(
    circle at 70% 62%,
    var(--orb-c2),
    transparent 70%
  );
  animation-delay: -5s;
  animation-duration: 21s;
}
.hero-orbs .orb--3 {
  width: 380px;
  height: 380px;
  top: 10%;
  left: 40%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--orb-c3),
    transparent 70%
  );
  animation-delay: -9s;
  animation-duration: 18s;
}
.hero-orbs .orb--4 {
  width: 320px;
  height: 320px;
  top: -50px;
  left: -70px;
  background: radial-gradient(
    circle at 50% 50%,
    var(--orb-c4),
    transparent 70%
  );
  animation-delay: -3s;
  animation-duration: 23s;
}
.hero-orbs .orb--5 {
  width: 360px;
  height: 360px;
  bottom: 5%;
  right: 22%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--orb-c5),
    transparent 70%
  );
  animation-delay: -11s;
  animation-duration: 26s;
}
@keyframes orb-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(44px, -30px, 0) scale(1.16);
  }
}

/* Twinkling particles rising through the hero */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-particles span {
  position: absolute;
  top: var(--py, 60%);
  left: var(--px, 50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--particle-c);
  box-shadow: 0 0 9px 1px var(--particle-c);
  opacity: 0;
  animation: particle-rise var(--pd, 15s) linear infinite;
  animation-delay: var(--pdelay, 0s);
}
.hero-particles span:nth-child(odd) {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 7px 1px var(--particle-c);
}
@keyframes particle-rise {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.45;
  }
  100% {
    transform: translate3d(var(--tx, 0px), -115vh, 0);
    opacity: 0;
  }
}

/* Film-grain texture for a premium finish */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--noise-o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Soft top glow line that fades in from the sides */
.hero-glowline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: -1;
  background: linear-gradient(
    90deg,
    transparent,
    var(--hero-glow-2),
    transparent
  );
  opacity: 0.8;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-aurora,
  .hero-orbs .orb,
  .hero-particles span {
    animation: none;
  }
  .hero-particles span {
    opacity: 0;
  }
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-copy h1 .grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lead {
  font-size: 1.16rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.86rem;
  flex-wrap: wrap;
}
.hero-trust .avatar-stack {
  display: flex;
}
.hero-trust .avatar-stack span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-card-alt);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-left: -8px;
}
.hero-trust .avatar-stack span:first-child {
  margin-left: 0;
}
.hero-trust .avatar-stack span:nth-child(2) {
  background: #7c5cf0;
}
.hero-trust .avatar-stack span:nth-child(3) {
  background: #0f8f6f;
}
.hero-trust .avatar-stack span:nth-child(4) {
  background: #e8681a;
}

/* ---------- Dashboard mockup ---------- */
.mockup {
  position: relative;
  perspective: 1400px;
}
.mockup-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform var(--transition-slow);
  max-width: 620px;
  width: 100%;
}
.mockup-window:hover {
  transform: rotateY(0deg) rotateX(0deg);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
}
.mockup-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mockup-bar .dot:nth-child(1) {
  background: #ff5f57;
}
.mockup-bar .dot:nth-child(2) {
  background: #febc2e;
}
.mockup-bar .dot:nth-child(3) {
  background: #28c840;
}
.mockup-url {
  margin-left: 10px;
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-body {
  display: grid;
  grid-template-columns: 84px 1fr;
  min-height: 300px;
}
.mockup-side {
  background: var(--bg-header);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-side .m-item {
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
}
.mockup-side .m-item.is-active {
  background: var(--primary);
}
.mockup-main {
  padding: 20px;
}
.mockup-main .m-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.mockup-card {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
  border-radius: 10px;
  padding: 14px;
}
.mockup-card .m-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.mockup-card .m-num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mockup-card .m-num small {
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 700;
  margin-left: 4px;
}
.m-bar {
  height: 7px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.m-bar > i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--grad-primary);
}
.mockup-chart {
  margin-top: 4px;
}
.mockup-chart .bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin-top: 10px;
}
.mockup-chart .bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--primary-light);
}
.mockup-chart .bars i:nth-child(1) {
  height: 45%;
}
.mockup-chart .bars i:nth-child(2) {
  height: 68%;
}
.mockup-chart .bars i:nth-child(3) {
  height: 52%;
}
.mockup-chart .bars i:nth-child(4) {
  height: 84%;
  background: var(--primary);
}
.mockup-chart .bars i:nth-child(5) {
  height: 62%;
}
.mockup-chart .bars i:nth-child(6) {
  height: 92%;
  background: var(--primary);
}
.mockup-chart .bars i:nth-child(7) {
  height: 70%;
}
.mockup-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 5s ease-in-out infinite;
}
.mockup-float .fa,
.mockup-float .fas {
  font-size: 1.3rem;
  color: var(--primary);
}
.mockup-float b {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}
.mockup-float small {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.mockup-float--ssl {
  top: -18px;
  right: 22px;
}
.mockup-float--mail {
  bottom: 34px;
  left: -34px;
  animation-delay: 1.6s;
}
.mockup-float--lock {
  top: 34%;
  right: -28px;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Trust / stack strip ---------- */
.trust-strip {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.trust-strip .tt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}
.trust-strip .tt .fa,
.trust-strip .tt .fab,
.trust-strip .tt .fas {
  color: var(--primary);
  font-size: 1.25rem;
}
.trust-strip .tt i {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 115, 232, 0.35);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 20px;
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 115, 232, 0.4);
}
.feature-card h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}
.feature-card ul {
  margin-top: 14px;
}
.feature-card ul li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.feature-card ul li .fa-check {
  color: var(--success);
  margin-top: 3px;
  font-size: 0.82rem;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split-media {
  order: 2;
}
.split-media,
.split-copy {
  min-width: 0;
}
.split-copy .eyebrow {
  margin-bottom: 18px;
}
.split-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.split-copy > p {
  color: var(--text-secondary);
  margin-bottom: 26px;
}
.check-list {
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.check-list .fa-check-circle,
.check-list .fa-check {
  color: var(--primary);
  font-size: 1.15rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.check-list b {
  display: block;
  font-size: 0.98rem;
}
.check-list span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.split-cta {
  margin-top: 28px;
}

/* Media: stylised browser/panel mock */
.media-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  overflow-x: auto;
  max-width: 100%;
}
.media-frame .m-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.media-frame .m-title .fa,
.media-frame .m-title .fas {
  color: var(--primary);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.pill .fa,
.pill .fab,
.pill .fas {
  color: var(--primary);
}
.pill.is-on {
  background: var(--primary-light);
  border-color: rgba(26, 115, 232, 0.4);
  color: var(--primary);
}
.pill.is-on .fa,
.pill.is-on .fab {
  color: var(--primary);
}

.mini-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mini-table .mt-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  align-items: center;
  font-size: 0.86rem;
}
.mini-table .mt-row:last-child {
  border-bottom: none;
}
.mini-table .mt-row.head {
  background: var(--bg-card-alt);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mini-table .st {
  color: var(--success);
  font-weight: 600;
}
.mini-table .st--warn {
  color: var(--warning);
}

/* ---------- Stats counters ---------- */
.stats-band {
  background: var(--grad-primary);
  color: #fff;
  padding: 58px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 260px at 85% 120%,
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat {
  text-align: center;
}
.stat .fa,
.stat .fas {
  font-size: 1.6rem;
  opacity: 0.9;
  margin-bottom: 12px;
}
.stat .num {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .num .suffix {
  font-size: 0.6em;
}
.stat .lbl {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.88;
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.testi-card .stars {
  color: #f6b01e;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testi-card p.quote {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}
.testi-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.testi-card .who .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.testi-card .who b {
  display: block;
  font-size: 0.92rem;
}
.testi-card .who small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- Pricing teaser ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.price-card h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.price-card .tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.price-card .amt {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.price-card .amt small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.price-card ul {
  margin: 18px 0 22px;
}
.price-card ul li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  gap: 9px;
}
.price-card ul li .fa-check {
  color: var(--success);
  margin-top: 3px;
  font-size: 0.8rem;
}
.price-card .btn {
  margin-top: auto;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-band p {
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 30px;
}
.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.cta-band::before {
  width: 220px;
  height: 220px;
  top: -110px;
  right: -60px;
}
.cta-band::after {
  width: 160px;
  height: 160px;
  bottom: -90px;
  left: -40px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-header);
  color: #b7c3d3;
  padding: 70px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #fff;
}
.footer-brand .nav-logo {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}
.footer-brand b {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #b7c3d3;
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: #fff;
}
.footer-col p {
  font-size: 0.9rem;
  color: #93a1b5;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #b7c3d3;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #8594a9;
}
.footer-bottom a {
  color: #aeb9cb;
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-bottom .mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background:
    radial-gradient(700px 340px at 90% 0%, var(--grid-glow-2), transparent 60%),
    radial-gradient(600px 320px at 4% 10%, var(--grid-glow-1), transparent 55%),
    linear-gradient(180deg, var(--bg-card-alt), var(--bg-body));
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
}
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.crumbs a {
  color: var(--text-muted);
}
.crumbs a:hover {
  color: var(--primary);
}
.crumbs .fa-chevron-right {
  font-size: 0.6rem;
}

/* ---------- Pricing page ---------- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}
.billing-toggle span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.billing-toggle span.is-active {
  color: var(--primary);
}
.switch {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background var(--transition);
  border: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.switch.is-on {
  background: var(--primary);
}
.switch.is-on::after {
  transform: translateX(24px);
}
.switch + .save-note {
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 700;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.plan-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(26, 115, 232, 0.22);
}
.plan-card.is-featured::before {
  content: "Most popular";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-card .p-name {
  font-size: 1.15rem;
  font-weight: 800;
}
.plan-card .p-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 6px 0 22px;
  min-height: 2.6em;
}
.plan-card .p-price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-card .p-price small {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.plan-card .p-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 6px 0 4px;
}
.plan-card .p-ann {
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 600;
  min-height: 1.2em;
}
.plan-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.plan-card ul.p-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.89rem;
  color: var(--text-secondary);
  padding: 5.5px 0;
}
.plan-card ul.p-features .fa-check {
  color: var(--success);
  margin-top: 4px;
  font-size: 0.8rem;
}
.plan-card ul.p-features .fa-times {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.8rem;
}
.plan-card .btn {
  margin-top: 24px;
}

.compare-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 34px;
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--bg-card-alt);
  font-size: 0.85rem;
}
.compare-table thead th:first-child {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.compare-table thead th .pp {
  font-size: 1.15rem;
  font-weight: 800;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table td:first-child {
  color: var(--text-secondary);
  font-weight: 600;
}
.compare-table td .fa-check {
  color: var(--success);
}
.compare-table td .fa-times {
  color: var(--text-muted);
}
.compare-table .t-center {
  text-align: center;
}
.compare-table .col-featured {
  background: rgba(26, 115, 232, 0.14);
}

/* FAQ */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
}
.faq-q .fa-chevron-down {
  color: var(--text-muted);
  transition: transform var(--transition);
  font-size: 0.85rem;
}
.faq-item.is-open .fa-chevron-down {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Docs page ---------- */
.docs-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 56px 0 90px;
  align-items: start;
}
.docs-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.docs-search {
  position: relative;
  margin-bottom: 18px;
}
.docs-search .fa-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.docs-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  color: var(--text-primary);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.docs-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.docs-side .ds-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 16px 0 8px;
}
.docs-side nav ul li {
  margin-bottom: 2px;
}
.docs-side nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}
.docs-side nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.docs-side nav a.is-active {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.docs-main {
  min-width: 0;
}
.doc-section {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 34px;
}
.doc-card > h2:first-child {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.doc-card > .lead {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1rem;
}
.doc-card h3 {
  font-size: 1.22rem;
  margin: 30px 0 12px;
  letter-spacing: -0.01em;
}
.doc-card h4 {
  font-size: 1.02rem;
  margin: 24px 0 10px;
}
.doc-card p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.doc-card p strong {
  color: var(--text-primary);
}
.doc-card ul,
.doc-card ol {
  margin: 0 0 18px;
  padding-left: 4px;
}
.doc-card ul li,
.doc-card ol li {
  color: var(--text-secondary);
  padding: 4px 0 4px 24px;
  position: relative;
}
.doc-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.78rem;
  top: 8px;
}
.doc-card ol {
  counter-reset: step;
}
.doc-card ol li {
  counter-increment: step;
}
.doc-card ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  top: 7px;
}

.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid;
  font-size: 0.92rem;
}
.callout .fa,
.callout .fas,
.callout .fab {
  font-size: 1.1rem;
  margin-top: 2px;
}
.callout--info {
  background: var(--primary-light);
  border-color: rgba(26, 115, 232, 0.25);
  color: var(--text-secondary);
}
.callout--info .fa {
  color: var(--primary);
}
.callout--warn {
  background: rgba(214, 158, 46, 0.12);
  border-color: rgba(214, 158, 46, 0.3);
  color: var(--text-secondary);
}
.callout--warn .fa {
  color: var(--warning);
}
.callout--good {
  background: rgba(56, 161, 105, 0.1);
  border-color: rgba(56, 161, 105, 0.28);
  color: var(--text-secondary);
}
.callout--good .fa {
  color: var(--success);
}

.code-block {
  position: relative;
  margin: 18px 0;
  border-radius: var(--radius);
  overflow-x: auto;
  max-width: 100%;
  background: #101a28;
  border: 1px solid #223049;
}
.code-block .cb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-block .cb-lang {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7d8a9c;
  font-weight: 700;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #aeb9cb;
  background: rgba(255, 255, 255, 0.07);
  padding: 5px 12px;
  border-radius: 7px;
  transition: all var(--transition);
}
.copy-btn:hover {
  background: var(--primary);
  color: #fff;
}
.copy-btn.is-copied {
  background: var(--success);
  color: #fff;
}
.code-block pre {
  overflow-x: auto;
  padding: 18px 20px;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #d5e0f0;
  line-height: 1.7;
  white-space: pre;
}
.code-block code .c-com {
  color: #6b7a90;
}
.code-block code .c-kw {
  color: #82aaff;
}
.code-block code .c-str {
  color: #c3e88d;
}
.code-block code .c-var {
  color: #f78c6c;
}

.kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 8px;
}

.docs-toc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card-alt);
  padding: 18px 22px;
  margin: 22px 0;
}
.docs-toc-card b {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.docs-toc-card a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
}

.endpoint {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 16px 0;
  overflow: hidden;
}
.endpoint-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--bg-card-alt);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.http-method {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  flex-shrink: 0;
}
.http-method--post {
  background: var(--success);
}
.http-method--get {
  background: var(--primary);
}
.http-method--delete {
  background: var(--danger);
}
.endpoint-head code {
  color: var(--text-primary);
  word-break: break-all;
}
.endpoint-body {
  padding: 16px 18px;
  overflow-x: auto;
}
.endpoint-body p {
  margin-bottom: 10px;
}
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.86rem;
  min-width: 520px;
}
.param-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.param-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.param-table td code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 1px 6px;
  border-radius: 4px;
}
.param-table .req {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.7rem;
}

.docs-prevnext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}
.docs-prevnext a {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--bg-card);
  transition: all var(--transition);
}
.docs-prevnext a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.docs-prevnext .pn-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.docs-prevnext .pn-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.docs-prevnext a:last-child {
  text-align: right;
}

/* ---------- About page ---------- */
.about-hero {
  text-align: center;
}
.about-hero .about-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 22px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(26, 115, 232, 0.4);
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.value-card .fa,
.value-card .fas {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.value-card h3 {
  margin-bottom: 10px;
}
.value-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding: 0 0 34px 62px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 0 5px var(--primary-light);
}
.tl-item .tl-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tl-item h3 {
  margin: 4px 0 6px;
}
.tl-item p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}
.stack-badges .pill {
  font-size: 0.9rem;
  padding: 10px 18px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.info-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.info-card .ic {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.info-card b {
  display: block;
  margin-bottom: 3px;
}
.info-card p,
.info-card a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.info-card a:hover {
  color: var(--primary);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.form-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .f-group--full {
  grid-column: 1 / -1;
}
.f-group {
  margin-bottom: 18px;
}
.f-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.f-group label .req {
  color: var(--danger);
}
.f-group input,
.f-group textarea,
.f-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--text-primary);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.f-group textarea {
  resize: vertical;
  min-height: 140px;
}
.f-group input:focus,
.f-group textarea:focus,
.f-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.f-group.has-error input,
.f-group.has-error textarea,
.f-group.has-error select {
  border-color: var(--danger);
}
.f-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.f-error {
  display: none;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 6px;
}
.f-group.has-error .f-error {
  display: block;
}
.f-success {
  display: none;
  background: rgba(56, 161, 105, 0.12);
  border: 1px solid rgba(56, 161, 105, 0.4);
  color: var(--success);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.f-success.is-visible {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .mockup-float {
    animation: none;
  }
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(26, 115, 232, 0.45);
  display: grid;
  place-items: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.scroll-top:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* ---------- Login page ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 56px) 24px 60px;
}
.login-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}
.login-card .big {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.login-card h1 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.login-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

/* ---------- Legal & changelog pages ---------- */
.legal-card h2 {
  font-size: 1.45rem;
  margin: 36px 0 12px;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card h3 {
  font-size: 1.12rem;
  margin: 26px 0 10px;
}
.legal-card p {
  margin-bottom: 14px;
}
.legal-card ul,
.legal-card ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-card li {
  padding: 3px 0;
}
.legal-card a {
  text-decoration: underline;
}

.release + .release {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding-top: 30px;
}
.release .rel-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.release .rel-ver {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.release .rel-date {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.release .rel-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.release .rel-tag--stable {
  background: rgba(56, 161, 105, 0.14);
  color: var(--success);
}
.release .rel-tag--beta {
  background: rgba(214, 158, 46, 0.16);
  color: var(--warning);
}
.release ul {
  list-style: none;
  padding: 0;
  margin-bottom: 4px;
}
.release ul li {
  position: relative;
  padding: 4px 0 4px 26px;
  color: var(--text-secondary);
}
.release ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
  top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas,
  .hero-trust {
    justify-content: center;
  }
  .mockup {
    max-width: 620px;
    margin: 0 auto;
  }
  .mockup-window {
    overflow: hidden;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .split--reverse .split-media {
    order: 0;
  }
  .docs-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .docs-side {
    position: static;
  }
  .docs-side nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .docs-side .ds-label {
    width: 100%;
  }
  .docs-side nav a {
    border-left: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .teaser-grid,
  .plans-grid,
  .stats-grid,
  .testi-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 48px 26px;
  }
  .doc-card {
    padding: 28px 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .compare-table {
    min-width: 640px;
  }
  .mockup-window {
    overflow: hidden;
  }
  .media-frame,
  .mini-table {
    overflow-x: auto;
  }
  .hero-orbs,
  .hero-particles {
    display: none;
  }
  .section {
    padding: 56px 0;
  }
  /* Billing API v1 section — let the code block own the horizontal scroll on tablet */
  #api .media-frame {
    max-width: 100%;
    overflow-x: visible;
  }
  #api .code-block {
    max-width: 100%;
    overflow-x: auto;
  }
  #api .code-block code {
    font-size: 0.78rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 48px 0;
  }
  .section-head h2 {
    font-size: 1.8rem;
  }
  .hero-copy h1 {
    font-size: 2.4rem;
  }
  .hero-copy p.lead {
    font-size: 1rem;
  }
  .hero-trust span {
    font-size: 0.8rem;
  }
  .trust-strip .container {
    padding: 12px 0;
  }
  .trust-strip .tt {
    font-size: 0.85rem;
  }
  .feature-card {
    padding: 24px 20px;
  }
  .split-copy h2 {
    font-size: 1.8rem;
  }
  .check-list b {
    font-size: 0.9rem;
  }
  .check-list span {
    font-size: 0.85rem;
  }
  .stats-band {
    padding: 40px 0;
  }
  .stat .num {
    font-size: 2.2rem;
  }
  .stat .lbl {
    font-size: 0.8rem;
  }
  .stack-badges .pill {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  .testi-card {
    padding: 22px;
  }
  .testi-card p.quote {
    font-size: 0.9rem;
  }
  .price-card {
    padding: 24px 20px;
  }
  .price-card .amt {
    font-size: 1.6rem;
  }
  .cta-band {
    padding: 40px 20px;
  }
  .cta-band h2 {
    font-size: 2rem;
  }
  .cta-band p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .split-media,
  .split-copy {
    width: 100% !important;
  }
}
