
:root {
  --bg: #020617;
  --bg-soft: #020617;
  --card: rgba(15,23,42,0.85);
  --card-strong: rgba(15,23,42,0.95);
  --border-subtle: rgba(148,163,184,0.35);
  --accent: #22c55e;
  --accent-strong: #4f46e5;
  --accent-soft: rgba(34,197,94,0.15);
  --accent-strong-soft: rgba(79,70,229,0.28);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 22px 65px rgba(15,23,42,0.9);
  --shadow-sm: 0 14px 40px rgba(15,23,42,0.7);
  --blur: 22px;
}

body.theme-light {
  --bg: #f9fafb;
  --bg-soft: #f3f4f6;
  --card: rgba(255,255,255,0.98);
  --card-strong: #ffffff;
  --border-subtle: rgba(15,23,42,0.08);
  --accent: #22c55e;
  --accent-strong: #4f46e5;
  --accent-soft: rgba(34,197,94,0.10);
  --accent-strong-soft: rgba(79,70,229,0.14);
  --text-main: #0f172a;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
}

/* Light theme base background */
body.theme-light {
  background:
    radial-gradient(circle at 0% 0%, rgba(34,197,94,0.06) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(59,130,246,0.06) 0, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(79,70,229,0.06) 0, transparent 55%),
    var(--bg);
  color: var(--text-main);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background:
    radial-gradient(circle at 0% 0%, rgba(79,70,229,0.35) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(34,197,94,0.25) 0, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(59,130,246,0.25) 0, transparent 55%),
    var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}



.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(var(--blur));
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.96),
    rgba(15,23,42,0.86),
    transparent
  );
  border-bottom: 1px solid rgba(148,163,184,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.logo-text strong {
  color: var(--accent);
}

.logo-mark-svg {
  height: 86px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding: 0.15rem 0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-emoji {
  font-size: 0.9rem;
  line-height: 1;
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit !important;
  box-shadow: none;
}


.nav-cta::after {
  display: none;
}


.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(var(--blur));
  cursor: pointer;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.theme-toggle-icon::before {
  content: "☾";
  font-size: 13px;
  color: #e5e7eb;
}

body.theme-light .theme-toggle {
  background: rgba(255,255,255,0.9);
}

body.theme-light .theme-toggle-icon::before {
  content: "☀";
  color: #0f172a;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.35), rgba(15,23,42,0.96));
  padding: 7px 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Layout / sections */

.section {
  padding: 4.5rem 0 3.5rem;
}

.section-alt {
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.14), transparent 55%);
}

.hero-home {
  padding-top: 4.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 3.2rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2.4rem, 3vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}

.hero-copy .accent {
  background: linear-gradient(120deg, #e5e7eb, #a855f7, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 38rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.9rem;
  animation: eyebrowPulse 3.6s ease-in-out 0s 3;
}


.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin: 1.7rem 0 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, background 0.16s ease-out, border-color 0.16s ease-out;
  white-space: nowrap;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 500;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #a855f7, #4f46e5);
  border-color: rgba(129,140,248,0.75);
  color: #f9fafb;
  box-shadow: 0 20px 50px rgba(15,23,42,0.95);
}

.btn-glow {
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 0 25px rgba(59,130,246,0.35),
    0 26px 60px rgba(15,23,42,1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 65px rgba(15,23,42,1);
}

.btn-ghost {
  border-color: rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15,23,42,1);
}

.btn.full-width {
  width: 100%;
}

.hero-meta {
  margin-top: 1.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: rgba(15,23,42,0.92);
  color: var(--text-soft);
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.78rem;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stat-number {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.stat-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero side card */

.glass {
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.16), rgba(15,23,42,0.98));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.hero-panel .hero-card {
  padding: 1.7rem 1.7rem 1.4rem;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}


.badge-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.badge-status.ok {
  background: rgba(34,197,94,0.12);
  color: #bbf7d0;
}

.hero-status-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.hero-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.status-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.status-pill.ok { background: rgba(34,197,94,0.15); }
.status-pill.info { background: rgba(56,189,248,0.18); }
.status-pill.accent { background: rgba(129,140,248,0.26); }

.status-value {
  color: var(--text-main);
}

.chart-frame {
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 0 0, rgba(129,140,248,0.3), rgba(15,23,42,0.96));
  padding: 1.1rem 1rem 1rem;
  border: 1px solid rgba(129,140,248,0.55);
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.chart-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.fake-line-chart {
  position: relative;
  height: 70px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.2), rgba(15,23,42,0.95));
}

.line-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(34,197,94,0.5), transparent);
  opacity: 0.9;
}

.spark-points {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 8px 8px;
}

.spark-points span {
  width: 7px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(34,197,94,0.9), rgba(34,197,94,0.2));
}

.spark-points span.down {
  height: 20%;
  background: linear-gradient(to top, rgba(239,68,68,0.9), rgba(248,113,113,0.4));
}

.chart-footer {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.chip {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
}

.chip-ok {
  background: rgba(34,197,94,0.18);
  color: #bbf7d0;
}

.chip-warn {
  background: rgba(245,158,11,0.18);
  color: #fed7aa;
}

.hero-footnote {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.hero-extra-row {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-extra-item {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.18), rgba(15,23,42,0.96));
  border: 1px solid rgba(148,163,184,0.38);
  box-shadow: 0 10px 24px rgba(15,23,42,0.85);
}

.extra-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

.extra-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

@media (max-width: 720px) {
  .hero-extra-row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Section headers / cards */

.section-header {
  text-align: left;
  max-width: 680px;
}

.section-header h2 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.section-header p {
  color: var(--text-soft);
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 1.7rem;
  margin-top: 2.4rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.4);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.2), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease-out;
}

.card:hover::before {
  opacity: 1;
}

.hover-raise {
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.hover-raise:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(15,23,42,0.98);
  border-color: rgba(129,140,248,0.7);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-family: "Poppins", system-ui, sans-serif;
}

