/* acca.dev — industrial engineering aesthetic (cream + orange, mono labels, blueprint line-art)
   Zero third-party requests: system font stacks only. */

:root {
  --page: #e6dccb;        /* outer page */
  --paper: #f4ede0;       /* main card */
  --ink: #191613;
  --ink-soft: #4a4238;
  --orange: #e8500a;      /* surfaces, large type, accents */
  --orange-deep: #b23a00; /* small text on cream (AA) */
  --orange-hot: #ff7a33;  /* accents on dark */
  --term-bg: #191613;
  --term-fg: #f4ede0;
  --line: #191613;

  --sans: "Helvetica Neue", "Inter", "Archivo", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --radius-card: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.site-tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 14px 4px;
  color: var(--ink-soft);
}

.card {
  background: var(--paper);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(25, 22, 19, 0.12);
}

.card-pad { padding: 28px 40px; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 40px 8px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange-deep);
  text-decoration: none;
  font-size: 15px;
}

.topnav { display: flex; gap: 22px; flex-wrap: wrap; }

.topnav a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 8px 2px;           /* touch target */
  border-bottom: 2px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--orange); }
.topnav a.accent { color: var(--orange-deep); font-weight: 700; }

.crumbs {
  padding: 18px 40px 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.crumbs .here { color: var(--orange-deep); }

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

.hero { padding: 26px 40px 30px; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange-deep);
  font-weight: 700;
}

h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 14px 0 18px;
  max-width: 18ch;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-grid > *, .tiers > * { min-width: 0; }

/* install command */
.cmd {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  background: var(--term-bg);
  color: var(--term-fg);
  border-radius: 8px;
  overflow: hidden;
  max-width: 560px;
}
.cmd code {
  padding: 14px 18px;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.cmd code .p { color: var(--orange-hot); }
.copy-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 0;
  border-left: 1.5px solid rgba(244, 237, 224, 0.25);
  background: transparent;
  color: var(--term-fg);
  padding: 0 18px;
  cursor: pointer;
  min-width: 74px;
}
.copy-btn:hover { background: rgba(244, 237, 224, 0.12); }

.cmd-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 10px 2px 24px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  display: inline-block;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hot); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(25, 22, 19, 0.06); }

/* terminal demo */
.term {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--term-bg);
  color: var(--term-fg);
  font-size: 13px;
  line-height: 1.75;
  overflow: hidden;
}
.term-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 237, 224, 0.6);
  border-bottom: 1px solid rgba(244, 237, 224, 0.2);
}
.term pre {
  margin: 0;
  padding: 14px 16px 18px;
  overflow-x: auto;
}
.term .p { color: var(--orange-hot); }
.term .ok { color: #8fbf6f; }
.term .dim { color: rgba(244, 237, 224, 0.55); }

/* three columns */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding: 30px 40px 40px;
  border-top: 1.5px solid rgba(25, 22, 19, 0.18);
  margin-top: 34px;
}
.trio h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.trio p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- orange process section ---------- */

.factory {
  background: var(--orange);
  color: var(--ink);
  padding: 44px 40px 40px;
}

.factory .kicker { color: var(--ink); }

.factory-head { max-width: 72ch; }
.factory h2.title { margin-bottom: 8px; }
.factory-sub { margin: 0 0 28px; font-size: 14px; }

/* pipeline */
.fx { position: relative; }
.fx-rail {
  position: absolute;
  left: 8px; right: 8px; top: 54px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px);
  animation: railflow 1.1s linear infinite;
}
@keyframes railflow { to { background-position: 16px 0; } }

.fx-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.fx-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-family: var(--mono);
  color: var(--ink);
  background: var(--orange);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 16px 16px 20px;
  cursor: pointer;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out, color 0.2s ease-out;
}
.fx-card:hover { transform: translateY(-3px); }
.fx-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fx-card.active { background: var(--term-bg); color: var(--term-fg); }

.fx-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.fx-ico { width: 30px; height: 30px; flex: none; }
.fx-num { font-style: italic; font-size: 13px; opacity: 0.75; }
.fx-name { font-family: var(--sans); font-weight: 800; text-transform: uppercase; font-size: 17px; letter-spacing: 0.02em; }
.fx-desc { font-size: 12px; line-height: 1.5; opacity: 0.85; }
.fx-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 9px;
  margin-top: 2px;
  opacity: 0.9;
}
.fx-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--orange-hot);
  transform: scaleX(0);
  transform-origin: left;
}
.fx-progress.run { animation: fxprogress 3.6s linear forwards; }
@keyframes fxprogress { to { transform: scaleX(1); } }

/* console */
.fx-console {
  margin-top: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--term-bg);
  color: var(--term-fg);
  overflow: hidden;
}
.fx-console-body { display: grid; }
.fx-panel {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}
.fx-panel.active { opacity: 1; pointer-events: auto; }
.fx-panel pre {
  margin: 0;
  padding: 16px 18px 20px;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}
