/* ─── Components ─────────────────────────────────────────── */

/* Gradient text utility */
.gradient-text {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7em 1.5em;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--t-spring);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--g-brand);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn--primary:hover::before { background: rgba(255,255,255,0.1); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,0.55); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover {
  color: var(--c-text);
  border-color: var(--c-border-2);
  background: rgba(124, 58, 237, 0.07);
  transform: translateY(-1px);
}

.btn--outline {
  color: var(--c-purple-light);
  border: 1px solid var(--c-border-2);
}
.btn--outline:hover {
  border-color: var(--c-purple);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

.btn--lg { padding: 0.85em 2em; font-size: 1.05rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding-top: 110px;
  padding-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-hero);
  pointer-events: none;
}

/* Split layout */
.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-purple-light);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
  width: fit-content;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--c-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  line-height: 1.08;
  text-align: left;
}

.hero__sub {
  max-width: 440px;
  margin-bottom: var(--sp-8);
  color: var(--c-text-2);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  text-align: left;
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

/* Plan pills */
.hero__plans-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
  margin-top: 0;
}
.hero__models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-8);
}
.model-pill {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 0.3em 0.9em;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--c-text-muted);
  white-space: nowrap;
}
.model-pill--active {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
  color: #34d399;
  font-weight: 600;
}
.model-pill--nexus {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.3);
  color: #a78bfa;
}

/* Stats — now in left column */
.hero__stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hstat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 1.25rem;
}
.hstat:first-child { padding-left: 0; }

.hstat__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.hstat__num .stat__num {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 1.5ch;
}
.hstat__suf {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-purple-light);
  -webkit-text-fill-color: initial;
}
.hstat__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-muted);
}
.hstat__div {
  width: 1px;
  background: rgba(255,255,255,0.08);
  align-self: stretch;
  margin: 0;
}

/* ── IDE Window ─────────────────────────────────────────── */
.hero__right {
  position: relative;
}

