/*
Theme Name: Centerity
Theme URI: https://centerity.com
Description: Edge Observability & Automation dashboard theme for Centerity CSM².
Version: 1.6.0
Author: Centerity
Author URI: https://centerity.com
Text Domain: centerity
*/

html {
  overflow-x: hidden
}

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

:root {
  --bg: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-h: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.06);
  --border-h: rgba(139, 92, 246, .28);
  --text: #e8ecf4;
  --text-2: #b8c4d6;
  --text-3: #8896ab;
  --purple: #c084fc;
  --indigo: #818cf8;
  --blue: #60a5fa;
  --green: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(135deg, #c084fc, #818cf8, #60a5fa);
  --brand: linear-gradient(135deg, #e96d7a, #a855f7, #6b8fd4);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased
}

/* ── BG LAYERS ── */
canvas#particleBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none
}

.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(150px)
}

.g1 {
  width: 700px;
  height: 700px;
  top: -20%;
  right: -10%;
  background: rgba(168, 85, 247, .06)
}

.g2 {
  width: 600px;
  height: 600px;
  bottom: -15%;
  left: -8%;
  background: rgba(96, 165, 250, .05)
}

.g3 {
  width: 350px;
  height: 350px;
  top: 35%;
  left: 42%;
  background: rgba(233, 109, 122, .03)
}

/* ── PAGE ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  /* padding:0 48px; */
  width: 100%;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  flex-shrink: 0
}

.logo {
  height: 52px;
  filter: brightness(1.05)
}

.cta-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font: 600 14px/1 'Inter', sans-serif;
  cursor: pointer;
  transition: all .3s;
  letter-spacing: .2px;
  box-shadow: 0 2px 12px rgba(168, 85, 247, .15);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, .3)
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 20px 0 10px;
  flex-shrink: 0
}

.hero h1 {
  font: 700 clamp(28px, 3.2vw, 44px)/1.15 'Space Grotesk', sans-serif;
  letter-spacing: -.04em
}

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero p {
  font-size: 15px;
  color: var(--text-2);
  margin: 12px auto 0;
  max-width: 720px;
  line-height: 1.5;
  white-space: nowrap
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(192, 132, 252, .07);
  border: 1px solid rgba(192, 132, 252, .14);
  font: 600 11px/1 'Space Grotesk', sans-serif;
  color: var(--purple);
  letter-spacing: .1em;
}

/* ── TABS ── */
.tabs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 18px;
  flex-shrink: 0
}

.tabs-inner {
  display: inline-flex;
  gap: 4px;
  padding: 3px 0;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(13, 17, 32, .45);
  backdrop-filter: blur(12px);
  font: 600 12px/1 'Space Grotesk', sans-serif;
  color: var(--text-3);
  cursor: pointer;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  min-width: 90px;
}

.tab .tab-ic {
  width: 28px;
  height: 28px;
  stroke-width: 1.2;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all .3s;
  flex-shrink: 0;
}

.tab:hover {
  color: var(--text-2);
  border-color: rgba(139, 92, 246, .15);
  background: rgba(255, 255, 255, .04);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.tab.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(192, 132, 252, .1), rgba(129, 140, 248, .1));
  border-color: rgba(139, 92, 246, .28);
  box-shadow: 0 0 22px rgba(139, 92, 246, .1), 0 4px 16px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

.tab.active .tab-ic {
  stroke: var(--purple);
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, .4));
}

.tab.active span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* "Also supported" line below tabs */
.also-supported {
  display: none;
  font: 500 12px/1 'Space Grotesk', sans-serif;
  color: var(--text-3);
  letter-spacing: .04em;
  margin-top: 6px;
  opacity: .55;
}

.also-supported.show {
  display: block
}

/* ── STAGE ── */
.stage {
  display: flex;
  gap: 24px;
  flex: 1;
  min-height: 0;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1);
}

.stage.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ── CONNECTION LINES SVG ── */
.conn-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible
}

.cln {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 8 6;
  opacity: 0;
  animation: connShow .6s ease-out forwards
}

