/* =========================================================
   xcamden · shared styles
   white/orange default, dark/orange toggle
========================================================= */
:root {
  --navy-900: #0f1115;
  --navy-800: #171a21;
  --navy-700: #20242d;
  --navy-600: #2a303b;

  /* Kept for backward-compat with older inline styles; not used in new layout */
  --syn-cyan: #0891b2;
  --syn-magenta: #db2777;
  --syn-green: #16a34a;
  --syn-amber: #d97706;
  --syn-purple: #7c3aed;
  --syn-orange: #A98D2D;

  --orange: #A98D2D;
  --orange-bright: #D6B94A;

  --ink-50: #111827;
  --ink-300: #4b5563;
  --ink-500: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(17, 24, 39, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --maxw: 1240px;
  --font-display: 'Geist', 'Inter', system-ui, sans-serif;
  --font-sans: 'Geist', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --bg: #f9fafb;
  --bg-elev: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #fff7ed;
  --text: var(--ink-50);
  --text-dim: var(--ink-300);
  --text-mute: var(--ink-500);
  --accent: var(--orange);
  --accent-bright: var(--orange-bright);
  --accent-2: #bca300;
  --accent-3: #16a34a;
  --accent-4: #E4CA68;
  --border: var(--line);
  --border-strong: var(--line-strong);
  --hazard: repeating-linear-gradient(-45deg, #0a0a0a 0 12px, var(--orange-bright) 12px 24px);
}

[data-theme="dark"] {
  --bg: #050505;
  --bg-elev: #090909;
  --bg-card: #0c0c0c;
  --bg-card-hover: #111109;
  --text: #f5f5f0;
  --text-dim: #b8b8b0;
  --text-mute: #7e7e77;
  --accent: #D6B94A;
  --accent-bright: #E4CA68;
  --accent-2: #B79B36;
  --accent-3: #4ade80;
  --accent-4: #D6B94A;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(214, 185, 74, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
  background-image:
    radial-gradient(circle at 16% -12%, rgba(214, 185, 74, 0.07), transparent 28rem),
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
/* syntax roles usable anywhere */
.syn-key { color: var(--syn-magenta); }
.syn-str { color: var(--syn-green); }
.syn-num { color: var(--syn-amber); }
.syn-fn  { color: var(--syn-purple); }
.syn-var { color: var(--syn-cyan); }
.syn-com { color: var(--text-mute); font-style: italic; }
.syn-punc { color: var(--text-mute); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--text-mute); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; gap: 30px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent);
  color: var(--navy-900);
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.brand span:not(.brand-mark) {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.nav-links { display: flex; gap: 6px; margin-left: auto; list-style: none; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-dim);
  transition: all .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-elev); }
.nav-links a.active { color: var(--text); background: var(--bg-elev); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--text);
  cursor: pointer; display: grid; place-items: center;
  transition: all .2s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn { font-family: var(--font-sans); font-weight: 500; border-radius: 999px; }
.btn-primary {
  background: var(--accent);
  color: var(--navy-900);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 8px 24px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-gold-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-gold-ghost:hover { background: var(--accent); color: var(--navy-900); }
.btn svg { width: 14px; height: 14px; }

/* ---------- tag / pill ---------- */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.tag.neutral {
  background: var(--bg-elev);
  color: var(--text-dim);
  border-color: var(--border-strong);
}

/* ---------- placeholder (labeled) ---------- */
.ph {
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent) 4%, transparent)),
    repeating-linear-gradient(135deg,
      transparent 0 18px,
      color-mix(in srgb, var(--accent) 8%, transparent) 18px 19px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  position: relative;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-sm) - 2px);
  pointer-events: none;
}
.ph span { position: relative; z-index: 1; }

