:root {
  --bg: #050a12;
  --bg-elev: #0b1522;
  --bg-elev-2: #102033;
  --line: #1c3a4e;
  --text: #e8eef8;
  --muted: #7e93ab;
  --brass: #12b5b0;
  --brass-dim: #0a7a78;
  --ok: #3dba7a;
  --warn: #e8a317;
  --err: #e85d4c;
  --info: #4a9fd8;
  --ink: #04151a;
  --page-pad: 16px;
  --touch: 44px;
  --max: 1120px;
  --header-height: calc(68px + env(safe-area-inset-top, 0px));
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 480px at 8% -12%, rgba(18, 181, 176, 0.12), transparent 52%),
    radial-gradient(900px 400px at 100% 0%, rgba(0, 40, 88, 0.45), transparent 46%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  font-size: 16px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--brass);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brass);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

h1,
h2,
h3,
.mono {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
}

.wrap {
  width: min(var(--max), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  min-width: 0;
}

.section {
  padding: 64px 0;
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--page-pad);
  padding-top: calc(12px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch);
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
}

.brand em {
  display: none;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  min-width: var(--touch);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--brass);
}

.nav-links {
  display: none;
}

.nav-links.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(5, 10, 18, 0.98);
  padding: 16px var(--page-pad) 32px;
  overflow: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brass);
}

.nav-links .nav-cta {
  margin-top: 16px;
  width: 100%;
  border-bottom: 0;
  justify-content: center;
  color: var(--ink);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: var(--ink);
}

.topbar-cta {
  padding: 10px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 16px;
  cursor: pointer;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--brass);
}

.btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2ec9c3;
  border-color: #2ec9c3;
}

.btn-danger {
  border-color: var(--err);
  color: var(--err);
}

.hero-actions .btn,
.mismatch-actions .btn,
.pilot .btn,
.contact-form button[type="submit"] {
  width: 100%;
}

.hero {
  padding: 56px 0 48px;
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.hero-logo {
  width: min(280px, 80vw);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 28px rgba(18, 181, 176, 0.18));
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-local {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.panel,
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
}

.product-frame {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.6);
}

.product-chrome-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.chrome-status {
  display: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 186, 122, 0.12);
}

.product-body {
  padding: 16px;
}

.flow {
  display: grid;
  gap: 10px;
}

.flow-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 12px;
}

.flow-step strong {
  display: block;
  font-size: 14px;
}

.flow-step span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.flow-step.is-flag {
  border-color: var(--warn);
  background: rgba(232, 163, 23, 0.08);
}

.flow-step.is-ok {
  border-color: rgba(61, 186, 122, 0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.badge-ok {
  color: var(--ok);
}

.badge-warn {
  color: var(--warn);
}

.pain-grid,
.how-grid,
.benefit-grid,
.erp-grid,
.trust-grid {
  display: grid;
  gap: 12px;
}

.pain-card,
.how-card,
.benefit-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
}

.pain-card p,
.benefit-card p,
.how-card p {
  margin-top: 8px;
  color: var(--muted);
}

.how-card .flow-num {
  margin-bottom: 12px;
}

.wow {
  border-color: var(--warn);
  background: rgba(232, 163, 23, 0.08);
}

.wow h3 {
  color: var(--warn);
  margin-bottom: 8px;
}

.metric-row {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.metric {
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.metric strong {
  font-family: var(--mono);
  font-size: 1.15rem;
}

.mismatch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mismatch-actions .btn {
  pointer-events: none;
  cursor: default;
}

.safety-panel {
  display: grid;
  gap: 20px;
}

.trust-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.trust-item:last-child {
  border-bottom: 0;
}

.trust-item .mark {
  color: var(--ok);
  font-family: var(--mono);
  line-height: 1.4;
}

.erp-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
}

.founder {
  display: grid;
  gap: 20px;
  align-items: start;
}

.founder-photo {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--brass);
  background: var(--bg-elev-2);
}

.founder-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center top;
}

.founder p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 640px;
}

.pilot {
  background: var(--bg-elev);
  border: 1px solid var(--brass-dim);
  padding: 28px 20px;
  border-radius: 8px;
}

.pilot p {
  margin: 12px 0 20px;
  color: var(--muted);
  max-width: 560px;
}

.contact-layout {
  display: grid;
  gap: 28px;
}

.contact-panel {
  min-width: 0;
}

.product-frame video,
.demo-video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.contact-form,
.form-success {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  min-height: var(--touch);
  background: #071018;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-success {
  padding: 20px;
  border: 1px solid var(--ok);
  background: rgba(61, 186, 122, 0.08);
}

.form-success:focus {
  outline: 2px solid var(--ok);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 16px rgba(18, 181, 176, 0.14));
}

.footer-row {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brass);
}

@media (min-width: 640px) {
  :root {
    --page-pad: 24px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 80px 0 56px;
  }

  .hero-logo {
    width: 360px;
  }

  .brand em {
    display: block;
  }

  .hero-actions .btn,
  .mismatch-actions .btn,
  .pilot .btn,
  .contact-form button[type="submit"] {
    width: auto;
  }

  .chrome-status {
    display: inline;
  }

  .pain-grid,
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr 1fr;
  }

  .erp-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .founder {
    grid-template-columns: 96px 1fr;
  }

  .footer-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .nav-links,
  .nav-links.is-open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    position: static;
    inset: auto;
    background: none;
    padding: 0;
    overflow: visible;
  }

  .nav-links a {
    min-height: var(--touch);
    padding: 0 12px;
    border-bottom: 0;
    font-size: 14px;
  }

  .nav-links .nav-cta {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }

  .safety-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .how-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .flow {
    grid-template-columns: repeat(5, 1fr);
  }

  .flow-step {
    grid-template-columns: 1fr;
    min-height: 100%;
  }

  .erp-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
