/* glance-gate landing — terminal + modern UI hybrid */

:root {
  --bg: #06090a;
  --bg-pane: #0b1114;
  --bg-elev: #0f1719;
  --bg-card: #0a1214;
  --bar: #131a1d;
  --bar-edge: #212a2e;
  --rule: #1a2226;
  --fg: #d6dde1;
  --fg-soft: #adb5ba;
  --fg-muted: #6f7a80;
  --fg-dim: #4d575b;
  --accent: #4ade80;        /* prompt green */
  --accent-2: #22d3ee;      /* command cyan */
  --accent-3: #a78bfa;      /* magenta accent */
  --warn: #fbbf24;
  --err: #f87171;
  --link: #7dd3fc;
  --selection: #1f4d3a;
  --grad-1: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
  --grad-2: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-term: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
  --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", "SFMono-Regular",
    Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-ui: ui-sans-serif, -apple-system, "Inter", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

::selection { background: var(--selection); color: #e5fbef; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover, a:focus-visible { border-bottom-color: var(--link); outline: none; }

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0b0f10;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Backdrop ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(34, 211, 238, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at bottom, rgba(74, 222, 128, 0.04) 0%, transparent 60%),
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.4;
  mix-blend-mode: overlay;
  transition: opacity 200ms ease;
}
body[data-effects="off"] .scanlines { opacity: 0; }
body[data-effects="off"] .grid { opacity: 0.35; }

/* ---------- Terminal frame ---------- */
.terminal {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 32px auto 64px;
  background: var(--bg-pane);
  border: 1px solid var(--bar-edge);
  border-radius: 12px;
  box-shadow: var(--shadow-term);
  overflow: hidden;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to bottom, #1a2125, #11171a);
  border-bottom: 1px solid var(--bar-edge);
  padding: 11px 16px;
  backdrop-filter: blur(8px);
}
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 2px rgba(0,0,0,0.5); }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.bar-title {
  flex: 1;
  text-align: center;
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.bar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--fg-muted);
  border: 1px solid var(--bar-edge);
  border-radius: 999px;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.bar-toggle:hover { color: var(--fg-soft); border-color: var(--rule); background: rgba(255,255,255,0.02); }
.bar-toggle-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: background 120ms ease, box-shadow 120ms ease;
}
body[data-effects="off"] .bar-toggle-dot { background: var(--fg-dim); box-shadow: none; }

/* ---------- Screen ---------- */
.screen { padding: 28px 36px 36px; }

/* ---------- Hero ---------- */
.hero { padding-top: 8px; }
.ascii {
  color: var(--accent);
  font-size: 10px;
  line-height: 1.1;
  margin: 0 0 18px;
  white-space: pre;
  overflow-x: auto;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.18);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tag {
  margin: 0 0 24px;
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.55;
}
.tag-line { display: block; }
.hi-grn { color: var(--accent); font-weight: 600; }
.hi-cyn { color: var(--accent-2); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  border: 1px solid var(--bar-edge);
  background: var(--bg-card);
  color: var(--fg);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.cta:hover { transform: translateY(-1px); border-bottom-color: var(--bar-edge); }
.cta-primary {
  background: linear-gradient(135deg, rgba(74,222,128,0.18), rgba(34,211,238,0.14));
  border-color: rgba(74,222,128,0.4);
  color: var(--accent);
}
.cta-primary:hover { border-color: var(--accent); color: #d2ffe2; }
.cta-ghost { color: var(--fg-soft); }
.cta-ghost:hover { color: var(--fg); border-color: var(--rule); }

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 16px;
}
.stats li {
  text-align: center;
  border-right: 1px dashed var(--rule);
  padding: 4px 8px;
}
.stats li:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 22px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat-unit {
  display: block;
  font-size: 11.5px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Generic blocks ---------- */
h2 {
  font-size: 16px;
  margin: 14px 0 18px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 14.5px;
  margin: 0 0 4px;
  color: var(--fg);
  font-weight: 600;
}

.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.ok  { color: var(--accent); }
.warn { color: var(--warn); }
.err { color: var(--err); }

.rule {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: 36px 0 26px;
}

code {
  background: #111819;
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.8px;
  color: var(--fg);
}

/* ---------- Demo ---------- */
.demo-window {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13.5px;
  box-shadow: var(--shadow-card);
}
.line { margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.prompt { color: var(--accent); user-select: none; }
.cmd { color: var(--accent-2); }
.out { color: var(--fg); margin: 2px 0 8px; }
.out.muted { color: var(--fg-muted); }

/* Typer cursor on the active command */
.cmd.typing::after {
  content: "▋";
  margin-left: 1px;
  color: var(--accent-2);
  animation: blink 0.9s steps(2, start) infinite;
}

/* Thinking phase */
.think {
  margin: 12px 0 4px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent-3);
  border-radius: 6px;
}
.think-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-3);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  transition: color 220ms ease;
}
.think-spark { display: inline-block; animation: spark-pulse 1.6s ease-in-out infinite; }
.think-dots { display: inline-flex; letter-spacing: 1.5px; }
.think-dots i { font-style: normal; animation: dot-pulse 1.3s ease-in-out infinite; }
.think-dots i:nth-child(2) { animation-delay: 0.16s; }
.think-dots i:nth-child(3) { animation-delay: 0.32s; }
.think-done .think-head { color: var(--accent); }
.think-done .think-spark { animation: none; }
.think-done .think-dots { display: none; }