.card p {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.card ul li + li {
  margin-top: 0.3rem;
}

/* Dashboard layout */

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

.dashboard-main,
.dashboard-side {
  padding: 1.7rem 1.7rem 1.5rem;
}

.key-points {
  list-style: none;
  margin: 0.7rem 0 0.9rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.key-points li::before {
  content: "• ";
  color: var(--accent);
}

.checklist {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.checklist li + li {
  margin-top: 0.35rem;
}

/* Pricing */

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.badge-soft,
.badge-strong {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-soft {
  background: rgba(148,163,184,0.23);
  color: var(--text-soft);
}

.badge-strong {
  background: var(--accent-strong-soft);
  color: #e0e7ff;
}

.price-line {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.pricing-card.featured {
  border-color: rgba(129,140,248,0.85);
  box-shadow: 0 24px 70px rgba(55,65,81,1);
  background: radial-gradient(circle at 0 0, rgba(129,140,248,0.4), rgba(15,23,42,0.98));
  transform: translateY(-2px);
}

.pricing-faq {
  margin-top: 3rem;
  max-width: 640px;
}

.pricing-faq h2 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-faq p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

.contact-panel {
  padding: 1.9rem 1.9rem 1.6rem;
}

.contact-side {
  padding: 1.7rem 1.7rem 1.4rem;
}

.contact-side h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

.contact-side p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-side ul {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.form-group input,
.form-group textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(148,163,184,0.65);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.96);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.5);
  background: rgba(15,23,42,1);
}

/* Generic page hero */

.page-hero {
  padding-top: 4.4rem;
  border-bottom: 1px solid rgba(148,163,184,0.3);
  background: radial-gradient(circle at 0 0, rgba(79,70,229,0.35), transparent 55%);
}

.page-hero h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2rem, 2.7vw, 2.4rem);
  margin: 0 0 0.8rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
}

.page-hero .eyebrow,
.page-hero p.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.9rem;
  animation: eyebrowPulse 3.6s ease-in-out 0s 3;
}


.narrow {
  max-width: 640px;
}

/* CTA panel */

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  padding: 1.8rem 1.6rem 1.6rem;
  background: radial-gradient(circle at 0 0, rgba(34,197,94,0.32), rgba(22,163,74,0.96));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34,197,94,0.6);
  box-shadow: 0 22px 60px rgba(15,23,42,0.85);
}

.cta-panel h2 {
  margin: 0 0 0.55rem;
  font-family: "Poppins", system-ui, sans-serif;
}

.cta-panel p {
  margin: 0;
  color: var(--text-soft);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Footer */

.site-footer {
  margin-top: 3.4rem;
  padding: 2.4rem 0 1.8rem;
  border-top: 1px solid rgba(148,163,184,0.4);
  background: linear-gradient(to top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  font-size: 0.8rem;
}

.footer-emoji {
  margin-right: 0.35rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1.5fr;
  gap: 1.7rem;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 0.7rem;
}

.footer-tagline {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.site-footer h4 {
  font-size: 0.86rem;
  margin: 0 0 0.45rem;
}

.site-footer a {
  display: block;
  color: var(--text-soft);
  margin-bottom: 0.27rem;
}

.footer-bottom {
  border-top: 1px solid rgba(30,64,175,0.9);
  margin-top: 1.7rem;
  padding-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
}

.footer-mini {
  font-size: 0.76rem; /* keep if you like this size */
  /* display: flex;  <-- removed to fix vertical alignment */
  gap: 0.35rem;      /* harmless even though it's ignored without flex */
  text-align: right;
  line-height: 1.4;
}



.footer-mini svg {
  flex: 0 0 auto;
}

/* Scroll reveal + parallax */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



@keyframes heroSlideFade {
  0% {
    opacity: 0;
    transform: translateY(-32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.container.narrow {
  animation: heroSlideFade 0.9s ease-out 0.1s both;
}



.delay-1 {
  transition-delay: 0.12s;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-panel {
    order: -1;
  }
  .card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-panel {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
  .footer-emoji {
  margin-right: 0.35rem;
  font-size: 0.9rem;
}

.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: absolute;
    inset: 76px 0 auto 0;
    background: radial-gradient(circle at 0 0, rgba(15,23,42,0.98), rgba(15,23,42,0.98));
    border-bottom: 1px solid rgba(148,163,184,0.35);
    padding: 0.85rem 1.75rem 1.1rem;
    display: none;
    flex-direction: column;
    gap: 0.7rem;
  }
  .main-nav.open {
    display: flex;
  }
  .hero-home {
    padding-top: 3.6rem;
  }
  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid.two,
  .card-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-emoji {
  margin-right: 0.35rem;
  font-size: 0.9rem;
}

.footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* Contact form status + honeypot */
.form-status {
  min-height: 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
  transform: translateY(-4px);
}

.form-status.is-success,
.form-status.is-error {
  opacity: 1;
  transform: translateY(0);
}

.form-status.is-success {
  color: var(--smx-accent-green, #4ade80);
}

.form-status.is-error {
  color: var(--smx-accent-red, #f97373);
}

.field-group.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Screenshot galleries */
.section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  justify-items: center; /* centre single or multiple cards neatly */
}

.screenshot-grid-single {
  grid-template-columns: minmax(0, 1fr); /* stack cards vertically */
}

.screenshot-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(148,163,184,.15), transparent 55%),
              radial-gradient(circle at bottom right, rgba(59,130,246,.18), transparent 60%);
  box-shadow: 0 24px 60px rgba(15,23,42,.55);
  transform: translateY(0);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, filter 160ms ease-out;
  cursor: zoom-in;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1.1rem 1.05rem;
  background: linear-gradient(to top, rgba(15,23,42,.92), rgba(15,23,42,.6), transparent);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: #e5e7eb;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.screenshot-title {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.screenshot-tag {
  font-size: 0.8rem;
  opacity: 0.78;
}

.screenshot-card::before {
  content: "Click to enlarge";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.0);
  background: radial-gradient(circle at center, rgba(15,23,42,0.0), rgba(15,23,42,0.65));
  opacity: 0;
  transition: opacity 160ms ease-out, color 160ms ease-out;
  pointer-events: none;
}

.screenshot-card:hover,
.screenshot-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15,23,42,.75);
  filter: saturate(1.15);
}

.screenshot-card:hover::before,
.screenshot-card:focus-within::before {
  opacity: 1;
  color: rgba(226,232,240,0.95);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
  backdrop-filter: blur(12px);
}

.lightbox-inner {
  position: relative;
  max-width: min(1120px, 96vw);
  max-height: min(720px, 82vh);
  margin: 0 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 34px 90px rgba(15,23,42,.95);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-inner figcaption {
  padding: 0.9rem 1.2rem 1.05rem;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #e5e7eb;
  background: linear-gradient(to top, rgba(15,23,42,1), rgba(15,23,42,0.92));
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: 0;
  border-radius: 999px;
  width: 32px;
  height: 64px;
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease-out, transform 150ms ease-out;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(30,64,175,0.95);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .screenshot-meta {
    font-size: 0.85rem;
  }
}

.section-alt .eyebrow,
.section-dark .eyebrow {
  color: var(--accent);
}


.section-carousel {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: 3rem;
  padding-top: 2.2rem;
  padding-bottom: 2.4rem;
}

.section-header-compact {
  text-align: left;
  max-width: 42rem;
  margin-bottom: 1.4rem;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.carousel-viewport {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.3rem 0;
}

.carousel-viewport::-webkit-scrollbar {
  height: 6px;
}

.carousel-viewport::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.carousel-track {
  display: inline-flex;
  gap: 0.8rem;
}

.carousel-item {
  flex: 0 0 210px;
  scroll-snap-align: center;
  border-radius: 0.85rem;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.14), rgba(15, 23, 42, 0.95));
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.55);
  cursor: pointer;
  position: relative;
  isolation: isolate;
}

.carousel-item img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  transform: translateZ(0);
  transition:
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    filter 220ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 220ms cubic-bezier(.2, .8, .2, 1),
    opacity 220ms cubic-bezier(.2, .8, .2, 1);
}

.carousel-item::after {
  content: "Click to enlarge";
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(241, 245, 249, 0.9);
  background: linear-gradient(to top, rgba(15, 23, 42, 0.96), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 200ms cubic-bezier(.2, .8, .2, 1),
    transform 200ms cubic-bezier(.2, .8, .2, 1);
}

.carousel-item:hover img {
  transform: scale(1.02);
  filter: saturate(1.25) contrast(1.08);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.75);
  opacity: 0.98;
}

.carousel-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.carousel-arrow {
  border: none;
  background: rgba(15, 23, 42, 0.82);
  color: rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  width: 32px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  transition:
    background-color 180ms cubic-bezier(.2, .8, .2, 1),
    transform 180ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 180ms cubic-bezier(.2, .8, .2, 1);
}

.carousel-arrow:hover {
  background: rgba(30, 64, 175, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(30, 64, 175, 0.95);
}

.carousel-arrow:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.9);
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
  .carousel-item {
    flex: 0 0 70%;
  }
}



