/* Simian Tactical: matches the RotatoCAM site (graphite, system blue, Geist). */
@font-face { font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/geist-latin.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/geist-mono-latin.woff2') format('woff2'); }
:root {
  --bg:#060709; --surface:#0b0d10; --surface-2:#10141b;
  --rule:#262b34; --rule-soft:#1c2027; --rule-strong:#394353;
  --text:#f2f4f7; --text-2:#c4c9d1; --text-3:#a3a9b3; --text-dim:#969da9; --text-faint:#777f8c;
  --accent:#9cc0ff; --accent-hover:#c6dcff; --ok:#8bbf5a;
  --sans:Geist,"Helvetica Neue",Helvetica,Arial,sans-serif; --mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --wrap:1200px; color-scheme:dark;
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:76px; }
body { margin:0; color:var(--text); font:16px/1.6 var(--sans); -webkit-font-smoothing:antialiased;
  background:radial-gradient(ellipse 800px 420px at 50% 160px,rgba(90,140,255,.11),transparent 75%),var(--bg); background-color:var(--bg); }
a { color:var(--accent); text-decoration:none; }
a:hover { color:var(--accent-hover); }
a:focus-visible,button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
img { max-width:100%; }
.wrap { max-width:var(--wrap); margin:0 auto; padding:0 24px; }

/* header */
.site-header { position:sticky; top:0; z-index:20; background:rgba(6,7,9,.9); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid var(--rule-soft); }
.header-inner { display:flex; align-items:center; gap:18px; padding-top:12px; padding-bottom:12px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--text); font-weight:600; font-size:17px; letter-spacing:-.02em; white-space:nowrap; }
.brand:hover { color:var(--text); }
.brand img { width:30px; height:30px; object-fit:contain; }
.brand small { font:500 11px var(--mono); color:var(--accent); background:rgba(156,192,255,.12); border-radius:999px; padding:3px 8px; letter-spacing:0; }
.nav { display:flex; gap:4px; margin-left:auto; padding:4px; background:rgba(255,255,255,.035); border:1px solid var(--rule-soft); border-radius:11px; }
.nav a { color:var(--text-3); font-size:13px; font-weight:500; padding:7px 12px; border-radius:7px; }
.nav a:hover { color:var(--text); background:rgba(255,255,255,.05); }
.header-cta { display:flex; gap:8px; }

