/* ============================================================
   TeBo Production — dark fantasy site theme
   ============================================================ */

:root {
  --bg: #0b0806;
  --bg-2: #120d09;
  --panel: #14100b;
  --panel-2: #1a130d;
  --gold: #c9a24b;
  --gold-bright: #e9cd8a;
  --gold-dim: #8a6d35;
  --gold-line: rgba(201, 162, 75, 0.35);
  --gold-line-soft: rgba(201, 162, 75, 0.18);
  --text: #d9ccb2;
  --muted: #a3937a;
  --ember: #ff8c2e;
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'EB Garamond', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

:target, section[id], main[id] { scroll-margin-top: 90px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(60, 36, 16, 0.35), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='0.045'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- ornaments ---------- */

.flourish {
  display: inline-block;
  width: 64px;
  height: 10px;
  background: var(--gold-dim);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'><path d='M0 4.5h46v1H0z'/><rect x='50' y='1' width='7' height='7' transform='rotate(45 53.5 4.5)'/><rect x='59.5' y='3' width='3' height='3' transform='rotate(45 61 4.5)'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'><path d='M0 4.5h46v1H0z'/><rect x='50' y='1' width='7' height='7' transform='rotate(45 53.5 4.5)'/><rect x='59.5' y='3' width='3' height='3' transform='rotate(45 61 4.5)'/></svg>") no-repeat center / contain;
  flex: none;
}
.flourish.left { transform: scaleX(-1); }

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-top: 1px solid var(--gold-line);
  border-left: 1px solid var(--gold-line);
  pointer-events: none;
}
.corner::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 7px;
  height: 7px;
  background: var(--gold-dim);
  transform: rotate(45deg);
}
.corner.tl { top: -1px; left: -1px; }
.corner.tr { top: -1px; right: -1px; transform: rotate(90deg); }
.corner.br { bottom: -1px; right: -1px; transform: rotate(180deg); }
.corner.bl { bottom: -1px; left: -1px; transform: rotate(270deg); }

.divider {
  height: 11px;
  margin: 0 auto;
  width: min(420px, 70%);
  background: var(--gold-dim);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 11' preserveAspectRatio='none'><path d='M0 5h190v1H0zM230 5h190v1H230z'/><rect x='205' y='0.5' width='10' height='10' transform='rotate(45 210 5.5)'/></svg>") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 11' preserveAspectRatio='none'><path d='M0 5h190v1H0zM230 5h190v1H230z'/><rect x='205' y='0.5' width='10' height='10' transform='rotate(45 210 5.5)'/></svg>") no-repeat center / 100% 100%;
}

/* ---------- buttons ---------- */

.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
}

.btn-ornate {
  background: linear-gradient(135deg, #6a5433, #c9a24b 45%, #6a5433);
  padding: 1px;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  transition: filter 0.25s;
}
.btn-ornate > span {
  display: block;
  padding: 0.9em 2.6em;
  color: var(--gold-bright);
  background:
    radial-gradient(ellipse 90% 120% at 50% 130%, rgba(120, 70, 20, 0.35), transparent 60%),
    linear-gradient(180deg, #1c150d, #120d08);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: background 0.25s, color 0.25s;
}
.btn-ornate:hover { filter: brightness(1.25) drop-shadow(0 0 12px rgba(201, 162, 75, 0.35)); }
.btn-ornate:hover > span { color: #fff3d6; }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  border: 1px solid var(--gold-line);
  padding: 0.65em 1.4em;
  color: var(--text);
  background: rgba(201, 162, 75, 0.06);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.btn-discord svg { width: 18px; height: 18px; fill: #8c9eff; flex: none; }
.btn-discord:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-bright);
}

/* ---------- scrollbar ---------- */

html { scrollbar-color: var(--gold-dim) #0e0a07; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #0e0a07; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6a5433, #8a6d35);
  border: 3px solid #0e0a07;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 7, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-line-soft);
  transition: background 0.3s;
}
.site-header.scrolled { background: rgba(8, 6, 4, 0.96); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.6rem 0;
}

.brand { position: relative; z-index: 5; display: block; flex: none; }
.brand img {
  height: 122px;
  width: auto;
  margin: -14px 0 -56px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.65));
  transition: transform 0.3s;
}
.brand:hover img { transform: scale(1.04); }

.main-nav {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 1.3rem;
  padding: 0.25em 0.55em;
  cursor: pointer;
  line-height: 1;
}