.think-steps {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.think-step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 260ms ease, transform 260ms ease;
}
.think-step.active, .think-step.done { opacity: 1; transform: translateY(0); }
.think-step::before {
  content: "\25CB";
  display: inline-block;
  width: 1em;
  flex: none;
  text-align: center;
  color: var(--fg-dim);
}
.think-step.active::before {
  content: "\25D0";
  color: var(--accent-2);
  animation: spin 0.85s linear infinite;
}
.think-step.done::before {
  content: "\2713";
  color: var(--accent);
  animation: none;
}
.step-label { flex: none; color: var(--fg-soft); font-weight: 600; }
.think-step.done .step-label { color: var(--accent); }
.step-meta { color: var(--fg-muted); }

/* Result card */
.result {
  margin: 12px 0 4px;
  padding: 13px 15px;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.06), var(--bg-card));
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 8px;
}
.result-head { font-size: 13px; color: var(--fg); margin-bottom: 11px; }
.result-check { color: var(--accent); font-weight: 700; margin-right: 5px; }
.result-metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.metric {
  flex: 1;
  min-width: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 9px 12px;
}
.metric-tag {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 5px;
}
.metric-body { display: flex; align-items: baseline; gap: 8px; }
.metric-from {
  color: var(--fg-muted);
  text-decoration: line-through;
  text-decoration-color: var(--fg-dim);
  font-size: 13px;
}
.metric-from.metric-danger {
  color: var(--err);
  text-decoration-color: rgba(248, 113, 113, 0.5);
}
.metric-arrow { color: var(--fg-dim); }
.metric-to {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.result-foot { color: var(--fg-soft); }
.result-foot .prompt { margin-right: 3px; }

/* Bar graph */
.bar-graph {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.bar-row {
  display: grid;
  grid-template-columns: 60px 1fr minmax(150px, auto);
  align-items: center;
  gap: 12px;
  margin: 7px 0;
}
.bar-label { color: var(--fg-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.bar-track {
  background: #101618;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  height: 20px;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-fill-before { background: linear-gradient(90deg, #4b1f1f, #7c2d2d); }
.bar-fill-after  { background: var(--grad-1); }
.bar-cap { font-size: 11.5px; letter-spacing: 0.02em; white-space: nowrap; }
.bar-cap-before { color: #d98c8c; }
.bar-cap-after { color: var(--fg-soft); }
.bar-cap-after b { color: var(--accent); font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dot-pulse { 0%, 70%, 100% { opacity: 0.2; } 35% { opacity: 1; } }
@keyframes spark-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50%      { opacity: 1; transform: scale(1.12); }
}

/* ---------- Languages / tabs ---------- */
.langs > p.muted { margin: -8px 0 14px; }
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin: 4px 0 14px;
  overflow-x: auto;
}
.tab {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--fg-muted);
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.tab:hover { color: var(--fg-soft); background: rgba(255,255,255,0.02); }
.tab.active {
  color: var(--accent);
  background: var(--bg-elev);
  border-color: var(--rule);
  position: relative;
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--bg-elev);
}

.tab-panel { animation: fade 200ms ease both; }
.lang-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.chip {
  font-size: 11.5px;
  color: var(--fg-soft);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 3px 9px;
  border-radius: 999px;
}
.chip b { color: var(--accent); font-weight: 600; }

.snippet {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg);
}
.snippet code { background: none; border: none; padding: 0; font-size: inherit; }

/* ---------- Feature cards ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 222, 128, 0.3);
  background: linear-gradient(180deg, var(--bg-card), #0c1517);
}
.card header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--fg-soft); font-size: 13px; line-height: 1.55; }

.kbd {
  display: inline-block;
  font-size: 10.5px;
  color: var(--accent-2);
  padding: 1px 6px;
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 4px;
  letter-spacing: 0.04em;
  background: rgba(34,211,238,0.08);
}

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-card);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cmp-table th, .cmp-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px dashed var(--rule);
}
.cmp-table thead th { color: var(--fg-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.cmp-table tbody th { color: var(--fg); font-weight: 500; }
.cmp-table td.me, .cmp-table th.me {
  background: rgba(74, 222, 128, 0.05);
  color: var(--accent);
  font-weight: 600;
}
.cmp-table td.yes { color: var(--accent); }
.cmp-table td.no  { color: var(--fg-dim); }
.cmp-table td.meh { color: var(--warn); }
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: none; }

/* ---------- Trust list ---------- */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.trust-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--fg-soft);
}
.tick { color: var(--accent); font-weight: 700; }
.trust-list b { color: var(--fg); font-weight: 600; }

/* ---------- Install / code-block with copy ---------- */
.code-block {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 10px 0;
}
.code-block pre {
  margin: 0;
  padding: 14px 64px 14px 16px;
  overflow-x: auto;
  font-size: 12.8px;
  color: var(--fg);
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.copy-btn:hover { color: var(--fg-soft); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); background: rgba(74,222,128,0.08); }

/* ---------- Pricing ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 18px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.tier:hover { transform: translateY(-2px); border-color: rgba(34,211,238,0.3); }
.tier h3 { margin: 0 0 6px; }
.tier .price { margin: 0 0 4px; font-size: 22px; color: var(--accent); font-weight: 600; }
.tier .price span { color: var(--fg-muted); font-size: 13px; font-weight: 400; }
.tier .who { margin: 0 0 12px; color: var(--fg-muted); font-size: 12px; }
.tier ul { padding-left: 16px; margin: 0 0 14px; color: var(--fg-soft); font-size: 12.8px; }
.tier ul li { margin: 4px 0; }

.tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--fg-soft);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, transform 140ms ease;
  border-bottom: 1px solid var(--rule);
}
.tier-cta:hover, .tier-cta:focus-visible {
  color: var(--fg);
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-1px);
  border-bottom-color: var(--accent-2);
}
.tier-cta-primary {
  background: linear-gradient(135deg, rgba(74,222,128,0.18), rgba(34,211,238,0.14));
  border-color: rgba(74,222,128,0.4);
  color: var(--accent);
  font-weight: 600;
}
.tier-cta-primary:hover, .tier-cta-primary:focus-visible {
  border-color: var(--accent);
  color: #d2ffe2;
  background: linear-gradient(135deg, rgba(74,222,128,0.28), rgba(34,211,238,0.22));
}
.tier { display: flex; flex-direction: column; }
.tier ul { flex: 1; }
.tier.featured {
  border-color: rgba(74, 222, 128, 0.4);
  background: linear-gradient(180deg, var(--bg-card), rgba(74, 222, 128, 0.06));
}
.tier.featured .price { background: var(--grad-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ribbon {
  position: absolute;
  top: -1px;
  right: 12px;
  font-size: 10px;
  background: var(--grad-1);
  color: #07120e;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 0 0 4px 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Cursor + footer ---------- */
.cli-cursor { margin: 22px 0 18px; }
.cursor {
  display: inline-block;
  width: 9px;
  background: var(--accent-2);
  color: transparent;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { background: transparent; } }

.foot {
  margin-top: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.foot-links a { color: var(--fg-soft); }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--fg); border-bottom-color: var(--accent-2); }