.ide-window {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.ide-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ide-dots { display: flex; gap: 6px; flex-shrink: 0; }
.ide-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.ide-dot--red    { background: #ff5f57; }
.ide-dot--yellow { background: #febc2e; }
.ide-dot--green  { background: #28c840; }

.ide-tabs {
  display: flex;
  gap: 0;
  flex: 1;
  overflow: hidden;
}
.ide-tab {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
  padding: 0.3em 0.8em;
  border-radius: 6px 6px 0 0;
  cursor: default;
  white-space: nowrap;
}
.ide-tab--active {
  color: rgba(255,255,255,0.9);
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid #0d1117;
}
.ide-tab--ai { color: #a78bfa; }

.ide-bar-right { margin-left: auto; flex-shrink: 0; }
.ide-status-pill {
  font-size: 0.68rem;
  padding: 0.2em 0.6em;
  border-radius: 100px;
}
.ide-status-pill--green {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.2);
}

.ide-body {
  display: flex;
  height: 280px;
  overflow: hidden;
}

.ide-sidebar {
  width: 130px;
  flex-shrink: 0;
  background: #0d1117;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 0.5rem 0;
  overflow: hidden;
}
.ide-sbar-section {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  padding: 0.4rem 0.75rem 0.2rem;
  text-transform: uppercase;
}
.ide-sbar-stat {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  padding: 0.1rem 0.75rem;
}
.ide-sbar-item {
  font-size: 0.7rem;
  padding: 0.2rem 0.75rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  cursor: default;
}
.ide-sbar-item--active { color: rgba(255,255,255,0.9); background: rgba(139,92,246,0.1); }
.ide-sbar-item--dir { color: rgba(255,255,255,0.6); }

.ide-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.ide-code {
  flex: 1;
  padding: 0.5rem 0;
  overflow: hidden;
  line-height: 1.6;
}
.cl {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 0 0.75rem;
  white-space: pre;
}
.cl--active { background: rgba(139,92,246,0.06); }
.ln {
  display: inline-block;
  width: 1.8rem;
  color: rgba(255,255,255,0.2);
  text-align: right;
  margin-right: 1rem;
  flex-shrink: 0;
  user-select: none;
  font-size: 0.7rem;
}

/* Syntax colors */
.kw  { color: #ff7b72; }
.im  { color: #79c0ff; }
.fn  { color: #d2a8ff; }
.cn  { color: #ffa657; }
.at  { color: #79c0ff; }
.param { color: #ffa657; }
.st  { color: #a5d6ff; }
.cm  { color: rgba(255,255,255,0.3); font-style: italic; }

.cursor-blink {
  color: #a78bfa;
  animation: type-cursor 1s step-end infinite;
}

/* AI panel in IDE */
.ide-ai-panel {
  background: #0a0f16;
  border-top: 1px solid rgba(139,92,246,0.2);
  flex-shrink: 0;
}
.ide-ai-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ide-ai-icon  { color: #a78bfa; font-size: 0.85rem; }
.ide-ai-name  { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.72rem; }
.ide-ai-model {
  font-size: 0.65rem;
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  padding: 0.1em 0.5em;
  border-radius: 100px;
  border: 1px solid rgba(139,92,246,0.2);
}
.ide-ai-mode {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
}

.ide-ai-body { padding: 0.5rem 0.75rem; display: flex; flex-direction: column; gap: 0.2rem; }
.ide-ai-line { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.ide-ai-line strong { color: #ffa657; }
.ide-ai-code {
  font-size: 0.68rem;
  color: #79c0ff;
  padding: 0.15rem 0.4rem;
  background: rgba(121,192,255,0.06);
  border-radius: 4px;
  border-left: 2px solid #79c0ff;
}
.ide-ai-suggestion {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: #34d399;
  margin-top: 0.1rem;
}
.ide-ai-sug-icon { flex-shrink: 0; }
.ide-ai-typing {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-top: 0.2rem;
}
.ide-ai-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #a78bfa;
  opacity: 0.4;
  animation: ai-dot-pulse 1.2s ease-in-out infinite;
}
.ide-ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ide-ai-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-dot-pulse {
  0%,100% { opacity:0.2; transform:scale(0.8); }
  50%      { opacity:1; transform:scale(1.2); }
}

/* Status bar */
.ide-statusbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: #1f2937;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.65rem;
}
.ide-sb-item { color: rgba(255,255,255,0.4); white-space: nowrap; }
.ide-sb-item--green { color: #34d399; }
.ide-sb-item--ai { color: #a78bfa; }
.ide-sb-spacer { flex: 1; }

/* Responsive hero */
@media (max-width: 1100px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .hero__title { font-size: clamp(2.5rem, 7vw, 4.5rem); text-align: center; }
  .hero__sub   { text-align: center; margin: 0 auto var(--sp-7); }
  .hero__badge { margin: 0 auto var(--sp-5); }
  .hero__actions { justify-content: center; }
  .hero__models { justify-content: center; }
  .hero__stats { justify-content: center; }
}

/* Stat fallback (old classes still used by counter.js) */
.stat__num {
  font-size: inherit;
  font-weight: inherit;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



.stat__label {
  font-size: 0.72rem;
  color: var(--c-text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.stat__divider {
  width: 1px;
  align-self: stretch;
  margin: 4px 0;
  background: var(--c-border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .stat { min-width: 100px; padding: 0 var(--sp-4); }
  .stat__num { font-size: 2rem; }
}


/* ── Terminal demo ───────────────────────────────────────── */
.terminal-demo {
  max-width: 780px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(10, 10, 20, 0.9);
  border: 1px solid var(--c-border-2);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  backdrop-filter: blur(12px);
}

.terminal-demo__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--c-border);
}

.tbar-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tbar-dot--red    { background: #ff5f57; }
.tbar-dot--yellow { background: #febc2e; }
.tbar-dot--green  { background: #28c840; }

.tbar-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-text-3);
  margin: 0 auto;
}

.terminal-demo__body {
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.term-line { display: flex; align-items: center; flex-wrap: wrap; }
.term-prompt { color: var(--c-purple-light); }
.term-at     { color: var(--c-text-3); }
.term-host   { color: var(--c-cyan); }
.term-sep    { color: var(--c-text-3); }
.term-path   { color: var(--c-blue-light); }
.term-dollar { color: var(--c-text-2); }
.term-cmd    { color: var(--c-text); }
.term-out    { color: var(--c-text-2); padding-left: 2px; }
.term-ok     { color: #28c840; }
.term-info   { color: var(--c-cyan); }

.term-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--c-purple-light);
  border-radius: 1px;
  animation: blink 1.1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── Feature cards ───────────────────────────────────────── */
.feat-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-spring), border-color var(--t-base), box-shadow var(--t-base);
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(124,58,237,0.5) 50%, transparent 100%);
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-2);
  box-shadow: var(--shadow-card);
}

.feat-card--accent {
  background: linear-gradient(145deg, rgba(124,58,237,0.14) 0%, rgba(6,182,212,0.06) 100%);
  border-color: rgba(124, 58, 237, 0.25);
}

.feat-card--glass {
  background: rgba(22, 22, 42, 0.7);
  backdrop-filter: blur(8px);
}

.feat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--c-purple-light);
  margin-bottom: var(--sp-5);
  transition: background var(--t-base), color var(--t-base);
}

.feat-card:hover .feat-card__icon {
  background: rgba(124, 58, 237, 0.22);
  color: #c4b5fd;
}

.feat-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
  color: var(--c-text);
}

.feat-card__desc {
  font-size: 0.92rem;
  color: var(--c-text-2);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
}

.feat-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.18);
  padding: 3px 10px;
  border-radius: var(--r-full);
}

/* ── Code showcase section ────────────────────────────────── */
.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.showcase__desc {
  color: var(--c-text-2);
  margin: var(--sp-5) 0;
  font-size: 1.02rem;
}

.showcase__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.showcase__list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.95rem;
  color: var(--c-text-2);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  color: var(--c-cyan);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Code window */
.code-window {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-2);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  position: relative;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.code-window__filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-text-3);
  margin-left: var(--sp-2);
}

.code-window__body {
  background: var(--c-bg-2);
  padding: var(--sp-6);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.code-window__body code { color: var(--c-text); }
.code-window__body .kw { color: #c678dd; }
.code-window__body .fn { color: #61afef; }
.code-window__body .ty { color: #e5c07b; }
.code-window__body .cmt { color: var(--c-text-3); font-style: italic; }

.code-window__glow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 1px;
  background: var(--g-brand);
  filter: blur(12px);
}

@media (max-width: 860px) {
  .showcase__inner { grid-template-columns: 1fr; }
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border-2);
  padding: var(--sp-16) var(--sp-10);
  text-align: center;
}

.cta-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(6,182,212,0.12) 100%);
  z-index: 0;
}

.cta-card__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(124,58,237,0.18) 0%, transparent 70%);
}

.cta-card__content { position: relative; z-index: 1; }

.cta-card__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.cta-card__sub {
  color: var(--c-text-2);
  font-size: 1.1rem;
  margin-bottom: var(--sp-8);
}

.cta-card__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: var(--sp-8);
}

/* Top area: brand + nav columns */
.footer__top {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: flex-start;
  padding: var(--sp-16) 0 var(--sp-12);
  flex-wrap: wrap;
}

.footer__brand {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
}

.footer__tagline {
  color: var(--c-text-3);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-4);
}

/* Mini-badges under tagline */
.footer__badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
}

.footer__badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--c-text-muted);
  white-space: nowrap;
}