.diagram-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.8rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
  justify-items: center;
}

.diagram-card {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.95));
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 16px 40px rgba(15,23,42,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.diagram-card .svg-diagram {
  width: 100%;
  max-width: 420px; /* slightly larger diagrams */
  margin: 0 auto;
}

/* Subtle SVG animation for homepage diagrams */
.diagram-card .diag-node {
  transform-origin: center;
  animation: diagFloat 10s ease-in-out infinite;
}

.diagram-card .diag-node:nth-of-type(2) { animation-delay: 1.5s; }
.diagram-card .diag-node:nth-of-type(3) { animation-delay: 3s; }
.diagram-card .diag-node:nth-of-type(4) { animation-delay: 4.5s; }

.diagram-card .diag-dot {
  transform-origin: center;
  animation: diagPulse 2.6s ease-in-out infinite;
}

.diagram-card .diag-dot-2 { animation-delay: 0.4s; }
.diagram-card .diag-dot-3 { animation-delay: 0.8s; }
.diagram-card .diag-dot-4 { animation-delay: 1.2s; }

@keyframes diagFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

@keyframes diagPulse {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%      { transform: scale(1.3); opacity: 1;   }
}

@media (max-width: 900px) {
  }


/* Light theme layout refinements */
body.theme-light .site-header {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

body.theme-light .page-hero {
  background:
    radial-gradient(circle at 0 0, rgba(79,70,229,0.08), transparent 60%),
    var(--bg);
}

body.theme-light .site-footer {
  background: #f3f4f6;
  border-top: 1px solid rgba(148,163,184,0.3);
  color: var(--text-soft);
}

body.theme-light .site-footer a {
  color: var(--text-main);
}

body.theme-light .screenshot-card {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

body.theme-light .diagram-card {
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15,23,42,0.12);
}

.card-emoji {
  margin-right: 0.4rem;
  font-size: 1rem;
}

body.theme-light .btn-ghost {
  color: #f9fafb;
}

body.theme-light .site-header,
body.theme-light .site-footer {
  background: linear-gradient(to top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  color: #e5e7eb;
  border-color: rgba(148,163,184,0.6);
}

body.theme-light .site-header .main-nav a {
  color: #e5e7eb;
}

body.theme-light .site-footer a {
  color: #e5e7eb;
}


.nav-container {
  border-radius: 0 !important;
  clip-path: none !important;
}

.site-header {
  border-radius: 0 !important;
  clip-path: none !important;
}

.site-footer {
  border-radius: 0 !important;
  clip-path: none !important;
}

body.theme-light .footer-tagline {
  color: rgba(226,232,240,0.92);
}

body.theme-light .pricing-card.featured {
  background: radial-gradient(circle at 0 0, rgba(129,140,248,0.28), rgba(15,23,42,0.9));
}

body.theme-light .pricing-card.featured .price-line,
body.theme-light .pricing-card.featured .pricing-note,
body.theme-light .pricing-card.featured li {
  color: #e5e7eb;
}

@keyframes eyebrowPulse {
  0%, 100% {
    letter-spacing: 0.18em;
    opacity: 0.92;
    transform: translateY(0);
  }
  50% {
    letter-spacing: 0.22em;
    opacity: 1;
    transform: translateY(-1px);
  }
}

body.theme-light .dashboard-main.glass,
body.theme-light .dashboard-side.glass {
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.98), rgba(241,245,249,0.98));
  border-color: rgba(148,163,184,0.4);
}


/* Accent shimmer for key words */
.accent-shimmer {
  background-image: linear-gradient(90deg, #22c55e, #3b82f6);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: background-position 0.5s ease-out;
}

.accent-shimmer:hover {
  background-position: 100% 0;
}

/* Site search */
.site-search {
  position: relative;
  margin-left: auto;
  margin-right: 1rem;
}

.site-search input {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
}

body.theme-light .site-search input {
  background: rgba(255,255,255,0.96);
  color: #0f172a;
}

.site-search-results {
  position: absolute;
  top: 120%;
  left: 0;
  right: 0;
  background: rgba(15,23,42,0.98);
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 18px 40px rgba(15,23,42,0.8);
  font-size: 0.8rem;
  padding: 0.35rem 0;
  display: none;
  z-index: 50;
}

.site-search-results a {
  display: block;
  padding: 0.35rem 0.6rem;
  color: #e5e7eb;
  text-decoration: none;
}

.site-search-results a:hover {
  background: rgba(31,41,55,0.9);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  z-index: 40;
}

body.theme-light .back-to-top {
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Page progress bar */
#pageProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #3b82f6);
  z-index: 9999;
  transition: width 0.2s ease-out, opacity 0.25s ease-out;
}

/* Glass highlight tweaks for light theme */
body.theme-light .glass {
  box-shadow:
    0 18px 40px rgba(15,23,42,0.18),
    inset 0 0 0 1px rgba(148,163,184,0.25);
}

/* Footer layout enhancements */
.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-badges {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge-soft {
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.65);
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.footer-links a {
  display: block;
  font-size: 0.8rem;
  color: #e5e7eb;
  opacity: 0.86;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.7rem;
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 0.4rem;
}

/* Simple blog layout */
.blog-list {
  display: grid;
  gap: 1.25rem;
}

.blog-post-card {
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.92), rgba(15,23,42,0.98));
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

body.theme-light .blog-post-card {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.98), rgba(241,245,249,0.98));
  border-color: rgba(148,163,184,0.5);
}