/* buttons */
.btn { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--rule-strong); border-radius:999px; padding:10px 18px; font:500 14px var(--sans); color:var(--text); background:transparent; cursor:pointer; transition:background .15s,border-color .15s,box-shadow .15s; white-space:nowrap; }
.btn:hover { background:#141a24; border-color:var(--accent); color:var(--text); }
.btn-primary { background:#f2f4f7; color:#060709; border-color:transparent; }
.btn-primary:hover { background:#fff; color:#060709; box-shadow:0 5px 24px rgba(120,160,255,.16); border-color:transparent; }
.btn-sm { padding:7px 13px; font-size:13px; }
.btn .arw { opacity:.6; font-size:12px; }

/* hero */
.hero { padding:72px 0 40px; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:40px; align-items:center; }
.kicker { font:500 11px var(--mono); letter-spacing:.04em; color:var(--accent); text-transform:uppercase; margin:0 0 14px; }
.hero h1 { margin:0; font-size:clamp(40px,5.4vw,66px); line-height:1.02; font-weight:600; letter-spacing:-.045em;
  background:linear-gradient(180deg,#fff 30%,#969eac); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero .lede { margin:20px 0 0; font-size:17px; line-height:1.6; color:var(--text-2); max-width:560px; }
.hero .actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.console { border:1px solid #3b424e; border-radius:14px; overflow:hidden; background:var(--surface); box-shadow:0 24px 70px -30px #000,0 0 65px -36px rgba(110,150,255,.5); }
.console .bar { display:flex; align-items:center; gap:7px; padding:10px 14px; border-bottom:1px solid var(--rule); font:500 11px var(--mono); color:var(--text-dim); }
.console .bar i { width:9px; height:9px; border-radius:50%; background:#2a303a; }
.console .bar span { margin-left:6px; }
.console pre { margin:0; padding:18px 18px 20px; font:13px/1.85 var(--mono); color:var(--text-2); white-space:pre-wrap; }
.console .ok { color:var(--ok); } .console .dim { color:var(--text-faint); } .console .acc { color:var(--accent); }

.stats { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--rule); border-radius:12px; overflow:hidden; background:rgba(255,255,255,.015); margin-bottom:8px; }
.stats div { padding:16px 18px; border-left:1px solid var(--rule); }
.stats div:first-child { border-left:0; }
.stats b { display:block; font-size:24px; font-weight:600; letter-spacing:-.03em; color:var(--text); }
.stats span { font-size:12px; color:var(--text-dim); }

/* sections */
.section { padding:64px 0 8px; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:22px; }
.section-head h2 { margin:0; font-weight:600; font-size:clamp(29px,3.5vw,40px); line-height:1.12; letter-spacing:-.035em; }
.section-head p { margin:6px 0 0; color:var(--text-3); max-width:620px; }

.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:12px; }
.card { position:relative; display:flex; flex-direction:column; border:1px solid var(--rule); border-radius:12px; overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01)); transition:border-color .18s,transform .18s,box-shadow .18s; }
.card:hover { border-color:#3a4558; transform:translateY(-2px); box-shadow:0 18px 40px -26px rgba(110,150,255,.45); }
.card[hidden] { display:none; }
.cover { position:relative; aspect-ratio:16/9; background:var(--surface-2); border-bottom:1px solid var(--rule); overflow:hidden; }
.cover img { display:block; width:100%; height:100%; object-fit:cover; }
.cover.blank { display:flex; align-items:center; justify-content:center; background:repeating-linear-gradient(135deg,#0d1015 0 12px,#0a0c10 12px 24px); }
.cover.blank span { font:600 26px var(--sans); letter-spacing:-.03em; color:#5f6b80; }
.price { position:absolute; top:10px; right:10px; padding:4px 10px; border-radius:999px; background:rgba(6,7,9,.82); border:1px solid var(--rule-strong); font:600 13px var(--sans); color:var(--text); backdrop-filter:blur(6px); }
.cardbody { display:flex; flex-direction:column; flex:1; padding:18px 18px 16px; }
.cardtop { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.group-label { font:500 11px var(--mono); color:var(--text-faint); }
.status { display:inline-flex; align-items:center; gap:6px; font:500 11px var(--mono); color:var(--text-dim); }
.status i { width:7px; height:7px; border-radius:50%; background:currentColor; }
.status.s-live,.status.s-active { color:var(--ok); }
.status.s-new,.status.s-free { color:var(--accent); }
.card h3 { margin:0; font-size:19px; font-weight:600; letter-spacing:-.02em; line-height:1.25; }
.card .sub { margin:3px 0 10px; font-size:13px; color:var(--accent); }
.card p { margin:0 0 14px; font-size:14px; line-height:1.6; color:var(--text-3); flex:1; }
.tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.tag { font:500 11px var(--mono); color:var(--text-dim); border:1px solid var(--rule); border-radius:999px; padding:2px 9px; }
.card .links { display:flex; flex-wrap:wrap; gap:8px; padding-top:14px; border-top:1px solid var(--rule-soft); }
.card .links .off { color:var(--text-dim); border-style:dashed; cursor:default; }
.card .links .off:hover { background:transparent; border-color:var(--rule-strong); }

.filters { display:flex; flex-wrap:wrap; gap:6px; }
.filters button { font:500 13px var(--sans); color:var(--text-3); background:transparent; border:1px solid var(--rule); border-radius:999px; padding:6px 13px; cursor:pointer; }
.filters button:hover { color:var(--text); border-color:var(--rule-strong); }
.filters button[aria-pressed="true"] { color:#060709; background:#f2f4f7; border-color:transparent; }

/* links */
.linkcols { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.linkcol { border:1px solid var(--rule); border-radius:12px; padding:16px; background:rgba(255,255,255,.015); }
.linkcol h3 { margin:0 0 8px; font:500 11px var(--mono); color:var(--text-faint); text-transform:uppercase; letter-spacing:.04em; }
.linkcol a { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:9px 0; border-top:1px solid var(--rule-soft); color:var(--text); font-weight:500; font-size:15px; }
.linkcol a:first-of-type { border-top:0; }
.linkcol a small { color:var(--text-dim); font-weight:400; font-size:12px; text-align:right; }
.linkcol a:hover { color:var(--accent-hover); }

/* footer */
.site-footer { margin-top:80px; border-top:1px solid var(--rule-soft); background:#080a0d; }
.footer-inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding-top:28px; padding-bottom:36px; color:var(--text-dim); font-size:13px; }
.footer-inner .brand { font-size:15px; }
.footer-inner .motto { font:500 11px var(--mono); color:var(--text-faint); letter-spacing:.04em; }

@media (max-width:900px) {
  .hero { grid-template-columns:1fr; padding-top:48px; }
  .linkcols { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stats { grid-template-columns:repeat(2,1fr); }
  .stats div:nth-child(3) { border-left:0; }
  .stats div:nth-child(n+3) { border-top:1px solid var(--rule); }
}
@media (max-width:720px) {
  .wrap { padding:0 16px; }
  .nav { display:none; }
  .header-cta { margin-left:auto; }
  .header-cta .btn-github, .site-header .brand small, .console { display:none; }
  .hero { padding:36px 0 28px; }
  .hero .actions .btn { flex:1 1 auto; justify-content:center; }
  .linkcols { grid-template-columns:1fr; }
  .grid { grid-template-columns:1fr; }
  .section { padding-top:48px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .card { transition:none; } .card:hover { transform:none; } }