/* ---------- section ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 14px 0 16px;
}
.section-head h2 em { font-style: normal; color: var(--accent); font-weight: 500; }
.section-head h2 em::before { content: ""; color: var(--text-mute); }
.section-head p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.55;
}
.section-head.center p { margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.footer-grid a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 5px 0;
  transition: color .15s;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}
.footer-bottom > span:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- reveal (JS adds .pre to hide, .in to show) ---------- */
.reveal { transition: opacity .7s, transform .7s; }
.reveal.pre { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ---------- gold dot ---------- */
.livedot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; display: inline-block;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .site-footer { padding: 64px 0 36px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.7;
  }
  .footer-bottom > span { width: 100%; }
  .footer-bottom > span:last-child { justify-content: flex-start; }
}

/* =========================================================
   Mobile hamburger + drawer (injected by js/site.js)
========================================================= */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--border-strong);
  padding: 84px 24px 32px;
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.4);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.mobile-drawer a:hover, .mobile-drawer a.active {
  background: var(--bg-card);
  color: var(--accent);
}
.mobile-drawer .drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer .drawer-foot a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 10px 16px;
}
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 38;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
}

/* =========================================================
   Apps grid (Google Play)
========================================================= */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px -20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.app-card-head { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--text-mute);
}
.app-icon-fallback {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  border-color: var(--accent);
}
.app-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.app-card .app-tagline {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  min-height: 42px;
}
.app-card .app-cta { margin-top: auto; }
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16);
  transition: transform .15s, background .15s;
}
.play-badge:hover { transform: translateY(-1px); background: #1a1a1a; }
.play-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.play-badge .play-small { font-size: 10px; opacity: .8; letter-spacing: .04em; }
.play-badge .play-big { font-size: 15px; font-weight: 600; }

/* =========================================================
   Products grid
========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px -20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.product-image {
  aspect-ratio: 16 / 10;
  background: var(--bg-elev);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: var(--text-mute);
  font-size: 14px;
}
/* Portrait / full-screenshot images: show the whole frame instead of cropping */
.product-image.is-contain {
  position: relative;
  background-color: #0a0a0a;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 14px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.product-image.is-contain::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--hazard);
  background-size: auto 100%;
}
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.product-card .product-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.product-card .product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
}
.product-price .currency { font-size: 12px; vertical-align: top; opacity: .7; margin-right: 2px; }

/* product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-detail .product-hero {
  position: sticky;
  top: 96px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
/* Portrait / full-screenshot detail hero: show the whole frame */
.product-detail .product-hero.is-contain {
  aspect-ratio: 3 / 4;
  background-color: #0a0a0a;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 20px;
  border-color: var(--border-strong);
}
.product-detail .product-hero.is-contain::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--hazard);
  background-size: auto 100%;
  z-index: 1;
}
.product-detail h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.product-detail .price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 24px 0;
}
.product-detail .price-row .product-price { font-size: 36px; }
.product-detail .price-row .price-note {
  font-size: 13px;
  color: var(--text-mute);
}
.product-detail .product-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.product-detail .product-desc h2,
.product-detail .product-desc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  margin: 20px 0 10px;
}
.product-detail .product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-disclaimer {
  margin-top: 24px;
  padding: 16px 18px 16px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* =========================================================
   Hazard accents — yellow/black industrial trim (Job Site X)
========================================================= */
.nav { position: sticky; }
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--hazard);
  background-size: auto 100%;
  opacity: .85;
}
.hazard-divider {
  height: 6px;
  border-radius: 3px;
  background: var(--hazard);
  background-size: auto 100%;
  opacity: .9;
  margin: 8px 0 0;
}
.info-strip {
  border-left: 3px solid var(--accent) !important;
}

@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-detail .product-hero { position: static; }
}

