/* Anubis Client: dark Egyptian theme, flat colors only, no gradients */

:root {
  --bg: #0c0a06;
  --bg-raise: #141009;
  --panel: #191409;
  --panel-deep: #0f0c05;
  --line: #33270f;
  --line-soft: #241d10;
  --gold: #d9a93f;
  --gold-strong: #f0c453;
  --gold-soft: #e6c26f;
  --gold-dim: #8a6a25;
  --ink: #efe7d5;
  --ink-muted: #a0957e;
  --radius: 8px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Cascadia Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

::selection { background: var(--gold); color: #1a1206; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #1a1206; padding: 10px 18px;
  font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 2px; }

/* Ornamental chamfer used on framed blocks */
.chamfer {
  clip-path: polygon(
    10px 0, calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 0 calc(100% - 10px), 0 10px
  );
}

/* Ticker */

.ticker {
  background: var(--gold);
  overflow: hidden;
  border-bottom: 1px solid var(--gold-dim);
}

.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }

.ticker-group {
  display: flex; align-items: center; gap: 20px;
  padding: 7px 10px;
}

.ticker-group span {
  color: #1a1206; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
}

.ticker-group i {
  width: 6px; height: 6px; background: #1a1206;
  rotate: 45deg; flex: 0 0 auto;
}

@keyframes ticker { from { translate: 0 0; } to { translate: -50% 0; } }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 10, 6, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold); text-decoration: none;
}

.brand-mark { width: 30px; height: 34px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 0.24em; color: var(--ink);
}

.brand-sub { color: var(--gold); }

.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; }

.site-nav a:not(.nav-cta) {
  position: relative;
  color: var(--ink-muted); text-decoration: none;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.15s ease;
}

.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.2s ease;
}

.site-nav a:not(.nav-cta):hover { color: var(--gold-strong); }
.site-nav a:not(.nav-cta):hover::after { width: 100%; }

.site-nav .nav-cta {
  color: #1a1206; background: var(--gold);
  padding: 10px 22px; border-radius: 4px; font-weight: 800;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: background 0.15s ease;
}
.site-nav .nav-cta:hover { background: var(--gold-strong); }

.nav-toggle { display: none; }

/* Hero */

.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-watermark {
  position: absolute; right: -70px; top: 50%;
  width: 560px; height: 630px; translate: 0 -50%;
  color: var(--gold); opacity: 0.045;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 64px; align-items: center;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 22px;
}

.eyebrow-diamond { color: var(--gold-dim); font-size: 9px; }

.hero-title {
  font-family: var(--font-display);
  font-size: 74px; line-height: 1.02; letter-spacing: 0.05em;
  color: var(--ink); margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--gold);
  text-shadow: 0 0 0 transparent;
}

.hero-lead {
  color: var(--ink-muted); font-size: 17px; max-width: 520px; margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 42px; justify-content: start;
}

.stat { position: relative; padding-left: 14px; }
.stat::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 2px; background: var(--gold-dim);
}

.stat dt {
  color: var(--ink-muted); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 3px;
}

.stat dd { color: var(--gold-strong); font-family: var(--font-display); font-size: 24px; }

/* Hero panel mock */

.hero-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-panel::before {
  content: ""; display: block; width: 100%; height: 3px;
  background: var(--gold); margin: -10px 0 16px;
}

.panel-title {
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}

.panel-title::before {
  content: "◆"; font-size: 8px; color: var(--gold-dim);
}

.panel-list { list-style: none; }

.panel-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 6px; border-bottom: 1px solid var(--line-soft);
  font-size: 14px; color: var(--ink);
  font-family: var(--font-mono); font-size: 13px;
}

.panel-list li:last-child { border-bottom: 0; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot-on { background: var(--gold); box-shadow: 0 0 0 3px rgba(217, 169, 63, 0.15); }
.dot-off { background: var(--line); }

.tag {
  margin-left: auto; color: var(--gold-dim); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px;
  clip-path: polygon(
    10px 0, 100% 0, 100% calc(100% - 10px),
    calc(100% - 10px) 100%, 0 100%, 0 10px
  );
  font-family: var(--font-body); font-size: 13px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--gold); color: #1a1206; }
.btn-primary:hover { background: var(--gold-strong); }

.btn-ghost {
  background: rgba(217, 169, 63, 0.06); color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold-dim);
}
.btn-ghost:hover { color: var(--gold-strong); box-shadow: inset 0 0 0 1px var(--gold); }

