/* Pyrite CAD – website. Dark "blueprint" look with pyrite gold, matching the app icon. */
:root {
  --ink: #0a0d13;
  --ink-2: #10141d;
  --ink-3: #161b26;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3efe6;
  --muted: #a7a196;
  --faint: #6f6a61;
  --gold-1: #f8e2a0;
  --gold-2: #e0b04f;
  --gold-3: #a8781f;
  --gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  --radius: 22px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-1); }
::selection { background: rgba(224, 176, 79, 0.35); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Blueprint grid behind everything */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 13, 19, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links .lang { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 16px; } }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 18px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.06; font-weight: 700; }
h1 { font-size: clamp(46px, 8.4vw, 104px); letter-spacing: -0.04em; }
h2 { font-size: clamp(34px, 5.2vw, 64px); letter-spacing: -0.035em; }
h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.gold { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 680px; line-height: 1.5; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.center .btns { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-gold { background: var(--gold); color: #1a1408; box-shadow: 0 10px 40px -10px rgba(224, 176, 79, 0.55); }
.btn-gold:hover { color: #1a1408; transform: translateY(-1px); box-shadow: 0 14px 50px -10px rgba(224, 176, 79, 0.7); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1; letter-spacing: .02em; }
.btn .stack { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 40px; text-align: center; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -140px; width: 1100px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224, 176, 79, 0.22), rgba(224, 176, 79, 0.06) 55%, transparent);
  pointer-events: none; z-index: -1;
}
.hero-logo { width: 112px; height: 112px; margin: 0 auto 18px; filter: drop-shadow(0 18px 40px rgba(224,176,79,0.35)); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin: 0 auto 30px; }
.hero .meta { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* Device frames */
.ipad {
  position: relative; border-radius: 38px; padding: 14px; background: linear-gradient(160deg, #2a2f39, #11141b 60%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset, 0 60px 120px -40px rgba(0,0,0,0.9), 0 30px 60px -30px rgba(224,176,79,0.25);
}
.ipad > img, .ipad > video { width: 100%; border-radius: 25px; background: #e9ecf0; }
.ipad.small { border-radius: 26px; padding: 9px; }
.ipad.small > img { border-radius: 18px; }


/* ---------- Sections ---------- */
section { padding: 130px 0 0; }
.section-head { margin-bottom: 56px; }
.section-head h2 { margin-bottom: 20px; }
@media (max-width: 700px) { section { padding-top: 96px; } }

/* Split: text + media */
.split h2 { font-size: clamp(34px, 4.2vw, 54px); }
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 1.35fr 1fr; }
.split.flip .split-text { order: 2; }
@media (max-width: 920px) { .split, .split.flip { grid-template-columns: 1fr; gap: 40px; } .split.flip .split-text { order: 0; } }
.points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.points .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(224,176,79,0.10); border: 1px solid rgba(224,176,79,0.25); color: var(--gold-1);
}
.points .ic svg { width: 20px; height: 20px; }
.points b { display: block; font-size: 17px; margin-bottom: 2px; }
.points span { color: var(--muted); font-size: 15px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; grid-column: span 2; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.tile:hover { border-color: rgba(224,176,79,0.35); }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; }
.tile .txt { padding: 28px 28px 22px; }
.tile .txt p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.tile .pic { margin-top: auto; background: #e8ebef; flex: 1 1 auto; min-height: 260px; position: relative; overflow: hidden; }
.tile .pic img { position: absolute; inset: 0; }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover .pic img { transform: scale(1.04); }
.tile.w3 .pic { min-height: 340px; }
.tile.w4 .pic { min-height: 340px; }
.tile .k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; display: block; }
@media (max-width: 980px) { .tile, .tile.w3, .tile.w4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: auto; } }

/* Timeline graphic inside a tile */
.timeline { margin: auto 28px 30px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.timeline .chip { justify-content: flex-start; padding: 10px 14px; font-size: 14px; }
.timeline .chip em { margin-left: auto; font-style: normal; color: var(--faint); font-size: 12px; }
.chip {
  font-size: 13px; padding: 7px 12px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--text);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); display: inline-block; }
.chip.off { opacity: .4; }
.rollback { height: 3px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 14px rgba(224,176,79,0.6); margin: 4px 0; position: relative; }
.rollback::before { content: ""; position: absolute; left: -4px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 28px 30px; }

/* ---------- Gallery ---------- */
.gallery {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 40px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; width: min(330px, 74vw); scroll-snap-align: center; }
.gallery figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.gallery-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -8px; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-size: 18px; cursor: pointer; transition: background .2s;
}
.gallery-nav button:hover { background: rgba(255,255,255,0.06); }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } }
.fmt { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.fmt h3 { margin-bottom: 18px; }
.fmt .chips { margin: 0; }
.fmt .chip { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; letter-spacing: .02em; }

/* ---------- Privacy band ---------- */
.band {
  position: relative; border-radius: 32px; padding: 80px 48px; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(224,176,79,0.20), transparent 60%), var(--ink-2);
  border: 1px solid rgba(224,176,79,0.22);
}
@media (max-width: 600px) { .band { padding: 56px 22px; border-radius: 24px; } }
.band .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 54px; text-align: left; }
@media (max-width: 760px) { .band .three { grid-template-columns: 1fr; } }
.band .three b { display: block; font-size: 18px; margin-bottom: 6px; }
.band .three span { color: var(--muted); font-size: 15px; }