.blog-post-meta {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

/* Small accessibility helpers */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: #111827;
  color: #f9fafb;
  border-radius: 999px;
  font-size: 0.8rem;
  transform: translateY(-150%);
  transition: transform 0.2s ease-out;
  z-index: 60;
}

.skip-link:focus {
  transform: translateY(0);
}


.pricing-calculator {
  margin-top: 1rem;
}

.pricing-calculator-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pricing-calculator label {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-calculator .label-text {
  opacity: 0.9;
}

.pricing-calculator input[type="number"] {
  padding: 0.35rem 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
}

body.theme-light .pricing-calculator input[type="number"] {
  background: rgba(255,255,255,0.96);
  color: #0f172a;
}

.pricing-calculator-result {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.pricing-estimate-line {
  display: inline-block;
  margin-top: 0.25rem;
}

.pricing-calculator-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.8;
}


.hero-badges {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}


/* === New premium SaaS theme overrides (v2) === */

/* Typography */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.7rem, 2.2vw2rem);
}

h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
}

p {
  margin-bottom: 0.85rem;
}

/* Layout */
.section {
  padding: 4.5rem 0;
}

.section.section-tight {
  padding: 3.4rem 0;
}

.page-hero.section,
.section-hero {
  padding: 5.2rem 0 3.6rem;
}

.container.narrow,
.container.narrower,
.container.narrowest {
  max-width: 980px;
}

/* Header & nav */
.site-header {
  background: radial-gradient(circle at top left, #020617, #020617 42%, #020617 100%);
  border-bottom: 1px solid rgba(148,163,184,0.25);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .site-header {
  background: radial-gradient(circle at top left, #020617, #020617 40%, #020617 100%);
}

.nav-container {
  border-radius: 0;
  padding-inline: 1.75rem;
}

.main-nav a,
.nav-parent span:first-child {
  font-size: 0.96rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-radius: 0;
  padding: 2.8rem 0 2.4rem;
}

html[data-theme="light"] .site-footer {
  background: radial-gradient(circle at top left, #020617, #020617 40%, #020617 100%);
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 500;
  padding-inline: 1.4rem;
}

.btn.btn-ghost {
  border-width: 1px;
}

/* Cards & glass */
.card,
.feature-card,
.pricing-card,
.dashboard-main.glass,
.screenshot-card,
.diagram-card {
  border-radius: 1.4rem;
  border: 1px solid rgba(148,163,184,0.24);
  box-shadow: 0 22px 45px rgba(15,23,42,0.6);
}

html[data-theme="light"] .card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .pricing-card,
html[data-theme="light"] .dashboard-main.glass,
html[data-theme="light"] .screenshot-card,
html[data-theme="light"] .diagram-card {
  border-color: rgba(15,23,42,0.06);
  box-shadow: 0 18px 40px rgba(15,23,42,0.16);
}

/* Hero copy */
.hero-copy {
  max-width: 640px;
}

/* CTA panel */
.cta-panel {
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04));
  box-shadow: 0 20px 45px rgba(15,23,42,0.22);
}

/* Blog layout tweaks */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Legal copy */
.legal-copy {
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Back-to-top button (if present) */
.back-to-top {
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.45);
}


/* Nav dropdown for Features */
.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-parent {
  background: none;
  border: none;
  padding: 0.15rem 0;
  font: inherit;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  position: relative;
}

.nav-parent:hover {
  color: var(--text-main);
}

.nav-parent:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.nav-parent-caret {
  font-size: 0.7rem;
  opacity: 0.9;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 220px;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(15,23,42,0.97);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 40;
}

html[data-theme="light"] .nav-submenu {
  background: rgba(255,255,255,0.99);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

.nav-submenu a {
  display: block;
  padding: 0.15rem 0.1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.nav-submenu a:hover {
  color: var(--text-main);
}

.nav-group.open .nav-submenu {
  display: flex;
}

@media (max-width: 960px) {
  .nav-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-submenu {
    position: static;
    margin-top: 0.25rem;
    padding: 0.35rem 0.85rem 0.45rem;
    border-radius: 0.75rem;
    box-shadow: none;
    background: none;
  }
}


/* Blog layout */
.blog-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post {
  padding: 2rem 2.25rem;
}

.blog-post-header {
  margin-bottom: 1rem;
}

.blog-post-meta {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-post-title {
  margin: 0.25rem 0 0;
}

.blog-post-body > p {
  margin-bottom: 0.9rem;
}

/* Code blocks */
.code-block {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.92));
  border: 1px solid rgba(148,163,184,0.3);
  max-width: 100%;
  overflow-x: auto;
}

.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre;
  display: block;
}

/* Language tints: subtle tweaks on top of highlight.js */
.code-html  { }
.code-php   { }
.code-mysql { }
.code-mssql { }
.code-js    { }
.code-css   { }

html[data-theme="light"] .code-block {
  background: radial-gradient(circle at top left, #f9fafb, #e5e7eb);
  border-color: rgba(148,163,184,0.5);
}

html[data-theme="light"] .code-block code {
  color: #111827;
}

/* Blog index + pagination */
.blog-index {
  margin-bottom: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.75));
  border: 1px solid rgba(148,163,184,0.4);
}

.blog-index h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.blog-index-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
}

