/*
LICENSE

Copyright (C) 2026  sterling motuz <Sterling@dexabyte.ca>

for https://github.com/printer-buddy/printer-buddy

SPDX-License-Identifier: AGPL-3.0-only

Additional term (AGPL-3.0 section 7b, keep author credit): keep this header

Additional term (AGPL-3.0 section 7c, mark changed versions): if you make any changes, you must include a CHANGELOG with all changes and their dates
*/
:root {
  --purple: #7C3AED;
  --violet: #A78BFA;
  --orange: #FF8A1F;
  --bg: #0B0B0D;
  --card: #17161B;
  --line: #26242C;
  --text: #F2F0F6;
  --muted: #A9A5B3;
  --edge: 3px solid var(--line);
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }

h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 900; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.6rem; }

code { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 3px solid var(--purple);
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--orange);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--orange); }
.btn-light { background: var(--card); border-color: var(--line); color: var(--text); box-shadow: 4px 4px 0 var(--violet); }
.btn-light:hover { box-shadow: 6px 6px 0 var(--violet); }
.btn-light:active { box-shadow: 2px 2px 0 var(--violet); }
.btn-sm { padding: 8px 18px; font-size: 0.95rem; }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }

/* Nav */
.nav { background: var(--bg); border-bottom: var(--edge); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; gap: 30px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand b { color: var(--orange); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--orange); }

