/* tokens */
:root {
  color-scheme: dark;
  --ink: #1c1917;
  --paper: #f5f5f4;
  --muted: #57534e;
  --line: rgba(255, 255, 255, 0.1);
  --bg: #0c0a09;
  --surface: #1c1917;
  --amber: #d97706;
  --amber-strong: #b45309;
  --amber-hover: #92400e;
  --white: #fafaf9;
  --soft: #d6d3d1;
  --dim: #a8a29e;
  --wrap: min(72rem, calc(100% - 2.5rem));
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--white);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

site-header,
site-footer,
site-browser {
  display: block;
}

/* skip-link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  color: #fff;
  background: #000;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.375rem;
  color: #fff;
  background: var(--amber-strong);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
}

.btn:hover {
  background: var(--amber-hover);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn-ghost {
  background: transparent;
  outline: 1px solid rgba(255, 255, 255, 0.25);
  outline-offset: -1px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* card */
.card {
  padding: 1.5rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.375rem;
  background: #fff;
}

.card-ink {
  border-color: var(--line);
  background: var(--bg);
}

.card p {
  margin-top: 0.5rem;
  line-height: 1.65;
}

.bg-paper .card p {
  color: var(--muted);
}

.bg-ink .card p {
  color: var(--dim);
}

/* type */
.eyebrow {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.bg-paper .eyebrow {
  color: var(--amber-strong);
}

.display {
  max-width: 50rem;
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.title {
  max-width: 40rem;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.heading {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.bg-ink .lead {
  color: var(--soft);
}

.bg-paper .lead {
  color: var(--muted);
}

.metal {
  background: linear-gradient(180deg, #fff 0%, #e7e5e4 42%, #a8a29e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-block: 0.08em;
}

.rule {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.rule::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--amber);
}

.index {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* surface */
.grid-bg,
.glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

.glow {
  background: radial-gradient(60% 50% at 50% 100%, rgba(217, 119, 6, 0.18), transparent 70%);
}

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.92);
}

.nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  width: var(--wrap);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  padding-block: 0.85rem;
}

.nav > .desktop.items-center,
.nav-menu {
  align-items: center;
  padding-block: 0.85rem;
}

.logo img {
  height: 1.5rem;
  width: auto;
}

.nav-tabs {
  align-items: stretch;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding-block: 0.85rem;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--soft);
}

.nav-link:hover {
  color: #fff;
}

.nav-link.is-active {
  color: #fff;
  border-bottom-color: var(--amber);
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
  cursor: pointer;
  color: #e7e5e4;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: 14rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}

.nav-menu-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #e7e5e4;
}

.nav-menu-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu-panel a.is-active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--amber);
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  width: var(--wrap);
  margin-inline: auto;
  padding: 3rem 0 1.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 3rem;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  width: var(--wrap);
  margin-inline: auto;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

/* faq */
.faq {
  border-top: 1px solid #d6d3d1;
}

.faq article {
  padding: 1.5rem 0;
  border-bottom: 1px solid #d6d3d1;
}

.faq p {
  margin-top: 0.5rem;
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.65;
}

/* form */
.demo-request {
  align-items: start;
}

.demo-form {
  display: grid;
  gap: 1rem;
}

.demo-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d6d3d1;
  border-radius: 0.375rem;
  color: var(--ink);
  background: #fff;
  color-scheme: light;
  font: inherit;
}

.demo-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.demo-form .btn {
  justify-self: start;
}

.demo-form input:focus,
.demo-form textarea:focus {
  border-color: var(--amber);
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

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

.demo-form-status {
  margin: 0;
}

.demo-form-success[hidden],
.demo-form[hidden] {
  display: none;
}

/* browser */
.browser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: #111;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1a;
}

.browser-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.browser-dot-red {
  background: #ff5f57;
}

.browser-dot-yellow {
  background: #febc2e;
}

.browser-dot-green {
  background: #28c840;
}

.browser-url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 0.35rem;
  color: #a8a29e;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

site-browser > img,
site-browser > picture,
.browser picture,
.browser-shot {
  display: block;
  width: 100%;
  height: auto;
}

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

.browser-empty {
  aspect-ratio: 16 / 10;
  background: #0c0a09;
}

/* utilities */
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap-sm {
  width: min(40rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.py-section {
  padding-block: 5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.bg-ink {
  color: var(--white);
  background: var(--bg);
}

.bg-paper {
  color: var(--ink);
  background: var(--paper);
}

.text-muted {
  color: var(--muted);
}

.text-soft {
  color: var(--soft);
}

.text-dim {
  color: var(--dim);
}

.text-sm {
  font-size: 0.875rem;
}

.font-medium {
  font-weight: 500;
}

.underline {
  text-decoration: underline;
}

.desktop {
  display: none;
}

.mobile {
  display: flex;
}

@media (min-width: 860px) {
  .desktop {
    display: flex;
  }

  .mobile {
    display: none;
  }
}
