/* ── qore-zeq.css — Zeq.dev Qore theme design system ───────────────── */
/* Zeq colour overrides: --accent #00ff88, --bg #0a0a0f                  */
/* Qore patterns: section anatomy, br-line, hafl-plus, box-hacker,       */
/*   hacker-text, wg-counter odometer, go-top, reveal animations         */

/* ── Font variables — Qore type system adapted for Zeq ────────────────── */
/* Geist (Qore display headlines, loaded via Google Fonts)                 */
/* DepartureMono (Qore mono, falls back to JetBrains Mono — same metrics) */
/* Inter (body text, Zeq established)                                      */
:root {
  --tf-font-display: 'Geist', 'Inter', system-ui, sans-serif;
  --tf-font-mono: 'DepartureMono', 'JetBrains Mono', 'Fira Code', monospace;
}

/* Apply Geist to Qore section titles and hero headlines */
.qz-sect-title,
.qz-hero h1,
.qz-hero-title {
  font-family: var(--tf-font-display);
}

/* Apply DepartureMono/JetBrains to Qore mono elements */
.qz-sect-eyebrow,
.qz-sect-num,
.qz-box-hacker,
.font-mono {
  font-family: var(--tf-font-mono);
}

/* ── SECTION ANATOMY ─────────────────────────────────────────────────── */
.qz-sect {
  padding: 5rem 1.5rem;
  position: relative;
}

.qz-sect-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Section number chip [01/09] */
.qz-sect-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 4px;
  padding: 0.15em 0.5em;
  margin-bottom: 1rem;
}

.qz-sect-header {
  margin-bottom: 0.5rem;
}

/* Eyebrow label above h2 */
.qz-sect-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qz-sect-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.qz-sect-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}

.qz-sect-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.qz-sect-main {
  /* main content area */
}

.qz-sect-bottom {
  margin-top: 3rem;
}

/* Alternate surface sections — unified with body dark, no alternation */
.qz-sect--alt {
  background: var(--main, #0a0a0f);
}

/* ── BR-LINE SEPARATOR ────────────────────────────────────────────────── */
.qz-br-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.25) 30%, rgba(0, 255, 136, 0.25) 70%, transparent 100%);
  margin: 0;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
  width: 100%;
}

.qz-br-line--visible {
  transform: scaleX(1);
}

/* Thin decorative lines */
.qz-br-line--thin {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  transform: scaleX(1);
  opacity: 1;
}

/* Compact top br-line (before section headings) */
.qz-br-line--compact {
  margin-bottom: 1.25rem;
}

/* Centered narrow br-line (inside content blocks) */
.qz-br-line--center {
  margin: 2rem auto;
  max-width: 200px;
}

/* ── HAFL-PLUS CORNER BRACKETS ────────────────────────────────────────── */
.qz-hafl-plus {
  position: relative;
}

.qz-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.qz-hafl-plus:hover .qz-corner {
  opacity: 1;
}

.qz-corner::before,
.qz-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.qz-corner::before { width: 100%; height: 1px; }
.qz-corner::after  { width: 1px; height: 100%; }

.qz-corner--tl { top: 6px; left: 6px; }
.qz-corner--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.qz-corner--bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.qz-corner--br { bottom: 6px; right: 6px; transform: scale(-1); }

/* ── BOX-HACKER EQUATION SCROLL ──────────────────────────────────────── */
.qz-box-hacker-wrap {
  overflow: hidden;
  background: rgba(0, 255, 136, 0.03);
  border-top: 1px solid rgba(0, 255, 136, 0.08);
  border-bottom: 1px solid rgba(0, 255, 136, 0.08);
  padding: 0.6rem 0;
  margin: 2rem 0;
}

.qz-box-hacker {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(0, 255, 136, 0.45);
  letter-spacing: 0.05em;
  will-change: transform;
}

