:root {
  --bg: #12151a;
  --ink: #f4f1ea;
  --muted: #9a9388;
  --line: rgba(244, 241, 234, 0.1);
  --companion: #f23b78;
  --wiki: #3ecf8e;
  --warden: #e8641a;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Barlow Condensed", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(242, 59, 120, 0.16), transparent 58%),
    radial-gradient(800px 420px at 92% 8%, rgba(232, 100, 26, 0.14), transparent 55%),
    #12151a;
}

.top, main, footer { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; flex-direction: column; gap: 0.15rem; }
.brand-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.brand strong {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.18em;
  line-height: 1;
}

nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
nav a:hover { color: var(--ink); }

main { width: min(1080px, calc(100% - 3rem)); margin: 0 auto; padding: 4.5rem 0 5rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  font-weight: 800;
  max-width: 14ch;
}

.lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.wipe-banner {
  margin-top: 3rem;
}

.wipe-banner-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.6rem 1.3rem 1.45rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(226, 59, 47, 0.45);
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.42) 0%, rgba(8, 9, 11, 0.58) 100%),
    url("/wipe/bg.jpg") center 42% / cover no-repeat;
}

.wipe-banner-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.wipe-copy, .wipe-device, .wipe-cta { position: relative; z-index: 1; }
.wipe-copy { text-align: center; width: min(34rem, 100%); }

.wipe-kicker {
  color: #e23b2f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(226, 59, 47, 0.45);
  margin-bottom: 0.45rem;
}

.wipe-title {
  display: block;
  width: min(28rem, 100%);
  height: auto;
  margin: 0 auto;
}

.wipe-when {
  margin-top: 0.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #cfc6ba;
}

.wipe-device {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.3rem;
  width: min(36rem, 100%);
  padding: 0.75rem 0.7rem 0.65rem;
  background: rgba(8, 10, 12, 0.72);
  border: 1px solid rgba(226, 59, 47, 0.55);
}

.wipe-cell {
  min-width: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wipe-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  letter-spacing: 0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wipe-unit {
  margin-top: 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e23b2f;
  font-weight: 800;
}

.wipe-sep {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.2rem, 3.4vw, 1.9rem);
  color: #e23b2f;
  align-self: center;
  margin-bottom: 0.75rem;
}

.wipe-cta {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: #f4f1ea;
}

.wipe-banner-inner:hover { border-color: rgba(226, 59, 47, 0.85); }
.wipe-banner-inner:hover .wipe-cta { color: #e23b2f; }

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  text-decoration: none;
  color: inherit;
  background: rgba(18, 21, 26, 0.72);
  border: 1px solid var(--line);
  min-height: 100%;
}

.card:hover { border-color: rgba(244, 241, 234, 0.28); }
.card.companion:hover { border-color: rgba(242, 59, 120, 0.55); }
.card.wiki:hover { border-color: rgba(62, 207, 142, 0.55); }
.card.warden:hover { border-color: rgba(232, 100, 26, 0.55); }

.card-head { display: flex; align-items: center; gap: 1rem; }
.card-head img { border-radius: 12px; background: #0b0d10; }
.product-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.card h2 {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.card.companion h2 { color: var(--companion); }
.card.wiki h2 { color: var(--wiki); }
.card.warden h2 { color: var(--warden); }

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

.card ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.card ul li::before {
  content: "– ";
  color: var(--muted);
}

.cta {
  margin-top: auto;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.companion .cta { color: var(--companion); }
.wiki .cta { color: var(--wiki); }
.warden .cta { color: var(--warden); }

[hidden],
.card-flag[hidden] { display: none !important; }

.card-flag:not([hidden]) {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warden);
  border: 1px solid rgba(232, 100, 26, 0.4);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 2rem 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
footer a { color: var(--ink); }

@media (max-width: 980px) {
  .products { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .top { flex-direction: column; align-items: flex-start; gap: 1rem; }
  main { padding-top: 3rem; }
  .wipe-banner { margin-top: 2.25rem; }
  .wipe-banner-inner { padding: 1.25rem 0.9rem 1.15rem; }
  .wipe-sep { display: none; }
  .wipe-device {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  .wipe-cell { min-width: 0; }
}
