/* ================================
   GlyphLight Archivist – Site Theme
   ================================ */

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

:root {
  /* Palette */
  --bg: #020617;            /* near black */
  --bg-panel: rgba(3, 7, 18, 0.92);
  --bg-panel-soft: rgba(15, 23, 42, 0.9);
  --text-main: #f9fafb;      /* soft white */
  --text-muted: #cbd5f5;
  --gold: #fbbf24;
  --gold-soft: #facc15;
  --orange: #f97316;
  --yellow: #fef08a;
  --teal: #0f766e;
  --blue-deep: #082f49;
  --border-soft: rgba(248, 250, 252, 0.08);

  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.6);

  --font-main: "YourFontName", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-display: "YourFontName", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg);
  min-height: 100%;
  line-height: 1.5;
}

/* Background image + glow overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.2), transparent 55%),
    radial-gradient(circle at bottom, rgba(8, 47, 73, 0.5), transparent 65%),
    url("/assets/img/GlyphLight_Archivist_Banner.png") center / cover no-repeat fixed;
  opacity: 0.68;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.86),
    rgba(15, 23, 42, 0.98)
  );
  mix-blend-mode: multiply;
  z-index: -1;
}

/* Main layout container */
.site-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3.5rem;
}

/* ================================
   NAV
   ================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-bottom: 2.5rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at top left, #111827, #020617)
    border-box;
  border: 1px solid rgba(248, 250, 252, 0.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, var(--yellow), var(--gold))
    padding-box;
  border: 1px solid rgba(248, 250, 252, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #111827;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-main {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.86rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 0.18s ease-out;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 0.6rem;
}

/* ================================
   Buttons – stone style
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(248, 250, 252, 0.15);
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98)),
    url("/assets/img/btn-stone.png") center / cover no-repeat;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(248, 250, 252, 0.08),
    transparent 45%,
    rgba(8, 47, 73, 0.6),
    rgba(248, 250, 252, 0.1)
  );
  opacity: 0.85;
  mix-blend-mode: soft-light;
  z-index: -1;
}

.btn-primary {
  border-color: rgba(250, 191, 36, 0.9);
  background:
    linear-gradient(135deg, #f59e0b, #facc15),
    url("/assets/img/btn-stone.png") center / cover no-repeat;
  color: #111827;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.6);
}

.btn-ghost {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1)),
    url("/assets/img/btn-stone.png") center / cover no-repeat;
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 22px rgba(8, 47, 73, 0.8);
}

/* ================================
   HERO
   ================================ */

main {
  margin-top: 1rem;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;

  /* DEBUG styles – TEMP ONLY */
  outline: 4px solid magenta !important;
  background: rgba(0, 0, 0, 0.7) !important;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero-title span {
  background: linear-gradient(120deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.hero-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0.6rem;
}

.hero-footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Right hero visual (HUD cards) */

.hero-visual {
  justify-self: stretch;
}

.hero-visual-inner {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.95),
      rgba(8, 47, 73, 0.95)
    ),
    radial-gradient(circle at top, rgba(250, 204, 21, 0.25), transparent 60%);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-deep);
}

.hero-grid {
  display: grid;
  gap: 1rem;
}

.hero-mini {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(248, 250, 252, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.hero-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(248, 250, 252, 0.06),
    transparent 45%,
    rgba(8, 47, 73, 0.9)
  );
  mix-blend-mode: soft-light;
  opacity: 0.6;
  pointer-events: none;
}

.hero-mini-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

.hero-mini-body {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-chip {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(15, 118, 110, 0.25);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #e0f2fe;
}

/* === Dark Fantasy Hero Banner ================================ */
/* Uses: assets/img/GlyphLight_Archivist_Banner.png              */

.hero.hero--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(3, 0, 15, 0.94), rgba(9, 3, 30, 0.78)),
    url("/assets/img/GlyphLight_Archivist_Banner.png");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  z-index: 0;
}

/* Make sure the existing hero content sits above the banner */
.hero.hero--banner > * {
  position: relative;
  z-index: 1;
}

/* ================================
   SECTIONS / FEATURE GRID
   ================================ */

.section {
  padding: 2.5rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(24px);
}

.section-header {
  text-align: left;
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature-card {
  padding: 1rem;
  border-radius: 14px;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.feature-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.feature-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.feature-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.feature-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

/* ================================
   CALLOUT
   ================================ */

.callout {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(8, 47, 73, 0.9),
    rgba(24, 24, 27, 0.98)
  );
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.callout h3 {
  font-size: 1.1rem;
}

.callout p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ================================
   FOOTER
   ================================ */

footer {
  margin-top: 2.2rem;
}

.footer-inner {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding-inline: 1rem;
  }

  .section {
    padding-inline: 1rem;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-cta {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