.blog-index-list li {
  font-size: 0.9rem;
}

.blog-index-list a {
  color: inherit;
  text-decoration: none;
}

.blog-index-list a:hover {
  text-decoration: underline;
}

.blog-index-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-pagination a {
  text-decoration: none;
  color: var(--accent);
}

.blog-pagination a:hover {
  text-decoration: underline;
}

.blog-pagination span[aria-disabled="true"] {
  color: var(--text-muted);
  cursor: default;
}

/* Footer responsive tweaks */
@media (max-width: 768px) {
  .footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.25rem;
  }

  .blog-post {
    padding: 1.5rem 1.25rem;
  }

  .blog-pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}


/* Slightly taller header */
.site-header {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}


/* === HARD OVERRIDE: full-screen screenshot lightbox === */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

/* Catch all known wrappers: .lightbox-content, .lightbox-inner, plain <figure> */
.lightbox > figure,
.lightbox .lightbox-content,
.lightbox .lightbox-inner {
  margin: 0;
  width: min(100vw, 1400px);
  height: min(100vh, 900px);
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #020617;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

/* Make the screenshot fill the popup (within the window) */
.lightbox img {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Caption: readable on dark background */
.lightbox figcaption {
  flex: 0 0 auto;
  padding: 0.8rem 1.1rem 1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 1),
    rgba(15, 23, 42, 0.94)
  );
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

/* Close button – pinned to top-right of viewport */
.lightbox-close {
  position: fixed;
  top: 1.4rem;
  right: 1.8rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(30, 64, 175, 0.98);
}

/* Blog readability + tags */
.blog-index,
.blog-index-list,
.blog-index-list a {
  color: var(--text-main);
}

.blog-post.card {
  color: var(--text-main);
}

.blog-post-body p {
  color: var(--text-main);
}

.blog-post-meta,
.blog-index-date {
  color: var(--text-muted);
}

.blog-post-tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15,23,42,0.9);
  color: var(--text-soft);
  text-decoration: none;
}

.tag-chip:hover {
  color: var(--text-main);
  border-color: var(--accent);
  text-decoration: none;
}

.blog-archive {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.blog-archive-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.88rem;
}

.blog-archive-list li + li {
  margin-top: 0.15rem;
}

.blog-archive-list a {
  color: var(--text-soft);
  text-decoration: none;
}

.blog-archive-list a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Blog index + search + tag chips refinements */

/* Blog index card */
.blog-index {
  margin-bottom: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.8));
  border: 1px solid rgba(148,163,184,0.55);
  color: var(--text-main);
}

.blog-index h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--text-main);
}

.blog-index-list li {
  margin-bottom: 0.35rem;
}

.blog-index a {
  color: var(--accent);
  text-decoration: none;
}

.blog-index a:hover {
  text-decoration: underline;
}

.blog-index-date {
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* Light theme tweaks for the index card */
body.theme-light .blog-index {
  background: radial-gradient(circle at top left, #f9fafb, #e5e7eb);
  border-color: rgba(148,163,184,0.5);
}

body.theme-light .blog-index h2 {
  color: #0f172a;
}

body.theme-light .blog-index-date {
  color: #6b7280;
}

/* Blog search bar */
.blog-search {
  margin: 1.2rem 0 1.6rem;
  display: flex;
  align-items: center;
}

.blog-search input[type="search"] {
  width: 100%;
  max-width: 360px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.92);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.blog-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

.blog-search input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.55);
  background: rgba(15,23,42,1);
}

/* Light theme search */
body.theme-light .blog-search input[type="search"] {
  background: rgba(255,255,255,0.98);
  color: #0f172a;
}

/* Search summary text */
.blog-search-summary {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Tag chips */
.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.65rem;
  margin-right: 0.4rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(129,140,248,0.8);
  background: radial-gradient(circle at top left, rgba(79,70,229,0.34), rgba(15,23,42,0.98));
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-decoration: none;
}

.tag-chip:hover {
  background: radial-gradient(circle at top left, rgba(129,140,248,0.5), rgba(15,23,42,1));
  border-color: rgba(165,180,252,1);
}

/* Light theme tag chips */
body.theme-light .tag-chip {
  background: radial-gradient(circle at top left, rgba(219,234,254,0.9), rgba(239,246,255,0.98));
  border-color: rgba(129,140,248,0.7);
  color: #1e293b;
}

/* Badges – make sure they’re readable in light & dark theme */
.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  /* Light theme default */
  background: rgba(15, 23, 42, 0.08);  /* soft slate */
  color: #0f172a;                      /* dark text */
}

/* Dark theme overrides */
body[data-theme="dark"] .badge-soft,
html[data-theme="dark"] .badge-soft,
.theme-dark .badge-soft {
  background: rgba(248, 250, 252, 0.10); /* soft light pill */
  color: #e5e7eb;                         /* light text */
}


/* === Homepage hero: pill + stats copy, theme-safe === */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: rgba(15,23,42,0.92);
  color: var(--text-soft);
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.78rem;
}

body.theme-light .pill {
  background: rgba(15,23,42,0.04);
  color: #0f172a;
  border-color: rgba(148,163,184,0.35);
}


/* === Hero live card + extra stats – fix light theme darkness === */

body.theme-light .hero-card.glass,
body.theme-light .hero-live {
  background: radial-gradient(circle at 0 0, #ffffff, #e5e7eb);
  border-color: rgba(148,163,184,0.35);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

body.theme-light .hero-extra-item {
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.10), #ffffff);
  border-color: rgba(148,163,184,0.30);
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
}


/* === Soft badges: readable everywhere (hero + footer) === */

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(15,23,42,0.82);       /* dark pill for dark theme */
  color: #e5e7eb;                         /* light text */
  border: 1px solid rgba(148,163,184,0.55);
}

body.theme-light .badge-soft {
  background: rgba(15,23,42,0.04);        /* light grey pill */
  color: #0f172a;                         /* dark text */
  border-color: rgba(148,163,184,0.45);
}


/* === Diagrams: 2-up layout, 50/50, no .diagram-card === */

.diagram-row,
.diagram-row-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.8rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
  justify-content: center;
}

.diagram-row > *,
.diagram-row-secondary > * {
  flex: 1 1 50%;
  max-width: 50%;
}

.svg-diagram {
  width: 100%;
  height: auto;
  display: block;
}

