/* ============================================================
   Zabibu Arif · Arif Agent
   Palette from the Zabibu Arif UI; structure from ex8.tech.
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #160e0d;
  --bg-2: #1c1210;
  --bg-3: #120b0a;
  --panel: #221614;
  --panel-2: #291b18;
  --line: rgba(255, 166, 146, 0.14);
  --line-strong: rgba(255, 166, 146, 0.26);

  --text: #f6eeea;
  --muted: #b7a29b;
  --faint: #9d8983;

  --coral: #f2635a;
  --coral-2: #ff8a5c;
  --pink: #ff4d6d;
  --amber: #f0b36a;
  --green: #8fd6a8;

  --display: "Silkscreen", ui-monospace, monospace;
  --body: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 760px at 82% -12%, rgba(242, 99, 90, 0.17), transparent 62%),
    radial-gradient(900px 620px at 2% 32%, rgba(255, 77, 109, 0.08), transparent 58%),
    linear-gradient(180deg, #1a100f 0%, var(--bg) 42%, var(--bg-3) 100%);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
button { font: inherit; }
::selection { color: #fff; background: rgba(242, 99, 90, 0.42); }

/* ---------- atmosphere ---------- */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 166, 146, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 166, 146, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 18%, #000 0%, transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(22, 14, 13, 0.84);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 15px clamp(20px, 4vw, 44px);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand svg { width: 27px; height: 27px; flex: none; }

.brand-word {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a { padding: 4px 0; transition: color 0.2s ease; }
.site-nav a:hover { color: var(--coral-2); }

.head-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- type ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--coral-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.15;
}

.grad {
  color: transparent;
  background: linear-gradient(120deg, var(--pink), var(--coral) 48%, var(--coral-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.72;
}

.lede strong { color: var(--text); font-weight: 600; }
.copy { max-width: 62ch; margin: 18px 0 0; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.copy strong { color: var(--text); font-weight: 600; }
.copy code { color: var(--coral-2); font-family: var(--mono); font-size: 0.92em; }
.fine { margin-top: 16px; color: var(--faint); font-size: 12.5px; line-height: 1.7; }
.fine a { color: var(--coral-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 166, 146, 0.03);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); border-color: rgba(255, 166, 146, 0.5); background: rgba(255, 166, 146, 0.07); }

.btn-coral {
  color: #1b0a08;
  border-color: transparent;
  background: linear-gradient(120deg, var(--pink), var(--coral) 52%, var(--coral-2));
  box-shadow: 0 8px 30px rgba(242, 99, 90, 0.24);
}

.btn-coral:hover {
  border-color: transparent;
  background: linear-gradient(120deg, #ff5f7d, #ff7063 52%, #ff9a6b);
  box-shadow: 0 12px 38px rgba(242, 99, 90, 0.38);
}

.btn-sm { padding: 10px 14px; font-size: 9px; border-radius: 10px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--coral-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(255, 138, 92, 0.45);
  padding-bottom: 3px;
}

.text-link:hover { color: #fff; border-color: #fff; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  border-bottom: 1px dashed var(--line-strong);
  padding: clamp(46px, 7vw, 88px) 0 clamp(40px, 6vw, 68px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 14px 18px 0 0;
  border-right: 1px dashed var(--line);
}

.hero-facts div:last-child { border-right: 0; padding-right: 0; }
.hero-facts dt { margin: 0; color: var(--faint); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-facts dd { margin: 5px 0 0; color: var(--text); font-size: 13px; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }

.hero-art::before {
  content: "";
  position: absolute;
  width: min(78%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 99, 90, 0.23), rgba(255, 77, 109, 0.07) 48%, transparent 70%);
  filter: blur(8px);
}

.hero-art svg { position: relative; z-index: 1; width: 100%; max-width: 520px; height: auto; }
.art-caption {
  position: absolute;
  bottom: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px dashed var(--line-strong);
  background: rgba(255, 166, 146, 0.025);
}

.ticker-track {
  display: flex;
  width: max-content;
  padding: 9px 0;
  animation: marquee 42s linear infinite;
}

.ticker-group { display: flex; flex: none; }

.ticker span {
  padding: 0 22px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ticker span:nth-child(3n + 1) { color: var(--coral-2); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 44px);
}

.section + .section { border-top: 1px dashed var(--line); }

.section-label {
  margin-bottom: 22px;
  color: var(--coral-2);
  font-family: var(--display);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head { max-width: 880px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

.vertical-label {
  position: absolute;
  left: clamp(6px, 1.4vw, 18px);
  top: clamp(28px, 5vw, 60px);
  color: var(--faint);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ---------- two products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 99, 90, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.product-card.product {
  border-color: rgba(255, 77, 109, 0.26);
  background: linear-gradient(155deg, rgba(255, 77, 109, 0.1), rgba(255, 255, 255, 0.02) 54%, rgba(242, 99, 90, 0.05));
}

.product-card.engine { border-color: rgba(255, 166, 146, 0.2); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--coral-2);
  background: rgba(255, 166, 146, 0.05);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag-plain { color: var(--muted); border-color: var(--line); background: transparent; }

.big-num {
  color: rgba(255, 166, 146, 0.28);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.product-card p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.68; }
.product-card p strong { color: var(--text); font-weight: 600; }

.feature-list { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 6px;
  height: 6px;
  background: var(--coral);
}

.core-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.core-line::before,
.core-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

/* ---------- showcase ---------- */

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 26px;
}

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0f0908;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.shot::before,
.shot::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 1px solid var(--coral);
  pointer-events: none;
}

.shot::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.shot::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }

.shot img { width: 100%; height: auto; }

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shot figcaption span:last-child { color: var(--coral-2); }

.meta-list {
  display: grid;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.meta-list div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-list dt::before {
  content: "◆";
  color: var(--coral);
  font-size: 7px;
}

.meta-list dd { margin: 0; color: var(--text); font-size: 13.5px; }

/* ---------- axes ---------- */

.axis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.axis-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.024);
  transition: border-color 0.25s ease, transform 0.3s var(--ease), background 0.25s ease;
}

.axis-card:hover { transform: translateY(-3px); border-color: rgba(242, 99, 90, 0.42); background: rgba(255, 166, 146, 0.045); }

.axis-num {
  display: block;
  margin-bottom: 18px;
  color: var(--coral-2);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.axis-card h3 { font-size: clamp(18px, 1.9vw, 22px); }
.axis-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.axis-card p code { color: var(--coral-2); font-family: var(--mono); font-size: 0.92em; }

/* ---------- engine ---------- */

.engine-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 26px;
}

.engine-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }

.engine-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.engine-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--coral);
}