.sep { color: var(--fg-dim); }

/* Ornament: gradient line — Burj icon — gradient line */
.foot-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 460px;
}
.foot-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 35%, var(--rule) 65%, transparent);
  position: relative;
}
.foot-ornament .foot-line:first-child {
  background: linear-gradient(to right, transparent, var(--rule) 60%, rgba(34, 211, 238, 0.35) 100%);
}
.foot-ornament .foot-line:last-child {
  background: linear-gradient(to left,  transparent, var(--rule) 60%, rgba(167, 139, 250, 0.35) 100%);
}

.foot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: relative;
  transition: transform 220ms ease;
}
.foot-icon svg {
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 0 6px rgba(34, 211, 238, 0.35))
    drop-shadow(0 0 16px rgba(74, 222, 128, 0.18));
  animation: bk-glow 4s ease-in-out infinite;
}
.foot-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.foot-icon:hover { transform: translateY(-1px); }

@keyframes bk-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.30)) drop-shadow(0 0 14px rgba(74, 222, 128, 0.15)); }
  50%      { filter: drop-shadow(0 0 9px rgba(34, 211, 238, 0.55)) drop-shadow(0 0 22px rgba(74, 222, 128, 0.28)); }
}

.credit {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--fg-soft);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.credit-pre {
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--fg-muted);
  letter-spacing: 0.18em;
}
.credit-place {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--accent-2), var(--accent), var(--accent-3));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.emoji {
  font-size: 15px;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.18));
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .foot-icon svg, .credit-place { animation: none !important; }
}

/* ---------- Reveal / fade animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .screen { padding: 18px 18px 28px; }
  .terminal { margin: 16px 8px 32px; border-radius: 10px; }
  .ascii { font-size: 7px; }
  .bar-title { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2n) { border-right: none; }
  .stats li:nth-child(-n+2) { border-bottom: 1px dashed var(--rule); padding-bottom: 10px; margin-bottom: 4px; }
  .cmp-table { font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 8px 10px; }
  .tag { font-size: 14.5px; }
  h2 { font-size: 15px; }
  .bar-row { grid-template-columns: 48px 1fr; }
  .bar-cap { grid-column: 2; font-size: 11px; }
  .metric { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