.footer__badge--ai {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.25);
  color: #a78bfa;
}

/* Nav columns */
.footer__nav {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 110px;
}

.footer__heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-1);
}

.footer__col a,
.footer__cookie-link {
  font-size: 0.875rem;
  color: var(--c-text-2);
  transition: color var(--t-fast);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  display: block;
}

.footer__col a:hover,
.footer__cookie-link:hover {
  color: var(--c-text);
}

/* Bottom bar */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  gap: 1rem;
}

.footer__bottom-left p {
  font-size: 0.8rem;
  color: var(--c-text-3);
  white-space: nowrap;
}

.footer__nexusai {
  color: #a78bfa;
}

.footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__mqxx {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color var(--t-fast);
}
.footer__mqxx:hover { color: var(--c-purple-light); }

.footer__version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-purple-light);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer__top { flex-direction: column; }
  .footer__brand { flex: none; }
  .footer__nav { justify-content: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}




/* ── Mockup tabs ───────────────────────────────────────── */
.showcase__window {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-2);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  background: rgba(10,10,20,0.7);
}

.mockup-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 14px 8px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--c-border);
}

.mockup-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-text-3);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--t-fast);
}
.mockup-tab:hover { color: var(--c-text); background: rgba(255,255,255,0.04); }
.mockup-tab--active {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.25);
  color: var(--c-purple-light);
}

