/* Berlin2003 home — tech edition (full rewrite, depth + motion).
   All classes prefixed `hx-` to avoid clashing with home-lab.css.
   Color: deep navy + cyan/teal/coral accents. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============ RESET / BASE ============ */
.hx-body {
  --hx-bg: #050b1a;
  --hx-bg-2: #0a1428;
  --hx-panel: rgba(14, 27, 51, 0.72);
  --hx-panel-solid: #0e1b33;
  --hx-line: rgba(120, 180, 255, 0.14);
  --hx-line-2: rgba(120, 180, 255, 0.28);
  --hx-ink: #e8f1ff;
  --hx-ink-dim: #9fb3d4;
  --hx-ink-mute: #6b7e9c;
  --hx-cyan: #4cc9f0;
  --hx-blue: #4d8bff;
  --hx-teal: #4ad6c4;
  --hx-coral: #ff6b6b;
  --hx-violet: #9d7bff;
  --hx-mono: "JetBrains Mono", "Cascadia Mono", "Consolas", monospace;
  --hx-sans: "Space Grotesk", "Aptos", "Segoe UI", "Noto Sans SC", sans-serif;
  --hx-glow: 0 0 0 1px rgba(76, 201, 240, 0.4), 0 24px 60px rgba(76, 139, 255, 0.18);

  margin: 0;
  min-height: 100vh;
  color: var(--hx-ink);
  background: var(--hx-bg);
  font-family: var(--hx-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* override style.css basics if any */
.hx-body a { color: inherit; text-decoration: none; }
.hx-body img { display: block; max-width: 100%; }

/* ============ BACKGROUND LAYERS ============ */
.hx-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(76, 201, 240, 0.18), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(255, 107, 107, 0.12), transparent 55%),
    linear-gradient(180deg, #050b1a 0%, #07142b 60%, #050b1a 100%);
}

.hx-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(120, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

.hx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: hxFloat 18s ease-in-out infinite;
}
.hx-orb-1 { top: -10%; right: -8%; width: 520px; height: 520px; background: radial-gradient(circle, #4cc9f0 0%, transparent 70%); }
.hx-orb-2 { top: 30%; left: -12%; width: 460px; height: 460px; background: radial-gradient(circle, #9d7bff 0%, transparent 70%); animation-delay: -6s; }
.hx-orb-3 { bottom: -15%; right: 20%; width: 420px; height: 420px; background: radial-gradient(circle, #ff6b6b 0%, transparent 70%); opacity: 0.32; animation-delay: -12s; }

@keyframes hxFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

.hx-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.hx-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ============ SHELL ============ */
.hx-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 60px;
  min-width: 0;
}

/* ============ NAV ============ */
.hx-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(14, 27, 51, 0.85), rgba(14, 27, 51, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.04);
}

.hx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.hx-brand-mark {
  width: 34px; height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--hx-cyan), var(--hx-blue));
  color: #050b1a;
  box-shadow: 0 0 24px rgba(76, 201, 240, 0.5);
}
.hx-brand-mark svg { width: 20px; height: 20px; }
.hx-brand-text strong { color: var(--hx-cyan); font-weight: 700; }

.hx-nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-family: var(--hx-mono);
}
.hx-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hx-ink-dim);
  border-radius: 8px;
  transition: color 200ms, background 200ms;
}
.hx-nav-links a span {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--hx-cyan);
  opacity: 0.7;
}
.hx-nav-links a:hover {
  color: var(--hx-ink);
  background: rgba(76, 201, 240, 0.08);
}
.hx-nav-links a:hover span { opacity: 1; }

.hx-nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--hx-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--hx-teal);
  background: rgba(74, 214, 196, 0.08);
  border: 1px solid rgba(74, 214, 196, 0.28);
  border-radius: 999px;
}
.hx-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hx-teal);
  box-shadow: 0 0 10px var(--hx-teal);
  animation: hxPulse 2s ease-in-out infinite;
}
@keyframes hxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ============ MAIN ============ */
.hx-main {
  display: grid;
  gap: 96px;
  padding-top: 72px;
}

/* ============ HERO ============ */
.hx-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hx-hero-left,
.hx-hero-right,
.hx-nav > * {
  min-width: 0;
}

