/* Praxia landing page — modern dark theme */

:root {
  --bg: #0a0a0f;
  --bg-soft: #11121a;
  --bg-card: #15171f;
  --bg-card-hover: #1c1f29;
  --border: #23262f;
  --border-strong: #2e3242;
  --text: #ecedf0;
  --text-soft: #a8acb8;
  --text-dim: #6f7382;
  --accent: #c9a456;       /* warm gold — "applied wisdom" */
  --accent-bright: #e9c378;
  --accent-deep: #8b6f30;
  --link: #ffd687;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code, pre {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

pre {
  background: #08090d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  color: #d8dae0;
  line-height: 1.65;
}

pre .comment { color: var(--text-dim); }
pre .str     { color: var(--accent-bright); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------------------------------------------------------------ NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-deep);
  border-radius: 6px;
  color: var(--accent);
  font-size: 14px;
  background: linear-gradient(135deg, rgba(201,164,86,0.08), rgba(201,164,86,0.03));
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-soft);
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text) !important;
}

.nav-github {
  font-weight: 600;
  color: var(--accent) !important;
}

/* Mirror cross-link pill in nav */
.nav-mirror {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(140, 200, 255, 0.06);
  border: 1px solid rgba(140, 200, 255, 0.2);
  color: var(--text-soft) !important;
  font-size: 12px;
  transition: all 120ms ease;
}
.nav-mirror:hover {
  background: rgba(140, 200, 255, 0.12);
  border-color: rgba(140, 200, 255, 0.45);
  color: #8cc8ff !important;
}
.mirror-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8cc8ff;
  box-shadow: 0 0 8px rgba(140, 200, 255, 0.45);
  flex-shrink: 0;
  animation: mirror-pulse 2.4s ease-in-out infinite;
}
@keyframes mirror-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Mirror banner (shown on GitHub Pages mirror) */
.mirror-banner {
  position: relative;
  background: linear-gradient(90deg, rgba(140,200,255,0.08), rgba(140,200,255,0.03));
  border-bottom: 1px solid rgba(140, 200, 255, 0.2);
  padding: 0.7rem 1.5rem;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-soft);
}
.mirror-banner a {
  color: #8cc8ff;
  font-weight: 600;
  margin-left: 0.25rem;
}
.mirror-banner a:hover { color: #b8dcff; }
#mirror-banner-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
#mirror-banner-close:hover { color: var(--text); }

/* Footer mirror info */
.mirror-info {
  display: block;
  margin-top: 0.5rem;
  font-size: 12px;
  color: var(--text-dim);
}
.mirror-info a {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}
.mirror-info a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ HERO */

.hero {
  position: relative;
  padding: 7rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201,164,86,0.16), transparent 60%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(201,164,86,0.08);
  border: 1px solid rgba(201,164,86,0.25);
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  margin: 1.5rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-bright);
  font-weight: 700;
}

.hero-sub {
  margin: 1.25rem auto 2.25rem;
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--text-soft);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13.5px;
}

/* ------------------------------------------------------------------ BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 100ms ease, background 150ms ease, border-color 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a1408 !important;
  border-color: var(--accent-deep);
  box-shadow: 0 4px 16px rgba(201,164,86,0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--accent-deep);
}

/* ------------------------------------------------------------------ SECTIONS */

.section {
  padding: 6rem 1.5rem;
}
.section-dark {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-head h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.section-subtitle {
  max-width: 720px;
  margin: 1rem auto 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}
.section-subtitle strong { color: var(--text); }

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}
.card:hover {
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}
.card h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}
.card pre {
  margin-top: 1rem;
  font-size: 12.5px;
}

.card-icon {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(201,164,86,0.1);
  border: 1px solid rgba(201,164,86,0.25);
  font-size: 18px;
  margin-bottom: 0.5rem;
}