.mockup-screen { display: block; }
.mockup-screen--hidden { display: none; }

.mockup-img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}

[data-theme="light"] .showcase__window { background: rgba(240,240,250,0.8); }
[data-theme="light"] .mockup-tabs { background: rgba(0,0,0,0.04); }

/* ── Hero Feature Cards ───────────────────────────────────── */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  padding-bottom: 3rem;
}

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  transition: transform 0.3s var(--t-spring), border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-card--featured {
  background: rgba(139,92,246,0.06);
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 0 40px rgba(139,92,246,0.08);
}

.hero-card--featured:hover {
  border-color: rgba(139,92,246,0.45);
  box-shadow: 0 20px 60px rgba(139,92,246,0.2);
}

/* Glow background blobs */
.hero-card__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: -60px;
  right: -60px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-card__glow--cyan  { background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%); }
.hero-card__glow--indigo { background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%); }

/* Header row */
.hero-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-card__icon--purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.hero-card__icon--cyan   { background: rgba(6,182,212,0.15);  color: #22d3ee; }
.hero-card__icon--indigo { background: rgba(99,102,241,0.15); color: #818cf8; }

/* Tags */
.hero-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25em 0.65em;
  border-radius: 100px;
}
.hero-card__tag--green  { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.hero-card__tag--purple { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
.hero-card__tag--blue   { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }

/* Live dot pulse */
.hero-card__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}

/* Title & desc */
.hero-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text-primary);
  line-height: 1.3;
}

.hero-card__desc {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  flex: 1;
}

/* Metric */
.hero-card__metric {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-card__metric-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text-primary);
  font-variant-numeric: tabular-nums;
}
.hero-card__metric-label {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* SSH card code footer */
.hero-card__footer { margin-top: auto; }
.hero-card__code {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.hc-prompt { color: #a78bfa; font-weight: 700; }
.hc-cmd    { color: #e2e8f0; }
.hc-cursor { color: #a78bfa; animation: type-cursor 1s step-end infinite; }

/* AI stream */
.hero-card__ai-stream {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(139,92,246,0.15);
  min-height: 2rem;
}
.hc-ai-prefix { color: #22d3ee; font-weight: 700; }
.hc-ai-text   { color: #e2e8f0; flex: 1; }
.hc-ai-blink  { color: #22d3ee; animation: type-cursor 0.7s step-end infinite; }

/* Sync progress */
.hero-card__progress { display: flex; flex-direction: column; gap: 0.4rem; }
.hc-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.hc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  border-radius: 100px;
  animation: progress-loop 3s ease-in-out infinite;
}
@keyframes progress-loop {
  0%   { width: 0%; }
  60%  { width: 90%; }
  85%  { width: 100%; }
  100% { width: 0%; }
}
.hc-progress-label {
  font-size: 0.72rem;
  color: var(--c-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-cards { grid-template-columns: 1fr; }
}

/* Light theme */
[data-theme="light"] .hero-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .hero-card__code,
[data-theme="light"] .hero-card__ai-stream {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .hero-card__metric {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
}

/* ── Hero Modes Ticker ───────────────────────────────────── */
.hero-ticker {
  width: 100%;
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.hero-ticker__track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  padding-left: 2rem;
  animation: ticker-scroll 32s linear infinite;
}

.hero-ticker:hover .hero-ticker__track { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.htick {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-muted);
  white-space: nowrap;
  padding: 0.3em 0.7em;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, background 0.2s;
  cursor: default;
}

.htick:hover {
  color: var(--c-text-primary);
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.25);
}

.htick--sep {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.15);
  font-size: 1rem;
}

[data-theme="light"] .htick {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .htick--sep { color: rgba(0,0,0,0.2); }