/* ---------- hero (homepage) ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center top / cover no-repeat, var(--bg-2);
  background-image: image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
}
.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 8, 6, 0.55) 0%, rgba(11, 8, 6, 0.08) 28%, rgba(11, 8, 6, 0.18) 52%, rgba(11, 8, 6, 0.55) 72%, rgba(11, 8, 6, 0.88) 86%, var(--bg) 97%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 1rem 5rem;
  max-width: 820px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--gold-bright);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 140, 46, 0.15);
  text-transform: uppercase;
}
.hero .hero-sub-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.4rem;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
}
.hero p {
  margin: 1.6rem auto 2.4rem;
  max-width: 480px;
  font-size: 1.2rem;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- page hero (subpages) ---------- */

.page-hero {
  position: relative;
  text-align: center;
  padding: 6.5rem 1rem 4rem;
  background: url("../img/hero.jpg") center top / cover no-repeat, var(--bg-2);
  background-image: image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 8, 6, 0.75), rgba(11, 8, 6, 0.5) 42%, rgba(11, 8, 6, 0.75) 68%, rgba(11, 8, 6, 0.92) 85%, var(--bg) 97%);
}
.page-hero > * { position: relative; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}
.page-hero p {
  margin-top: 0.8rem;
  color: var(--text);
  font-size: 1.15rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

/* ---------- main ornate panel ---------- */

.ornate-panel {
  position: relative;
  border: 1px solid var(--gold-line-soft);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201, 162, 75, 0.045), transparent 70%),
    var(--panel);
  padding: 1rem 0 3rem;
  margin: 0 auto 4rem;
}

/* ---------- sections ---------- */

.section { padding: 3.5rem 0 1.5rem; }

.section-head { text-align: center; margin-bottom: 2.4rem; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.section-sub {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.section-cta { text-align: center; margin-top: 2.2rem; }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.frame-card {
  position: relative;
  border: 1px solid var(--gold-line-soft);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 9px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.frame-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(201, 162, 75, 0.08);
}
.frame-card .frame-img {
  position: relative;
  border: 1px solid rgba(201, 162, 75, 0.22);
  overflow: hidden;
}
.frame-card .frame-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s;
}
.frame-card:hover .frame-img img { transform: scale(1.04); }
.frame-card.landscape .frame-img img { aspect-ratio: 16 / 9; }

.card-body { padding: 1rem 0.6rem 0.5rem; text-align: center; }
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-body p { margin-top: 0.4rem; color: var(--muted); font-size: 1rem; }

.card-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.card-tags span {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--gold-line-soft);
  padding: 0.28em 0.75em;
}

.badge-soon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0b0806;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 0.35em 0.9em;
}

/* ---------- carousel ---------- */

.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.carousel {
  overflow: hidden;
  flex: 1;
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}
.carousel-slide {
  flex: 0 0 50%;
  padding: 0 0.8rem;
  min-width: 0;
}
.carousel-arrow {
  background: none;
  border: none;
  color: var(--gold-dim);
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.25s, transform 0.2s;
  flex: none;
}
.carousel-arrow:hover { color: var(--gold-bright); transform: scale(1.15); }
.carousel-arrow svg { width: 22px; height: 40px; display: block; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--gold-dim);
  background: transparent;
  transform: rotate(45deg);
  cursor: pointer;
  transition: background 0.25s;
}
.carousel-dots button.active { background: var(--gold); border-color: var(--gold); }

/* ---------- systems showcase ---------- */

.systems-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}

.ui-mock-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ui-mock {
  border: 1px solid var(--gold-line-soft);
  background: linear-gradient(180deg, #17110b, #100c08);
  padding: 0.7rem;
  font-family: var(--font-display);
}
.ui-mock .ui-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--gold-line-soft);
  margin-bottom: 0.6rem;
}
.ui-mock .ui-title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  flex: none;
}
.ui-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.2rem;
  border-bottom: 1px solid rgba(201, 162, 75, 0.07);
}
.ui-row i {
  width: 14px;
  height: 14px;
  flex: none;
  background: linear-gradient(135deg, #3a2c18, #241b10);
  border: 1px solid rgba(201, 162, 75, 0.25);
}
.ui-row b {
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.35), rgba(201, 162, 75, 0.08));
}
.ui-row b.w60 { width: 60%; }
.ui-row b.w45 { width: 45%; }
.ui-row b.w70 { width: 70%; }
.ui-row b.w35 { width: 35%; }
.ui-row s {
  margin-left: auto;
  width: 26px;
  height: 10px;
  background: rgba(255, 140, 46, 0.25);
  border: 1px solid rgba(255, 140, 46, 0.3);
  flex: none;
}

