/* QuantumNovelty — landing page styling.
   Bright theme, quantum-flavoured accents, original layout. */

:root {
  --bg:           #ffffff;          /* pure white */
  --bg-alt:       #f7f8fa;          /* near-white for section bands */
  --bg-card:      #ffffff;
  --fg:           #000004;          /* true black for max contrast */
  --fg-body:      #14161c;          /* body */
  --fg-muted:     #2e313a;          /* secondary — dark enough to read at a glance */
  --fg-dim:       #484b56;          /* tertiary — still clearly legible */
  --accent:       #1b2cc1;          /* vivid ultramarine — strong pop on white */
  --accent-hover: #141fa0;
  --accent-soft:  #e9ecfc;          /* very light tint of accent for badges */
  --accent-2:     #1b2cc1;          /* same — keep one accent throughout */
  --accent-3:     #1b2cc1;
  --positive:     #0d6b36;          /* small "ok" green only where semantic */
  --border:       #c6c9d6;
  --border-soft:  #dcdfe9;
  --code-bg:      #f6f7fa;
  --code-fg:      #0a0a0f;
  --code-comment: #6b7280;
  --code-string:  #117a3f;
  --shadow-1:     0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-2:     0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.10);
  --r:            12px;
  --r-sm:         8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }

code, pre {
  font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.92em;
}
pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 18px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  overflow-x: auto;
  line-height: 1.6;
}
pre code { background: transparent; padding: 0; border: 0; }
code {
  background: rgba(27, 44, 193, 0.10);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}
.c { color: var(--code-comment); }
.s { color: var(--code-string); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
}
.brand-glyph {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-weight: 600;
}
.brand-text { letter-spacing: -0.01em; }
.nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav nav a {
  color: var(--fg-muted);
  font-size: 0.94em;
  font-weight: 500;
}
.nav nav a:hover { color: var(--fg); }

/* GitHub badge in nav */
.gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg) !important;
  font-size: 0.88em !important;
  font-weight: 600 !important;
  transition: all 0.15s ease;
}
.gh-badge:hover { border-color: var(--accent); transform: translateY(-1px); }
.gh-badge svg { width: 16px; height: 16px; }
.gh-badge .stars {
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg-muted);
  font-size: 0.84em;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  margin-left: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.94em;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  transition: all 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(31, 58, 138, 0.25);
}
.btn-ghost { background: transparent; }

/* ---------- hero (eye-catching variant) ---------- */
.hero {
  position: relative;
  padding: 80px 0 88px;
  overflow: hidden;
  isolation: isolate;
}

/* background decoration removed — flat white for maximum text contrast */

/* centered hero variant */
.hero-center {
  text-align: center;
  max-width: 820px;
  padding-top: 24px;
}
.hero-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}
.hero-logo .brand-glyph {
  color: var(--accent);
}
.hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-style: italic;
  color: var(--fg-muted);
  font-size: 0.95em;
  margin-bottom: 36px;
}
.hero-center .display {
  margin: 0 auto 22px auto;
  max-width: none;
  text-align: center;
}
.hero-center .lede {
  margin: 0 auto 14px auto;
  text-align: center;
  max-width: 62ch;
}
.lede-aside {
  font-size: 0.96em;
  color: var(--fg-muted);
  font-style: italic;
  max-width: 60ch;
  margin: 0 auto 32px auto;
}
.cta-center { justify-content: center; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
}
.btn-outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-outline svg { color: currentColor; }
.hero-stats-center { justify-content: center; }

/* legacy grid + panel kept for fallback but unused */
.hero-grid { display: none; }
.hero-panel { display: none; }
.live-tag { display: none; }

/* live tag — replaces the old eyebrow */
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-muted);
  font-size: 0.86em;
  font-weight: 500;
  margin-bottom: 28px;
  box-shadow: var(--shadow-1);
}
.live-tag a { color: var(--accent); font-weight: 600; }
.live-sep { color: var(--fg-dim); }
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1bc782;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(27, 199, 130, 0.4);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* display heading — sized to fit comfortably; respects column width */
.display {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 22px 0;
  color: var(--fg);
  max-width: 18ch;
  hyphens: none;
  word-break: keep-all;
}
.grad-text {
  color: var(--accent);
  font-weight: 800;
}