.hx-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--hx-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hx-cyan);
  margin-bottom: 24px;
}
.hx-bracket { color: var(--hx-ink-mute); }
.hx-kicker-sep { color: var(--hx-ink-mute); margin: 0 2px; }
.hx-kicker-ver { color: var(--hx-ink-dim); }
.hx-kicker-live {
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.66rem;
  color: var(--hx-coral);
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 999px;
  animation: hxBlink 1.6s ease-in-out infinite;
}
@keyframes hxBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.hx-title {
  margin: 0 0 28px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hx-title-row {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #c9dcff 70%, rgba(201, 220, 255, 0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hx-title-row em {
  font-style: normal;
  background: linear-gradient(135deg, var(--hx-cyan) 0%, var(--hx-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hx-title-row-2 em {
  background: linear-gradient(135deg, var(--hx-coral) 0%, var(--hx-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hx-lead {
  max-width: 36em;
  margin: 0 0 32px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--hx-ink-dim);
  overflow-wrap: anywhere;
}
.hx-lead mark {
  background: linear-gradient(180deg, transparent 60%, rgba(76, 201, 240, 0.35) 60%);
  color: var(--hx-ink);
  padding: 0 4px;
  font-weight: 500;
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.hx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--hx-mono);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 10px;
  border: 1px solid var(--hx-line-2);
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms, background 200ms, border-color 200ms;
  position: relative;
  overflow: hidden;
}
.hx-btn svg { width: 16px; height: 16px; }
.hx-btn-primary {
  color: #050b1a;
  background: linear-gradient(135deg, var(--hx-cyan), var(--hx-blue));
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(76, 201, 240, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.hx-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 700ms ease;
}
.hx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(76, 201, 240, 0.5);
}
.hx-btn-primary:hover::after { transform: translateX(100%); }
.hx-btn-ghost {
  color: var(--hx-ink);
  background: rgba(120, 180, 255, 0.06);
}
.hx-btn-ghost:hover {
  background: rgba(120, 180, 255, 0.12);
  border-color: var(--hx-cyan);
  transform: translateY(-2px);
}

.hx-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  background: rgba(14, 27, 51, 0.45);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.hx-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.hx-meta-item + .hx-meta-item::before {
  content: "";
  position: absolute;
  left: -6px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--hx-line);
}
.hx-meta-item b {
  font-family: var(--hx-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--hx-cyan);
  line-height: 1;
}
.hx-meta-item i {
  font-style: normal;
  font-family: var(--hx-mono);
  font-size: 0.7rem;
  color: var(--hx-ink-mute);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.hx-meta-item span {
  font-size: 0.78rem;
  color: var(--hx-ink-dim);
  margin-top: 4px;
}

/* ============ HERO POSTER ============ */
.hx-poster {
  position: relative;
  margin: 0;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hx-panel-solid);
  border: 1px solid var(--hx-line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hx-poster img {
  width: 100%;
  height: auto;
  display: block;
}
.hx-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 11, 26, 0.3) 100%);
  pointer-events: none;
}
.hx-poster-frame { display: block; }
.hx-poster-hud { display: flex; }
.hx-poster-scan { display: block; }
.hx-poster figcaption { display: block; }

.hx-poster-frame {
  position: absolute;
  inset: 12px;
  z-index: 3;
  pointer-events: none;
}
.hx-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--hx-cyan);
}
.hx-corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hx-corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hx-corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hx-corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-color: var(--hx-coral); }

.hx-poster-hud {
  position: absolute;
  top: 22px; left: 22px; right: 22px;
  display: flex; justify-content: space-between;
  z-index: 3;
  font-family: var(--hx-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.hx-hud-tag {
  padding: 4px 8px;
  color: var(--hx-cyan);
  background: rgba(5, 11, 26, 0.7);
  border: 1px solid rgba(76, 201, 240, 0.4);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.hx-hud-tag-r { color: var(--hx-coral); border-color: rgba(255,107,107,0.4); }

.hx-poster-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--hx-cyan), transparent);
  box-shadow: 0 0 20px var(--hx-cyan);
  animation: hxScan 4s linear infinite;
  pointer-events: none;
}
@keyframes hxScan {
  0% { top: 0; opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hx-poster figcaption {
  position: absolute;
  left: 22px; bottom: 22px; right: 22px;
  z-index: 3;
  font-family: var(--hx-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--hx-ink);
}
.hx-poster figcaption span {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(5, 11, 26, 0.75);
  border: 1px solid var(--hx-line-2);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ============ METRICS STRIP ============ */
.hx-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 32px 0;
  background: linear-gradient(90deg, transparent, rgba(14,27,51,0.75), transparent);
  border-top: 1px solid var(--hx-line-2);
  border-bottom: 1px solid var(--hx-line-2);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 -8px 24px rgba(0, 0, 0, 0.2);
}
.hx-metrics::before, .hx-metrics::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: var(--hx-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--hx-cyan);
}
.hx-metrics::before { top: -4px; left: 0; }
.hx-metrics::after { bottom: -4px; right: 0; background: var(--hx-coral); box-shadow: 0 0 12px var(--hx-coral); }

.hx-metric {
  padding: 0 28px;
  border-right: 1px solid var(--hx-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hx-metric:last-child { border-right: none; }
.hx-metric-k {
  font-family: var(--hx-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hx-cyan);
}
.hx-metric strong {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hx-ink);
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--hx-ink) 0%, var(--hx-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hx-metric em {
  font-style: normal;
  font-family: var(--hx-mono);
  font-size: 0.78rem;
  color: var(--hx-ink-mute);
}

/* ============ SECTION HEAD ============ */
.hx-section-head {
  margin-bottom: 44px;
}
.hx-section-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-family: var(--hx-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--hx-cyan);
  border: 1px solid rgba(76, 201, 240, 0.32);
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.06);
}
.hx-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
}
.hx-section-head p {
  margin: 0;
  max-width: 50em;
  color: var(--hx-ink-dim);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============ PIPELINE ============ */
.hx-pipeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.hx-stage {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(14,27,51,0.7), rgba(14,27,51,0.4));
  backdrop-filter: blur(10px);
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 300ms, border-color 300ms, box-shadow 300ms;
}
.hx-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hx-cyan), transparent);
}
.hx-stage-2::before { background: linear-gradient(90deg, var(--hx-violet), transparent); }
.hx-stage-3::before { background: linear-gradient(90deg, var(--hx-coral), transparent); }