.btn-lg { padding: 16px 36px; font-size: 14px; }

/* Sections */

section { padding: 96px 0; }

.section-head { text-align: center; margin-bottom: 56px; }

.section-kicker {
  color: var(--gold-dim); font-size: 12px; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase; margin-bottom: 12px;
}

.section-kicker::before, .section-kicker::after {
  content: "◆"; font-size: 8px; color: var(--gold-dim); margin: 0 14px;
  vertical-align: 2px;
}

.section-title {
  font-family: var(--font-display); font-size: 40px; letter-spacing: 0.04em;
  color: var(--ink); margin-bottom: 14px;
}

.section-lead {
  color: var(--ink-muted); font-size: 16px;
  max-width: 600px; margin: 0 auto;
}

/* Features */

.features { border-bottom: 1px solid var(--line-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 28px;
  transition: border-color 0.2s ease, translate 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px;
  height: 2px; background: var(--gold-dim);
  transition: background 0.2s ease;
}

.card:hover {
  border-color: var(--gold-dim); translate: 0 -4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.card:hover::before { background: var(--gold); }

.card-icon {
  width: 44px; height: 44px; color: var(--gold);
  margin-bottom: 20px;
  background: rgba(217, 169, 63, 0.08);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.card p { color: var(--ink-muted); font-size: 14.5px; }

/* Modules */

.modules { background: var(--bg-raise); border-bottom: 1px solid var(--line-soft); }

.module-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 34px;
}

.module-tab {
  background: transparent; color: var(--ink-muted);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 26px; font-family: var(--font-body); font-size: 12px;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.module-tab:hover { color: var(--gold-strong); border-color: var(--gold-dim); }

.module-tab[aria-selected="true"] {
  color: #1a1206; background: var(--gold); border-color: var(--gold);
}

.module-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}

.module-item {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  transition: border-color 0.15s ease;
}

.module-item:hover { border-color: var(--gold-dim); }

.module-item::before {
  content: "◆";
  color: var(--gold-dim); font-size: 9px; width: 100%; margin-bottom: 8px;
}

.module-name {
  font-family: var(--font-mono); font-size: 16px; color: var(--gold-strong);
}

.module-desc { color: var(--ink-muted); font-size: 13.5px; margin-top: 5px; }

.module-item[hidden] { display: none; }

/* Gallery */

.gallery { border-bottom: 1px solid var(--line-soft); }

.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.shot-frame {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); height: 200px; position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.shot:hover .shot-frame { border-color: var(--gold-dim); }

.shot figcaption {
  color: var(--ink-muted); font-size: 13px; margin-top: 12px;
  text-align: center;
}

.shot-a .shot-hud {
  position: absolute; top: 16px; left: 16px;
  display: flex; flex-direction: column; gap: 6px;
}

.hud-box {
  background: var(--panel-deep); border: 1px solid var(--line);
  color: var(--gold); font-family: var(--font-mono); font-size: 11px;
  padding: 4px 9px;
}

.shot-scan {
  position: absolute; right: 18px; bottom: 18px;
  width: 78px; height: 78px; border: 1px solid var(--gold-dim);
  border-radius: 50%;
}
.shot-scan::after {
  content: ""; position: absolute; inset: 16px;
  border: 1px dashed var(--line); border-radius: 50%;
}
.shot-scan::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 12px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.shot-b { background: var(--panel-deep); }

.shot-b .shot-menu {
  position: absolute; top: 20px; left: 50%; translate: -50% 0;
  width: 70%; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.shot-menu-head {
  color: var(--gold); font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

.shot-menu-row {
  color: var(--ink-muted); font-size: 12.5px; font-family: var(--font-mono);
  padding: 3px 8px; border-left: 2px solid var(--line);
}

.shot-menu-row.on {
  color: var(--ink); border-left-color: var(--gold);
  background: var(--line-soft);
}

.shot-c { background: var(--panel-deep); }

.shot-chunks {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; padding: 14px;
}

.chunk {
  background: var(--line-soft); border: 1px solid var(--line);
  position: relative;
}
.chunk.hot { background: var(--gold-dim); border-color: var(--gold); }
.chunk.hot::after {
  content: ""; position: absolute; inset: 30% 38%;
  background: var(--gold-strong); rotate: 45deg;
}

/* FAQ */

.faq { border-bottom: 1px solid var(--line-soft); }

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0;
  transition: border-color 0.15s ease;
}

.faq-item[open] { border-color: var(--gold-dim); }

.faq-item summary {
  cursor: pointer; padding: 20px 24px;
  font-family: var(--font-display); font-size: 18px; letter-spacing: 0.03em;
  color: var(--ink); list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+"; float: right; color: var(--gold); font-weight: 700;
  font-size: 20px; line-height: 1;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p { color: var(--ink-muted); padding: 0 24px 22px; font-size: 14.5px; }

/* Download */

.download { padding-top: 90px; padding-bottom: 110px; }

.download-box {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 64px 56px 52px;
  text-align: center;
  position: relative;
}

.download-box::before, .download-box::after {
  content: "◆"; position: absolute; top: 50%;
  color: var(--gold-dim); font-size: 12px;
}
.download-box::before { left: 22px; }
.download-box::after { right: 22px; }

.download-box .section-lead { margin-bottom: 34px; }

.version-card {
  display: inline-flex; align-items: center; gap: 28px;
  background: var(--panel-deep); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 30px; margin-bottom: 36px;
  text-align: left;
}

.version-num {
  font-family: var(--font-display); font-size: 44px;
  color: var(--gold-strong); letter-spacing: 0.04em;
}

.version-meta { display: flex; flex-direction: column; gap: 6px; }

.version-line {
  color: var(--ink-muted); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.version-hash {
  color: var(--gold); font-family: var(--font-mono);
  font-size: 12.5px;
}

.version-hash-full {
  max-width: 360px;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 11.5px;
  line-height: 1.5;
}

.download-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 38px;
}

.safety-list {
  list-style: none; text-align: left; max-width: 500px; margin: 0 auto;
  border-top: 1px solid var(--line-soft); padding-top: 28px;
}

.safety-list li {
  color: var(--ink-muted); font-size: 13.5px; padding-left: 22px;
  position: relative; margin-bottom: 9px;
}

.safety-list li::before {
  content: "◆"; position: absolute; left: 0; top: 2px;
  color: var(--gold-dim); font-size: 9px;
}

/* Footer */

.site-footer {
  background: var(--bg-raise); border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 22px;
}

.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); letter-spacing: 0.24em;
  font-size: 15px; color: var(--gold);
}

.footer-logo { width: 26px; height: 30px; }

.footer-nav { display: flex; gap: 26px; }

.footer-nav a {
  color: var(--ink-muted); text-decoration: none; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-nav a:hover { color: var(--gold-strong); }

.footer-ornament {
  text-align: center; color: var(--gold-dim); font-size: 10px;
  letter-spacing: 18px; padding-left: 18px; margin-bottom: 18px;
}

.footer-note {
  color: var(--ink-muted); font-size: 12.5px; text-align: center;
  border-top: 1px solid var(--line-soft); padding-top: 24px; max-width: 760px;
  margin: 0 auto;
}

/* Reveal animation */

.reveal { opacity: 0; translateY(16px); transition: opacity 0.55s ease, translate 0.55s ease; }
.reveal.visible { opacity: 1; translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; translateY(0); transition: none; }
}

/* Responsive */

@media (max-width: 980px) {
  .hero-watermark { width: 400px; height: 450px; right: -140px; opacity: 0.03; }
}

@media (max-width: 900px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-title { font-size: 54px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 26px; }
  section { padding: 72px 0; }
  .feature-grid, .shot-grid { grid-template-columns: 1fr 1fr; }
  .module-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .feature-grid, .shot-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
  .download-box { padding: 44px 26px 40px; }
  .version-card { flex-direction: column; text-align: center; gap: 12px; }

  .nav-toggle {
    display: block; background: transparent; border: 1px solid var(--line);
    border-radius: 4px; padding: 9px 10px; cursor: pointer;
  }

  .nav-toggle-box { display: flex; flex-direction: column; gap: 4px; }
  .nav-toggle-box span { width: 18px; height: 2px; background: var(--gold); display: block; }

  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-raise); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-header { position: sticky; }
  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px; }
  .site-nav li { padding: 9px 0; }
  .site-nav .nav-cta { display: inline-block; margin-top: 8px; }
}