/* ---------- Engine credits ---------- */
.engines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .engines { grid-template-columns: 1fr; } }
.engine { border-top: 1px solid var(--line-2); padding-top: 22px; }
.engine b { font-size: 18px; }
.engine p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

/* ---------- Final CTA ---------- */
.cta { padding: 150px 0 120px; text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 30px; box-shadow: 0 20px 60px -15px rgba(224,176,79,0.45); }
.cta h2 { margin-bottom: 20px; }
.cta .lead { margin: 0 auto 36px; }
.cta .btns { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; gap: 20px 32px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------- Text pages (support, privacy, terms) ---------- */
.page { max-width: 780px; margin: 0 auto; padding: 72px 24px 40px; }
@media (max-width: 600px) { .page { padding: 48px 16px 24px; } }
.page h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.page .lead { margin-bottom: 40px; }
.page h2 { font-size: 26px; letter-spacing: -0.02em; margin: 52px 0 14px; }
.page p, .page li { color: #d6d1c7; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 22px 0;
}
.card.gold-edge { border-color: rgba(224,176,79,0.3); background: radial-gradient(ellipse at 0% 0%, rgba(224,176,79,0.10), transparent 60%), var(--ink-2); }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--gold-2); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .tile .pic img { transition: none; } }

/* =====================================================================
   Extra polish: grain, ticker, device stage, stats, spotlight cards,
   catalogue with search, format flow, animated borders.
   ===================================================================== */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Fine film grain over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Eyebrows get a short gold rule */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.center .eyebrow::after, .hero .eyebrow::after, .band .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold-2), transparent); }

/* Gold button: a light sweep */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
  animation: sweep 5s ease-in-out infinite 1.5s;
}
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* ---------- Feature ticker in the hero ---------- */
.ticker {
  margin: 36px auto 0; max-width: 1100px; display: grid; gap: 10px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-row { overflow: hidden; }
.ticker-track { display: flex; gap: 10px; width: max-content; animation: ticker 70s linear infinite; }
.ticker-row.rev .ticker-track { animation-direction: reverse; animation-duration: 80s; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  white-space: nowrap; font-size: 14px; padding: 8px 16px; border-radius: 999px; color: #d9d3c6;
  background: rgba(255,255,255,0.035); border: 1px solid var(--line);
}
.ticker-track span::before { content: "◆"; color: var(--gold-2); font-size: 8px; margin-right: 9px; vertical-align: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Device stage: tilts flat as you scroll, floating badges ---------- */
.device-stage { position: relative; max-width: 1040px; margin: 72px auto 0; perspective: 1800px; }
.device-stage::before {
  content: ""; position: absolute; inset: 10% 6% -6%; z-index: -1; filter: blur(70px); opacity: .55;
  background: radial-gradient(ellipse at 50% 60%, rgba(224,176,79,0.45), transparent 65%);
}
.hero-device { transform: rotateX(calc(var(--tilt, 0) * 1deg)) scale(calc(1 - var(--tilt, 0) * 0.004)); transform-origin: 50% 100%; transition: transform .1s linear; will-change: transform; }
.badges { position: absolute; inset: 0; pointer-events: none; }
.badge {
  position: absolute; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: rgba(16, 20, 29, 0.62); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); animation: float 7s ease-in-out infinite;
}
.badge b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.badge span { font-size: 12px; color: var(--gold-2); letter-spacing: .08em; text-transform: uppercase; }
.badge.b1 { left: -56px; top: 18%; }
.badge.b2 { right: -48px; top: 30%; animation-delay: -2s; }
.badge.b3 { left: -36px; bottom: 16%; animation-delay: -4s; }
.badge.b4 { right: -60px; bottom: 8%; animation-delay: -5.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1180px) { .badge.b1, .badge.b3 { left: 12px; } .badge.b2, .badge.b4 { right: 12px; } }
@media (max-width: 760px) { .badges { display: none; } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 96px; position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 34px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line-2); }
.stat b {
  display: block; font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat:nth-child(4)::before { display: none; } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat::before { display: none; } .stat:last-child { grid-column: span 2; } }