.fx-panel .ln { display: block; }
.fx-panel .p { color: var(--orange-hot); }
.fx-panel .ok { color: #8fbf6f; }
.fx-panel .dim { color: rgba(244, 237, 224, 0.62); }
.fx-panel.active .ln { animation: lnIn 0.3s ease-out both; }
.fx-panel.active .ln:nth-child(2) { animation-delay: 0.12s; }
.fx-panel.active .ln:nth-child(3) { animation-delay: 0.24s; }
.fx-panel.active .ln:nth-child(4) { animation-delay: 0.36s; }
.fx-panel.active .ln:nth-child(5) { animation-delay: 0.48s; }
@keyframes lnIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* scroll reveal (JS-gated so no-JS users see everything) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.js .rv.in { opacity: 1; transform: none; }
.fx-card.rv:nth-child(2) { transition-delay: 0.06s; }
.fx-card.rv:nth-child(3) { transition-delay: 0.12s; }
.fx-card.rv:nth-child(4) { transition-delay: 0.18s; }
.fx-card.rv:nth-child(5) { transition-delay: 0.24s; }

/* animated engineering schematic */
.schematic {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  margin-top: 40px;
  padding: 6px;
}
.schematic svg { width: 100%; height: auto; display: block; }
.fx-canvas { position: absolute; pointer-events: none; }

  45%, 55% { transform: translateY(14px); }
}

  25% { opacity: 0.9; }
  100% { opacity: 0; }
}

  12% { opacity: 0.55; }
  40%, 100% { opacity: 0; }
}


  100% { opacity: 0; transform: scale(1.9); }
}


.statement { margin-top: 26px; }

.statement {
  border: 1.5px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  margin-top: 26px;
}
.statement .tagline {
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 6px 6px 0 0;
  font-style: italic;
  font-size: 13px;
}
.statement h2 {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 20px 16px 24px;
  border-left: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
}
.statement .foot {
  display: flex;
  justify-content: space-between;
  border: 1.5px solid var(--ink);
  border-radius: 0 0 6px 6px;
  font-size: 12px;
}
.statement .foot span { padding: 10px 16px; }
.statement .foot span + span { border-left: 1.5px solid var(--ink); }

/* ---------- stack section ---------- */

.section { padding: 46px 40px; }

.section-head { max-width: 70ch; margin-bottom: 26px; }
h2.title {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.05;
  margin: 10px 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 14px; }

.stack-table {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 13px;
}
.stack-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 12px 16px;
  background: rgba(25, 22, 19, 0.06);
  border-bottom: 1.5px solid var(--line);
}
.stack-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(25, 22, 19, 0.25);
  vertical-align: top;
}
.stack-table tr:last-child td { border-bottom: 0; }
.stack-table td.layer { color: var(--orange-deep); font-weight: 700; white-space: nowrap; }
.stack-table td.what { font-weight: 700; }
.stack-table td.why { color: var(--ink-soft); }

/* ---------- editions ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.tier.feature { background: var(--term-bg); color: var(--term-fg); }
.tier .tier-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--orange-deep);
  font-weight: 700;
}
.tier.feature .tier-kicker { color: var(--orange-hot); }
.tier h3 {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  margin: 8px 0 4px;
}
.tier .price { font-size: 13px; margin: 0 0 14px; color: var(--ink-soft); }
.tier.feature .price { color: rgba(244, 237, 224, 0.7); }
.tier ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; flex: 1; }
.tier li { padding: 7px 0 7px 22px; position: relative; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
}
.tier .btn { text-align: center; }
.tier.feature .btn-ghost { color: var(--term-fg); border-color: var(--term-fg); }
.tier.feature .btn-ghost:hover { background: rgba(244, 237, 224, 0.12); }

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

.footer {
  border-top: 1.5px solid rgba(25, 22, 19, 0.18);
  padding: 36px 40px 30px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.footer h2 {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 32px);
  margin: 6px 0 10px;
  line-height: 1.05;
}
.footer .sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 18px; max-width: 52ch; }

.badges {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(25, 22, 19, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

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

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 22px; }
  .tiers { grid-template-columns: 1fr; }
  .fx-steps { grid-template-columns: repeat(2, 1fr); }
  .fx-rail { display: none; }
}

@media (max-width: 640px) {
  .topbar, .crumbs, .hero, .factory, .section, .footer, .trio { padding-left: 20px; padding-right: 20px; }
  .fx-steps { grid-template-columns: 1fr; }
  .schematic { display: none; } /* stages are fully described by the cards + console on small screens */
  .stack-table td.layer { white-space: normal; }
  .stack-wrap { overflow-x: auto; }
}
