/* AXIV — axiv.cc
   One screen, typography only: brand mark, headline, three products, footer.
   No navigation, no buttons, nothing to click. Palette mirrors the Axiv Wallet dark theme
   (apps/extension/src/ui/globals.css): bg 12 22 34 · ink 232 238 245 · accent Ultraviolet. */
:root {
  --bg: #0c1622;
  --ink: #e8eef5;
  --soft: rgba(232, 238, 245, 0.80);
  --muted: rgba(232, 238, 245, 0.60);
  --faint: rgba(232, 238, 245, 0.36);
  --line: rgba(232, 238, 245, 0.12);
  --accent: #a78bfa;
  --max: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}
@media (min-width: 760px) {
  :root { --gutter: 48px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Pretendard, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; }
h1, h2, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* page frame: brand on top, content centered, footer pinned to the bottom ----------------- */
.page {
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 760px) {
  .page { padding: 32px var(--gutter) 24px; }
}

.brand { display: flex; align-items: center; gap: 10px; }
.mark { border-radius: 7px; }
.wordmark { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.1em; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 48px;
}
@media (min-width: 760px) {
  main { padding: 48px 0 40px; }
}

/* headline ------------------------------------------------------------------------------ */
h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, min(6.4vw, 8.5vh), 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.accent { color: var(--accent); }
.lede {
  max-width: 42rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

/* products: three columns split by hairlines (stacked rows on narrow screens) ----------- */
.products {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}
.products article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.products article:last-child { border-bottom: 0; }
@media (min-width: 760px) {
  .products { margin-top: 64px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products article {
    padding: 24px 32px 4px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .products article + article { padding-left: 32px; }
  .products article:last-child { border-right: 0; padding-right: 0; }
}
.index {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.products h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.sub {
  margin-top: 4px;
  color: var(--soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* footer -------------------------------------------------------------------------------- */
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

/* 404 ----------------------------------------------------------------------------------- */
.notfound h1 { margin-top: 40px; font-size: clamp(2rem, 5vw, 3rem); }
.notfound a { display: inline-block; margin-top: 28px; color: var(--soft); text-underline-offset: 4px; }