.cln-l {
  stroke: url(#lgL);
  animation: connShow .6s ease-out forwards, dashFlow 6s linear .6s infinite
}

.cln-r {
  stroke: url(#lgR);
  animation: connShow .6s ease-out forwards, dashFlowR 6s linear .6s infinite
}

@keyframes connShow {
  from {
    opacity: 0
  }

  to {
    opacity: .35
  }
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -28
  }
}

@keyframes dashFlowR {
  to {
    stroke-dashoffset: 28
  }
}

/* traveling particles */
.conn-particle {
  fill: var(--indigo);
  opacity: .7
}

.conn-particle-r {
  fill: var(--purple);
  opacity: .6
}

/* ── SHARED PANEL ── */
.panel {
  background: rgba(13, 17, 32, .6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

/* ── LEFT / RIGHT COLUMNS ── */
.col-left,
.col-right {
  flex: 1;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  position: relative;
  z-index: 1
}

/* sub-category scroll cards */
.sub-scroll {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow: visible;
  padding: 3px 0;
  -ms-overflow-style: none;
  scrollbar-width: none
}

.sub-scroll::-webkit-scrollbar {
  display: none
}

.sub-card {
  flex: 1;
  padding: 14px 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0
}

.sub-card svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all .25s
}

.sub-card span {
  font: 600 12px/1 'Space Grotesk', sans-serif;
  color: var(--text-3);
  transition: all .25s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%
}

.sub-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px)
}

.sub-card:hover svg {
  stroke: var(--text-2)
}

.sub-card.active {
  border-color: rgba(139, 92, 246, .3);
  background: linear-gradient(135deg, rgba(192, 132, 252, .08), rgba(129, 140, 248, .08));
  box-shadow: 0 0 14px rgba(139, 92, 246, .1)
}

.sub-card.active svg {
  stroke: var(--purple)
}

.sub-card.active span {
  color: var(--text)
}

/* endpoint mini grid */
.ep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px
}

.ep-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .015);
  border: 1px solid rgba(255, 255, 255, .03);
  transition: all .2s;
  animation: epIn .3s ease-out both;
}

.ep-cell:hover {
  border-color: var(--border-h);
  background: rgba(255, 255, 255, .04)
}

.ep-cell:hover .ep-ic {
  stroke: var(--indigo);
  opacity: .7
}

.ep-cell:hover span {
  color: var(--text-2)
}

.ep-ic {
  width: 35px;
  height: 35px;
  stroke: var(--text-3);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .5;
  flex-shrink: 0;
  transition: all .2s
}

.ep-cell span {
  font: 500 12px/1.2 'Inter', sans-serif;
  color: var(--text-3);
  transition: all .2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0
}

.ep-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  flex-shrink: 0;
  margin-left: auto
}

@keyframes epIn {
  from {
    opacity: 0;
    transform: scale(.9)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* incident/heal on ep-cell */
.ep-cell.incident {
  border-color: rgba(251, 191, 36, .35) !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, .08) !important
}

.ep-cell.incident .ep-dot {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber)
}

.ep-cell.healed {
  border-color: rgba(52, 211, 153, .25) !important;
  box-shadow: 0 0 10px rgba(52, 211, 153, .06) !important
}

/* ── HUB ── */
.col-center {
  flex: none;
  width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1
}

.hub {
  width: min(340px, 100%);
  aspect-ratio: 1;
  position: relative;
  animation: hubIn .6s cubic-bezier(.4, 0, .2, 1) .1s both
}

