/* WIRRED landing page. Greyscale glass; colour only for status. No scripts. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #f1f1f2;
  --ink: 29 29 31;
  --glass: 255 255 255;
  --glass-a: 0.58;
  --wash: 0 0 0;
  --wash-a: 0.045;
  --edge: 255 255 255;
  --edge-a: 0.7;
  --sky-1: #ffffff;
  --sky-2: #cfcfd4;
  --sky-3: #b9b9bf;
  --sky-4: #e2e2e6;
  --grain: 0.5;
  --green: #17803f;
  --yellow: #a36a00;
  --red: #c0392b;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --base: #0b0b0c;
    --ink: 245 245 247;
    --glass: 30 30 32;
    --glass-a: 0.6;
    --wash: 255 255 255;
    --wash-a: 0.055;
    --edge: 255 255 255;
    --edge-a: 0.07;
    --sky-1: #46464c;
    --sky-2: #1c1c1f;
    --sky-3: #303035;
    --sky-4: #141416;
    --grain: 0.35;
    --green: #3ecf7a;
    --yellow: #e6b93d;
    --red: #ff6b5e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base);
  color: rgb(var(--ink));
  font: 400 16px/1.5 var(--sans);
  font-feature-settings: "tnum", "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid rgb(var(--ink)); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 104px; }

/* ---------- background: a slow grey sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--base); }
.sky::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(36% 40% at 24% 26%, var(--sky-1) 0, transparent 70%),
    radial-gradient(32% 38% at 78% 20%, var(--sky-2) 0, transparent 72%),
    radial-gradient(44% 42% at 70% 76%, var(--sky-3) 0, transparent 70%),
    radial-gradient(38% 40% at 18% 80%, var(--sky-4) 0, transparent 72%);
  animation: drift 90s ease-in-out infinite alternate;
  will-change: transform;
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/grain.svg");
  opacity: var(--grain);
  mix-blend-mode: soft-light;
}
@keyframes drift {
  0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) rotate(7deg) scale(1.08); }
  100% { transform: translate3d(-1%, 4%, 0) rotate(-6deg) scale(1.04); }
}

/* ---------- glass ---------- */
.glass {
  background: rgb(var(--glass) / var(--glass-a));
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  box-shadow: inset 0 0 0 1px rgb(var(--edge) / var(--edge-a));
  border-radius: 24px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgb(var(--glass) / 0.94); }
}

/* ---------- layout ---------- */
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
section.wrap { padding-block: 64px; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.tight { gap: 8px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.tabs { display: flex; height: 48px; padding: 2px; border-radius: 999px; }
.tabs a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgb(var(--ink) / 0.62);
  transition: color 0.15s, background-color 0.15s;
}
.tabs a:hover { color: rgb(var(--ink)); background: rgb(var(--wash) / var(--wash-a)); }
.top > .btn { justify-self: end; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.12s ease-out, opacity 0.15s, background-color 0.15s;
}
.btn.big { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.fill { background: rgb(var(--ink)); color: var(--base); }
.btn.wash { background: rgb(var(--wash) / 0.07); }
a.btn:hover { opacity: 0.86; }
a.btn:active { transform: scale(0.97); }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(52px, 9.4vw, 112px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow { font-size: 14px; font-weight: 500; color: rgb(var(--ink) / 0.62); margin-bottom: 12px; }
.intro { max-width: 680px; margin-top: 20px; font-size: 18px; line-height: 1.55; color: rgb(var(--ink) / 0.72); text-wrap: pretty; }
section > .grid, section > .panel, section > .road { margin-top: 40px; }

/* ---------- status ---------- */
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--ink) / 0.3); }
.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgb(var(--ink) / 0.72); }

/* ---------- hero ---------- */
.hero { padding-top: 56px !important; text-align: center; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--ink) / 0.78);
}
.status .sep { width: 1px; height: 14px; background: rgb(var(--ink) / 0.18); }
.hero h1 { margin-top: 28px; }
.lede { max-width: 640px; margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgb(var(--ink) / 0.72); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* ---------- product preview ---------- */
.mock { max-width: 860px; margin: 72px auto 0; padding: 16px; text-align: left; border-radius: 32px; }
.mock-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 4px auto 16px;
  padding: 2px;
  border-radius: 999px;
  background: rgb(var(--wash) / var(--wash-a));
  overflow: hidden;
}
.mock-tabs span { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgb(var(--ink) / 0.55); white-space: nowrap; }
.mock-tabs .on { background: rgb(var(--ink)); color: var(--base); }
.mock-panel { padding: 16px; border-radius: 20px; background: rgb(var(--wash) / var(--wash-a)); }
.mock-head { font-size: 14px; color: rgb(var(--ink) / 0.62); margin-bottom: 12px; }
.mock-head b { font-weight: 500; color: rgb(var(--ink)); margin-right: 6px; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-panel + .mock-row { margin-top: 12px; }
.rows li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 15px; }
.rows li + li { box-shadow: inset 0 1px 0 rgb(var(--ink) / 0.07); }
.rows span { display: inline-flex; align-items: center; gap: 8px; }
.rows em { font-style: normal; font-weight: 500; }
.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  height: 48px;
  margin: 16px auto 4px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgb(var(--wash) / 0.07);
  font-size: 15px;
  color: rgb(var(--ink) / 0.5);
}
figcaption { margin-top: 12px; text-align: center; font-size: 12px; color: rgb(var(--ink) / 0.5); }

