@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;650&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f4;
  --border: #e6e8ec;
  --text: #0c1a2b;
  --text-2: #5b6472;
  --text-3: #8a93a1;
  --accent-text: #a8791c;
  --accent-fill: #f5cb1d;
  --deep-gold: #d4a537;
  --success: #15803d;
  --warn: #b45309;
  --danger: #b91c1c;
  --ink: #07090d;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --maxw: 1120px;
}

* { 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.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.01em; line-height: 1.18; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin: 0 0 18px;
}
.rule { height: 3px; width: 52px; background: var(--accent-fill); border-radius: 2px; margin: 0 0 22px; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
header.site img { height: 30px; width: auto; display: block; }
nav.site { display: flex; gap: 22px; align-items: center; }
nav.site a { color: var(--text-2); font-size: 0.9rem; font-weight: 500; }
nav.site a:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.95rem; font-weight: 500; padding: 13px 24px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn-primary { background: var(--accent-fill); color: #0c1a2b; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-dark { background: var(--ink); color: #f5f7fa; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.ink {
  background: var(--ink);
  color: #e8ecf2;
  border-top: 1px solid #1f2632;
  border-bottom: 1px solid #1f2632;
}
section.ink h2 { color: #f5f7fa; }
section.ink p { color: #a3acba; }
section.ink .kicker { color: #6b7280; }
section.ink .rule { background: var(--accent-fill); }

.hero { padding: 96px 0 76px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.24rem); color: var(--text-2); max-width: 54ch; margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.hero-note { font-size: 0.85rem; color: var(--text-3); margin-top: 16px; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.93rem; margin: 0; }

/* ---------- product cards ---------- */
.product { display: flex; flex-direction: column; gap: 10px; }
.product .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chip {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-3); white-space: nowrap;
}
.chip.live { color: var(--success); border-color: rgba(21,128,61,0.3); }
.chip.soon { color: var(--accent-text); border-color: rgba(168,121,28,0.35); }
.product .plat { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); }
.product .more { font-size: 0.88rem; font-weight: 500; margin-top: 4px; }

/* ---------- evidence log illustration ---------- */
.device {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--bg); box-shadow: 0 18px 50px rgba(12,26,43,0.10);
}
section.ink .device { border-color: #1f2632; box-shadow: 0 24px 70px rgba(0,0,0,0.5); }
.device .bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.device .dot { width: 11px; height: 11px; border-radius: 50%; background: #d4d7dd; }
.device .bar .title {
  margin-left: 8px; font-size: 0.78rem; color: var(--text-3); font-weight: 500;
}
.device .body { padding: 20px 22px; background: var(--bg); }

.logrow { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.logrow:last-child { border-bottom: 0; }
.logrow .face {
  width: 46px; height: 46px; border-radius: 8px; flex: none;
  background: linear-gradient(150deg,#c3cbd6 0%,#8d99a8 45%,#5d6875 100%);
  filter: blur(4px);
  position: relative; overflow: hidden;
}
.logrow .face::after {
  content: ""; position: absolute; left: 50%; top: 42%;
  width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%,-50%);
  background: rgba(255,255,255,0.45);
}
.logrow .face.flag { outline: 2px solid var(--danger); outline-offset: -2px; }
.logrow .meta { flex: 1; min-width: 0; }
.logrow .ev { font-weight: 500; font-size: 0.95rem; }
.logrow .ev.bad { color: var(--danger); }
.logrow .ev.ok { color: var(--text); }
.logrow .sub { font-size: 0.85rem; color: var(--text-2); }
.logrow .hash {
  font-family: var(--mono); font-size: 0.68rem; color: var(--text-3);
  margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.logrow .when { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }

.caption {
  font-size: 0.78rem; color: var(--text-3); margin-top: 12px; text-align: center;
}
section.ink .caption { color: #6b7280; }

/* ---------- frost illustration ---------- */
.frost {
  border-radius: 12px; border: 1px solid var(--border); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245,247,250,0.94), rgba(230,234,240,0.94));
  padding: 44px 26px; text-align: center;
}
.frost .glyph {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  border: 2px solid var(--deep-gold); display: grid; place-items: center;
  color: var(--accent-text); font-size: 1.5rem;
}
.frost h4 { margin: 0 0 6px; font-size: 1.05rem; }
.frost p { margin: 0; font-size: 0.88rem; color: var(--text-2); }
.bar-track { height: 6px; background: #dfe3ea; border-radius: 999px; margin: 18px auto 0; max-width: 260px; overflow: hidden; }
.bar-fill { height: 100%; width: 62%; background: var(--accent-fill); }

/* ---------- split ---------- */
.split { display: grid; gap: 44px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- audience ---------- */
.aud { border-left: 3px solid var(--accent-fill); padding-left: 20px; margin-bottom: 30px; }
.aud h3 { margin-bottom: 6px; }
.aud p { color: var(--text-2); margin: 0; }
section.ink .aud { border-left-color: var(--deep-gold); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 44px 0; font-size: 0.85rem; color: var(--text-3); }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--text-2); }
footer.site img { height: 24px; width: auto; }
.legal { margin-top: 22px; max-width: 70ch; line-height: 1.5; }

@media (max-width: 640px) {
  .hero { padding: 60px 0 48px; }
  section { padding: 56px 0; }
  nav.site { gap: 13px; }
  nav.site a { font-size: 0.8rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .logrow .when { display: none; }
}