@keyframes hubIn {
  from {
    opacity: 0;
    transform: scale(.8)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.hub canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.hub .brain-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  opacity: .85;
  filter: drop-shadow(0 0 30px rgba(129, 140, 248, .2));
}

.brain-ai-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 80px;
  height: 50px;
  background: radial-gradient(ellipse, rgba(8,11,24,.85) 30%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}
.brain-ai {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 3;
  font: 900 44px/1 'Orbitron', sans-serif;
  letter-spacing: .15em;
  color: #fff;
  text-shadow: 0 0 10px rgba(129,140,248,1), 0 0 30px rgba(129,140,248,.7), 0 0 60px rgba(99,102,241,.5);
  pointer-events: none;
}

.hub-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

.hub-label .csm {
  font: 800 clamp(24px, 2.4vw, 32px)/1 'Space Grotesk', sans-serif;
  color: #e8ecf4;
  letter-spacing: 2px
}

.hub-label .csm sup {
  font-size: .5em;
  color: var(--indigo)
}

.hub-label .sub {
  font: 500 10px/1 'Space Grotesk', sans-serif;
  color: var(--text-3);
  letter-spacing: 2.5px;
  margin-top: 6px
}

.hub-flash {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: flash .8s ease-out forwards;
  pointer-events: none;
}

@keyframes flash {
  0% {
    transform: scale(.6);
    opacity: .5
  }

  100% {
    transform: scale(1.3);
    opacity: 0
  }
}

@keyframes borderGlow {
  to {
    transform: rotate(360deg)
  }
}

/* ── SHARED PANEL HEADER ── */
.panel-hdr {
  font: 600 12px/1 'Space Grotesk', sans-serif;
  color: var(--text-3);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-hdr::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 6px var(--indigo)
}

.ep-tip {
  text-align: center;
  font: 400 11px/1 'Inter', sans-serif;
  color: var(--text-3);
  opacity: .55;
  margin-top: 10px;
  letter-spacing: .02em;
}

/* split layout: stats left, features right */
.biz-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px
}

/* stat column (left) */
.biz-stats {
  display: flex;
  flex-direction: column;
  gap: 0
}

.stat-row {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  opacity: 0;
  animation: statIn .4s ease-out forwards;
}

.stat-row:last-child {
  border-bottom: none
}

@keyframes statIn {
  from {
    opacity: 0;
    transform: translateX(-12px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.stat-val {
  font: 800 22px/1.1 'Space Grotesk', sans-serif;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em
}

.stat-q {
  font: 600 10px/1 'Space Grotesk', sans-serif;
  -webkit-text-fill-color: var(--indigo);
  margin-left: 3px;
  letter-spacing: .04em
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px
}

.stat-bar {
  height: 2px;
  background: rgba(255, 255, 255, .04);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden
}

.stat-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s cubic-bezier(.4, 0, .2, 1)
}

/* feature column (right) */
.biz-feats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, .03);
  padding-left: 12px
}

.biz-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  font: 500 10.5px/1.2 'Inter', sans-serif;
  color: var(--text-3);
  transition: all .25s;
  opacity: 0;
  animation: featIn .3s ease-out forwards;
}

.biz-feat:hover {
  color: var(--text-2);
  background: rgba(255, 255, 255, .02)
}

.biz-feat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .5
}

.biz-feat-dot.fd-p {
  background: var(--purple)
}

.biz-feat-dot.fd-i {
  background: var(--indigo)
}

.biz-feat-dot.fd-b {
  background: var(--blue)
}

@keyframes featIn {
  from {
    opacity: 0;
    transform: translateX(10px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

/* ── BOTTOM ── */
.bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0 20px;
  flex-shrink: 0
}

/* action buttons row */
.footer-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap
}

.fa-btn {
  font: 600 12px/1 'Inter', sans-serif;
  color: var(--text);
  padding: 9px 20px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(192, 132, 252, .08), rgba(129, 140, 248, .08));
  border: 1px solid rgba(139, 92, 246, .2);
  cursor: pointer;
  transition: all .3s;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  text-decoration: none;
  display: inline-block;
}

.fa-btn:hover {
  border-color: rgba(139, 92, 246, .4);
  background: linear-gradient(135deg, rgba(192, 132, 252, .14), rgba(129, 140, 248, .14));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, .12);
}

.fa-btn.fa-primary {
  background: var(--brand);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(168, 85, 247, .15);
}

.fa-btn.fa-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, .25);
}

/* partners section */
.footer-partners-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%
}

.partners-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

.partners-divider::before,
.partners-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .15), transparent);
}

.partners-label {
  font: 500 10px/1 'Space Grotesk', sans-serif;
  color: var(--text-3);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .6;
}

.footer-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap
}

