:root {
  --bg: #05070d;
  --bg-2: #0a0e17;
  --panel: #10141f;
  --panel-solid: #10141f;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(103, 232, 249, 0.38);
  --text: #dbe4f0;
  --muted: rgba(203, 213, 225, 0.68);
  --cyan: #67e8f9;
  --blue: #60a5fa;
  --blue-2: #3b82f6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --heading: #ffffff;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body.theme-tech {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--heading);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #22d3ee; text-decoration: underline; }

.tech-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.tech-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(34, 211, 238, 0.10), transparent 55%),
    radial-gradient(800px 480px at 95% 15%, rgba(99, 102, 241, 0.09), transparent 50%),
    radial-gradient(700px 420px at 50% 100%, rgba(14, 165, 233, 0.06), transparent 55%),
    var(--bg);
  pointer-events: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(5, 8, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--heading);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--heading); }
.brand-wordmark {
  display: block;
  height: 28px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}
.site-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.site-nav {
  display: flex;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.site-nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--heading);
  background: rgba(56, 189, 248, 0.1);
  text-decoration: none;
}
.header-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Home hero: navbar starts transparent (blending into the hero) then
   becomes a blurred glass bar on scroll, same as every other page. */
body.page-home-dark .site-header {
  background: #05070d;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
body.page-home-dark .site-header.is-scrolled {
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-main { padding: 2.25rem 0 4rem; }
.site-main-home { padding: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.92rem;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #04101a;
  box-shadow: 0 0 0 1px rgba(14, 116, 144, 0.20), 0 10px 24px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover { color: #04101a; filter: brightness(1.06); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.1);
}
.btn-danger { background: #dc2626; color: #fff; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2.75rem 0 1.4rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.footer-brand {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.footer-brand .footer-wordmark {
  display: block;
  height: 24px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 0;
  filter: brightness(0) invert(1);
}
.footer-brand img:not(.footer-wordmark) {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
}
.footer-brand strong { display: block; color: var(--heading); }
.footer-brand p { margin: 0; font-size: 0.85rem; }
.footer-col { display: grid; gap: 0.4rem; align-content: start; }
.footer-col h4 {
  margin: 0 0 0.3rem;
  color: var(--heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--heading); }
.footer-legal-note {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.06);
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.78rem;
  line-height: 1.55;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.6);
}

/* —— Home hero 2.0 (dark, animated) —— */
.hero2 {
  position: relative;
  overflow: hidden;
  background: #05070d;
  color: #e5edf7;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}
.hero2-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero2-mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.hero2-mesh-a {
  width: 640px;
  height: 640px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 65%);
  animation: meshFloatA 16s ease-in-out infinite alternate;
}
.hero2-mesh-b {
  width: 560px;
  height: 560px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.38), transparent 65%);
  animation: meshFloatB 20s ease-in-out infinite alternate;
}
@keyframes meshFloatA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 8%) scale(1.12); }
}
@keyframes meshFloatB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(5%, -6%) scale(1.08); }
}
.hero2-dots {
  position: absolute;
  inset: -2px;
  background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 75% 60% at 55% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 55% 35%, #000 30%, transparent 78%);
  animation: dotsPan 34s linear infinite;
  will-change: background-position;
}
@keyframes dotsPan {
  from { background-position: 0 0; }
  to { background-position: 130px 90px; }
}
.hero2-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}
.net-line {
  stroke-dasharray: 6 10;
  opacity: 0.7;
  animation: netDash 9s linear infinite;
}
.net-line-d1 { animation-delay: -2s; }
.net-line-d2 { animation-delay: -4.5s; }
@keyframes netDash {
  to { stroke-dashoffset: -160; }
}
.net-node {
  transform-origin: center;
  animation: nodePulse 3.2s ease-in-out infinite;
}
.net-node-d1 { animation-delay: .6s; }
.net-node-d2 { animation-delay: 1.2s; }
.net-node-d3 { animation-delay: 1.8s; }
@keyframes nodePulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.hero2-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  max-width: 42rem;
  padding: 6.5rem 0 5rem;
}
.hero2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.42rem 0.9rem 0.42rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  letter-spacing: 0.01em;
}
.hero2-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
  flex-shrink: 0;
}
.hero2-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 5.4vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #fff;
}
.hero2-title-accent {
  display: block;
  background: linear-gradient(100deg, #67e8f9, #818cf8 60%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero2-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.78);
}
.hero2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}
.hero2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  will-change: transform;
}
.hero2-btn:hover { text-decoration: none; transform: translateY(-2px) scale(1.015); }
.hero2-btn:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
.hero2-btn-primary {
  background: linear-gradient(120deg, #22d3ee, #6366f1);
  color: #04101a;
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(103, 232, 249, 0.25) inset;
}
.hero2-btn-primary:hover {
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(103, 232, 249, 0.4) inset;
}
.hero2-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.3);
  color: #f1f5f9;
}
.hero2-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(103, 232, 249, 0.5);
  color: #fff;
}
.hero2-free {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: #d1fae5;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hero2-free:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.14);
  text-decoration: none;
  color: #ecfdf5;
}
.hero2-free-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #34d399, #22d3ee);
  color: #04140f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.hero2-trust {
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.85);
}