.hx-stage::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.18), transparent 70%);
  pointer-events: none;
  transition: transform 600ms ease;
}
.hx-stage-2::after { background: radial-gradient(circle, rgba(157, 123, 255, 0.18), transparent 70%); }
.hx-stage-3::after { background: radial-gradient(circle, rgba(255, 107, 107, 0.18), transparent 70%); }

.hx-stage:hover {
  transform: translateY(-4px);
  border-color: var(--hx-line-2);
  box-shadow: var(--hx-glow);
}
.hx-stage:hover::after {
  transform: translate(-30px, 30px) scale(1.3);
}

.hx-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.hx-stage-num {
  font-family: var(--hx-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--hx-cyan);
  letter-spacing: -0.04em;
}
.hx-stage-2 .hx-stage-num { -webkit-text-stroke-color: var(--hx-violet); }
.hx-stage-3 .hx-stage-num { -webkit-text-stroke-color: var(--hx-coral); }

.hx-stage-icon {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 11px;
  background: rgba(76, 201, 240, 0.1);
  border: 1px solid rgba(76, 201, 240, 0.28);
  color: var(--hx-cyan);
}
.hx-stage-icon svg { width: 22px; height: 22px; }
.hx-stage-2 .hx-stage-icon { color: var(--hx-violet); background: rgba(157,123,255,0.1); border-color: rgba(157,123,255,0.28); }
.hx-stage-3 .hx-stage-icon { color: var(--hx-coral); background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.28); }

.hx-stage h3 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hx-ink);
  position: relative;
  z-index: 1;
}
.hx-stage p {
  margin: 0 0 18px;
  color: var(--hx-ink-dim);
  font-size: 1.02rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.hx-stage-tag {
  display: inline-block;
  font-family: var(--hx-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--hx-ink-mute);
}

.hx-pipeline-arrow {
  display: grid;
  place-items: center;
  font-family: var(--hx-mono);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--hx-cyan), var(--hx-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 20px;
  opacity: 0.8;
  animation: hxArrowFlow 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(76, 201, 240, 0.4));
}
@keyframes hxArrowFlow {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50%      { transform: translateX(8px); opacity: 1; }
}

/* ============ MOSAIC ============ */
.hx-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hx-tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--hx-line);
  background: var(--hx-panel-solid);
  transition: transform 300ms, border-color 300ms, box-shadow 300ms;
  isolation: isolate;
}
.hx-tile-wide { grid-column: auto; }
.hx-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 700ms ease;
}
.hx-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 11, 26, 0.85) 100%);
  opacity: 0;
  transition: opacity 400ms;
  z-index: 1;
}
.hx-tile:hover::before { opacity: 1; }
.hx-tile-overlay {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms, transform 400ms;
}
.hx-tile:hover .hx-tile-overlay {
  opacity: 1;
  transform: translateY(0);
}
.hx-tile-overlay .hx-tile-k {
  font-family: var(--hx-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--hx-cyan);
}
.hx-tile-overlay strong {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hx-ink);
  letter-spacing: -0.01em;
}
.hx-tile-overlay em {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--hx-ink-dim);
}
.hx-tile:hover {
  transform: translateY(-4px);
  border-color: var(--hx-cyan);
  box-shadow: var(--hx-glow);
}
.hx-tile:hover img {
  transform: scale(1.04);
}

/* ============ DIRECTORY ============ */
.hx-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  min-height: 220px;
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14,27,51,0.75), rgba(14,27,51,0.45));
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 300ms, border-color 300ms, box-shadow 300ms;
  isolation: isolate;
}
.hx-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hx-cyan), transparent);
  opacity: 0.4;
  transition: opacity 300ms;
}
.hx-card::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -30%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(76,201,240,0.16), transparent 70%);
  z-index: -1;
  transition: transform 500ms;
}
.hx-card:hover {
  transform: translateY(-4px);
  border-color: var(--hx-cyan);
  box-shadow: var(--hx-glow);
}
.hx-card:hover::before { opacity: 1; }
.hx-card:hover::after { transform: translate(-40px, -40px) scale(1.4); }