/* ---------- Spotlight cards: glow follows the pointer, gold edge on hover ---------- */
.tile, .cat, .fmt, .engine-card { --mx: 50%; --my: 0%; }
.tile::before, .cat::before, .fmt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(224,176,79,0.10), transparent 60%);
}
.tile::after, .cat::after, .fmt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 2;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(248,226,160,0.85), rgba(224,176,79,0.2) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tile:hover::before, .cat:hover::before, .fmt:hover::before, .tile:hover::after, .cat:hover::after, .fmt:hover::after { opacity: 1; }
.tile { background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 40%), var(--ink-2); }
.tile:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.tile .txt, .tile .timeline, .tile .chips { position: relative; z-index: 3; }
.tile .pic::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); pointer-events: none; }

/* ---------- Catalogue ---------- */
.search {
  display: flex; align-items: center; gap: 12px; max-width: 640px; margin: -16px auto 48px; padding: 0 20px; height: 60px;
  border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search:focus-within { border-color: rgba(224,176,79,0.6); box-shadow: 0 0 0 6px rgba(224,176,79,0.10); background: rgba(255,255,255,0.06); }
.search svg { width: 20px; height: 20px; color: var(--gold-2); flex: none; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 17px; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: invert(1) sepia(1) saturate(4) hue-rotate(5deg); }
.search-count { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog { columns: 3 320px; column-gap: 18px; }
.cat {
  position: relative; break-inside: avoid; margin: 0 0 18px; padding: 24px 24px 18px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 50%), var(--ink-2); border: 1px solid var(--line);
  display: inline-block; width: 100%;
}
.cat header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; position: relative; z-index: 3; }
.cat .num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--gold-2); letter-spacing: .05em; }
.cat h3 { font-size: 19px; flex: 1; }
.cat .count { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; }
.cat ul { list-style: none; margin: 0; padding: 0; position: relative; z-index: 3; }
.cat li { position: relative; padding: 7px 0 7px 22px; font-size: 15px; color: #d6d1c7; border-top: 1px solid rgba(255,255,255,0.05); line-height: 1.45; }
.cat li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 10px rgba(224,176,79,0.5);
}
.cat li mark { background: rgba(224,176,79,0.28); color: var(--text); border-radius: 3px; padding: 0 2px; }
.cat[hidden], .cat li[hidden] { display: none; }
.no-results { text-align: center; color: var(--muted); }

/* ---------- Formats flow ---------- */
.fmt { position: relative; }
.fmt h3, .fmt .chips { position: relative; z-index: 3; }
.fmt .chip { transition: border-color .2s, color .2s, background .2s; }
.fmt .chip:hover { border-color: rgba(224,176,79,0.6); color: var(--gold-1); background: rgba(224,176,79,0.08); }
.hub { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin: 0 10px; }
.hub img { width: 84px; height: 84px; border-radius: 20px; position: relative; z-index: 1; box-shadow: 0 16px 50px -10px rgba(224,176,79,0.55); }
.hub .ring { position: absolute; inset: 6px; border-radius: 32px; border: 1px solid rgba(224,176,79,0.5); animation: pulse 3s ease-out infinite; }
.hub .ring.r2 { animation-delay: 1.5s; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.hub::before, .hub::after {
  content: ""; position: absolute; top: 50%; width: 34px; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--gold-2) 0 6px, transparent 6px 11px); background-size: 22px 2px;
  animation: dash 1s linear infinite;
}
.hub::before { right: 100%; }
.hub::after { left: 100%; }
@keyframes dash { to { background-position: 22px 0; } }
@media (max-width: 860px) { .hub { margin: 0 auto; transform: rotate(90deg); } .hub img { transform: rotate(-90deg); } }

/* ---------- Privacy band: a slowly turning gold edge ---------- */
.band { border: 0; isolation: isolate; }
.band::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--angle), rgba(224,176,79,0.15), rgba(248,226,160,0.9), rgba(224,176,79,0.15) 30%, rgba(224,176,79,0.15) 70%, rgba(248,226,160,0.6), rgba(224,176,79,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: turn 10s linear infinite;
}
@keyframes turn { to { --angle: 360deg; } }
.band .three > div { padding: 22px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }

/* ---------- Gallery and engines ---------- */
.gallery figure .ipad { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.gallery figure:hover .ipad { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 0 0 1px rgba(224,176,79,0.35) inset, 0 50px 90px -40px rgba(0,0,0,0.95), 0 30px 70px -30px rgba(224,176,79,0.45); }
.engine { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(224,176,79,0.06), transparent 60%), var(--ink-2); position: relative; overflow: hidden; }
.engine::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }

/* Split media: soft gold halo */
.split > .ipad { box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset, 0 60px 120px -40px rgba(0,0,0,0.9), 0 40px 100px -40px rgba(224,176,79,0.4); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .badge, .btn-gold::after, .hub .ring, .hub::before, .hub::after, .band::before { animation: none; }
  .ticker-row { overflow-x: auto; }
  .hero-device { transform: none; }
}