/* Keep the float / pulse animations but target SVG contents directly */
.svg-diagram .diag-node {
  transform-origin: center;
  animation: diagFloat 10s ease-in-out infinite;
}

.svg-diagram .diag-dot {
  transform-origin: center;
  animation: diagPulse 2.6s ease-in-out infinite;
}

.svg-diagram .diag-dot-2 { animation-delay: 0.4s; }
.svg-diagram .diag-dot-3 { animation-delay: 0.8s; }
.svg-diagram .diag-dot-4 { animation-delay: 1.2s; }

@media (max-width: 900px) {
  .diagram-row > *,
  .diagram-row-secondary > * {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* --- Footer badges: readable on light & dark --- */

.site-footer .footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.site-footer .footer-badges .badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  /* inherit text colour so it works in light + dark themes */
  color: inherit;
  /* light, glassy pill so it DOES NOT go full black in light theme */
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(8px);
}

/* Slight spacing tweak if needed */
.site-footer .footer-tagline {
  margin-bottom: 0.5rem;
}

/* --- Hero live card: badge + chart styling --- */

.hero-card .hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Make the OK badge readable in light theme but still nice in dark */
.hero-card .badge-status.ok {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(22, 163, 74, 0.14);      /* soft green pill */
  color: #166534;                             /* dark-enough green text */
  border: 1px solid rgba(34, 197, 94, 0.7);   /* subtle border */
}

/* Chart frame – fix light theme gradient + make it look premium */
.hero-card .chart-frame {
  border-radius: 0.9rem;
  padding: 0.6rem 0.75rem 0.9rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.03),
    rgba(15, 23, 42, 0.10)
  ); /* works on light + dark */
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.hero-card .chart-frame .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.hero-card .chart-frame .chart-header span:first-child {
  font-size: 0.86rem;
  font-weight: 500;
}

.hero-card .chart-meta {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Chart area – prep for hover */
.hero-card .hero-chart-shell {
  position: relative;
}

.hero-card #hero-monitor-runs-chart {
  display: block;
  width: 100%;
  height: 140px;
  cursor: crosshair; /* make it obvious you can hover */
}

/* --- Diagrams: 2 SVGs per row, no .diagram-card wrappers --- */
/* Assumes your markup is:
   <div class="diagram-row">
     <svg class="svg-diagram">...</svg>
     <svg class="svg-diagram">...</svg>
   </div>
*/

.diagram-row,
.diagram-row-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.diagram-row > .svg-diagram,
.diagram-row-secondary > .svg-diagram {
  flex: 1 1 calc(50% - 0.75rem);
  max-width: calc(50% - 0.75rem);
}

.svg-diagram {
  width: 100%;
  height: auto;
  max-height: 260px;
  display: block;
}

/* Stack to 1 per row on mobile */
@media (max-width: 768px) {
  .diagram-row > .svg-diagram,
  .diagram-row-secondary > .svg-diagram {
    flex-basis: 100%;
    max-width: 100%;
  }

  .svg-diagram {
    max-height: 280px;
  }
}
/* === Marketing site: diagrams, hero live card, footer badges === */

/* Diagrams – 2 SVGs per row on desktop, stack on mobile */
.diagram-row,
.diagram-row-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.diagram-row > .svg-diagram,
.diagram-row-secondary > .svg-diagram {
  flex: 1 1 calc(50% - 0.75rem);
  max-width: calc(50% - 0.75rem);
}

.svg-diagram {
  width: 100%;
  height: auto;
  max-height: 260px;
  display: block;
}

@media (max-width: 768px) {
  .diagram-row > .svg-diagram,
  .diagram-row-secondary > .svg-diagram {
    flex-basis: 100%;
    max-width: 100%;
  }

  .svg-diagram {
    max-height: 280px;
  }
}

/* Footer badges – readable in light + dark themes */
.site-footer .footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.site-footer .footer-badges .badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}


/* Hero live card – positioning + chart frame + status badge */

.hero-card.hero-live {
  position: relative;
}

/* Light theme: nicer glassy chart frame */
body:not([data-theme="dark"]) .hero-card.hero-live .chart-frame {
  background: radial-gradient(circle at top, #e0f2fe 0, #f9fafb 40%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.75rem 0.9rem 0.9rem;
}

/* Make status badge readable in light mode but still decent in dark */
.badge-status.ok {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(34, 197, 94, 0.7);
}

body:not([data-theme="dark"]) .badge-status.ok {
  background-color: #dcfce7;
  color: #166534;
}

/* Chart hover cursor */
.hero-chart-shell canvas {
  cursor: crosshair;
}
/* Home diagrams & hero live chart (moved from index.php inline <style>)
   NOTE: After adding this, remove the inline <style> block from website/index.php
*/

/* Diagram layout */
.diagram-row,
.diagram-row-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.diagram-card {
  flex: 1 1 480px;
  max-width: 520px;
  background-color: transparent; /* transparent so the page background shows through */
}

/* belt-and-braces: if any nested .card ends up inside, keep it transparent too */
.diagram-card .card {
  background-color: transparent;
  box-shadow: none;
}

/* SVG diagrams */
.svg-diagram {
  width: 100%;
  height: auto;
  max-height: 260px;
  display: block;
}

@media (max-width: 768px) {
  .diagram-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .svg-diagram {
    max-height: 280px;
  }
}

/* Keep SVG diagram text inside node boxes: slightly smaller copy, headings a touch larger */
.svg-diagram .diag-node text {
  font-size: 8px !important;
}

.svg-diagram .diag-node text:first-of-type {
  font-size: 10px !important;
}


/* Light theme: hero status badge */
body:not([data-theme="dark"]) .badge-status.ok {
  background-color: #dcfce7;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.35);
}

/* Hero card: allow absolute tooltip positioning */
.hero-card.hero-live {
  position: relative;
}

/* Light theme: chart frame gets its background from the page, this just frames it */
body:not([data-theme="dark"]) .hero-card.hero-live .chart-frame {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.75rem 0.9rem 0.9rem;
}

/* Chart hover cursor and tooltip styling */
.hero-chart-shell canvas {
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  min-width: 120px;
  max-width: 200px;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
}

body:not([data-theme="dark"]) .chart-tooltip {
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

body[data-theme="dark"] .chart-tooltip,
html[data-theme="dark"] .chart-tooltip {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}
.site-footer .footer-mini {
 /* display: inline-flex; */
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.4;
}

/* Make links and the heart behave like the text line */
.site-footer .footer-mini a,
.site-footer .footer-mini span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
}

.footer-flag {
  width: 18px;
  height: auto;
  vertical-align: middle;
  margin-right: 0.25rem;
  border-radius: 999px; /* optional – keeps it circular like your PNG */
}
.footer-badges .badge-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.35rem;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Footer badges – subtle animation */
.site-footer .footer-badges .badge-soft {
  position: relative;
  transition:
    transform 160ms ease-out,
    box-shadow 160ms ease-out,
    background-color 160ms ease-out,
    border-color 160ms ease-out;
  will-change: transform;
}

.site-footer .footer-badges .badge-soft:hover,
.site-footer .footer-badges .badge-soft:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.8);
}