.hx-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hx-card-num {
  font-family: var(--hx-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hx-cyan);
}
.hx-card-num::before { content: "// "; opacity: 0.5; }
.hx-card-icon {
  width: 36px; height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(76, 201, 240, 0.08);
  border: 1px solid rgba(76, 201, 240, 0.22);
  color: var(--hx-cyan);
  margin-left: auto;
}
.hx-card-icon svg { width: 18px; height: 18px; }
.hx-card strong {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hx-ink);
}
.hx-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hx-ink-dim);
  line-height: 1.7;
  flex: 1;
}
.hx-card-arrow {
  position: absolute;
  bottom: 18px;
  right: 20px;
  font-family: var(--hx-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hx-cyan);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 300ms, transform 300ms;
}
.hx-card:hover .hx-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hx-card-private {
  background: linear-gradient(180deg, rgba(40, 18, 30, 0.7), rgba(28, 14, 22, 0.4));
  border-color: rgba(255, 107, 107, 0.18);
}
.hx-card-private::before { background: linear-gradient(90deg, transparent, var(--hx-coral), transparent); }
.hx-card-private::after { background: radial-gradient(circle, rgba(255,107,107,0.16), transparent 70%); }
.hx-card-private:hover { border-color: var(--hx-coral); box-shadow: 0 0 0 1px rgba(255,107,107,0.4), 0 24px 60px rgba(255,107,107,0.18); }
.hx-card-private .hx-card-num,
.hx-card-private .hx-card-arrow { color: var(--hx-coral); }
.hx-card-private .hx-card-icon {
  color: var(--hx-coral);
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.22);
}
.hx-card-lock {
  font-size: 0.6rem;
  color: var(--hx-coral);
  margin-left: 6px;
  animation: hxBlink 1.6s ease-in-out infinite;
}

/* ============ FOOTER ============ */
.hx-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 80px;
  padding: 20px 22px;
  font-family: var(--hx-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--hx-ink-mute);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  background: rgba(14, 27, 51, 0.5);
  backdrop-filter: blur(8px);
}
.hx-footer-l { display: flex; align-items: center; gap: 10px; color: var(--hx-ink-dim); }
.hx-footer-m { text-align: center; color: var(--hx-cyan); }
.hx-footer-r { text-align: right; }
.hx-prompt::before { content: ""; }

/* ============ CHAT BUTTON ============ */
.hx-body .site-chat-button {
  right: 22px !important;
  bottom: 22px !important;
  top: auto !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hx-shell { width: min(1320px, calc(100% - 32px)); }
  .hx-hero { grid-template-columns: 1fr; gap: 40px; }
  .hx-pipeline-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hx-pipeline-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .hx-mosaic-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hx-tile-wide { grid-column: auto; grid-row: auto; }
  .hx-dir-grid { grid-template-columns: repeat(2, 1fr); }
  .hx-metrics { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .hx-metric:nth-child(2) { border-right: none; }
}

@media (max-width: 760px) {
  .hx-shell { width: min(1320px, calc(100% - 20px)); padding-top: 16px; }
  .hx-main { gap: 56px; padding-top: 40px; }
  .hx-nav {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "links";
    padding: 12px 16px;
    gap: 14px;
  }
  .hx-brand { grid-area: brand; }
  .hx-nav-status { display: none; }
  .hx-nav-links {
    grid-area: links;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .hx-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
  .hx-title {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1.04;
    margin-bottom: 22px;
  }
  .hx-lead {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.72;
  }
  .hx-actions {
    margin-bottom: 34px;
  }
  .hx-btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 13px 14px;
  }
  .hx-hero-meta { grid-template-columns: 1fr; }
  .hx-meta-item + .hx-meta-item::before { display: none; }
  .hx-meta-item + .hx-meta-item { border-top: 1px solid var(--hx-line); padding-top: 10px; }
  .hx-mosaic-grid {
    grid-template-columns: 1fr;
  }
  .hx-tile-wide { grid-column: auto; }
  .hx-dir-grid { grid-template-columns: 1fr; }
  .hx-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hx-footer-m, .hx-footer-r { text-align: left; }
}

@media (max-width: 520px) {
  .hx-shell { width: min(1320px, calc(100% - 20px)); }
  .hx-actions {
    flex-direction: column;
  }
  .hx-btn {
    width: 100%;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .hx-orb, .hx-dot, .hx-kicker-live, .hx-card-lock,
  .hx-poster-scan, .hx-pipeline-arrow {
    animation: none !important;
  }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