.lede {
  font-size: 1.08em;
  color: var(--fg-body);
  font-weight: 500;
  max-width: 56ch;
  margin: 0 0 28px 0;
}

.cta-row { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }

.btn-primary svg {
  transition: transform 0.2s ease;
}
.btn-primary:hover svg { transform: translateX(3px); }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 1.7em;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.hero-stats span {
  font-size: 0.78em;
  color: var(--fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* hero panel — terminal preview + skill marquee */
.hero-panel {
  position: relative;
  min-width: 0;
}

.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  position: relative;
}
.terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 50%, var(--accent-2) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.3;
  pointer-events: none;
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
}
.tdot {
  width: 11px; height: 11px; border-radius: 50%;
}
.tdot-r { background: #ff5f57; }
.tdot-y { background: #febc2e; }
.tdot-g { background: #28c840; }
.terminal-title {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78em;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.terminal-body {
  padding: 0;
}
.terminal-body pre {
  margin: 0;
  background: var(--bg-card);
  border: 0;
  border-radius: 0;
  padding: 18px 22px;
  font-size: 0.82em;
  line-height: 1.7;
  color: var(--code-fg);
}
.terminal-body .ok { color: #1bc782; }
.terminal-body .k  { color: var(--accent-2); }
.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
  font-weight: 700;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* skill marquee */
.marquee {
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 64px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-card), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--bg-card), transparent); }
.marquee-track {
  display: inline-flex;
  gap: 28px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86em;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* eyebrow — keep for other sections */
.eyebrow {
  display: inline-block;
  font-size: 0.84em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(27, 44, 193, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 44, 193, 0.07);
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-panel { order: 2; }
  .orb-2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .grad-text, .pulse-dot::after, .cursor, .marquee-track {
    animation: none !important;
  }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 12px 0 12px 0;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.muted { color: var(--fg-muted); }

/* ---------- card grid ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid.two-up { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  position: relative;
  transition: all 0.15s ease;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-1); }
.card h3 { margin: 4px 0 10px 0; font-size: 1.3em; letter-spacing: -0.01em; color: var(--fg); }
.card .card-tag {
  /* In normal flow above the title — absolute top-right positioning
     overlapped long h3 titles. */
  display: inline-block;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76em;
  font-weight: 600;
  color: var(--accent);
  background: rgba(27, 44, 193, 0.10);
  border: 1px solid rgba(27, 44, 193, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.steps { margin: 14px 0 18px 0; padding-left: 20px; }
.steps li { margin-bottom: 8px; color: var(--fg-muted); font-size: 0.95em; }
.steps li b { color: var(--fg); }
.code-snip {
  margin-top: 14px;
  background: var(--code-bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
}
.code-snip pre { background: transparent; border: 0; padding: 14px 16px; font-size: 0.85em; }

/* ---------- skill grid ---------- */
.skill-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.skill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  position: relative;
  transition: border-color 0.15s ease;
}
.skill:hover { border-color: var(--accent); }
.skill h4 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.02em;
  margin: 0 0 8px 0;
  color: var(--accent);
}
.skill p { margin: 8px 0 0 0; color: var(--fg-muted); font-size: 0.9em; }
.badge {
  display: inline-block;
  font-size: 0.74em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-marquee { color: var(--accent); border-color: var(--border); background: var(--accent-soft); }
.badge-quantum { color: var(--fg-body); border-color: var(--border); background: var(--bg-alt); }

/* ---------- pipeline ---------- */
.pipeline {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 36px;
}
.stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 20px;
  position: relative;
  transition: border-color 0.15s ease;
}
.stage:hover { border-color: var(--accent); }
.stage-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84em;
  font-weight: 700;
  color: var(--accent);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 44, 193, 0.45);
  border-radius: 50%;
  margin-bottom: 12px;
  background: rgba(27, 44, 193, 0.08);
}
.stage h4 { margin: 0 0 6px 0; font-size: 1em; color: var(--fg); }
.stage p { margin: 0; color: var(--fg-muted); font-size: 0.86em; }

.callouts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 28px;
}
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 16px 20px;
}
.callout h4 { margin: 0 0 6px 0; font-size: 1em; color: var(--fg); }
.callout p { margin: 0; color: var(--fg-muted); font-size: 0.92em; }