.engine-list strong { color: var(--text); font-weight: 600; }

.terminal {
  overflow: hidden;
  border: 1px solid rgba(242, 99, 90, 0.28);
  border-radius: 16px;
  background: #100a09;
  box-shadow: inset 0 0 60px rgba(242, 99, 90, 0.04), 0 24px 50px rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(242, 99, 90, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 166, 146, 0.2);
}

.terminal-bar i:nth-child(1) { background: rgba(255, 77, 109, 0.75); }
.terminal-bar i:nth-child(2) { background: rgba(240, 179, 106, 0.75); }
.terminal-bar i:nth-child(3) { background: rgba(143, 214, 168, 0.7); }

.terminal-bar span {
  margin-left: 8px;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terminal pre {
  margin: 0;
  padding: 18px 18px 20px;
  overflow-x: auto;
  color: #d8c7c1;
  font-size: 10.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.terminal .c { color: var(--coral-2); }
.terminal .g { color: var(--green); }
.terminal .a { color: var(--amber); }
.terminal .d { color: #a08a84; }
.terminal .w { color: var(--text); }

/* ---------- download ---------- */

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 26px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(242, 99, 90, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.09), rgba(255, 255, 255, 0.02) 55%, rgba(255, 138, 92, 0.05));
}

.download-copy, .download-install { min-width: 0; }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.download-install {
  padding-left: clamp(0px, 3vw, 36px);
  border-left: 1px dashed var(--line-strong);
}

.download-install .code { max-width: none; margin-top: 16px; font-size: 10.5px; }
.download-install .fine { font-size: 12px; }
.download-install .fine code { color: var(--coral-2); font-family: var(--mono); font-size: 0.94em; }
.code.small { margin-top: 10px; padding: 14px 16px; font-size: 10px; }

/* ---------- accounts ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.info-card {
  padding: clamp(22px, 2.8vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.024);
}

.info-card h3 { font-size: 19px; }
.info-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.info-card p code { color: var(--coral-2); font-family: var(--mono); font-size: 0.92em; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1360px;
  margin: 0 auto;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}

.stat {
  padding: 28px clamp(18px, 3vw, 34px);
  border-right: 1px dashed var(--line-strong);
}

.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--text); font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1; }
.stat span { display: block; margin-top: 7px; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- manifesto ---------- */

.manifesto {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid rgba(242, 99, 90, 0.3);
  border-radius: 24px;
  background: linear-gradient(135deg, #2a1613, #190f0d 54%, #2a1216);
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 280px at 86% 8%, rgba(255, 77, 109, 0.18), transparent 66%),
    radial-gradient(480px 260px at 8% 96%, rgba(255, 138, 92, 0.1), transparent 66%);
}

.manifesto > * { position: relative; z-index: 1; }
.manifesto h2 { max-width: 20ch; }
.manifesto .copy { max-width: 58ch; }

/* ---------- start ---------- */

.start { text-align: center; }
.start .actions { justify-content: center; }
.start .copy { margin-left: auto; margin-right: auto; }

.code {
  max-width: 680px;
  margin: 28px auto 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid rgba(242, 99, 90, 0.24);
  border-radius: 14px;
  background: #100a09;
  color: #d8c7c1;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.9;
  text-align: left;
  white-space: pre;
  box-shadow: inset 0 0 50px rgba(242, 99, 90, 0.03);
}

.start .fine { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px dashed var(--line-strong);
  background: rgba(10, 6, 5, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 64px) clamp(20px, 4vw, 44px) 26px;
}

.footer-brand svg { width: 30px; height: 30px; margin-bottom: 14px; }
.footer-brand .brand-word { font-size: 12px; }
.footer-brand p { max-width: 32ch; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.footer-brand .footer-loc { margin-top: 16px; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }

.footer-col .footer-heading {
  margin: 0 0 14px;
  color: var(--coral-2);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 44px) 30px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

.footer-bottom .mono { color: rgba(242, 99, 90, 0.8); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .site-nav { gap: 16px; }
  .hero-art { min-height: 320px; }
}

@media (max-width: 940px) {
  .site-nav { display: none; }
  .hero-inner,
  .showcase-grid,
  .engine-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 280px; }
  .hero-art svg { max-width: 400px; }
  .product-grid,
  .two-col { grid-template-columns: 1fr; }
  .download-panel { grid-template-columns: minmax(0, 1fr); }
  .download-install { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px dashed var(--line-strong); }
  .axis-grid { grid-template-columns: 1fr 1fr; }
  .axis-grid > :last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px dashed var(--line-strong); }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .vertical-label { display: none; }
}