/* ── WG-COUNTER ODOMETER ─────────────────────────────────────────────── */
.qz-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.qz-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

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

.qz-stat-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.qz-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Inline trust-bar counters */
.qz-counter-inline {
  font-family: var(--font-mono);
  font-size: inherit;
  font-weight: 700;
  color: var(--accent);
}

/* ── GO-TOP BUTTON ────────────────────────────────────────────────────── */
.qz-go-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}

.qz-go-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.qz-go-top:hover {
  background: rgba(0, 255, 136, 0.18);
}

/* ── REVEAL ANIMATIONS ────────────────────────────────────────────────── */
.qz-reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.qz-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── GRID CARDS (Qore feature grid style) ────────────────────────────── */
.qz-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .qz-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .qz-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.qz-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .qz-grid-2 { grid-template-columns: 1fr 1fr; }
}

.qz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.qz-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.05);
  transform: translateY(-2px);
}

.qz-card--accent {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.03);
}

.qz-card--accent:hover {
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.12);
}

.qz-card-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.qz-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.qz-card-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── HACKER TEXT SCRAMBLE ─────────────────────────────────────────────── */
[data-hacker-text] {
  cursor: default;
  transition: color 0.15s;
}

[data-hacker-text]:hover {
  color: var(--accent);
}

/* ── PULL QUOTE / BLOCKQUOTE ─────────────────────────────────────────── */
.qz-pullquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(0, 255, 136, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.qz-pullquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.qz-pullquote cite {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-style: normal;
}

/* ── FORMULA / EQUATION BOX ──────────────────────────────────────────── */
.qz-formula-box {
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
}

.qz-formula-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(0, 255, 136, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.qz-formula {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--accent);
  white-space: nowrap;
  overflow-x: auto;
}

/* ── HIGHLIGHT / BADGE ────────────────────────────────────────────────── */
.qz-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.qz-badge--accent {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.qz-badge--muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── STEP TIMELINE ────────────────────────────────────────────────────── */
.qz-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.qz-steps::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(0,255,136,0.3) 0%, rgba(0,255,136,0.05) 100%);
}

.qz-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.qz-step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  z-index: 1;
}

.qz-step-body {
  padding-top: 0.4rem;
  flex: 1;
}

.qz-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.qz-step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── HERO VARIANT (Qore-style) ────────────────────────────────────────── */
.qz-hero {
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Cinematic nebula glow on all qz-hero sections (inner page heroes) */
.qz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 50% 46%, rgba(0,255,136,0.10) 0%, rgba(0,255,136,0.02) 45%, transparent 72%),
    radial-gradient(ellipse 80% 65% at 50% 48%, rgba(0,212,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 70% 30% at 20% 60%, rgba(120,60,255,0.04) 0%, transparent 65%),
    radial-gradient(ellipse 70% 30% at 80% 38%, rgba(0,180,255,0.04) 0%, transparent 65%);
}

.qz-hero-inner {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.qz-hero-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(0, 255, 136, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.qz-hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.qz-hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.qz-hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── ACCENT DIVIDER ────────────────────────────────────────────────────── */
.qz-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: rgba(0, 255, 136, 0.25);
}

.qz-divider::before,
.qz-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 255, 136, 0.12);
}

.qz-divider-icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(0, 255, 136, 0.35);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* ── CTA SECTION ─────────────────────────────────────────────────────── */
.qz-cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}

.qz-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center top, rgba(0,255,136,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── RESPONSIVE CONTAINER ────────────────────────────────────────────── */
.qz-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── INLINE CODE ─────────────────────────────────────────────────────── */
.qz-code {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ── FEATURE CHECKLIST ───────────────────────────────────────────────── */
.qz-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qz-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.qz-checklist li::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-top: 0.1em;
}

/* ── RESPONSIVE HELPERS ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .qz-sect { padding: 3rem 1rem; }
  .qz-hero { padding: 3rem 1rem 2.5rem; }
}
