:root {
  --red: #e30613;
  --red-hover: #c10510;
  --red-soft: #e306131f;
  --bg: #070708;
  --panel: #111114;
  --raised: #17171b;
  --text: #f4f4f5;
  --muted: #9aa0ab;
  --border: rgba(244, 244, 245, 0.08);
  --metal: linear-gradient(160deg, #e9e9ea, #bababa 38%, #9a9ea3 62%, #d3d6db 85%, #4d5455);
  --font: "DM Sans", system-ui, sans-serif;
  --display: Syne, system-ui, sans-serif;
  --radius: 8px;
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 30;
  background: var(--raised);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 32px;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f4f4f5;
  background-image: linear-gradient(160deg, #e9e9ea, #bababa 38%, #9a9ea3 62%, #d3d6db 85%, #4d5455);
  -webkit-background-clip: text;
  background-clip: text;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark {
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.login:hover {
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--red);
  font: 600 14px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--red-soft);
  color: var(--red);
}

.btn-cta {
  border-color: var(--red);
}

.btn-cta:hover {
  border-color: var(--red-hover);
}

.hero {
  padding: 72px 0 32px;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
}

.lede {
  max-width: 38rem;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  top: -48px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(227, 6, 19, 0.38), transparent 70%);
  pointer-events: none;
}

.frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.band {
  padding: 72px 0;
}

.band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
}

.intro {
  max-width: 40rem;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 17px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

.feature-row.reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.feature-copy p {
  color: var(--muted);
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.card svg {
  display: block;
  color: var(--red);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.step-num {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

.trades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.trades li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--raised);
  font-size: 14px;
}

.who p + p {
  margin-top: 12px;
}

.cta-band {
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, rgba(227, 6, 19, 0.16), transparent 62%),
    var(--panel);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 10px;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 20px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.copy {
  width: 100%;
  color: var(--muted);
  font-size: 14px;
}

.missing {
  padding: 18vh 0 24vh;
}

.missing h1 {
  margin: 16px 0 12px;
  font-size: 40px;
}

.missing p {
  margin-bottom: 20px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav,
  .login {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .hero {
    padding-top: 40px;
  }

  .band {
    padding: 48px 0;
  }

  .lede {
    font-size: 16px;
  }

  .cards,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Book a demo form */
.demo-panel {
  text-align: left;
}

.demo-panel h2,
.demo-panel > p {
  text-align: center;
}

.demo-form {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.field em {
  color: var(--red);
  font-style: normal;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.4 var(--font);
}

.field textarea {
  resize: vertical;
  min-height: 104px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  justify-content: center;
}

button.btn {
  cursor: pointer;
}

button.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  min-height: 1.4em;
  text-align: center;
  font-size: 15px;
}

.form-status.ok {
  color: #4ade80;
}

.form-status.err {
  color: #ff6b73;
}

.demo-panel .form-alt {
  max-width: none;
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.demo-form.sent .field-grid,
.demo-form.sent > .field,
.demo-form.sent .form-actions {
  display: none;
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
