/* pixelpact.dev landing page */

:root {
  --bg: #0a0c0d;
  --bg-2: #0f1315;
  --surface: #12181a;
  --border: #212a2d;
  --border-soft: #1a2224;
  --text: #e9edef;
  --muted: #93a1a7;
  --brand: #0b7285;
  --brand-bright: #3bc9db;
  --ok: #51cf66;
  --fail: #ff6b6b;
  --radius: 10px;
  --wrap: 1100px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand img { width: 180px; height: auto; }

.head-nav { display: flex; align-items: center; gap: 22px; }
.head-nav a { color: var(--muted); font-size: 14.5px; }
.head-nav a:hover { color: var(--text); text-decoration: none; }
.head-nav a.ghost { color: var(--text); }

/* hero */

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 380px at 50% -80px, rgba(11, 114, 133, 0.28), transparent 70%),
    var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 700;
}

.lead {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 17px;
}

.code-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: left;
  overflow-x: auto;
}

.code-card pre { margin: 0; }
.code-card code { font-size: 13.5px; line-height: 1.85; white-space: pre; }

.c-dim { color: #7c878c; }
.c-flag { color: var(--brand-bright); }
.c-ok { color: var(--ok); }
.c-fail { color: var(--fail); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 32px 0 0;
}
.cta-row.center { margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: #0a8ba3; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand-bright); color: var(--brand-bright); }

.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  margin: 34px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-family: var(--mono);
}

/* quote band */

.band {
  padding: 64px 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
}

.big-quote {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-align: center;
}

/* sections */

.section { padding: 76px 0; border-bottom: 1px solid var(--border-soft); }

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.sub { margin: 0 0 30px; color: var(--muted); max-width: 720px; }

.note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
}

.note code, .sub code, p code, td code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.88em;
  color: var(--text);
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(11, 114, 133, 0.22);
  color: var(--brand-bright);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.step h3 { margin: 14px 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.step p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

pre.mini {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
}
pre.mini code { font-size: 12.5px; line-height: 1.7; color: #c6d0d4; white-space: pre; }
pre.mini.wide { margin-top: 20px; }

/* terminal */

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.term-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #0d1214;
}
.term-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3438;
}

.terminal pre { margin: 0; padding: 20px; overflow-x: auto; }
.terminal code { font-size: 12.5px; line-height: 1.75; white-space: pre; }

/* screenshot */

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.shot img { width: 100%; height: auto; }

/* two column */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.two-col p { margin: 0 0 16px; color: var(--muted); }
.two-col .tools { font-size: 14.5px; }

/* tables */

.table-wrap { overflow-x: auto; margin-top: 24px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 620px;
}

th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

td { color: var(--muted); }
.cmp tbody td:first-child { color: var(--text); font-weight: 600; }
.cmp .mine { color: var(--text); background: rgba(11, 114, 133, 0.10); }
.cmp thead th.mine { color: var(--brand-bright); }
.cmd td:first-child { white-space: nowrap; }
.cmd td code { color: var(--brand-bright); }

/* feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: #2e3b40; }
.card h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* install */

.install { text-align: center; }
.install .note { margin-left: auto; margin-right: auto; }

/* footer */

.site-foot { padding: 48px 0 60px; }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.foot-logo { opacity: 0.75; width: 130px; height: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.foot-nav a { color: var(--muted); font-size: 14.5px; }
.foot-nav a:hover { color: var(--text); text-decoration: none; }
.foot-note { margin: 0; color: var(--muted); font-size: 13.5px; }

/* responsive */

@media (max-width: 900px) {
  .steps, .grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .head-nav a:not(.ghost) { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 52px; }
  .section { padding: 56px 0; }
  .steps, .grid { grid-template-columns: 1fr; }
  .br-lg { display: none; }
  .facts { gap: 8px 18px; font-size: 12.5px; }
  .brand img { width: 148px; }
}

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

/* visually hidden, still read by assistive technology */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