/* --- Cookie consent banner -------------------------------------- */
.consent-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.consent-card {
  pointer-events: auto;
  max-width: 720px;
  width: 100%;
  background: rgba(20, 20, 28, 0.98);
  border: 1px solid rgba(201, 164, 86, 0.4);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
  line-height: 1.55;
}
.consent-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #fff;
}
.consent-card p {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}
.consent-card a {
  color: rgba(201, 164, 86, 0.95);
  text-decoration: underline;
}
.consent-categories {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0 0.85rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 0.85rem;
}
.consent-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.consent-manage-link {
  margin-left: 1rem;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.85rem;
  text-decoration: none;
}
.consent-manage-link:hover { color: rgba(255, 255, 255, 0.85) !important; }
@media (max-width: 640px) {
  .consent-banner { inset: auto 0.5rem 0.5rem 0.5rem; }
  .consent-card { padding: 1rem; }
  .consent-actions { justify-content: stretch; }
  .consent-actions .btn { flex: 1 1 auto; }
}

/* --- i18n: language switcher + translation notice ----------------- */
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,164,86,0.2);
  font-size: 0.78rem;
  max-width: 360px;
}
.lang-switcher .lang-option {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: none;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  transition: all 0.15s;
}
.lang-switcher .lang-option:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(201,164,86,0.08);
}
.lang-switcher .lang-option.lang-active {
  background: rgba(201,164,86,0.25);
  color: #fff;
}
@media (max-width: 880px) {
  .lang-switcher {
    order: 99;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }
}
.i18n-notice {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

.persona-card { padding: 1.5rem; }
.persona-icon { font-size: 32px; margin-bottom: 0.5rem; }
.persona-card .persona-need { color: rgba(255,255,255,0.85); }
.persona-card .persona-fit { color: rgba(255,255,255,0.78); }
.persona-card .persona-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,164,86,0.2);
  color: rgba(255,255,255,0.92);
}
.section-subtitle {
  color: rgba(255,255,255,0.7);
  max-width: 720px;
  margin: 0.5rem auto 0;
  font-size: 1.05rem;
}

/* --- Scenario picker (#try-it) -------------------------------------- */
.scenario-picker {
  max-width: 920px;
  margin: 1.5rem auto 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,164,86,0.2);
  border-radius: 14px;
}
.scenario-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.scenario-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  min-width: 90px;
}
.scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}
.chip {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(201,164,86,0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.chip:hover {
  background: rgba(201,164,86,0.12);
  border-color: rgba(201,164,86,0.5);
}
.chip-active {
  background: rgba(201,164,86,0.25);
  border-color: rgba(201,164,86,0.8);
  color: #fff;
}

.scenario-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.scenario-pane {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,164,86,0.2);
  border-radius: 14px;
  padding: 1.5rem;
}
.scenario-summary h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.2rem;
}
.scenario-summary p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}
.ba-block {
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
}
.ba-before {
  background: rgba(255,87,87,0.08);
  border: 1px solid rgba(255,87,87,0.25);
}
.ba-after {
  background: rgba(95,209,113,0.08);
  border: 1px solid rgba(95,209,113,0.3);
}
.ba-block h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.ba-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.scenario-extra {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.scenario-extra code {
  background: rgba(0,0,0,0.3);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.8rem;
}

.scenario-demo { display: flex; flex-direction: column; }
.demo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 0.85rem;
  border-radius: 6px 6px 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}
.demo-prompt { font-family: 'SFMono-Regular', Consolas, monospace; }
.demo-cmd, .demo-output {
  background: rgba(0,0,0,0.5) !important;
  margin: 0 !important;
  padding: 0.85rem !important;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255,255,255,0.92);
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.demo-cmd { border-radius: 0; }
.demo-output {
  border-radius: 0 0 6px 6px;
  min-height: 200px;
  margin-top: 0.5rem !important;
  border-radius: 6px;
}
.demo-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0 0.4rem;
}
.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}
.demo-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  flex: 1;
}