/* Light theme tweak so hover still looks gentle */
body.theme-light .site-footer .footer-badges .badge-soft:hover,
body.theme-light .site-footer .footer-badges .badge-soft:focus-visible {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}
/* Footer badges – tooltip popups */
.site-footer .footer-badges .badge-soft {
  position: relative;
}

/* Base tooltip (hidden by default) */
.site-footer .footer-badges .badge-soft::after {
  content: attr(data-badge-tooltip);
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%) translateY(4px);
 width:200px; 
  max-width: 260px;
  padding: 0.4rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  z-index: 10;

  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.85);

  transition:
    opacity 150ms ease-out,
    transform 150ms ease-out;
}

/* Small arrow under tooltip */
.site-footer .footer-badges .badge-soft::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 112%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.96);
  border-left: 1px solid rgba(148, 163, 184, 0.7);
  border-top: 1px solid rgba(148, 163, 184, 0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 9;

  transition:
    opacity 150ms ease-out,
    transform 150ms ease-out;
}

/* Show on hover or keyboard focus */
.site-footer .footer-badges .badge-soft:hover::after,
.site-footer .footer-badges .badge-soft:hover::before,
.site-footer .footer-badges .badge-soft:focus-visible::after,
.site-footer .footer-badges .badge-soft:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Light theme: slightly softer tooltip */
body.theme-light .site-footer .footer-badges .badge-soft::after {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

body.theme-light .site-footer .footer-badges .badge-soft::before {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
}


/* About page – "Why Salix exists" illustration */
.about-why-img-wrap {
  margin: 0 0 1.1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(148,163,184,0.18), rgba(15,23,42,0.98));
  box-shadow: 0 18px 45px rgba(15,23,42,0.8);
}

.about-why-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Default (dark theme) */
.about-why-img-dark {
  display: block;
}

.about-why-img-light {
  display: none;
}

/* Light theme swap + softer card look */
body.theme-light .about-why-img-dark {
  display: none;
}

body.theme-light .about-why-img-light {
  display: block;
}

body.theme-light .about-why-img-wrap {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
  border: 1px solid rgba(148,163,184,0.25);
}

/* Willow Software background illustration */
.about-ws-img-wrap {
  margin: 1.2rem 0 0.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(148,163,184,0.18), rgba(15,23,42,0.98));
  box-shadow: 0 18px 45px rgba(15,23,42,0.8);
}

.about-ws-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Default = dark theme */
.about-ws-img-dark {
  display: block;
}
.about-ws-img-light {
  display: none;
}

/* Light theme swap */
body.theme-light .about-ws-img-dark {
  display: none;
}
body.theme-light .about-ws-img-light {
  display: block;
}

body.theme-light .about-ws-img-wrap {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
  border: 1px solid rgba(148,163,184,0.25);
}
/* Willow Software image wrapper */
.about-ws-img-wrap picture {
  display: block;
}

.about-ws-img-dark { display: block; }
.about-ws-img-light { display: none; }

/* Light theme: swap */
body.theme-light .about-ws-img-dark { display: none; }
body.theme-light .about-ws-img-light { display: block; }

/* Optional: tweak spacing */
.about-ws-img-wrap {
  margin: 1.2rem 0;
}
/* FORCE theme switching for Willow Software pictures */
.about-ws-img-dark,
.about-ws-img-light {
  display: none !important;
}

/* Default: dark theme shows dark image */
.about-ws-img-dark {
  display: block !important;
}

/* Light theme: swap visibility */
body.theme-light .about-ws-img-dark {
  display: none !important;
}
body.theme-light .about-ws-img-light {
  display: block !important;
}

/* Prevent picture fallback behaviour */
.about-ws-img-dark img,
.about-ws-img-light img {
  display: block !important;
}
/* Willow Software about image – responsive + theme-aware */
.about-ws-img-wrap {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
}

.about-ws-img {
  display: none;              /* only one shown via theme rules */
  max-width: 420px;           /* clamp on desktop */
  width: 100%;                /* shrink to mobile width */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,0.75);
}

.about-ws-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Dark = default */
body:not(.theme-light) .about-ws-img-dark {
  display: block;
}

/* Light theme override */
body.theme-light .about-ws-img-light {
  display: block;
}
body.theme-light .about-ws-img-dark {
  display: none;
}

/* Home diagrams – two per row, 50% each */
.diagram-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: stretch;
  margin-block: 2rem;
}

.diagram-row .diagram-card {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible; /* stop SVG text being clipped */
}

.diagram-row .diagram-card .svg-diagram {
  display: block;
  width: 100%;
  height: auto;
}

/* On smaller screens, fall back to 1 per row */
@media (max-width: 768px) {
  .diagram-row .diagram-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* FORCE two diagrams per row */
.diagram-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.75rem !important;
}

.diagram-row .diagram-card {
  width: 50% !important;
  max-width: 50% !important;
  flex: 0 0 50% !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.diagram-row .diagram-card .svg-diagram {
  width: 100% !important;
  height: auto !important;
}

/* Mobile fallback: 1 per row */
@media (max-width: 768px) {
  .diagram-row .diagram-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

.card {
background-image: repeating-linear-gradient(45deg, transparent, transparent 1px, #d1d8dc1f 1px, #68748b21 2px);
}

/* Make the "Databases & data layer" card span full width */
.feature-detail-grid .feature-detail-wide {
  grid-column: 1 / -1;
}


/* Pricing calculator block
   Moved from pricing.html inline <style> into main.css
------------------------------------------------------ */

.pricing-calculator {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(148, 163, 184, 0.12), transparent),
    radial-gradient(140% 180% at 100% 100%, rgba(56, 189, 248, 0.12), transparent);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(18px);
}

.pricing-calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.pricing-calculator-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-calculator-group-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.1rem;
}

.pricing-calculator label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.pricing-calculator .label-text {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted, rgba(148, 163, 184, 0.95));
}

