@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Share+Tech+Mono&display=swap");

/* ═══════════════════════════════════════════════════════════
   Stylesheets for "Where The X am AI?", one per UI area, linked from
   index.html in this order — the order is part of the cascade, since later
   files override earlier ones at equal specificity:
     base.css      design tokens, reset, base, landing page (this file)
     chat.css      the AI Me chat (its bubbles/composer are reused by Gamex)
     shell.css     icon rail, the panel, content widths, mobile
     wherex.css … gamex_archon_varx.css   one per view, as in js/
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. Design Tokens ──────────────────────────────────── */

:root {
  --gold:       #D4A017;
  --gold-lt:    #FFD700;
  --gold-dim:   #8B6914;
  --parchment:  #1a1005;
  --ink:        #0d0802;
  --circuit:    #2a1e00;
  --text:       #e8d5a0;
  --text-dim:   #9a8050;
  --shadow:     0 20px 60px rgba(0, 0, 0, 0.6);
  --serif:      "Crimson Pro", Georgia, serif;
  --sans:       "Share Tech Mono", system-ui, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────── */

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

/* ─── Base ──────────────────────────────────────────────── */

html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

/* Scanline overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* Circuit grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--circuit) 1px, transparent 1px),
    linear-gradient(90deg, var(--circuit) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

/* Shared X-mark accent */
.x-mark {
  color: var(--gold-lt);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ─── Shared keyframes ──────────────────────────────────── */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.5;  transform: scale(1.04); }
}

@keyframes flicker {
  0%, 92%, 95%, 100% { opacity: 1; }
  93%                 { opacity: 0.85; }
  94%                 { opacity: 1; }
}

@keyframes spin-wobble {
  0%, 100% { transform: rotate(0deg)  scale(1); }
  25%       { transform: rotate(3deg)  scale(1.05); }
  75%       { transform: rotate(-3deg) scale(1.05); }
}


/* ═══════════════════════════════════════════════════════════
   2. LANDING PAGE  (html/index.html)
   ═══════════════════════════════════════════════════════════ */

main {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 2rem;
}

/* ─── Hero Icon ──────────────────────────────────────────── */

.icon-hero {
  position: relative;
  width: 160px;
  height: 160px;
  animation: float 4s ease-in-out infinite;
}

.icon-hero svg {
  width: 100%;
  height: 100%;
}

.icon-hero::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  animation: pulse-ring 3s ease-in-out infinite;
}

.icon-hero::after {
  content: "";
  position: absolute;
  inset: -28px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse-ring 3s ease-in-out 0.6s infinite;
}

/* ─── Headline ───────────────────────────────────────────── */

.headline {
  font-family: "Cinzel Decorative", serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--gold);
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: rgba(212, 160, 23, 0.3) 0px 0px 40px;
  animation: flicker 8s ease-in-out infinite;
}

.headline .x-mark {
  color: var(--gold-lt);
  display: inline-block;
  animation: spin-wobble 6s ease-in-out infinite;
}

/* ─── Subtitle ───────────────────────────────────────────── */

.subtitle {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: var(--text-dim);
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
}

/* ─── Slogan ─────────────────────────────────────────────── */

.slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: clamp(14px, 2.5vw, 20px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: rgba(255, 215, 120, 0.85);
  margin-top: 0;
  gap: 0.3em;
}

.slogan span      { display: block; }
.slogan .highlight { font-style: italic; opacity: 0.95; }

/* ─── Divider ────────────────────────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(480px, 90%);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
  opacity: 0.4;
}

.divider-node {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

/* ─── Map Card ───────────────────────────────────────────── */

.map-card {
  width: min(520px, 90%);
  background: rgba(26, 16, 5, 0.8);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  position: relative;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}

/* Inner dashed border */
.map-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(139, 105, 20, 0.25);
  border-radius: 2px;
  pointer-events: none;
}

/* Corner dots */
.map-card .corner {
  position: absolute;
  width: 10px;
  height: 10px;
}

.map-card .corner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  border-radius: 50%;
}

.map-card .corner.tl { top: -1px;    left: -1px; }
.map-card .corner.tr { top: -1px;    right: -1px; }
.map-card .corner.bl { bottom: -1px; left: -1px; }
.map-card .corner.br { bottom: -1px; right: -1px; }

.map-card p + p { margin-top: 1rem; }

.map-card em {
  color: var(--gold);
  font-style: italic;
}

.map-card code {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85em;
  color: var(--gold-lt);
  background: rgba(255, 215, 0, 0.08);
  padding: 1px 5px;
  border-radius: 2px;
}

/* ─── Swatch Row ─────────────────────────────────────────── */

.swatch-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch img,
.swatch svg {
  image-rendering: pixelated;
  border-radius: 4px;
}

.swatch-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ─── Footer ─────────────────────────────────────────────── */

footer {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-align: center;
  padding-bottom: 1.5rem;
  opacity: 0.6;
  line-height: 2;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dashed var(--gold-dim);
  transition: color 0.2s, border-color 0.2s;
}

footer a:visited { color: var(--text-dim); }

footer a:hover,
footer a:active {
  color: var(--gold-lt);
  border-bottom-color: var(--gold);
}

footer .footer-divider {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--gold-dim);
  opacity: 0.5;
}

footer .attribution {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  opacity: 0.75;
  font-weight: 700;
}

footer .attribution em {
  color: var(--gold);
  font-style: normal;
}