/* ---------- cells ---------- */
.cells { display: grid; gap: 8px; }
.cells.three { grid-template-columns: repeat(3, 1fr); }
.cell { position: relative; padding: 10px 14px 12px; border-radius: 12px; background: rgb(var(--wash) / var(--wash-a)); }
.cell > span { display: block; font-size: 13px; color: rgb(var(--ink) / 0.62); }
.cell > strong { display: block; margin-top: 2px; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.cell > strong.sm { font-size: 16px; line-height: 1.35; letter-spacing: 0; }
.cell > .dot { position: absolute; top: 14px; right: 14px; }
.cell.wide { padding: 16px 18px 18px; border-radius: 20px; }

/* ---------- panels ---------- */
.panel { padding: 24px; }
article.panel { display: flex; flex-direction: column; gap: 10px; }
article.panel p { color: rgb(var(--ink) / 0.72); }
article.panel .cell { margin-top: auto; }
article.panel p + .cell { margin-top: 14px; }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; padding: 16px 24px; border-radius: 24px; }
.strip > span { font-size: 14px; color: rgb(var(--ink) / 0.62); }
.strip ul { display: flex; flex-wrap: wrap; gap: 8px; }
.strip li { padding: 6px 12px; border-radius: 999px; background: rgb(var(--wash) / var(--wash-a)); font-size: 14px; font-weight: 500; }
.split .grid { margin-top: 32px; }
.legend { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; color: rgb(var(--ink) / 0.62); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 22px; background: rgb(var(--wash) / var(--wash-a)); font-size: 15px; }
.bubble.me { align-self: flex-end; background: rgb(var(--ink)); color: var(--base); }
.bubble .dot { margin-right: 8px; }
.approve { width: 100%; padding: 16px; border-radius: 20px; background: rgb(var(--wash) / var(--wash-a)); }
.approve > span { display: block; font-size: 13px; color: rgb(var(--ink) / 0.62); }
.approve > strong { display: block; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.approve > small { display: block; font-size: 14px; color: rgb(var(--ink) / 0.72); }
.approve-buttons { display: flex; gap: 8px; margin-top: 14px; }
.approve-buttons .btn { height: 40px; }
.chat figcaption { align-self: center; }

/* ---------- roadmap ---------- */
.road { padding: 8px 24px; }
.road li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; }
.road li + li { box-shadow: inset 0 1px 0 rgb(var(--ink) / 0.07); }
.road strong { font-weight: 500; font-size: 17px; }
.road p { margin-top: 2px; color: rgb(var(--ink) / 0.68); }
.road + .grid { margin-top: 12px; }

/* ---------- final ---------- */
.final { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 72px 24px; text-align: center; border-radius: 32px; }
.final p { max-width: 520px; font-size: 18px; color: rgb(var(--ink) / 0.72); text-wrap: pretty; }
.final .mail { font-size: 14px; }
.final .mail a { color: rgb(var(--ink) / 0.62); border-bottom: 1px solid rgb(var(--ink) / 0.2); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 0 48px; font-size: 13px; color: rgb(var(--ink) / 0.55); }
.foot a:hover { color: rgb(var(--ink)); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .tabs { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid.three { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .top { padding-inline: 16px; }
  section.wrap { padding-block: 44px; }
  .hero { padding-top: 32px !important; }
  .mock { margin-top: 48px; padding: 10px; border-radius: 28px; }
  .mock-tabs span:nth-child(n + 4) { display: none; }
  .cells.three { grid-template-columns: 1fr 1fr; }
  .cells.three .cell:last-child { grid-column: 1 / -1; }
  .mock .cell strong { font-size: 20px; white-space: nowrap; }
  .mock-row { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .road { padding: 4px 18px; }
  .road li { grid-template-columns: 1fr; gap: 6px; }
  .final { padding: 48px 20px; }
  .glass { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .sky::before { animation: none; }
}

/* ---------- system preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::before { animation: none; }
  .btn, .tabs a { transition: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { background: rgb(var(--glass)); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.14); }
}