/* Features page */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.page-hero { padding: 70px 0 30px; text-align: center; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.jump a { padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.jump a:hover { border-color: var(--orange); color: var(--orange); }

.feat { padding: 70px 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.feat:nth-of-type(odd) .feat-text { order: 2; }
.feat-text h2 { margin-bottom: 24px; }
.feat-shot img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top left; }
.feat-wide img { aspect-ratio: auto; }
.feat-tall { justify-self: center; }
.feat-tall img { width: auto; max-width: 100%; max-height: 560px; aspect-ratio: auto; object-fit: contain; }

/* Pricing page */
.versus { padding: 50px 0 70px; }
.versus h2, .extras h2 { text-align: center; margin-bottom: 34px; }
.vs-table { max-width: 860px; margin: 0 auto; border: var(--edge); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 6px 6px 0 var(--orange); }
.vs-head, .vs-row { display: grid; grid-template-columns: 1fr 1fr; }
.vs-head span { padding: 14px 24px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.vs-head span:first-child { color: var(--muted); }
.vs-head span:last-child { color: var(--orange); background: rgba(255, 138, 31, 0.08); }
.vs-row span { padding: 18px 24px; border-top: 1px solid var(--line); }
.vs-them { color: var(--muted); }
.vs-them::before { content: "\2715"; color: #F87171; font-weight: 900; margin-right: 12px; }
.vs-us { font-weight: 700; background: rgba(255, 138, 31, 0.08); }
.vs-us::before { content: "\2713"; color: var(--orange); font-weight: 900; margin-right: 12px; }

.extras { padding: 40px 0 70px; }
.extras-inner { max-width: 760px; text-align: center; }
.extras p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.example { margin-top: 34px; padding: 26px 24px; border: var(--edge); border-radius: var(--radius); background: var(--card); box-shadow: 6px 6px 0 var(--violet); text-align: center; }
.example-tag { display: inline-block; margin: 0 0 10px !important; padding: 4px 10px; border-radius: 6px; background: var(--bg); color: var(--violet) !important; font-size: 0.8rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.example h3 { margin-bottom: 20px; }
.example-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.example-steps div { padding: 14px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 0.95rem; }
.example-steps b { color: var(--text); }
.example-steps span { color: var(--orange); font-weight: 900; font-size: 1.4rem; }
.example-steps .example-result { border: 2px solid var(--orange); }
.example-steps .example-result b { color: var(--orange); }

.love { padding: 30px 0 80px; }
.love-inner { max-width: 760px; text-align: center; }
.love p { margin: 14px 0 0; color: var(--muted); font-size: 1.2rem; }
.love p b { color: var(--orange); }
.love .btn { margin-top: 30px; }

.extras-empty { margin-top: 30px; padding: 26px; border: 3px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-weight: 700; }

/* Info page */
.info { padding: 60px 0; }
.info + .info { border-top: 1px solid var(--line); }
.info h2 { margin-bottom: 26px; }
.info-lead { color: var(--muted); font-size: 1.15rem; margin: -10px 0 26px; }
.info-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-steps li { counter-increment: s; padding: 24px 22px; border: var(--edge); border-radius: var(--radius); background: var(--card); display: grid; gap: 8px; align-content: start; }
.info-steps li::before { content: counter(s); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--bg); font-weight: 900; }
.info-steps b { font-size: 1.15rem; }
.info-steps span { color: var(--muted); font-size: 0.95rem; }
.info-table { border: var(--edge); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 6px 6px 0 var(--violet); }
.it-head, .it-row { display: grid; grid-template-columns: 240px 1fr; }
.it-head span { padding: 12px 22px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: var(--muted); }
.it-row > * { padding: 16px 22px; border-top: 1px solid var(--line); }
.it-row span { color: var(--muted); }
.info-note { margin: 20px 0 0; color: var(--muted); }
.info-note + .info-note { margin-top: 10px; }
.info-note b { color: var(--text); }
.info-note a { color: var(--violet); font-weight: 700; }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.req-card { padding: 26px; border: var(--edge); border-radius: var(--radius); background: var(--card); }
.req-card h3 { margin-bottom: 8px; }
.req-for { margin: 0 0 18px; color: var(--muted); }
.req-for b { color: var(--text); }
.info-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.info-facts p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.info-facts b { display: block; color: var(--text); margin-bottom: 4px; }
.info-terminal { margin-top: 30px; }
.info-terminal a { color: var(--violet); }
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.link-card { display: grid; gap: 6px; padding: 24px; border: var(--edge); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: transform 0.12s, box-shadow 0.12s; }
.link-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.link-card b { color: var(--text); font-size: 1.3rem; }
.link-card span { color: var(--muted); }

/* FAQ page */
.faq { padding: 30px 0 60px; }
.faq-inner { max-width: 860px; }
.faq h2 { margin: 40px 0 18px; font-size: clamp(1.5rem, 3vw, 2rem); }
.faq h2:first-child { margin-top: 0; }
.faq details { margin-bottom: 12px; border: var(--edge); border-radius: 14px; background: var(--card); }
.faq details[open] { box-shadow: 5px 5px 0 var(--orange); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 800; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.6rem; font-weight: 900; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.faq details p b { color: var(--text); }
.faq details a { color: var(--violet); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 138, 31, 0.15);
  border: 2px solid var(--orange);
}

/* Hero */
.hero { padding: 70px 0 0; text-align: center; }
.pill {
  display: inline-block;
  margin: 0 0 26px;
  padding: 8px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}
mark {
  background: linear-gradient(transparent 58%, var(--orange) 58%, var(--orange) 90%, transparent 90%);
  color: inherit;
  padding: 0 0.08em;
}
.lead { max-width: 36em; margin: 26px auto 0; font-size: 1.2rem; color: var(--muted); }

.peek { position: relative; max-width: 1000px; margin: 70px auto 0; }

.frame {
  margin: 0;
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 6px 6px 0 var(--violet);
}
.hero .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; box-shadow: none; }

/* Demo */
.demo { background: #121115; padding-bottom: 46px; text-align: left; font-size: 13px; line-height: 1.4; position: relative; }
.demo button { font: inherit; }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.demo-logo { width: 34px; height: 25px; background: url(assets/logo-mascot.png) center / contain no-repeat; }
.demo-title { font-weight: 800; font-size: 15px; }
.demo-title b { color: var(--orange); }
.demo-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bg); background: var(--orange); padding: 3px 8px; border-radius: 6px; }
.demo-view { margin-left: auto; display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.demo-view button { border: 0; background: none; cursor: pointer; padding: 5px 12px; border-radius: 6px; color: var(--muted); font-weight: 700; }
.demo-view button.on { background: var(--card); color: var(--text); }

.demo-fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 16px 0; }
.demo-fleet div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; }
.demo-fleet b { display: block; font-size: 22px; font-weight: 900; }
.demo-fleet span { color: var(--muted); font-size: 12px; }
.demo-fleet .printing { color: var(--orange); }
.demo-fleet .paused { color: #F5C542; }
.demo-fleet .idle { color: var(--violet); }
.demo-next { margin: 8px 16px 0; color: var(--muted); font-size: 12px; }

.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px 16px; }
.demo-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.demo-cam { position: relative; aspect-ratio: 16 / 9; background-color: #000; background-repeat: no-repeat; }
.cam-workshop, .cam-shelf1, .cam-garage { background-size: cover; background-position: center; }
.cam-workshop { background-image: url(assets/demo/workshop.avif); }
.cam-shelf1 { background-image: url(assets/demo/shelf1.avif); }
.cam-garage { background-image: url(assets/demo/garage.avif); }
.cam-ai { background-image: url(assets/screens/ai-box.png); background-size: cover; background-position: center; }
.demo-badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, 0.75); }
.demo-name { position: absolute; left: 10px; bottom: 8px; right: 10px; font-weight: 900; font-size: 15px; text-shadow: 0 1px 6px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-ai { position: absolute; top: 8px; right: 8px; background: #DC2626; color: #fff; font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 5px; }
.printing { color: var(--orange); }
.paused { color: #F5C542; }
.finished { color: #4ADE80; }
.cancelled, .idle { color: var(--muted); }
.demo-pill { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--bg); }

.demo-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.demo-status { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-prog { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.demo-prog i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: inherit; transition: width 0.9s linear; }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.demo-stats.five { grid-template-columns: repeat(5, 1fr); }
.demo-stats span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.demo-stats b { font-size: 13px; white-space: nowrap; }
.demo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.demo-btn { cursor: pointer; padding: 7px 0; border-radius: 7px; font-weight: 800; font-size: 12px; background: var(--purple); color: #fff; border: 1px solid var(--purple); }
.demo-btn:hover { filter: brightness(1.15); }
.demo-btn.alt { background: transparent; color: var(--orange); border-color: var(--orange); }
.demo-btn.warn { background: transparent; color: #F87171; border-color: #F87171; }

.demo-grid.list { grid-template-columns: 1fr; gap: 8px; }
.list .demo-card { flex-direction: row; align-items: stretch; }
.list .demo-cam { width: 150px; flex: none; }
.list .demo-name { font-size: 13px; }
.list .demo-ai { display: none; }
.list .demo-body { flex-direction: row; align-items: center; gap: 16px; }
.list .demo-status { width: 210px; flex: none; }
.list .demo-prog { flex: 1; }
.list .demo-stats { width: 230px; flex: none; }
.list .demo-btns { width: 190px; flex: none; margin: 0; }

.demo-modal { position: absolute; inset: 0; background: rgba(5, 5, 6, 0.78); display: grid; place-items: center; padding: 20px; z-index: 5; cursor: pointer; }
.demo-panel { width: min(600px, 100%); background: var(--card); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 var(--orange); cursor: default; }
.demo-panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.demo-panel-head b { font-size: 16px; }
.demo-x { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 4px; }
.demo-x:hover { color: var(--text); }
.demo-panel .demo-body { padding: 14px; gap: 12px; }

.demo-sp { margin: 4px 16px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.demo-sp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.demo-sp-head b { font-size: 15px; }
.demo-range { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.demo-range button { border: 0; background: none; cursor: pointer; padding: 6px 12px; color: var(--text); font-weight: 700; font-size: 12px; }
.demo-range button.on { background: #2A1D12; color: var(--orange); }
.demo-totals { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.demo-totals div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 6px; text-align: center; }
.demo-totals b { display: block; font-size: 19px; font-weight: 900; white-space: nowrap; }
.demo-totals span { color: var(--muted); font-size: 11px; }
.demo-table-wrap { overflow-x: auto; margin-top: 12px; }
.demo-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.demo-table th { text-align: left; font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.demo-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--muted); }
.demo-table td:first-child { color: var(--text); }
.demo-fails { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.demo-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.demo-files { list-style: none; margin: 0; padding: 0; }
.demo-files li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.demo-files span { color: var(--muted); }
.demo-bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.demo-bars i { flex: 1; background: #A0581C; display: flex; flex-direction: column; min-height: 2px; }
.demo-bars u { display: block; background: #E5484D; margin-top: auto; }
.demo-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 4px; padding-right: 22%; }

.demo-toasts { position: absolute; right: 16px; top: 64px; display: flex; flex-direction: column; gap: 8px; z-index: 6; pointer-events: none; }
.demo-toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--violet); padding: 10px 14px; border-radius: 8px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); animation: toast-in 0.25s ease-out; }
.demo-toast.ai { border-left-color: #DC2626; }
.demo-toast.ok { border-left-color: #4ADE80; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Tape */
.tape {
  background: var(--orange);
  color: var(--bg);
  overflow: hidden;
  transform: rotate(-1.5deg);
  margin: -6px -20px 0;
  position: relative;
  z-index: 3;
}
.tape-track { display: flex; width: max-content; animation: tape 30s linear infinite; }
.tape span {
  padding: 16px 28px;
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tape span::after { content: "\25CF"; margin-left: 56px; font-size: 0.6em; vertical-align: middle; }
@keyframes tape { to { transform: translateX(-50%); } }

/* Meet */
.meet { padding: 140px 0 80px; }
.meet-inner { display: grid; grid-template-columns: auto 1fr; gap: 60px; align-items: center; max-width: 980px; }
.meet-buddy { width: 380px; aspect-ratio: 512 / 326; overflow: hidden; }
.meet-buddy img { width: 100%; }
.meet-text p { margin: 0; color: var(--muted); font-size: 1.3rem; }
.bubble {
  position: relative;
  display: inline-block;
  margin-bottom: 28px !important;
  padding: 18px 26px;
  border: var(--edge);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 6px 6px 0 var(--orange);
  color: var(--text) !important;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  line-height: 1.15;
}
.bubble b { color: var(--orange); }
.bubble small { display: block; margin-top: 6px; color: var(--muted); font-size: 1.05rem; font-weight: 700; }
.bubble::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 26px;
  height: 26px;
  background: var(--card);
  border-left: var(--edge);
  border-bottom: var(--edge);
  transform: translateY(-50%) rotate(45deg);
}
.meet-text .small { margin-top: 22px; font-size: 1rem; }

/* Fleet */
.fleet { padding: 70px 0; text-align: center; }
.fleet p { margin: 14px 0 0; color: var(--orange); font-weight: 900; font-size: clamp(1.4rem, 3vw, 2rem); }

/* Screenshot strip */
.shots { padding: 10px 0 90px; overflow: hidden; }
.cf { position: relative; max-width: 1160px; margin: 0 auto; }
.cf-stage { position: relative; height: calc(min(720px, 64vw) * 0.625 + 6px); }
.cf-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, 64vw);
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}
.cf-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.cf-item.cur { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; }
.cf-item.prev, .cf-item.next { opacity: 0.6; filter: brightness(0.55); z-index: 2; pointer-events: auto; cursor: pointer; }
.cf-item.prev { transform: translateX(-100%) scale(0.78); }
.cf-item.next { transform: translateX(0%) scale(0.78); }
.cf-btn { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--line); background: var(--card); color: var(--text); font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.cf-btn:hover { border-color: var(--orange); color: var(--orange); }
.cf-btn[data-dir="-1"] { left: 24px; }
.cf-btn[data-dir="1"] { right: 24px; }

/* Manifesto */
.manifesto { background: var(--card); border-top: 3px solid var(--orange); border-bottom: 3px solid var(--orange); padding: 100px 0; margin-top: 40px; }
.big { margin: 0; font-weight: 900; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.03em; }
.big span { display: inline-block; margin-right: 0.2em; }
.big span:nth-child(2) { color: var(--orange); }
.big span:nth-child(3) { color: var(--violet); }
.manifesto-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.manifesto-cols p { margin: 0; color: var(--muted); }
.manifesto-cols b { display: block; color: var(--text); font-size: 1.15rem; margin-bottom: 6px; }

/* Install */
.install { padding: 110px 0; }
.install-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.install-text p { color: var(--muted); margin: 18px 0 30px; }
.terminal {
  background: #050506;
  border: var(--edge);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--orange);
  padding: 28px 30px;
}
.terminal pre { margin: 0; overflow-x: auto; font-size: 1rem; line-height: 1.9; }
.terminal .p { color: var(--orange); user-select: none; }
.terminal p { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.terminal p code { color: var(--violet); }

/* Footer */
.footer { border-top: var(--edge); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copy { margin: 0 0 0 auto; color: var(--muted); font-size: 0.9rem; }
.copy a { color: var(--muted); }
.copy a:hover { color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 900px) {
  .meet-inner, .manifesto-cols, .install-inner, .feat-inner { grid-template-columns: 1fr; }
  .feat:nth-of-type(odd) .feat-text { order: 0; }
  .info-steps { grid-template-columns: 1fr 1fr; }
  .req, .info-facts, .links { grid-template-columns: 1fr; }
  .it-head, .it-row { grid-template-columns: 1fr; }
  .it-head span:last-child { display: none; }
  .it-row span { border-top: 0; padding-top: 0; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .list .demo-stats, .list .demo-status { display: none; }
  .demo-totals { grid-template-columns: repeat(4, 1fr); }
  .demo-fails { grid-template-columns: 1fr; }
  .meet { padding-top: 110px; }
  .meet-buddy { width: 260px; margin: 0 auto; }
  .bubble::before { left: 50%; top: -16px; transform: translateX(-50%) rotate(135deg); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding-top: 44px; }
  .peek { margin-top: 50px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-fleet { grid-template-columns: repeat(2, 1fr); }
  .demo-tag { display: none; }
  .demo-stats.five { grid-template-columns: repeat(3, 1fr); }
  .list .demo-cam { width: 100px; }
  .list .demo-btns { width: auto; flex: 1; }
  .demo-totals { grid-template-columns: repeat(2, 1fr); }
  .vs-head span, .vs-row span { padding: 12px 14px; font-size: 0.92rem; }
  .example-steps { grid-template-columns: 1fr; }
  .info-steps { grid-template-columns: 1fr; }
  .example-steps span { transform: rotate(90deg); }
  .meet-buddy { width: 200px; }
  .copy { margin-left: 0; }
}
