:root {
  --sheet: #111614;
  --well: #0c100f;
  --panel: rgba(17, 22, 20, .92);
  --ink: #efe8d8;
  --ink-2: #c9c2b0;
  --ink-3: #b8b4a8;
  --ink-4: #8f8a7a;
  --brass: #d9a441;
  --brass-hi: #f0c15a;
  --brass-50: rgba(217, 164, 65, .5);
  --grid-major: rgba(217, 164, 65, .22);
  --grid-minor: rgba(217, 164, 65, .09);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Work Sans', Helvetica, Arial, sans-serif;
  --gutter: 48px;
  --sec: 48px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-hi); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

/* type */
.label { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.label.sm { font-size: 11px; letter-spacing: .08em; }
.sec-label { margin-bottom: 16px; }
.h1 { font-size: 56px; line-height: 1; letter-spacing: -.025em; font-weight: 700; text-wrap: pretty; }
.h2 { font-size: 26px; line-height: 1.1; font-weight: 700; text-wrap: pretty; }
.h2.lg { font-size: 30px; }
.h3 { font-size: 20px; line-height: 1.2; font-weight: 600; text-wrap: pretty; }
.lede { font-size: 18px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.body { font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.body-sm, .card-body { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* layout */
.sec { padding: var(--sec) var(--gutter); }
.box { border: 1px solid var(--brass); background: var(--panel); }
.pad-lg { padding: 32px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 16px; }
.pill {
  display: inline-block; border: 1px solid currentColor; padding: 1px 8px; font: 400 11px/1.5 var(--mono);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-block; background: var(--brass); color: var(--sheet); border: 0; cursor: pointer;
  padding: 14px 24px; font: 600 14px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-align: center;
}
.btn:hover { background: var(--brass-hi); color: var(--sheet); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: progress; }
.link-under { font: 400 14px var(--mono); color: var(--ink); border-bottom: 1px solid var(--brass); }
.link-under:hover { text-decoration: none; color: var(--brass); }
.mono-link { font: 400 13px var(--mono); margin-top: 8px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--brass); background: rgba(17, 22, 20, .85);
  backdrop-filter: blur(4px);
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.wordmark { font: 600 17px var(--mono); letter-spacing: .02em; color: var(--ink); }
.wordmark:hover { color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font: 400 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.nav-links a, .menu-btn { color: var(--ink); }
.nav-links a:hover, .menu-btn:hover { color: var(--brass); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.btn-nav { padding: 10px 18px; }
.btn-nav .short, .burger { display: none; }
.menu { position: relative; }
.menu-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.menu-list {
  position: absolute; top: calc(100% + 20px); left: -16px; min-width: 340px; padding: 8px 0;
  border: 1px solid var(--brass); background: var(--sheet);
}
.menu-list[hidden] { display: none; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; white-space: nowrap; }
.menu-item.active { color: var(--brass); }
.menu-item.active:hover { background: rgba(217, 164, 65, .1); text-decoration: none; }
.menu-item.dim { color: var(--ink-4); }
/* hover opens the list on desktop; the ::after bridge keeps it open between button and list */
@media (hover: hover) and (min-width: 769px) {
  .menu:hover .menu-list[hidden] { display: block; }
  .menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; }
}

/* hero */
.hero { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 48px; align-items: stretch; padding-top: 72px; }
.hero-box { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; background: rgba(17, 22, 20, .9); }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.titleblock {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--brass); padding-top: 12px;
  font: 400 11px/1.5 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em;
}
.titleblock span { color: var(--ink); }
.hero-home .h1 { max-width: 14em; }
.hero-home .box { display: flex; flex-direction: column; gap: 24px; }

/* frames / screenshots */
.frame { position: relative; margin: 0; border: 1px solid var(--brass); background: var(--well); display: flex; flex-direction: column; }
.frame-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 32px; padding: 0 14px;
  border-bottom: 1px solid var(--brass-50); font: 400 11px var(--mono); color: var(--brass); text-transform: uppercase; letter-spacing: .06em;
}
.mark { position: absolute; width: 14px; height: 14px; border: 0 solid var(--brass); }
.mark.tl { top: -1px; left: -1px; border-top-width: 3px; border-left-width: 3px; }
.mark.tr { top: -1px; right: -1px; border-top-width: 3px; border-right-width: 3px; }
.mark.bl { bottom: -1px; left: -1px; border-bottom-width: 3px; border-left-width: 3px; }
.mark.br { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; }
.shot-ph, .shot-img { flex: 1; width: 100%; min-height: 340px; }
.hero-frame .shot-ph, .hero-frame .shot-img { min-height: 460px; }
.shot-ph {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #0c100f 0 10px, #141a18 10px 20px);
}
.shot-ph span { font: 400 13px var(--mono); color: var(--ink); border: 1px dashed var(--brass); padding: 8px 14px; text-align: center; max-width: 80%; }
.shot-img { object-fit: cover; object-position: top left; display: block; }
.shot .shot-ph, .shot .shot-img { flex: none; height: 340px; min-height: 0; }
.shot figcaption { padding: 14px; border-top: 1px solid var(--brass-50); font-size: 14px; line-height: 1.45; color: var(--ink-2); background: var(--panel); }

/* defects */
.defects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.defect { padding: 28px; border-right: 1px solid var(--brass-50); display: flex; flex-direction: column; gap: 12px; }
.defect:last-child { border-right: 0; }
.defect p { font-size: 22px; line-height: 1.3; font-weight: 600; text-wrap: pretty; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.step { padding: 20px 18px; border-right: 1px solid var(--brass-50); display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.step:last-child { border-right: 0; }
.num {
  width: 28px; height: 28px; border: 1px solid var(--brass); border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font: 400 11px var(--mono); color: var(--brass);
}
.step-name { font-size: 18px; font-weight: 600; }
.step-desc { font-size: 13px; line-height: 1.4; color: var(--ink-3); text-wrap: pretty; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; border: 1px solid var(--brass); padding: 28px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.callout { position: absolute; top: -12px; left: 20px; background: var(--sheet); padding: 0 8px; font: 400 12px var(--mono); color: var(--brass); }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* odoo row */
.odoo-row { display: grid; grid-template-columns: 420px repeat(3, minmax(0, 1fr)); }
.odoo-row .cell { padding: 28px; border-right: 1px solid var(--brass-50); }
.odoo-row .cell:last-child { border-right: 0; }
.odoo-row .lead { display: flex; flex-direction: column; gap: 12px; }
.cell-title { font-weight: 600; font-size: 16px; }
.cell-body { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 6px; }
.cell-mono { font: 400 13px/1.5 var(--mono); color: var(--brass); margin-top: 6px; }

/* home index */
.index-row {
  display: grid; grid-template-columns: 100px minmax(0, 280px) minmax(0, 1fr) 140px; gap: 24px; align-items: center;
  padding: 24px 28px; border-bottom: 1px solid var(--brass-50);
}
.index-row:last-child { border-bottom: 0; }
.index-sht { font: 400 12px var(--mono); letter-spacing: .1em; color: var(--brass); }
.index-name { font-size: 20px; font-weight: 600; }
.index-name a { color: var(--ink); }
.index-name a:hover { color: var(--brass); }
.index-line { font-size: 14.5px; color: var(--ink-2); }
.index-status { text-align: right; font: 400 13px var(--mono); color: var(--ink-4); }

/* demo */
.demo-sec { padding-bottom: 72px; }
.demo { display: grid; grid-template-columns: 420px minmax(0, 1fr); background: rgba(17, 22, 20, .95); }
.demo-intro { padding: 32px; border-right: 1px solid var(--brass-50); display: flex; flex-direction: column; gap: 14px; }
.demo-form { padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.demo-done { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.demo-done[hidden], .demo-form[hidden], .form-error[hidden] { display: none; }
.demo-form label { display: flex; flex-direction: column; gap: 6px; font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.demo-form .full { grid-column: 1 / -1; }
.demo-form input, .demo-form textarea {
  border: 1px solid var(--brass-50); background: var(--well); padding: 0 12px; font: 400 15px var(--sans); color: var(--ink); border-radius: 0;
}
.demo-form input { height: 44px; }
.demo-form textarea { padding: 10px 12px; resize: vertical; }
.demo-form input::placeholder, .demo-form textarea::placeholder { color: var(--ink-4); }
.demo-form .actions { display: flex; justify-content: flex-end; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--ink); border: 1px solid var(--brass); padding: 10px 12px; font-size: 14px; }

/* footer */
.footer {
  border-top: 1px solid var(--brass); background: var(--well); padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 220px 220px 260px; font: 400 12px var(--mono); color: var(--ink-3);
}
.f-col { padding: 28px 24px; border-right: 1px solid var(--brass-50); display: flex; flex-direction: column; gap: 8px; }
.f-col:first-child { padding-left: 0; }
.f-col:last-child { border-right: 0; padding-right: 0; }
.f-col a { color: var(--ink); }
.f-col a:hover { color: var(--brass); }
.f-mark { color: var(--ink); font-weight: 600; font-size: 15px; }
.f-tag { font: 400 14px/1.5 var(--sans); }
.f-legal { margin-top: 8px; color: var(--ink-4); }

/* responsive */
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 16px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--brass-50); }
  .step:last-child { border-bottom: 0; }
  .step-name { font-size: 16px; }
  .odoo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .odoo-row .lead { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--brass-50); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .demo { grid-template-columns: 1fr; }
  .demo-intro { border-right: 0; border-bottom: 1px solid var(--brass-50); }
  .footer { grid-template-columns: 1fr 1fr; }
  .f-col:nth-child(-n+2) { border-bottom: 1px solid var(--brass-50); }
  .f-col:nth-child(2) { border-right: 0; }
  .f-col:nth-child(3) { padding-left: 0; }
  .f-col:nth-child(2), .f-col:nth-child(4) { padding-right: 0; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; --sec: 24px; }
  body { background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
  .h1 { font-size: 38px; line-height: 1.02; }
  .h2 { font-size: 22px; }
  .h2.lg { font-size: 26px; }
  .lede { font-size: 16px; }
  .pad-lg, .hero-box { padding: 24px 20px; }
  .nav { height: 56px; }
  .wordmark { font-size: 15px; }
  .btn-nav { padding: 8px 12px; font-size: 12px; }
  .btn-nav .long { display: none; }
  .btn-nav .short { display: inline; }
  .burger { width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; display: flex; }
  .burger span { width: 20px; height: 1px; background: var(--brass); }
  .nav-left { gap: 0; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sheet); border-bottom: 1px solid var(--brass);
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .menu-btn { display: block; width: 100%; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--brass-50); font-size: 13px; }
  .menu-list { position: static; min-width: 0; border: 0; padding: 0; }
  .menu-item { padding: 12px 16px 12px 32px; border-bottom: 1px solid var(--brass-50); }
  .hero-box { gap: 18px; }
  .hero-box .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-actions .link-under { text-align: center; border-bottom: 0; font-size: 13px; }
  .hero-frame .shot-ph, .hero-frame .shot-img { min-height: 220px; height: 220px; }
  .frame-head { height: 28px; font-size: 10px; padding: 0 12px; }
  .defects { grid-template-columns: 1fr; }
  .defect { padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--brass-50); gap: 6px; }
  .defect:last-child { border-bottom: 0; }
  .defect p { font-size: 18px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 22px 18px 18px; min-height: 0; gap: 8px; }
  .callout { top: -10px; left: 14px; padding: 0 6px; font-size: 11px; }
  .h3 { font-size: 18px; }
  .card-body { font-size: 14px; }
  .screens { grid-template-columns: 1fr; gap: 16px; }
  .shot .shot-ph, .shot .shot-img { height: 200px; }
  .shot figcaption { padding: 12px; font-size: 13.5px; }
  .odoo-row { grid-template-columns: 1fr; }
  .odoo-row .cell { padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--brass-50); }
  .odoo-row .cell:last-child { border-bottom: 0; }
  .odoo-row .lead { padding: 20px; }
  .demo-sec { padding-bottom: 32px; }
  .demo-intro, .demo-form, .demo-done { padding: 24px 20px; }
  .demo-form { grid-template-columns: 1fr; gap: 14px; }
  .demo-form input { height: 46px; font-size: 16px; }
  .demo-form textarea { font-size: 16px; }
  .demo-form .btn { width: 100%; height: 50px; }
  .index-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .index-status { text-align: left; }
  .footer { grid-template-columns: 1fr; padding: 24px 16px; gap: 14px; }
  .f-col, .f-col:first-child, .f-col:last-child, .f-col:nth-child(n) { padding: 0; border: 0; gap: 6px; }
  .f-col:first-child .f-legal { border-top: 1px solid var(--brass-50); padding-top: 12px; }
}