@media (max-width: 880px) {
  .scenario-result { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
}

.domain-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(201,164,86,0.1);
  color: var(--accent);
  border: 1px solid rgba(201,164,86,0.25);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ------------------------------------------------------------------ ARCH */

.arch {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.arch-row { display: flex; }
.arch-cell {
  flex: 1;
  padding: 0.85rem 1.25rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 14px;
}
.arch-orch {
  background: linear-gradient(135deg, rgba(201,164,86,0.12), rgba(201,164,86,0.04));
  border-color: rgba(201,164,86,0.4);
  color: var(--text);
  font-weight: 600;
}
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 2.5rem;
}
.arch-layer {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}
.arch-layer span {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 70px;
}
.arch-layer em {
  margin-left: auto;
  color: var(--text-dim);
  font-style: italic;
  font-size: 13px;
}
.arch-layer.arch-optional {
  border-style: dashed;
  opacity: 0.85;
}
.arch-layer.arch-side {
  margin-left: 4rem;
  border-color: rgba(201,164,86,0.3);
}
.arch-auth {
  background: rgba(140, 200, 255, 0.06);
  border-color: rgba(140, 200, 255, 0.25);
}

/* ------------------------------------------------------------------ INSTALL */

.install-block {
  max-width: 760px;
  margin: 0 auto;
  font-size: 14.5px;
}

.install-note {
  text-align: center;
  color: var(--text-dim);
  margin-top: 1.25rem;
  font-size: 14px;
}

/* ------------------------------------------------------------------ USE CASES */

.usecases-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.uc-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.5fr 1fr;
  gap: 0;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.uc-row:last-child { border-bottom: none; }
.uc-row > div { padding-right: 1rem; color: var(--text-soft); }
.uc-row > div:first-child { color: var(--text); font-weight: 600; }
.uc-head {
  background: rgba(201,164,86,0.05);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  color: var(--text-dim);
}
.uc-head > div { color: var(--text-dim) !important; }
.lift {
  color: var(--accent-bright) !important;
  font-weight: 600;
}

.cta-line {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-dim);
}

/* ------------------------------------------------------------------ PRICING */

.price-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.price-featured {
  border-color: var(--accent-deep);
  background: linear-gradient(180deg, rgba(201,164,86,0.04), var(--bg-card));
  position: relative;
}
.price-featured::before {
  content: "Recommended";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.7rem;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1408;
  background: var(--accent);
  border-radius: 999px;
}

.price-head h3 { margin: 0; font-size: 1.05rem; color: var(--text-soft); }
.price {
  margin: 0.5rem 0 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.price span { font-size: 0.95rem; font-weight: 400; color: var(--text-dim); }
.price-sub { margin: 0.2rem 0 0; color: var(--text-dim); font-size: 13px; }

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 14.5px;
}
.price-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.4rem;
}

.price-disclaimer {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 206, 92, 0.05);
  border-left: 3px solid #ffce5c;
  border-radius: 4px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}