.fp-logo {
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: .3;
  filter: grayscale(1) invert(1) brightness(1.4);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.fp-logo:hover {
  opacity: .55;
  filter: grayscale(.2) invert(1) brightness(1.6) drop-shadow(0 0 10px rgba(139, 92, 246, .25));
}
.fp-logo-link { text-decoration: none; display: inline-flex; }
.fp-logo-link .fp-logo { cursor: pointer; }


/* ── NOTIF ── */
.notif {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(13, 17, 32, .7);
  border: 1px solid rgba(52, 211, 153, .12);
  padding: 5px 14px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  font: 500 10.5px/1 'Inter', sans-serif;
  color: rgba(52, 211, 153, .7);
  white-space: nowrap;
  pointer-events: none;
  animation: notifUp .3s ease-out, notifOut .3s ease-in 1.8s forwards;
}

@keyframes notifUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px)
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
  }
}

@keyframes notifOut {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px)
  }
}

/* ── RESPONSIVE ── */
@media(max-width:1200px) {
  .stage {
    gap: 16px
  }
}

@media(max-width:1024px) {
  .stage {
    gap: 14px
  }

  .col-left,
  .col-right {
    flex: 0 0 260px
  }

  .col-center {
    flex: 1;
    width: auto
  }

  .page {
    padding: 0 32px
  }
}

/* ── 900px: tablet / small laptop ── */
@media(max-width:900px) {
  body {
    overflow-y: auto;
    height: auto
  }

  .page {
    height: auto;
    min-height: 100vh;
    padding: 0 20px 20px
  }

  .stage {
    flex-direction: column;
    gap: 16px;
    align-items: stretch
  }

  .conn-svg {
    display: none
  }

  .col-center {
    flex: none;
    width: auto;
    min-height: 0;
    min-width: 0
  }

  /* keep notif inside hub on stacked layout */
  .hub {
    overflow: hidden
  }

  .notif {
    bottom: auto;
    top: 8px
  }

  .col-left,
  .col-right {
    flex: none;
    max-width: 480px;
    margin: 0 auto;
    width: 100%
  }

  /* kill JS syncPanelHeights on stacked layout */
  .col-left .panel,
  .col-right .panel {
    min-height: auto !important
  }

  .ep-grid {
    grid-template-columns: 1fr 1fr
  }

  .hero p {
    white-space: normal
  }

  /* tabs two centered rows */
  .tabs-inner {
    flex-wrap: wrap;
    justify-content: center
  }

  .also-supported {
    font-size: 11px
  }

  .tab {
    min-width: 72px;
    padding: 10px 14px 8px
  }

  /* hub shrink */
  .hub {
    width: min(260px, 100%)
  }

  .hub .brain-img {
    width: 150px;
    height: 150px
  }

  .brain-ai { font-size: 34px }
  .brain-ai-bg { width: 65px; height: 42px; }

  /* tighter spacing */
  .panel {
    padding: 16px
  }

  .bottom-bar {
    gap: 10px
  }

  /* smaller buttons */
  .fa-btn {
    padding: 8px 16px;
    font-size: 11.5px
  }

  /* smaller logos */
  .footer-partners {
    gap: 24px
  }

  .fp-logo {
    height: 18px
  }
}

/* ── 640px: large phones ── */
@media(max-width:640px) {
  .page {
    padding: 0 14px 60px 14px
  }

  .nav {
    height: 48px
  }

  .logo {
    height: 42px
  }

  /* CTA button fixed to bottom (dashboard only) */
  .nav > .cta-btn {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    border-radius: 0;
    padding: 14px 28px;
    text-align: center;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .3);
  }

  /* hub shrink more */
  .hub {
    width: min(220px, 100%)
  }

  .hub .brain-img {
    width: 130px;
    height: 130px
  }

  .brain-ai { font-size: 28px }
  .brain-ai-bg { width: 55px; height: 36px; }

  .col-center {
    min-height: 0
  }

  /* tabs compact */
  .tab {
    min-width: 60px;
    padding: 8px 10px 7px;
    gap: 5px
  }

  .also-supported {
    font-size: 10.5px
  }

  .tab .tab-ic {
    width: 16px;
    height: 16px
  }

  .tab span {
    font-size: 10px
  }

  /* stage gap */
  .stage {
    gap: 12px
  }

  /* biz panel stacks */
  .biz-split {
    grid-template-columns: 1fr
  }

  .biz-feats {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .03);
    padding-left: 0;
    padding-top: 10px
  }

  /* endpoint cells */
  .ep-grid {
    grid-template-columns: 1fr 1fr
  }

  .ep-cell {
    padding: 8px 10px;
    gap: 6px
  }

  .ep-ic {
    width: 16px;
    height: 16px
  }

  .ep-cell span {
    font-size: 11px
  }

  /* sub-cards */
  .sub-card {
    padding: 10px 6px 8px;
    gap: 6px
  }

  .sub-card svg {
    width: 22px;
    height: 22px
  }

  .sub-card span {
    font-size: 11px
  }

  /* buttons */
  .fa-btn {
    padding: 7px 12px;
    font-size: 10.5px
  }

  /* logos */
  .footer-partners {
    gap: 18px
  }

  .fp-logo {
    height: 14px
  }
}