/* ---------- diff grid ---------- */
.diff-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 36px;
}
.diff {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 22px 24px;
  transition: border-color 0.15s ease;
}
.diff:hover { border-color: var(--accent); }
.diff h4 {
  margin: 0 0 8px 0;
  font-size: 1.05em;
  color: var(--accent-2);
}
.diff p { margin: 0; color: var(--fg-muted); font-size: 0.92em; }

.provenance {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 22px 26px;
}
.prov-row {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.94em;
}
.prov-row:last-child { border-bottom: 0; }
.prov-label {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  min-width: 110px;
  font-weight: 600;
}

/* ---------- get started ---------- */
.getstarted {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}
.gs-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 22px;
}
.gs-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--accent);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 44, 193, 0.40);
  border-radius: 50%;
  background: rgba(27, 44, 193, 0.08);
}
.gs-step h4 { margin: 0 0 10px 0; color: var(--fg); }
.gs-step pre { margin: 0; font-size: 0.88em; }

.reqs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 22px 26px;
}
.reqs h4 { margin: 0 0 10px 0; font-size: 1em; color: var(--accent); }
.reqs ul { margin: 0; padding-left: 20px; color: var(--fg-muted); }
.reqs ul li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 32px;
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 36px;
}
.footer-col h5 {
  margin: 0 0 12px 0;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.footer-col a { display: block; color: var(--fg-muted); font-size: 0.92em; margin-bottom: 6px; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { margin: 8px 0 0 0; font-size: 0.92em; color: var(--fg-muted); }

.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-top: 8px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.05em;
  flex-shrink: 0;
}
.author-info { line-height: 1.35; }
.author-info .name { font-weight: 600; color: var(--fg); display: block; }
.author-info .role { font-size: 0.84em; color: var(--fg-muted); }
.author-info a { display: inline; margin: 0; padding: 0; }

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84em;
  color: var(--fg-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav nav { gap: 14px; }
  .nav nav a:not(.btn):not(.gh-badge) { display: none; }
  .gh-badge .stars { display: none; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stats strong { font-size: 1.4em; }
  .prov-row { flex-direction: column; gap: 6px; }
  .prov-label { min-width: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Bottom-line comparison table (QN vs ARS vs ARC) */
.compare-wrap { overflow-x: auto; margin: 8px 0 40px; }
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.92rem; line-height: 1.5;
  background: #ffffff; border: 1px solid #e2e4ea; border-radius: 8px;
}
.compare-table th, .compare-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid #e9ebf0;
}
.compare-table thead th {
  background: var(--accent-soft, #eef1fa);
  color: var(--accent, #1f3a8a);
  font-weight: 700; white-space: nowrap;
}
.compare-table tbody th {
  font-weight: 600; color: var(--fg, #0a0a0f);
  width: 17%; min-width: 140px;
}
.compare-table td { color: var(--fg-body, #1f2128); min-width: 180px; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--positive, #117a3f); font-weight: 700; }
.compare-table .no { color: #9aa0ab; }
.compare-table td.qn-col { background: #fbfcff; }

/* Footer attribution (QNeura format) */
.made-with { color: var(--fg-muted, #4a4d57); font-size: 0.95rem; line-height: 1.7; }
.made-with a { color: var(--accent, #1f3a8a); font-weight: 600; text-decoration: none; }
.made-with a:hover { text-decoration: underline; }

/* Hero brand — much larger (user request) */
.hero-logo .brand-glyph { font-size: 2.6rem; }
.hero-logo .brand-text  { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-logo { margin-bottom: 14px; }

/* Highlighted phrase inside the hero lede */
.lede-highlight {
  color: var(--accent, #1f3a8a);
  font-weight: 700;
  font-size: 1.12em;
}