.pricing-calculator input[type="number"],
.pricing-calculator select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  color: inherit;
  font: inherit;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.1s ease;
}

body.light-theme .pricing-calculator input[type="number"],
body.light-theme .pricing-calculator select {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.7);
  color: #0f172a;
}

.pricing-calculator input[type="number"]:focus,
.pricing-calculator select:focus {
  border-color: var(--accent, #38bdf8);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.8),
    0 0 0 6px rgba(56, 189, 248, 0.18);
  transform: translateY(-1px);
}

.pricing-calculator input[type="number"]::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.pricing-calculator select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(148, 163, 184, 0.9) 50%),
    linear-gradient(135deg, rgba(148, 163, 184, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) 50%,
    calc(100% - 0.8rem) 50%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
  cursor: pointer;
}

body.light-theme .pricing-calculator select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(71, 85, 105, 0.98) 50%),
    linear-gradient(135deg, rgba(71, 85, 105, 0.98) 50%, transparent 50%);
  background-color: rgba(255, 255, 255, 0.98);
}

.field-hint {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
}

body.light-theme .field-hint {
  color: rgba(100, 116, 139, 0.95);
}

.pricing-calculator-result,
.pricing-calculator-note {
  font-size: 0.95rem;
}

.pricing-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.pricing-presets-label {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.95);
  margin-right: 0.25rem;
}

.pricing-presets button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  color: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

body.light-theme .pricing-presets button {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.7);
}

.pricing-presets button:hover {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.billing-label {
  font-weight: 500;
  color: rgba(148, 163, 184, 0.95);
}

.billing-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: inherit;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

body.light-theme .billing-pill {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.7);
}

.billing-pill[aria-pressed="true"] {
  border-color: rgba(56, 189, 248, 0.95);
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.04));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.7),
    0 22px 55px rgba(15, 23, 42, 0.85);
  transform: translateY(-1px);
}

.billing-pill-save {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(52, 211, 153, 0.9);
}

.pricing-breakdown-line,
.pricing-summary,
.pricing-onboarding {
  font-size: 0.85rem;
  margin-top: 0.3rem;
  color: rgba(148, 163, 184, 0.98);
}

body.light-theme .pricing-breakdown-line,
body.light-theme .pricing-summary,
body.light-theme .pricing-onboarding {
  color: rgba(71, 85, 105, 0.98);
}

.pricing-onboarding-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

.pricing-onboarding-toggle input[type="checkbox"] {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  cursor: pointer;
}

.pricing-onboarding small {
  font-size: 0.78rem;
  opacity: 0.9;
}

.pricing-estimate-line {
  display: inline-block;
  padding: 0.1rem 0.2rem;
  border-radius: 0.5rem;
}

.pricing-estimate-updated {
  animation: estimateFlash 0.6s ease-out;
}

@keyframes estimateFlash {
  0% {
    background-color: rgba(56, 189, 248, 0.18);
  }
  100% {
    background-color: transparent;
  }
}

.examples-disclaimer {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: rgba(248, 250, 252, 0.95);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.light-theme .examples-disclaimer {
  background: rgba(15, 23, 42, 0.92);
  color: rgba(248, 250, 252, 0.98);
}

.pricing-helper-link {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.82rem;
  color: rgba(56, 189, 248, 0.95);
  text-decoration: none;
}

.pricing-helper-link:hover {
  text-decoration: underline;
}

.pricing-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: rgba(148, 163, 184, 0.98);
}

.pricing-email-link span {
  font-size: 0.9rem;
}

.pricing-email-link:hover {
  color: rgba(56, 189, 248, 0.98);
}

.pricing-email-link::before {
  content: "✉️";
  font-size: 0.9rem;
}

.eyebrow-subtle {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.pricing-card[data-plan] {
  transition:
    box-shadow 0.16s ease,
    transform 0.12s ease,
    border-color 0.16s ease;
}

.pricing-card--active {
  border: 1px solid rgba(56, 189, 248, 0.85);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.7),
    0 22px 55px rgba(15, 23, 42, 0.85);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .pricing-calculator {
    padding: 1.25rem 1.25rem;
  }
  .pricing-calculator-grid {
    gap: 0.8rem;
  }
  .pricing-calculator-group {
    gap: 0.6rem;
  }
  .billing-toggle {
    flex-wrap: wrap;
  }
}


/* Managed checkout panel */
.managed-checkout-shell {
  max-width: 880px;
  margin: 0 auto 3rem;
}

.managed-checkout-card {
  margin-top: 1.75rem;
  padding: 1.6rem 1.9rem 1.9rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(148, 163, 184, 0.12), transparent),
    radial-gradient(140% 180% at 100% 100%, rgba(56, 189, 248, 0.12), transparent);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(18px);
}

.managed-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.managed-checkout-grid .contact-field-row {
  margin-bottom: 0.75rem;
}

.managed-checkout-aside {
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.96);
}

body.theme-light .managed-checkout-aside {
  color: rgba(71, 85, 105, 0.98);
}

.managed-checkout-aside h2 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.managed-checkout-aside ul {
  padding-left: 1.2rem;
  margin: 0.25rem 0 0.35rem;
}

.managed-checkout-aside li {
  margin-bottom: 0.2rem;
}

@media (max-width: 768px) {
  .managed-checkout-card {
    padding: 1.3rem 1.35rem 1.5rem;
  }
  .managed-checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.progressBarValue {
    height: 1.66em;
    float: left;
    background: #0866dc;
    ##background: rgba(8,102,220,.75);
    background: rgb(79,150,36);
}
.progressBar {
    margin-bottom: 26px;
    margin-bottom: 1.66em;
}
.progressBarContainer {
    width: 100%;
    height: 26px;
    height: 1.66em;
    background: #e6eae3;
    background: rgba(79,150,36,0.34);
    overflow: hidden;
    border-radius: 5px;
}
.value-10 {
    width: 10%;
}
.value-20 {
    width: 20%;
}
.value-30 {
    width: 30%;
}
.value-40 {
    width: 40%;
}
.value-50 {
    width: 50%;
}
.value-60 {
    width: 60%;
}
.value-70 {
    width: 70%;
}
.value-80 {
    width: 80%;
}
.value-90 {
    width: 90%;
}
.value-100 {
    width: 100%;
}