/* ── 480px: small phones ── */
@media(max-width:480px) {
  .page {
    padding: 0 12px 12px
  }

  /* hub aggressive */
  .hub {
    width: min(180px, 100%)
  }

  .hub .brain-img {
    width: 110px;
    height: 110px
  }

  .col-center {
    min-height: 0
  }

  /* tabs tiny */
  .tab {
    min-width: 56px;
    padding: 7px 8px 6px;
    gap: 4px
  }

  .tab .tab-ic {
    width: 14px;
    height: 14px
  }

  .tab span {
    font-size: 9.5px
  }

  /* action buttons 2x2 grid */
  .footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px
  }

  .fa-btn {
    padding: 8px 10px;
    font-size: 10.5px;
    text-align: center
  }

  /* all spacing minimal */
  .stage {
    gap: 10px
  }

  .panel {
    padding: 14px
  }

  /* partner logos */
  .footer-partners {
    gap: 12px
  }

  .fp-logo {
    height: 11px
  }

  /* stat values */
  .stat-val {
    font-size: 18px
  }
}

/* ═══════════════════════════════════════════════
   INDUSTRY DETAIL PAGE  (ind-* prefix)
   ═══════════════════════════════════════════════ */

.ind-page {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
}

/* ── Nav ── */
.ind-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0 max(20px, calc((100vw - 1440px) / 2));
  background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.admin-bar .ind-nav { top: 32px }
@media(max-width:782px) { .admin-bar .ind-nav { top: 46px } }

.ind-logo-link { display: flex; align-items: center; flex-shrink: 0 }

.ind-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s;
}
.ind-back:hover { color: var(--purple) }
.ind-back svg { flex-shrink: 0 }

.ind-nav .logo {
  height: 40px;
  flex-shrink: 0;
  filter: brightness(1.05);
}

.ind-nav-links-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

/* Fade hint on right edge when scrollable */
.ind-nav-links-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(10,14,26,.85));
  pointer-events: none;
  z-index: 1;
}

.ind-nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,.25) transparent;
  padding-right: 32px;
  padding-bottom: 6px;
}

.ind-nav-links::-webkit-scrollbar {
  height: 3px;
}

.ind-nav-links::-webkit-scrollbar-track {
  background: transparent;
}

.ind-nav-links::-webkit-scrollbar-thumb {
  background: rgba(139,92,246,.3);
  border-radius: 3px;
}

.ind-nav-links::-webkit-scrollbar-thumb:hover {
  background: rgba(139,92,246,.5);
}

.ind-nav-link {
  font: 500 12.5px/1 'Inter', sans-serif;
  color: var(--text-3);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 20px;
  white-space: nowrap;
  transition: color .25s, background .25s, border-color .25s;
  border: 1px solid transparent;
  cursor: pointer;
}

.ind-nav-link:hover {
  color: var(--text-2);
  background: rgba(255,255,255,.04);
}

.ind-nav-link.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(192,132,252,.1), rgba(129,140,248,.1));
  border-color: rgba(139,92,246,.25);
}

.ind-nav .cta-btn {
  flex-shrink: 0;
  padding: 9px 22px;
  font-size: 12.5px;
  border-radius: 9px;
}

@media(min-width:1001px) {
  .ind-nav-links {
    scrollbar-width: none;
    padding-bottom: 0;
  }
  .ind-nav-links::-webkit-scrollbar { display: none }
}