@media (max-width: 680px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { border-right: 0; border-bottom: 1px dashed var(--line); padding: 12px 0; }
  .hero-facts div:last-child { border-bottom: 0; }
  .axis-grid { grid-template-columns: 1fr; }
  .axis-grid > :last-child { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px dashed var(--line-strong); }
  .stat:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .terminal pre { font-size: 9.5px; }
  .code { font-size: 10px; }
  .brand-sub { display: none; }
  .head-actions .btn { padding: 9px 12px; }
}

@media (max-width: 430px) {
  .footer-inner { grid-template-columns: 1fr; }
  .head-actions .btn-sm { font-size: 8px; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- interactive TUI ---------- */

.tui {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(242, 99, 90, 0.28);
  border-radius: 18px;
  background: #0d0807;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 0 80px rgba(242, 99, 90, 0.03);
}

.tui-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(242, 99, 90, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.tui-dots { display: flex; gap: 6px; }
.tui-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 166, 146, 0.2); }
.tui-dots i:nth-child(1) { background: rgba(255, 77, 109, 0.75); }
.tui-dots i:nth-child(2) { background: rgba(240, 179, 106, 0.75); }
.tui-dots i:nth-child(3) { background: rgba(143, 214, 168, 0.7); }

.tui-title {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tui-demo {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(242, 99, 90, 0.3);
  border-radius: 8px;
  color: var(--coral-2);
  background: rgba(242, 99, 90, 0.07);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tui-demo:hover { color: #fff; background: rgba(242, 99, 90, 0.16); }
.tui-demo:disabled { opacity: 0.5; cursor: wait; }

.tui-body {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 430px;
}

.tui-side {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.tui-side-label {
  margin: 16px 10px 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tui-side-label:first-child { margin-top: 0; }

.tui-tab {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tui-tab:hover { color: var(--text); background: rgba(255, 166, 146, 0.04); }
.tui-tab.is-active { border-left-color: var(--coral); background: rgba(242, 99, 90, 0.07); color: var(--coral-2); }

.tui-side-accounts { display: grid; gap: 8px; padding: 0 10px; }
.tui-side-accounts span { display: grid; gap: 2px; }
.tui-side-accounts b { color: var(--faint); font-family: var(--mono); font-size: 7.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.tui-side-accounts em { color: var(--text); font-family: var(--mono); font-size: 9.5px; font-style: normal; }

.tui-side-card {
  margin: 0 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.tui-side-card small { display: block; margin-top: 4px; color: var(--faint); font-size: 8px; word-break: break-all; }
.tui-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.tui-main { display: flex; min-width: 0; flex-direction: column; }

.tui-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#tui-pane-title { color: var(--coral-2); }
.tui-pane-meta { color: var(--faint); font-size: 8px; }

.tui-screen {
  flex: 1;
  min-height: 360px;
  max-height: 520px;
  overflow-y: auto;
  padding: 15px 18px;
  color: #d8c7c1;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  scrollbar-color: rgba(242, 99, 90, 0.35) transparent;
}

.tui-screen::-webkit-scrollbar { width: 8px; }
.tui-screen::-webkit-scrollbar-thumb { background: rgba(242, 99, 90, 0.3); border-radius: 8px; }

.tui-line { white-space: pre-wrap; word-break: break-word; }
.tui-line + .tui-line { margin-top: 2px; }
.tui-accent { color: var(--coral-2); }
.tui-coral { color: var(--coral); }
.tui-white { color: var(--text); }
.tui-dim { color: #a08a84; }
.tui-ok { color: var(--green); }
.tui-warn { color: var(--amber); }
.tui-cmd { margin-top: 10px; color: var(--text); }
.tui-prompt-inline { margin-right: 8px; color: var(--coral); }

.tui-table {
  display: block;
  margin: 9px 0 0;
  padding: 0;
  overflow-x: auto;
  color: #d8c7c1;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre;
}

.tui-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.tui-chip {
  padding: 4px 8px;
  border: 1px solid rgba(242, 99, 90, 0.22);
  border-radius: 6px;
  color: var(--coral-2);
  background: rgba(242, 99, 90, 0.07);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tui-chip:hover { color: #fff; background: rgba(242, 99, 90, 0.16); }

.tui-link { color: var(--coral-2); text-decoration: underline; text-underline-offset: 2px; }
.tui-link:hover { color: #fff; }

.tui-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid rgba(242, 99, 90, 0.16);
  background: rgba(0, 0, 0, 0.25);
}

.tui-prompt { color: var(--coral); font-family: var(--mono); }
.tui-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  caret-color: var(--coral);
}

.tui-input::placeholder { color: var(--faint); }
.tui-input:disabled { opacity: 0.55; }

.tui-run {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.tui-run:hover { color: var(--text); border-color: var(--line-strong); }

.tui-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.tui-foot kbd {
  display: inline-block;
  min-width: 15px;
  margin-right: 3px;
  padding: 1px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.tui-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: start center;
  padding: 60px 16px 16px;
  overflow: auto;
  background: rgba(10, 6, 5, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tui-overlay[hidden] { display: none; }

.tui-dialog {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid rgba(242, 99, 90, 0.35);
  border-radius: 14px;
  background: #150d0b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
}

.tui-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--coral-2);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tui-close {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  cursor: pointer;
}

.tui-close:hover { color: var(--text); border-color: var(--coral); }

.tui-palette-input {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
}

.tui-palette-input::placeholder { color: var(--faint); }

.tui-palette-list { max-height: 300px; overflow-y: auto; padding: 6px; }

.tui-palette-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  text-align: left;
  cursor: pointer;
}

.tui-palette-item:hover,
.tui-palette-item.is-active { color: var(--text); background: rgba(242, 99, 90, 0.1); }
.tui-palette-item b { color: var(--coral-2); font-weight: 500; }

.tui-dialog-copy { padding: 12px 16px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tui-account-list { display: grid; gap: 8px; padding: 10px 12px 14px; }

.tui-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}

.tui-account-item:hover,
.tui-account-item.is-active { border-color: rgba(242, 99, 90, 0.42); background: rgba(242, 99, 90, 0.07); color: var(--text); }
.tui-account-item em { display: block; margin-top: 3px; color: var(--faint); font-size: 8.5px; font-style: normal; }

.tui-badge {
  padding: 3px 6px;
  border: 1px solid rgba(143, 214, 168, 0.24);
  border-radius: 4px;
  color: var(--green);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tui-badge.is-selected { border-color: rgba(240, 179, 106, 0.28); color: var(--amber); }

@media (max-width: 940px) {
  .tui-body { grid-template-columns: 1fr; }
  .tui-side { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tui-side-label { width: 100%; margin: 4px 8px 2px; }
  .tui-side-label:first-child { margin-top: 0; }
  .tui-tab { width: auto; padding: 6px 8px; border-left: 0; border-bottom: 2px solid transparent; }
  .tui-tab.is-active { border-left: 0; border-bottom-color: var(--coral); }
  .tui-side-accounts { display: flex; width: 100%; gap: 16px; padding: 4px 8px; }
  .tui-side-card { display: none; }
  .tui-screen { min-height: 320px; max-height: 430px; }
  .tui-overlay { padding: 36px 10px 10px; }
}

@media (max-width: 680px) {
  .tui-pane-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tui-screen { padding: 12px; font-size: 10px; min-height: 330px; }
  .tui-table { font-size: 9px; }
  .tui-foot { display: none; }
  .tui-input-row { padding: 9px 12px; }
  .tui-demo { font-size: 8px; padding: 6px 8px; }
  .tui-palette-item { grid-template-columns: 78px minmax(0, 1fr); font-size: 9px; }
}

section[id] { scroll-margin-top: 86px; }

