
/* pixelpact.dev
   Layout, type scale, colours and component sizes measured from the reference
   design with specx. Container 1216px, section rhythm 80px, card radius 16px. */

:root {
  --ink: #111827;
  --body: #4b5563;
  --muted: #6b7280;
  --light: #9ca3af;
  --border: #e5e7eb;
  --alt: #f9fafb;
  --white: #ffffff;
  --brand: #0b7285;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, Consolas, Monaco, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.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;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 65px;
}

.wordmark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--alt); color: var(--ink); }

.header-cta {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.header-cta:hover { border-color: var(--ink); color: var(--ink); }

/* hero */

.hero { padding: 64px 0 72px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: #4ade80;
}

h1 {
  margin: 28px 0 0;
  font-size: 96px;
  line-height: 96px;
  font-weight: 700;
  letter-spacing: -2.4px;
  color: var(--ink);
}

.hero-tagline {
  margin-top: 20px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 300;
  color: var(--body);
}

.hero-body {
  margin-top: 22px;
  max-width: 728px;
  font-size: 18px;
  line-height: 30px;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-dark { background: var(--ink); color: #ffffff; }
.btn-dark:hover { background: #1f2937; }

.btn-light { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-light:hover { border-color: var(--ink); }

.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--alt); }

.btn-outline { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.btn-outline:hover { border-color: #ffffff; }

.arrow { font-size: 15px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 728px;
  margin-top: 56px;
}
.stats li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-n { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--ink); }
.stat-l { font-size: 12px; color: var(--muted); }

/* sections */

.section { padding: 80px 0; }
.section-alt { background: var(--alt); }

.section-head { max-width: 832px; margin: 0 auto 48px; text-align: center; }

h2 {
  font-size: 48px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head p {
  margin-top: 20px;
  font-size: 18px;
  line-height: 30px;
  color: var(--body);
}

.section-note {
  max-width: 832px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 26px;
  color: var(--muted);
}

/* cards */

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: #d1d5db; box-shadow: var(--shadow-lg); }

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #ffffff;
}
.tile-blue { background: #3b82f6; }
.tile-purple { background: #a855f7; }
.tile-green { background: #22c55e; }
.tile-sky { background: #0ea5e9; }
.tile-amber { background: #f59e0b; }
.tile-pink { background: #ec4899; }
.tile-indigo { background: #6366f1; }
.tile-teal { background: #0b7285; }
.tile-rose { background: #f43f5e; }

.card h3 { margin-top: 20px; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink); }
.faq-item h3 { margin-top: 0; }
.card p { margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--body); }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
}
.mini-icon { display: inline-flex; color: var(--ink); }

.card-note { margin-top: 16px; font-size: 13px; line-height: 22px; color: var(--muted); }
.card-note code, .card p code, .steps p code, .steps h3 code, td code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* check lists */

.check-list { margin-top: 12px; }
.check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.check-list span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.check-list i { font-style: normal; color: #22c55e; font-size: 16px; }

/* table card */

.table-card { padding: 8px 32px; overflow-x: auto; }
.table-card table { width: 100%; min-width: 640px; border-collapse: collapse; }
.table-card th, .table-card td {
  text-align: left;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 22px;
}
.table-card thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 20px;
  padding-bottom: 14px;
}
.table-card tbody tr:last-child th, .table-card tbody tr:last-child td { border-bottom: 0; }
.table-card tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; padding-right: 32px; }
.table-card td { color: var(--muted); }
.table-card .mine { color: var(--ink); font-weight: 500; padding-left: 20px; border-left: 1px solid var(--border); }
.table-card thead th.mine { color: var(--brand); }

/* terminal blocks */

.term {
  margin: 16px 0 0;
  padding: 20px;
  background: var(--ink);
  border-radius: 12px;
  overflow-x: auto;
}
.term code {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #e5e7eb;
  white-space: pre;
}
.term b { color: #f87171; font-weight: 500; }
.term .dim { color: #9ca3af; }

/* figure */

.figure { margin: 48px 0 0; }
.figure img { width: 100%; border: 1px solid var(--border); border-radius: 16px; }
.figure figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }

/* steps */

.steps { display: flex; flex-direction: column; gap: 32px; max-width: 896px; margin: 0 auto; }
.steps li {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.step-n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.steps h3 { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink); }
.steps p { margin-top: 10px; font-size: 14px; line-height: 24px; color: var(--body); }
.steps > li > div { min-width: 0; flex: 1; }

/* closing call to action */

.cta { padding: 80px 0; background: var(--ink); }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta h2 { color: #ffffff; }
.cta p { margin-top: 20px; max-width: 728px; font-size: 18px; line-height: 30px; color: #9ca3af; }

/* footer */

.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 56px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p:last-child { margin-top: 14px; max-width: 420px; font-size: 14px; line-height: 24px; color: var(--muted); }
.footer-col h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* responsive */

@media (max-width: 1024px) {
  h1 { font-size: 72px; line-height: 74px; letter-spacing: -1.8px; }
  h2 { font-size: 38px; line-height: 42px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 56px; }
  h1 { font-size: 48px; line-height: 50px; letter-spacing: -1.2px; }
  h2 { font-size: 30px; line-height: 36px; }
  .hero-tagline { font-size: 20px; line-height: 28px; }
  .hero-body, .section-head p, .cta p { font-size: 16px; line-height: 27px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 40px; }
  .card, .steps li { padding: 24px; }
  .table-card { padding: 8px 24px; }
  .steps li { flex-direction: column; gap: 16px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; max-width: 360px; }
}

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