@media(max-width:1000px) {
  .ind-nav .cta-btn { display: none }
}

/* ── Hero ── */
.ind-hero {
  text-align: center;
  padding: 96px 0 72px;
  position: relative;
}

.ind-hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(139,92,246,.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.ind-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(192,132,252,.07);
  border: 1px solid rgba(192,132,252,.14);
  font: 600 11px/1 'Space Grotesk', sans-serif;
  color: var(--purple);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ind-hero h1 {
  font: 700 clamp(38px, 5vw, 60px)/1.08 'Space Grotesk', sans-serif;
  letter-spacing: -.035em;
  color: var(--text);
  max-width: 840px;
  margin: 0 auto;
}

.ind-hero .tagline {
  font: 400 18px/1.7 'Inter', sans-serif;
  color: var(--text-2);
  margin: 22px auto 0;
  max-width: 620px;
}

.ind-hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

/* ── Prose content ── */
.ind-prose {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 48px;
}

/* Thin gradient rule to transition from hero to content */
.ind-prose::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  margin: 0 auto 64px;
}

/* ── Prose typography (WordPress block content) ── */
.ind-prose h2, .ind-prose h3, .ind-prose h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  margin: 2em 0 .75em;
  line-height: 1.3;
}
.ind-prose h2 { font-size: 1.5rem; font-weight: 700 }
.ind-prose h3 { font-size: 1.2rem; font-weight: 600 }
.ind-prose h4 { font-size: 1.05rem; font-weight: 600 }
.ind-prose h2:first-child,
.ind-prose h3:first-child,
.ind-prose h4:first-child { margin-top: 0 }

.ind-prose p {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  line-height: 1.75;
  margin: 0 0 1.25em;
}

.ind-prose ul, .ind-prose ol {
  color: rgba(255,255,255,.78);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.75;
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}
.ind-prose li { margin-bottom: .4em }
.ind-prose li::marker { color: rgba(192,132,252,.6) }