/* =========================================================
   Simple stat row
========================================================= */
.simple-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.simple-stat {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.simple-stat .n {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.simple-stat .l {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
}

/* =========================================================
   Blog post cards (Netlify-backed)
========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.posts-grid .post-card .post-cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  font-size: 48px;
  border: 1px solid var(--border);
}
.posts-grid .post-card .post-cover.post-cover-emoji {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--bg-card)), var(--bg-elev));
}

/* =========================================================
   Empty state
========================================================= */
.empty-state {
  padding: 60px 24px;
  text-align: center;
  background: var(--bg-elev);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}
.empty-state p { font-size: 14px; line-height: 1.5; max-width: 420px; margin: 0 auto; }

/* =========================================================
   Soften old display headings — section heads use Fraunces now
========================================================= */
.section-head h2 em,
.metrics-card .v,
.about-content h2 em,
.final-cta h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* =========================================================
   Dark orange glass redesign
========================================================= */
::selection { background: rgba(214, 185, 74, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }

.nav {
  background: rgba(5, 5, 5, .76);
  border-bottom-color: var(--border);
}
.nav-inner { min-height: 72px; }
.nav-links a:hover,
.nav-links a.active { background: rgba(214, 185, 74, .1); color: var(--accent-bright); }
.theme-btn { display: none !important; }

.section-head h2,
.about-content h2,
.final-cta h2,
.page-hero h1 {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -.055em !important;
}
.section-head h2 em,
.about-content h2 em,
.final-cta h2 em,
.page-hero h1 em,
.hero-title em { font-style: normal !important; }

.app-card,
.post-card,
.metrics-card,
.about-content,
.research-preview,
.research-step,
.final-cta,
.info-strip,
.empty-state,
.product-card,
.product-disclaimer {
  background: #0c0c0c !important;
  border-color: var(--border) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 50px rgba(0,0,0,.16);
}

.btn-primary {
  color: #160900;
  box-shadow: 0 0 0 1px rgba(228,202,104,.16), 0 8px 24px rgba(169,141,45,.12);
}
.btn-ghost { background: rgba(255,255,255,.025); }

.hero-bg {
  background:
    radial-gradient(circle at 76% 46%, rgba(214, 185, 74, .045), transparent 28rem),
    linear-gradient(180deg, rgba(5,5,5,.1), #050505) !important;
}
.hero-robot,
.about-robot {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(214,185,74,.13), transparent 65%), rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 100px rgba(0,0,0,.5);
}
.hero-robot::before,
.about-robot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 32%);
  z-index: 2;
}
.about-robot { min-height: 440px; }

.product-card-link { display: block; }
.product-card h3 a:hover { color: var(--accent-bright); }
.product-kind {
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-inquire { padding: 9px 17px; }

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.social-link {
  min-height: 44px;
  padding: 9px 10px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim) !important;
  background: rgba(255,255,255,.025);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.social-link:hover {
  color: var(--accent-bright) !important;
  border-color: var(--border-strong);
  background: rgba(214,185,74,.08);
  transform: translateY(-1px);
}
.social-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.social-link span { font-size: 12px; }

.site-footer { background: rgba(0,0,0,.3); border-top-color: var(--border); }
.footer-grid { grid-template-columns: 1.2fr .8fr .9fr 1.35fr; }

.hero-robot-stage {
  position: relative;
  align-self: stretch;
  min-height: 650px;
  margin: -44px -7vw -60px -40px;
  overflow: hidden;
  background: radial-gradient(circle at 52% 45%, rgba(214,185,74,.08), transparent 42%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 100%);
}
.hero-robot-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.hero-robot-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .35s ease;
}
.hero-robot-stage.is-loaded canvas { opacity: 1; }
.robot-loading {
  position: absolute;
  inset: auto 20px 20px;
  z-index: 3;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-robot { min-height: 430px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-robot-stage {
    min-height: 470px;
    margin: 0 -28px -60px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 100%);
  }
}
@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero-robot, .about-robot { min-height: 360px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .social-links { grid-template-columns: repeat(2, 1fr); }
  .hero-robot-stage { min-height: 360px; margin: 0 -18px -54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