.feature-card {
  position: relative;
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(201, 162, 75, 0.07), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}
.feature-card .feature-kind {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.feature-list { list-style: none; margin: 1.2rem 0 1.6rem; }
.feature-list li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.6rem;
  color: var(--text);
  font-size: 1.05rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 8px;
  height: 8px;
  background: var(--gold-dim);
  transform: rotate(45deg);
}
.feature-card .btn-ornate { align-self: flex-start; margin-top: auto; }

/* ---------- content pages ---------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.18rem;
}
.prose p + p { margin-top: 1.1rem; }
.prose strong { color: var(--gold); font-weight: 600; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.value-card {
  position: relative;
  border: 1px solid var(--gold-line-soft);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.value-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.value-card .glyph {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--gold);
}
.value-card .glyph svg { width: 100%; height: 100%; }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.value-card p { margin-top: 0.6rem; color: var(--muted); font-size: 1.02rem; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.contact-card {
  position: relative;
  border: 1px solid var(--gold-line-soft);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 2rem 1.7rem;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.8rem;
}
.contact-card p { color: var(--muted); margin-bottom: 1.4rem; }

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gold-line-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.65em 0.85em;
  transition: border-color 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn-ornate { margin-top: 1.4rem; border: none; font: inherit; }

/* ---------- lightbox ---------- */

.frame-card .frame-img img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  background: rgba(6, 4, 3, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure {
  position: relative;
  max-width: min(1200px, 94vw);
  max-height: 92vh;
  border: 1px solid var(--gold-line);
  padding: 8px;
  background: var(--panel);
}
.lightbox img {
  max-width: 100%;
  max-height: calc(92vh - 70px);
  object-fit: contain;
  cursor: default;
}
.lightbox figcaption {
  padding: 0.7rem 0.4rem 0.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-line);
  background: var(--panel-2);
  color: var(--gold-bright);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.lightbox-close:hover { background: #241a10; transform: rotate(90deg); }

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gold-line-soft);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  margin-bottom: 0.9rem;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--gold-line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-item summary::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--gold-dim);
  transform: rotate(45deg);
  transition: transform 0.3s, background 0.3s;
}
.faq-item[open] summary::before {
  transform: rotate(225deg);
  background: var(--gold);
}
.faq-item .faq-body {
  padding: 0 1.3rem 1.2rem 3.2rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- 404 ---------- */

.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: url("../img/hero.jpg") center top / cover no-repeat, var(--bg-2);
  background-image: image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
}
.page-404::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 8, 6, 0.7), rgba(11, 8, 6, 0.5) 45%, rgba(11, 8, 6, 0.8) 72%, rgba(11, 8, 6, 0.94) 87%, var(--bg) 97%);
}
.page-404 > div { position: relative; padding: 6rem 1rem; }
.page-404 .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 60px rgba(255, 140, 46, 0.25), 0 2px 24px rgba(0, 0, 0, 0.8);
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1rem 0 0.6rem;
}
.page-404 p { color: var(--text); margin-bottom: 2rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--gold-line-soft);
  background: linear-gradient(180deg, var(--bg), #080604);
  padding: 3.5rem 0 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 2.5rem;
}
.footer-brand img { height: 110px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 1.02rem; max-width: 320px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col ul a { color: var(--muted); font-size: 1.02rem; }
.footer-col ul a:hover { color: var(--gold-bright); }
.footer-col p { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.2rem; }

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(201, 162, 75, 0.1);
  padding: 1.2rem 0;
  text-align: center;
  color: #6f6350;
  font-size: 0.95rem;
}
.footer-bottom p { margin: 0 auto 0.35rem; max-width: 640px; padding: 0 1rem; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .systems-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 1.2rem; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 1rem; }
  .brand img { height: 88px; margin: -10px 0 -34px; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    order: 10;
    padding-bottom: 0.8rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.55em 0; border-bottom: 1px solid rgba(201, 162, 75, 0.08); }
  .header-inner > .btn-discord { display: none; }

  .hero h1 { font-size: 1.85rem; letter-spacing: 0.04em; }
  .hero-content { width: 100%; max-width: 100%; padding-left: 1.2rem; padding-right: 1.2rem; }

  .card-grid { grid-template-columns: 1fr; }
  .carousel-slide { flex: 0 0 100%; }
  .ui-mock-stack { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 64vh; }
}