.ind-prose a {
  color: #c084fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.ind-prose a:hover { color: #e0b3ff }

.ind-prose strong { color: #fff; font-weight: 600 }
.ind-prose em { font-style: italic }

/* ── Table of Contents ── */
.ind-toc {
  display: flex;
  flex-direction: column;
  margin-bottom: 56px;
  border-left: 2px solid rgba(192,132,252,.3);
  padding-left: 20px;
}
.ind-toc-label {
  display: block;
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(192,132,252,.5);
  margin-bottom: 14px;
}
.ind-toc-link {
  font: 400 14px/1.3 'Inter', sans-serif;
  color: var(--text-3);
  padding: 8px 0;
  text-decoration: none;
  transition: color .2s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.ind-toc-link:last-child { border-bottom: none; }
.ind-toc-link:hover { color: #e0e7ff; }

/* ── Sections ── */
.ind-section {
  scroll-margin-top: 100px;
  margin-bottom: 56px;
}

.ind-section:last-child {
  margin-bottom: 0;
}

.ind-section-heading {
  font: 600 clamp(24px, 2.8vw, 32px)/1.2 'Space Grotesk', sans-serif;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.ind-section-body {
  font: 400 16.5px/1.8 'Inter', sans-serif;
  color: var(--text-2);
}

.ind-section-body p { margin-bottom: 20px }
.ind-section-body p:last-child { margin-bottom: 0 }

.ind-section-body strong {
  color: var(--text);
  font-weight: 600;
}

.ind-section-body em { color: var(--text-2) }

.ind-section-body a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(192,132,252,.35);
  transition: text-decoration-color .2s, color .2s;
}

.ind-section-body a:hover {
  color: var(--indigo);
  text-decoration-color: var(--indigo);
}

.ind-section-body ul,
.ind-section-body ol {
  margin: 16px 0 20px 28px;
}

.ind-section-body li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.ind-section-body li::marker {
  color: var(--purple);
}

.ind-section-body blockquote {
  border-left: 3px solid var(--purple);
  padding: 4px 0 4px 20px;
  margin: 20px 0;
  color: var(--text-2);
  font-style: italic;
}

/* ── Footer CTA ── */
.ind-cta {
  position: relative;
  text-align: center;
  padding: 64px 48px;
  margin: 24px auto 72px;
  max-width: 720px;
  border-radius: 20px;
  background: rgba(13, 17, 32, .5);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.ind-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192,132,252,.25), rgba(129,140,248,.12), rgba(96,165,250,.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ind-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(139,92,246,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ind-cta > * { position: relative; z-index: 1 }

.ind-cta-subtitle {
  font: 500 12px/1 'Space Grotesk', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
  opacity: .8;
}

.ind-cta h2 {
  font: 600 clamp(24px, 2.5vw, 32px)/1.25 'Space Grotesk', sans-serif;
  color: var(--text);
  margin-bottom: 12px;
}

.ind-cta-desc {
  font: 400 15px/1.65 'Inter', sans-serif;
  color: var(--text-3);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.ind-cta .footer-actions { justify-content: center }

/* ── Responsive: 768px ── */
@media(max-width:768px) {
  .ind-page { padding: 0 24px }

  .ind-nav {
    margin: 0 -24px;
    padding: 0 24px;
    gap: 10px;
  }

  .ind-hero { padding: 64px 0 56px }
  .ind-hero::before { width: 450px; height: 350px }
  .ind-prose { padding-bottom: 36px }
  .ind-prose::before { margin-bottom: 48px }
  .ind-section { margin-bottom: 44px }
  .ind-cta { padding: 48px 28px; margin-bottom: 48px }
}

/* ── Responsive: 480px ── */
@media(max-width:480px) {
  .ind-page { padding: 0 16px }

  .ind-nav {
    margin: 0 -16px;
    padding: 0 16px;
    height: 50px;
  }

  .ind-nav .logo { height: 30px }
  .ind-nav-link { font-size: 11px; padding: 5px 10px }

  .ind-hero { padding: 48px 0 40px }
  .ind-hero .tagline { font-size: 16px }

  .ind-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .ind-prose::before { margin-bottom: 36px }
  .ind-section { margin-bottom: 36px }
  .ind-section-heading { font-size: 22px }
  .ind-section-body { font-size: 15.5px; line-height: 1.75 }

  .ind-cta {
    padding: 40px 20px;
    border-radius: 16px;
    margin-bottom: 36px;
  }

  .ind-cta h2 { font-size: 22px }

  .ind-cta .footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

/* ═══════════════════════════════════════════════
   CF7 FORM STYLES (inside .ind-prose)
   ═══════════════════════════════════════════════ */

.ind-prose .wpcf7 label {
  font: 500 14px/1.4 'Inter', sans-serif;
  color: var(--text-2);
  display: block;
  margin-bottom: 6px;
}

.ind-prose .wpcf7 input[type="text"],
.ind-prose .wpcf7 input[type="email"],
.ind-prose .wpcf7 input[type="tel"],
.ind-prose .wpcf7 input[type="url"],
.ind-prose .wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: 400 15px/1.5 'Inter', sans-serif;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  margin-bottom: 18px;
}

.ind-prose .wpcf7 input[type="text"]:focus,
.ind-prose .wpcf7 input[type="email"]:focus,
.ind-prose .wpcf7 input[type="tel"]:focus,
.ind-prose .wpcf7 input[type="url"]:focus,
.ind-prose .wpcf7 textarea:focus {
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 0 0 3px rgba(139,92,246,.1);
}

.ind-prose .wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.ind-prose .wpcf7 input[type="submit"] {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  font: 600 14px/1 'Inter', sans-serif;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 2px 12px rgba(168,85,247,.15);
}

.ind-prose .wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168,85,247,.3);
}

.ind-prose .cf7-row {
  display: flex;
  gap: 16px;
}

.ind-prose .cf7-row .cf7-col {
  flex: 1;
  min-width: 0;
}

@media(max-width:480px) {
  .ind-prose .cf7-row { flex-direction: column; gap: 0 }
}

/* ═══════════════════════════════════
   WCAG 2.0 — ACCESSIBILITY
   ═══════════════════════════════════ */

/* Skip-to-content link — visible on focus only */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 10px 18px;
  font: 600 13px/1 'Inter', sans-serif;
  color: #fff;
  background: var(--purple);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* Focus indicators for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* Remove outline for mouse clicks (only show on keyboard) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* ═══════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════ */

.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 32px 24px 40px;
  text-align: center;
}
.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #c084fc; }
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

/* ═══════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(20px, calc((100vw - 1200px) / 2));
  background: rgba(10, 14, 26, .95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.cookie-banner p {
  font: 400 13px/1.5 'Inter', sans-serif;
  color: var(--text-2);
  margin: 0;
}

.cookie-banner a {
  color: var(--purple);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-accept {
  padding: 8px 20px;
  font: 600 13px/1 'Inter', sans-serif;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .2s;
}
.cookie-accept:hover { opacity: .85; }

.cookie-decline {
  padding: 8px 16px;
  font: 400 13px/1 'Inter', sans-serif;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.cookie-decline:hover {
  color: var(--text-2);
  border-color: var(--border-h);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }
}

/* ═══════════════════════════════════
   BOOK A DEMO PAGE
   ═══════════════════════════════════ */

.demo-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.demo-intro {
  padding-top: 40px;
}

.demo-badge {
  display: inline-block;
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(192, 132, 252, .08);
  border: 1px solid rgba(192, 132, 252, .15);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.demo-intro h1 {
  font: 700 38px/1.15 'Inter', sans-serif;
  color: var(--text);
  margin-bottom: 16px;
}

.demo-subtitle {
  font: 400 16px/1.65 'Inter', sans-serif;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 420px;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 14px/1.4 'Inter', sans-serif;
  color: var(--text-2);
}

.demo-feat svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--green);
}

/* ── Form card ── */
.demo-form-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(12px);
}

.demo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

/* single-column fields */
.demo-form > .demo-field {
  margin-bottom: 16px;
}

.demo-privacy {
  margin-bottom: 20px;
}
.demo-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 400 .85rem/1.5 'Inter', sans-serif;
  color: rgba(255,255,255,.7);
  cursor: pointer;
}
.demo-privacy-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #7c3aed;
  flex-shrink: 0;
}
.demo-privacy-label a {
  color: #c084fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.demo-privacy-label a:hover { color: #e0b3ff; }
.demo-privacy .demo-error {
  color: #f87171;
  font-size: .8rem;
  margin-top: 6px;
}

.demo-field label,
.demo-captcha label {
  font: 500 13px/1 'Inter', sans-serif;
  color: var(--text-2);
}

.demo-field .req,
.demo-captcha .req {
  color: #f87171;
}

.demo-field input {
  width: 100%;
  padding: 10px 14px;
  font: 400 14px/1.4 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.demo-field input::placeholder {
  color: var(--text-3);
  opacity: .6;
}

.demo-field input:focus {
  border-color: rgba(192, 132, 252, .4);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, .08);
}

.demo-field.has-error input {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .1);
}