.price-disclaimer strong { color: #ffce5c; }

/* ------------------------------------------------------------------ UI tour */

.ui-tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.ui-shot {
  margin: 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.ui-shot:hover {
  transform: translateY(-3px);
  border-color: var(--accent-deep);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.ui-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #0a0a0f;
}

.ui-shot figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 13.5px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.ui-shot figcaption strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .ui-tour-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ CTA */

.cta {
  text-align: center;
}
.cta h2 { margin: 0 0 1rem; }
.cta p { margin: 0 0 2rem; color: var(--text-soft); }

/* ------------------------------------------------------------------ FOOTER */

.footer {
  background: #06070b;
  border-top: 1px solid var(--border);
  padding: 4rem 0 1.5rem;
  color: var(--text-dim);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 0 1.5rem;
}
.footer h4 {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer ul a { color: var(--text-soft); }
.footer ul a:hover { color: var(--text); }
.footer-tag {
  margin: 0.85rem 0 0;
  color: var(--text-dim);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ------------------------------------------------------------------ RESPONSIVE */

/* ------------------------------------------------------------------ HOW IT WORKS */

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.how-step {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.how-step h3 {
  margin: 0.5rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.how-step p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin: 0 0 1rem;
}
.how-step pre {
  margin: 0;
  font-size: 12.5px;
}
.step-num {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a1408;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------ TABS */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 0.6rem 1.1rem;
  background: var(--bg-card);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  transition: all 120ms ease;
}
.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(201,164,86,0.15), rgba(201,164,86,0.05));
  color: var(--accent-bright);
  border-color: var(--accent-deep);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fade-in 200ms ease;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.example-grid h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}
.example-grid p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin: 0 0 0.75rem;
}
.example-grid pre {
  margin: 0;
  font-size: 13px;
}
.bullet-tight {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 14px;
}

/* ------------------------------------------------------------------ ROI */

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}
.roi-grid h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.roi-formula pre {
  font-size: 13px;
}
.roi-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.roi-table th,
.roi-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.roi-table th {
  background: rgba(201,164,86,0.05);
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.roi-table tr:last-child td { border-bottom: none; }
.roi-total td { color: var(--accent-bright) !important; font-size: 15px; }
.roi-note {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 14px;
}

.long-effects {
  margin-top: 3rem;
}
.long-effects h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.long-effects td:last-child,
.long-effects th:last-child { color: var(--accent-bright); }

/* ------------------------------------------------------------------ COMPARISON */

.comparison-table {
  overflow-x: auto;
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.cmp th,
.cmp td {
  padding: 0.7rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.cmp th {
  background: rgba(201,164,86,0.05);
  color: var(--text);
  font-weight: 600;
}
.cmp th:first-child,
.cmp td:first-child {
  text-align: left;
  font-weight: 500;
}
.cmp tr:last-child td { border-bottom: none; }
.cmp td:nth-child(6),
.cmp th:nth-child(6) {
  background: rgba(201,164,86,0.1);
  color: var(--accent-bright);
  font-weight: 600;
}

/* ------------------------------------------------------------------ FAQ */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  transition: border-color 120ms ease;
}
.faq-list details[open] {
  border-color: var(--accent-deep);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  transition: transform 150ms ease;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ------------------------------------------------------------------ RESPONSIVE */

/* Tablet + small laptop (≤1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 1.25rem; }
  .hero h1 { font-size: 2.5rem; line-height: 1.15; }
  .nav-links { gap: 1rem; }
}

/* Large phones / small tablets (≤768px) */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .nav { padding: 0.75rem 1rem; flex-wrap: wrap; }
  .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Show ALL nav links horizontally-scrollable on mobile (was hidden) */
  .nav-links a:not(.nav-cta):not(.nav-github) {
    display: inline-block;
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
    font-size: 13px;
  }
  .nav-mirror, .nav-cta, .nav-github { font-size: 13px; padding: 0.4rem 0.7rem; }

  .hero {
    padding: 4rem 1rem 3rem;
  }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .hero-sub { font-size: 1rem; }
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 auto; min-width: 140px; }
  .hero-meta {
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
  }
  .hero-meta span { font-size: 12px; padding: 0.25rem 0.55rem; }

  .section { padding: 3rem 1rem; }
  .section-head h2 { font-size: 1.6rem; }

  .arch-stack { padding: 0; }
  .arch-layer.arch-side { margin-left: 0; }

  .uc-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1rem; }
  .uc-row > div::before {
    content: attr(data-label);
    display: block;
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .example-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr; }
  .cmp { font-size: 12px; }
  .cmp th, .cmp td { padding: 0.5rem 0.5rem; }

  /* Tabs — examples section: scroll horizontally instead of wrapping */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }

  /* Touch targets ≥ 44px (WCAG) */
  .btn { min-height: 44px; padding: 0.6rem 1rem; }
  .btn-sm { min-height: 38px; }

  /* Tables in ROI / pricing sections — horizontal scroll wrapper */
  .roi-table, .cmp { display: block; overflow-x: auto; max-width: 100%; }

  /* Cards: tighter padding */
  .card { padding: 1.1rem; }
}

/* Phones (≤480px) */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 0.95rem; }
  .section-head h2 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .ba-grid { grid-template-columns: 1fr; }

  /* Pricing tier cards stack */
  .price-card { padding: 1.25rem; }

  /* Smaller code blocks, easier to read on phones */
  pre, .install-block { font-size: 12px; padding: 0.85rem; }
  .demo-cmd, .demo-output { font-size: 11.5px; padding: 0.75rem !important; }
}

/* Print + reduced-motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