/* Scroll-reveal + counter utilities (site-wide) */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .hero2-mesh, .hero2-dots, .net-line, .net-node { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero2-btn:hover, .btn:hover, .cap-card:hover { transform: none !important; }
}

/* —— Home page: dark theme carried through the rest of the page —— */
body.page-home-dark .tech-grid,
body.page-home-dark .tech-glow { display: none; }

body.page-home-dark .sec { border-bottom-color: rgba(148, 163, 184, 0.10); }
body.page-home-dark .eyebrow { color: #67e8f9; }
body.page-home-dark .sec-head h2,
body.page-home-dark .price-copy h2,
body.page-home-dark .cta-band h2 { color: #fff; }
body.page-home-dark .sec-head p,
body.page-home-dark .sec-copy,
body.page-home-dark .price-copy p:not(.eyebrow),
body.page-home-dark .cta-band p { color: rgba(226, 232, 240, 0.72); }

/* Trust strip */
body.page-home-dark .sec-trust {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%), #05070d;
  border-bottom-color: rgba(148, 163, 184, 0.10);
}
body.page-home-dark .trust-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
body.page-home-dark .trust-stat:hover {
  transform: translateY(-3px);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
body.page-home-dark .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 11px;
}
body.page-home-dark .trust-icon svg { width: 1.2rem; height: 1.2rem; }
body.page-home-dark .trust-stat-cyan .trust-icon { color: #67e8f9; background: rgba(34, 211, 238, 0.16); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25); }
body.page-home-dark .trust-stat-blue .trust-icon { color: #93c5fd; background: rgba(59, 130, 246, 0.16); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28); }
body.page-home-dark .trust-stat-indigo .trust-icon { color: #a5b4fc; background: rgba(99, 102, 241, 0.18); box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3); }
body.page-home-dark .trust-stat-sky .trust-icon { color: #7dd3fc; background: rgba(14, 165, 233, 0.16); box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.28); }
body.page-home-dark .trust-stat-green .trust-icon { color: #6ee7b7; background: rgba(16, 185, 129, 0.18); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3); }
body.page-home-dark .trust-stat-cyan:hover { border-color: rgba(103, 232, 249, 0.35); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(34, 211, 238, 0.14); }
body.page-home-dark .trust-stat-blue:hover { border-color: rgba(147, 197, 253, 0.35); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(59, 130, 246, 0.14); }
body.page-home-dark .trust-stat-indigo:hover { border-color: rgba(165, 180, 252, 0.35); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(99, 102, 241, 0.14); }
body.page-home-dark .trust-stat-sky:hover { border-color: rgba(125, 211, 252, 0.35); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(14, 165, 233, 0.14); }
body.page-home-dark .trust-stat-green:hover { border-color: rgba(110, 231, 183, 0.4); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(16, 185, 129, 0.16); }
body.page-home-dark .trust-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
body.page-home-dark .trust-stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
body.page-home-dark .trust-stat strong span {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}
body.page-home-dark .trust-stat .trust-copy > span {
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.66);
}

/* Feature grid */
body.page-home-dark .sec-caps { background: #05070d; }
body.page-home-dark .cap-card {
  border: 1px solid transparent;
  background-image:
    linear-gradient(165deg, rgba(13, 18, 30, 0.96), rgba(7, 10, 18, 0.98)),
    linear-gradient(165deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.18));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform .3s ease, box-shadow .3s ease, background-image .35s ease, border-color .35s ease;
}
body.page-home-dark .cap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45), 0 0 30px rgba(34, 211, 238, 0.12);
  background-image:
    linear-gradient(165deg, rgba(15, 21, 34, 0.97), rgba(7, 10, 18, 0.98)),
    linear-gradient(165deg, #22d3ee, #818cf8);
}
body.page-home-dark .cap-card h3 { color: #fff; }
body.page-home-dark .cap-card p { color: rgba(226, 232, 240, 0.68); }
body.page-home-dark .cap-card .cap-mark {
  color: rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.18);
}
body.page-home-dark .cap-icon-cyan { color: #67e8f9; background: rgba(34, 211, 238, 0.16); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25); }
body.page-home-dark .cap-icon-blue { color: #93c5fd; background: rgba(59, 130, 246, 0.16); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28); }
body.page-home-dark .cap-icon-sky { color: #7dd3fc; background: rgba(14, 165, 233, 0.16); box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.28); }
body.page-home-dark .cap-icon-teal { color: #5eead4; background: rgba(20, 184, 166, 0.16); box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.28); }
body.page-home-dark .cap-icon-amber { color: #fcd34d; background: rgba(245, 158, 11, 0.18); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3); }
body.page-home-dark .cap-icon-indigo { color: #a5b4fc; background: rgba(99, 102, 241, 0.18); box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3); }

.cap-grid [data-reveal]:nth-child(3n+2) { transition-delay: .08s; }
.cap-grid [data-reveal]:nth-child(3n+3) { transition-delay: .16s; }

/* Pricing */
body.page-home-dark .sec-price {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(34, 211, 238, 0.08), transparent 55%),
    #05070d;
}
body.page-home-dark .price-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #22d3ee, #6366f1);
  color: #04101a;
  margin-bottom: 0.9rem;
}
body.page-home-dark .price-aside {
  position: relative;
  border: 1px solid transparent;
  background-image:
    linear-gradient(165deg, rgba(15, 20, 32, 0.95), rgba(8, 11, 20, 0.95)),
    linear-gradient(165deg, #22d3ee, #818cf8, #a78bfa);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 25px 60px rgba(34, 211, 238, 0.12), 0 12px 34px rgba(0, 0, 0, 0.4);
}
body.page-home-dark .price-amount {
  color: #fff;
  background: linear-gradient(100deg, #67e8f9, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.page-home-dark .price-per { color: rgba(226, 232, 240, 0.62); }
body.page-home-dark .price-faq-link { color: #67e8f9; }

/* Configurator CTA band */
body.page-home-dark .sec-cta { background: #05070d; }
body.page-home-dark .cta-band {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(99, 102, 241, 0.06)),
    rgba(255, 255, 255, 0.03);
}

/* Footer background matches the home hero exactly (rest of the site uses --bg-2) */
body.page-home-dark .site-footer { background: #05070d; }

.sec-trust {
  background: linear-gradient(180deg, #eef3f9 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.trust-row > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.35rem 0;
}
.trust-row strong {
  color: var(--heading);
  font-size: 0.98rem;
}
.trust-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.sec-price {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(34, 211, 238, 0.10), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #eef4fb 100%);
}
.price-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.price-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}
.price-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 36rem;
}
.price-aside {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: 1.5rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 40, 80, 0.08);
  background: #fff;
  box-shadow: var(--shadow);
}
.price-amount {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.price-per {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.price-faq-link {
  margin-top: 0.55rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.price-faq-link:hover { text-decoration: underline; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 0.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.faq-cta h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}
.faq-cta p {
  margin: 0;
  color: var(--muted);
}

/* Sections */
.sec { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.sec-tight { padding: 3.75rem 0; }
.sec-head { max-width: 40rem; margin-bottom: 2rem; }
.sec-head h2 { margin: 0 0 0.55rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.sec-head p, .sec-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.metric {
  background: var(--panel-solid);
  padding: 1.35rem 1.3rem;
}
.metric-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}
.metric strong {
  display: block;
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 0.35rem;
}
.metric p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.sec-caps .sec-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}
.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 1.45rem 1.35rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 40, 80, 0.08);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(15, 40, 80, 0.05);
  overflow: hidden;
  min-height: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cap-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  opacity: 0.85;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 40px rgba(15, 40, 80, 0.10);
}
.cap-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  flex-shrink: 0;
}
.cap-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.cap-icon-cyan {
  color: #0e7490;
  background: rgba(14, 116, 144, 0.12);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.12);
}
.cap-icon-blue {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.cap-icon-sky {
  color: #0284c7;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.14);
}
.cap-icon-teal {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.12);
}
.cap-icon-amber {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.16);
}
.cap-icon-indigo {
  color: #1e40af;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14);
}
.cap-mark {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(14, 116, 144, 0.08);
  border: 1px solid rgba(14, 116, 144, 0.12);
}
.cap-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.cap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.cap-card:nth-child(1)::before { background: linear-gradient(90deg, #06b6d4, #0e7490); }
.cap-card:nth-child(2)::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.cap-card:nth-child(3)::before { background: linear-gradient(90deg, #0ea5e9, #0284c7); }
.cap-card:nth-child(4)::before { background: linear-gradient(90deg, #14b8a6, #0f766e); }
.cap-card:nth-child(5)::before { background: linear-gradient(90deg, #f59e0b, #b45309); }
.cap-card:nth-child(6)::before { background: linear-gradient(90deg, #22d3ee, #2563eb); }

.cap-card:nth-child(1) .cap-mark { color: #0e7490; background: rgba(14, 116, 144, 0.08); border-color: rgba(14, 116, 144, 0.14); }
.cap-card:nth-child(2) .cap-mark { color: #1d4ed8; background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.14); }
.cap-card:nth-child(3) .cap-mark { color: #0369a1; background: rgba(14, 165, 233, 0.10); border-color: rgba(14, 165, 233, 0.16); }
.cap-card:nth-child(4) .cap-mark { color: #0f766e; background: rgba(13, 148, 136, 0.10); border-color: rgba(13, 148, 136, 0.16); }
.cap-card:nth-child(5) .cap-mark { color: #b45309; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.18); }
.cap-card:nth-child(6) .cap-mark { color: #1d4ed8; background: rgba(34, 211, 238, 0.12); border-color: rgba(37, 99, 235, 0.16); }

.feat-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.feat {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
}
.feat-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}
.feat h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.feat p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.split-tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split-tech h2 { margin: 0 0 0.65rem; font-size: clamp(1.45rem, 2.8vw, 1.9rem); }

.code-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
}
.code-panel-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.code-panel-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}
.code-panel-bar span:nth-child(1) { background: #f87171; }
.code-panel-bar span:nth-child(2) { background: #fbbf24; }
.code-panel-bar span:nth-child(3) { background: #34d399; }
.code-panel-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #94a3b8;
}
.code-panel pre {
  margin: 0;
  padding: 1.15rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: #a5f3fc;
  line-height: 1.7;
  background: transparent;
  border: 0;
}

.toolkit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.toolkit article {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.toolkit article::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), transparent);
}
.toolkit h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.toolkit p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.sec-cta { border-bottom: 0; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 180px at 0% 50%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--panel-solid);
}
.cta-band h2 { margin: 0 0 0.35rem; font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
.cta-band p { margin: 0; color: var(--muted); max-width: 34rem; }

/* Page chrome */
.page-hero {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}
.page-hero-wide { max-width: none; }
.page-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}
.page-hero p { margin: 0; color: var(--muted); }

.hero {
  margin-bottom: 1.25rem;
  max-width: 42rem;
}
.hero h1 { margin: 0 0 0.4rem; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.hero p { margin: 0; color: var(--muted); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: 0.85rem; color: rgba(226, 232, 240, 0.85); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(148, 163, 184, 0.55); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(34, 211, 238, 0.25);
  border-color: var(--cyan);
}
.form-row input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.field-hint { color: var(--muted); font-size: 0.8rem; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 11px;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-success { background: rgba(52, 211, 153, 0.10); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.3); }
.alert-error { background: rgba(248, 113, 113, 0.10); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }

.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0f2744;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
}
.impersonation-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
  font-size: 0.9rem;
}
.impersonation-banner .mono { color: #94a3b8; }
.impersonation-banner .btn { padding: 0.4rem 0.85rem; font-size: 0.82rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-success { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.badge-info { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }
.badge-warning { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }
.badge-danger { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.badge-muted { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; }

.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.data-table a { color: var(--cyan); font-weight: 600; }

.account-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.account-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.account-search input[type="search"] {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  min-width: 15rem;
}
.account-search input[type="search"]::placeholder { color: rgba(148, 163, 184, 0.55); }
.account-search input[type="search"]:focus {
  outline: 2px solid rgba(34, 211, 238, 0.25);
  border-color: var(--cyan);
}
.account-search .btn { padding: 0.55rem 1rem; font-size: 0.88rem; }
.account-toolbar-meta {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.account-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.account-pagination .btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  min-height: auto;
}
.account-pagination .btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}
.account-pagination-ellipsis {
  color: var(--muted);
  padding: 0 0.15rem;
  font-size: 0.85rem;
}

.mono {
  font-family: var(--mono);
  font-size: 0.88rem;
  word-break: break-all;
}
.code-block, pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
}
.checklist { padding-left: 1.2rem; color: var(--muted); }
.plain-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}
.rate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.rate-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.rate-list span { color: var(--muted); }

.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
.guide h2 { margin-top: 0; }
.guide h3 { margin: 1.4rem 0 0.5rem; font-size: 1.05rem; color: var(--heading); }
.guide p, .guide li { color: var(--muted); }

.install-hero-cmd {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    var(--panel-solid);
}
.install-cmd-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.install-cmd-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.install-cmd-row code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: #a5f3fc;
  word-break: break-all;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid var(--line);
}
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.install-checklist,
.install-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}
.install-checklist li,
.install-steps li { line-height: 1.5; }
.install-note h2 { margin-bottom: 0.85rem; font-size: 1.05rem; }
.install-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.install-features span {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Calculator */
.calc-shell {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.15rem;
  align-items: start;
}
.calc-main { display: grid; gap: 1rem; }
.calc-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
}
.calc-panel h2 { margin: 0 0 0.85rem; font-size: 1rem; }
.calc-hint { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.88rem; }

.cycle-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.cycle-pill { cursor: pointer; }
.cycle-pill input { position: absolute; opacity: 0; pointer-events: none; }
.cycle-pill-body {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cycle-pill-body strong { font-size: 0.95rem; color: var(--heading); }
.cycle-pill-body small { color: var(--muted); font-size: 0.75rem; }
.cycle-pill input:checked + .cycle-pill-body {
  border-color: var(--line-strong);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), inset 0 0 24px rgba(34, 211, 238, 0.08);
}

.calc-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.calc-field-head h2 { margin: 0; }
.calc-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
}
.calc-value-chip input {
  width: 4.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--heading);
}
.calc-value-chip span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.calc-range {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), rgba(37, 99, 235, 0.7));
  outline: none;
}
.calc-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04101a;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
  cursor: pointer;
}
.calc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04101a;
  border: 2px solid var(--cyan);
  cursor: pointer;
}
.calc-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
}
.calc-guest-grid {
  grid-template-columns: 1fr 1fr;
}

.calc-quote {
  position: sticky;
  top: 5.25rem;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(34, 211, 238, 0.10), transparent 55%),
    linear-gradient(165deg, rgba(20, 25, 38, 0.9), rgba(8, 11, 20, 0.94) 60%, rgba(5, 7, 13, 0.96));
  border-radius: 18px;
  padding: 1.35rem 1.35rem;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.calc-quote-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.calc-quote-top h2 { margin: 0; font-size: 1rem; }
.calc-quote-cycle {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}
.calc-quote-summary { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; }
.calc-breakdown { display: grid; gap: 0.45rem; margin-bottom: 0.85rem; }
.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text);
}
.calc-line > span {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.calc-line-label {
  font-weight: 600;
  color: var(--text);
}
.calc-line small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}
.calc-line-item strong:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc-line-indent {
  padding-left: 0.65rem;
  font-size: 0.84rem;
}
.calc-line-indent > span {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.calc-line-discount { color: var(--ok); }
.calc-line-discount em {
  font-style: normal;
  color: rgba(52, 211, 153, 0.78);
  font-size: 0.78rem;
}
.calc-line-sub {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.calc-line-sub strong { color: var(--text); font-weight: 600; }
.calc-savings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.calc-savings-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.calc-savings-main span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.85);
  font-weight: 600;
}
.calc-savings-main strong {
  font-size: 1.15rem;
  color: var(--ok);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.calc-savings-pct {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.12);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.95rem;
}
.calc-total span { color: var(--muted); font-weight: 600; }
.calc-total strong {
  font-size: 1.85rem;
  color: var(--cyan);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.calc-discount-note {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.2em;
}
.calc-submit { width: 100%; padding: 0.95rem 1rem; }
.calc-fineprint {
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.45;
}

.checkout-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
.checkout-form-card {
  padding: 1.5rem 1.5rem 1.6rem;
  display: grid;
  gap: 0;
}
.checkout-summary-card { position: sticky; top: 5.25rem; }
.checkout-logged-in {
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--line-strong);
  margin-bottom: 0.35rem;
}
.checkout-logged-in p { margin: 0; }

.checkout-section {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(125, 160, 210, 0.14);
}
.checkout-form-card > .checkout-section:first-child,
.checkout-form-card > .checkout-logged-in + .checkout-section {
  border-top: 0;
  padding-top: 0.35rem;
}
.checkout-section-head { margin-bottom: 0.85rem; }
.checkout-section-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.checkout-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.checkout-fields {
  display: grid;
  gap: 0.85rem;
}
.checkout-fields .form-row input,
.checkout-delivery .form-row input {
  width: 100%;
}
.checkout-signin-line {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.checkout-signin-line a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
}
.checkout-signin-line a:hover { text-decoration: underline; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Account */
.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1.35rem;
  padding: 0.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.account-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
}
.account-nav a:hover { color: var(--heading); background: rgba(14, 116, 144, 0.06); text-decoration: none; }
.account-nav a.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.account-nav-cta {
  margin-left: auto !important;
  background: linear-gradient(135deg, #22d3ee, #2563eb) !important;
  color: #04101a !important;
}
.account-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}
.account-kicker {
  margin: 0 0 0.3rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.account-hero h1 { margin: 0 0 0.35rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.account-hero p { margin: 0; color: var(--muted); max-width: 36rem; }
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.account-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.account-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.account-stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.55rem;
  color: var(--heading);
}
.account-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.1rem;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.card-head h2 { margin: 0; font-size: 1.05rem; }
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}
.empty-state strong { display: block; color: var(--heading); margin-bottom: 0.35rem; }
.empty-state .btn { margin-top: 0.85rem; }
.license-list { display: grid; gap: 0.65rem; }
.license-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
}
.license-item:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}
.profile-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1.1rem;
  align-items: start;
}
.profile-main {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.profile-summary { text-align: center; padding: 1.75rem 1.25rem; }
.profile-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.85rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #04101a;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
}
.profile-summary h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.profile-meta { color: var(--muted); margin: 0.5rem 0 0; }
.detail-list { margin: 0; display: grid; gap: 0.65rem; }
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.detail-list dt { color: var(--muted); font-weight: 500; }
.detail-list dd { margin: 0; font-weight: 600; color: var(--heading); }
.license-panel { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.license-key, .license-key-xl {
  font-family: var(--mono);
  font-size: 1.05rem;
  background: #0f172a;
  color: #a5f3fc;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.license-key-xl { font-size: 1.2rem; text-align: center; margin: 0 0 1.25rem; }
.payment-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-size: 0.92rem;
  color: #fde68a;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.timeline li {
  display: grid;
  gap: 0.15rem;
  padding-left: 0.95rem;
  border-left: 2px solid rgba(34, 211, 238, 0.35);
}
.timeline time { font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }

/* Legal */
.legal-doc {
  max-width: 760px;
  padding: 1.75rem 1.75rem 2rem;
}
.legal-head { margin-bottom: 1.25rem; }
.legal-head h1 { margin: 0 0 0.35rem; }
.legal-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.legal-doc h2 { margin: 1.6rem 0 0.55rem; font-size: 1.1rem; }
.legal-doc p, .legal-doc li { color: var(--muted); }
.contact-aside h2 { margin-top: 0; font-size: 1.05rem; }
.contact-aside h3 { margin: 1.25rem 0 0.5rem; font-size: 0.95rem; }

.checkout-pay-note {
  /* uses checkout-section spacing */
}
.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.promo-row input {
  width: 100%;
  border: 1px solid rgba(125, 160, 210, 0.22);
  background: rgba(4, 10, 20, 0.65);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  letter-spacing: 0.04em;
}
.promo-row input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}
.checkout-promo .promo-row { grid-template-columns: 1fr; margin-top: 0; }
.checkout-delivery .form-row { margin: 0; }
.checkout-delivery .calc-hint { margin-top: 0.55rem; }
.turnstile-wrap {
  display: flex;
  justify-content: flex-start;
  margin: 1.1rem 0 0.25rem;
}
.promo-ok { color: #5eead4 !important; }
.promo-error { color: #fca5a5 !important; }

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}
.faq-item {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-radius: 14px;
  padding: 0.15rem 1.1rem 0.15rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: border-color .2s ease, transform .2s ease;
}
.faq-item:hover { border-color: rgba(103, 232, 249, 0.28); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--heading);
  padding: 1rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--cyan);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '–'; }
.faq-answer {
  color: var(--muted);
  padding: 0 0 1.1rem;
  line-height: 1.65;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.faq-foot {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2rem;
}

@media (max-width: 900px) {
  .metric-row,
  .feat-rail,
  .toolkit,
  .cap-grid,
  .trust-row,
  .price-panel,
  .grid-3,
  .account-stats,
  .account-grid,
  .profile-layout,
  .split-tech,
  .footer-grid,
  .calc-shell,
  .cycle-pills,
  .calc-guest-grid,
  .checkout-shell,
  .split-layout,
  .install-grid { grid-template-columns: 1fr; }
  .checkout-summary-card { position: static; }
  .cap-grid { grid-template-columns: 1fr; }
  .calc-quote { position: static; }
  .calc-field-head { flex-direction: column; align-items: flex-start; }

  .nav-toggle { display: inline-flex; }
  .site-header { overflow: visible; }
  .site-menu {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 0 1.1rem;
    background: rgba(8, 11, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  body.nav-open .site-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  body.nav-open { overflow: hidden; }
  @media (prefers-reduced-motion: reduce) {
    .site-menu { transition: none; }
  }
  .site-nav {
    flex-direction: column;
    width: 100%;
    gap: 0.2rem;
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }
  .header-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero2 { min-height: auto; }
  .hero2-inner { padding: 7rem 0 3.25rem; max-width: none; }
  .hero2-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero2-lead { font-size: 0.98rem; }
  .hero2-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero2-btn { width: 100%; }
  .price-aside { width: 100%; }
  .faq-cta { align-items: stretch; }
  .faq-cta .btn { width: 100%; justify-content: center; }

  .sec { padding: 3rem 0; }
  .sec-head { margin-bottom: 1.5rem; }
  .site-main { padding: 1.5rem 0 3rem; }
  .page-hero { margin-bottom: 1.25rem; }
  .page-hero h1 { font-size: clamp(1.45rem, 6vw, 1.9rem); }

  .card,
  .calc-panel,
  .checkout-form-card,
  .checkout-summary-card { padding: 1.05rem 1rem; }

  .install-cmd-row {
    flex-direction: column;
    align-items: stretch;
  }
  .install-cmd-row .btn { width: 100%; }

  .account-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a { white-space: nowrap; flex-shrink: 0; }
  .account-hero { align-items: flex-start; }
  .account-stats { grid-template-columns: 1fr; }

  .license-key-xl,
  .mono,
  code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .footer-grid { gap: 1.5rem; }
  .footer-legal-note {
    width: min(1120px, calc(100% - 2rem));
    font-size: 0.75rem;
  }
  .footer-bottom { text-align: left; }

  .table-wrap,
  .admin-table-wrap,
  .data-table { max-width: 100%; }
}

@media (max-width: 640px) {
  .container,
  .hero2-inner { width: min(1120px, calc(100% - 1.5rem)); }
  .brand-wordmark { height: 24px; max-width: 140px; }
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }
  .cycle-pills { grid-template-columns: 1fr; }
  .faq-item,
  .detail-list {
    word-break: break-word;
  }
}

/* Blog */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.blog-main { min-width: 0; }
.blog-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.blog-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.45);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: border-color .15s, color .15s, background .15s;
}
.blog-cat-chip span {
  font-size: 0.75rem;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.blog-cat-chip:hover,
.blog-cat-chip.active {
  color: #e2e8f0;
  border-color: rgba(103, 232, 249, 0.4);
  background: rgba(103, 232, 249, 0.08);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.72));
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.blog-card:hover {
  border-color: rgba(103, 232, 249, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.blog-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(103, 232, 249, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.85);
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: #67e8f9;
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.blog-card-body h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.blog-card-body h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-card-body h2 a:hover { color: var(--accent, #67e8f9); }
.blog-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  margin-top: auto;
  padding-top: 0.55rem;
  color: var(--accent, #67e8f9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.blog-card-link:hover { text-decoration: underline; }
.blog-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.blog-meta a { color: var(--muted); }
.blog-pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  color: var(--muted);
}
.blog-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}
.blog-side-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem 1.05rem;
}
.blog-side-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.blog-cat-list,
.blog-side-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.blog-cat-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.blog-cat-list a:hover,
.blog-cat-list a.active {
  color: #e2e8f0;
  background: rgba(103, 232, 249, 0.08);
}
.blog-cat-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}
.blog-side-post {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.4rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.blog-side-post:hover { background: rgba(103, 232, 249, 0.06); }
.blog-side-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.9);
  display: block;
}
.blog-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-side-thumb-empty {
  background:
    radial-gradient(circle at 40% 30%, rgba(103, 232, 249, 0.22), transparent 60%),
    rgba(30, 41, 59, 0.95);
}
.blog-side-post-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.blog-side-post-meta strong {
  font-size: 0.88rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-side-post-meta time,
.blog-side-cat {
  font-size: 0.75rem;
  color: var(--muted);
}
.blog-side-cat {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.blog-cover {
  margin: 0 0 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.blog-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.blog-content { line-height: 1.7; }
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.blog-content a { color: var(--accent, #67e8f9); }
.blog-files h2,
.blog-comments h2,
.blog-comments h3 { margin-top: 0; }
.blog-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.blog-file-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.blog-comments { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.blog-comment-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.blog-comment {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
}
.blog-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.blog-comment-head strong { color: var(--text, #e2e8f0); }
.blog-comment-body { line-height: 1.6; word-break: break-word; }
.blog-comment-body a { color: var(--accent, #67e8f9); }
.muted { color: var(--muted); }

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar { position: static; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0.7rem 0; }
  .hero2-inner { padding: 6rem 0 2.25rem; }
  .cap-card { padding: 1.1rem 1rem; }
}

/* Account support tickets */
.ticket-form {
  display: grid;
  gap: 0.9rem;
}
.ticket-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
}
.ticket-form input,
.ticket-form textarea,
.ticket-compose textarea,
#ticket-input,
textarea.ticket-input-field,
input.ticket-input-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color-scheme: dark;
  background: rgba(8, 12, 22, 0.85) !important;
  background-color: rgba(8, 12, 22, 0.85) !important;
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  caret-color: #ffffff !important;
  opacity: 1 !important;
}
.ticket-compose textarea,
#ticket-input,
textarea.ticket-input-field {
  width: auto;
  flex: 1;
  border: 0 !important;
  border-radius: 12px;
  padding: 0.65rem 0.4rem;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  outline: none;
  background: transparent !important;
  background-color: transparent !important;
}
.ticket-form input:disabled,
.ticket-form textarea:disabled,
.ticket-compose textarea:disabled,
#ticket-input:disabled {
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  opacity: 0.85 !important;
}
.ticket-form input::placeholder,
.ticket-form textarea::placeholder,
.ticket-compose textarea::placeholder,
#ticket-input::placeholder {
  color: rgba(148, 163, 184, 0.7) !important;
  -webkit-text-fill-color: rgba(148, 163, 184, 0.7) !important;
  opacity: 1 !important;
}
.ticket-form input:focus,
.ticket-form textarea:focus {
  outline: 2px solid rgba(34, 211, 238, 0.25);
  border-color: var(--cyan);
}
.ticket-compose-row {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
  background: rgba(8, 12, 22, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 0.3rem 0.45rem;
}
.ticket-list { display: grid; gap: 0; }
.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.ticket-row:hover { background: rgba(14, 165, 233, 0.06); }
.ticket-row-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.ticket-row-main strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--heading);
}
.ticket-row-main span { font-size: 0.8rem; color: var(--muted); }
.ticket-row-meta { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.ticket-unread {
  font-size: 0.72rem;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.ticket-thread-card { padding: 0; overflow: hidden; }
.ticket-notify-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: rgba(251, 146, 60, 0.12);
  border-bottom: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fdba74;
}
.ticket-thread {
  min-height: 280px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.18);
}
.ticket-bubble {
  max-width: min(520px, 88%);
  width: fit-content;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}
.ticket-bubble-body {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.ticket-bubble.me {
  align-self: flex-end;
  background: rgba(14, 165, 233, 0.85);
  color: #04101a;
  border-color: transparent;
  border-bottom-right-radius: 4px;
}
.ticket-bubble.them {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ticket-bubble.system {
  align-self: center;
  width: auto;
  max-width: 90%;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.25rem 0.5rem;
}
.ticket-bubble-meta {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1.2;
  opacity: 0.75;
}
.ticket-att-img {
  display: block;
  max-width: min(240px, 100%);
  border-radius: 10px;
  margin-top: 0.5rem;
}
.ticket-att-file {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--cyan);
}
.ticket-compose {
  border-top: 1px solid var(--line);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.5rem;
}
.ticket-compose-row:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.ticket-attach {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
  color: var(--muted);
}
.ticket-preview {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0.55rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.ticket-preview[hidden] {
  display: none !important;
}
.ticket-preview button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.ticket-closed-note {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .ticket-thread {
    max-height: min(70dvh, 620px);
    min-height: 260px;
    padding: 0.75rem;
  }
  .ticket-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.9rem 0;
  }
  .ticket-row-main strong { white-space: normal; }
  .ticket-compose {
    padding: 0.65rem 0.55rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }
  .ticket-compose textarea,
  #ticket-input,
  textarea.ticket-input-field {
    font-size: 16px !important; /* prevent iOS zoom */
  }
  .ticket-bubble { max-width: 94%; font-size: 0.95rem; }
  .ticket-form input,
  .ticket-form textarea {
    font-size: 16px !important;
  }
}