.demo-error {
  display: block;
  font: 400 12px/1.3 'Inter', sans-serif;
  color: #f87171;
  margin-top: 4px;
}

/* ── Captcha ── */
.demo-captcha {
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-captcha-img {
  height: 36px;
  border-radius: 6px;
  background: #fff;
}

.demo-captcha-input {
  flex: 1;
  max-width: 160px;
  padding: 9px 12px;
  font: 400 14px/1.4 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
}

.demo-captcha-input:focus {
  border-color: rgba(192, 132, 252, .4);
}

.demo-captcha-reload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-3);
  transition: color .2s, border-color .2s;
}

.demo-captcha-reload:hover {
  color: var(--text);
  border-color: var(--border-h);
}

/* ── Actions ── */
.demo-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.demo-submit {
  padding: 12px 32px;
  font: 600 14px/1 'Inter', sans-serif;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}

.demo-submit:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.demo-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.demo-reset {
  padding: 10px 20px;
  font: 400 13px/1 'Inter', sans-serif;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.demo-reset:hover {
  color: var(--text-2);
  border-color: var(--border-h);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .demo-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 16px 60px;
  }
  .demo-intro { padding-top: 0; }
  .demo-intro h1 { font-size: 28px; }
  .demo-form-grid { grid-template-columns: 1fr; }
  .demo-form-card { padding: 24px; }
}