/* Rook — product site. Aesthetic: architectural keep, ink + brass, serif × mono. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,900&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink:        #0b0c10;
  --ink-2:      #111319;
  --ink-3:      #171a22;
  --paper:      #ece7db;
  --muted:      #938c7e;
  --muted-2:    #6c665b;
  --brass:      #d7a85a;
  --brass-hi:   #f1c97e;
  --brass-deep: #a87b34;
  --slate:      #7d8aa6;
  --line:       rgba(236, 231, 219, 0.10);
  --line-2:     rgba(236, 231, 219, 0.16);

  --display: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmospheric background: brass glow from top + fine grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 60% at 75% -10%, rgba(215, 168, 90, 0.10), transparent 60%),
    radial-gradient(80% 50% at 10% 0%, rgba(125, 138, 166, 0.06), transparent 55%),
    var(--ink);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--brass); color: var(--ink); }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Eyebrow / mono labels ── */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ── Header ── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(var(--ink), rgba(11,12,16,0.6));
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.01em; }
.brand .mark { width: 26px; height: 26px; color: var(--brass); }
.nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--paper); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 13px 20px; border-radius: 2px;
  border: 1px solid var(--line-2);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, color 0.25s;
}
.btn .meta { color: var(--muted-2); font-size: 11px; }
.btn-primary { background: var(--brass); color: var(--ink); border-color: var(--brass); font-weight: 600; }
.btn-primary .meta { color: var(--brass-deep); }
.btn-primary:hover { background: var(--brass-hi); border-color: var(--brass-hi); transform: translateY(-2px); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-hi); transform: translateY(-2px); }

/* ── Hero ── */
.hero { position: relative; padding: 96px 0 64px; }
.hero .battlement { color: var(--line-2); margin-bottom: 40px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.hero h1 .ln { display: block; }
.hero h1 .accent { font-style: italic; color: var(--brass-hi); }
.hero .lede {
  margin-top: 28px; max-width: 52ch;
  font-size: clamp(17px, 2.2vw, 20px); color: var(--muted);
}
.hero .lede + .lede { margin-top: 14px; }
.hero .lede b { color: var(--paper); font-weight: 500; }
.hero .cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

/* staggered reveal */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.27s; } .d4 { animation-delay: 0.38s; } .d5 { animation-delay: 0.5s; }

/* ── Terminal card ── */
.term {
  margin-top: 56px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(236,231,219,0.04);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted-2);
}
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); }
.term-bar .label { margin-left: 8px; letter-spacing: 0.05em; }
.term-body { padding: 22px 24px; font-family: var(--mono); font-size: 14px; line-height: 1.9; overflow-x: auto; }
.term-body .pr { color: var(--brass); }
.term-body .cm { color: var(--muted-2); }
.term-body .ok { color: var(--slate); }
.term-body .out { color: var(--paper); }

/* ── Section scaffold ── */
section { padding: 84px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 60ch; margin-bottom: 52px; }
.sec-head h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 4.5vw, 50px); line-height: 1.04; letter-spacing: -0.015em;
  margin-top: 16px;
}
.sec-head p { margin-top: 18px; color: var(--muted); max-width: 52ch; }

/* ── Features grid ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cell { background: var(--ink); padding: 30px 26px; transition: background 0.3s; }
.cell:hover { background: var(--ink-2); }
.cell .ico { width: 26px; height: 26px; color: var(--brass); margin-bottom: 18px; }
.cell h3 { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.cell p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ── Privacy stance ── */
.stance { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.stance .big { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.015em; }
.stance .big em { font-style: italic; color: var(--brass-hi); }
.ledger { border: 1px solid var(--line-2); border-radius: 6px; }
.ledger .row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 22px; font-family: var(--mono); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.ledger .row:last-child { border-bottom: 0; }
.ledger .row span:first-child { color: var(--muted); }
.ledger .row span:last-child { color: var(--brass-hi); }

/* ── Two SKUs ── */
.skus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sku { border: 1px solid var(--line-2); border-radius: 6px; padding: 34px 30px; position: relative; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.sku .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.sku h3 { font-family: var(--display); font-weight: 500; font-size: 28px; margin-top: 12px; }
.sku .price { font-family: var(--mono); color: var(--muted); margin-top: 4px; font-size: 14px; }
.sku ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.sku li { font-size: 15px; color: var(--paper); padding-left: 24px; position: relative; }
.sku li::before { content: "▪"; position: absolute; left: 4px; color: var(--brass); }
.sku li.off { color: var(--muted-2); }
.sku li.off::before { content: "—"; color: var(--muted-2); }
.sku .act { margin-top: 28px; }

/* ── Prose pages (privacy / support) ── */
.prose { padding: 72px 0 96px; max-width: 72ch; }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.02em; line-height: 1.02; }
.prose .updated { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: 0.05em; margin-top: 14px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); margin-top: 12px; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose ul { margin-top: 8px; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose a { color: var(--brass-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass-deep); }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--ink-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; color: var(--paper); }

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.site-foot .brand { font-size: 19px; }
.site-foot .links { display: flex; gap: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.site-foot .links a:hover { color: var(--brass-hi); }
.site-foot .fine { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 22px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .stance, .skus { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
