@font-face {
  font-family: "Norse";
  src: url("Norsebold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}
:root {
  --bg-dark: #101114;        /* deep slate with hint of brown */
  --bg-panel: #191d21;       /* panel/section background */
  --stone: #3b424a;          /* steel stone */
  --wood: #4c3724;           /* warm wood */
  --cream: #f3e4cf;          /* parchment / creamy white */
  --sky: #7fa4c5;            /* nordic blue */
  --accent: #c7904a;         /* warm bronze/brown */
  --rust: #7a4a2b;           /* soft rust tone */
  --text-main: #f7f7f7;
  --text-muted: #c2c6cf;
  --border-subtle: rgba(255, 255, 255, 0.06);

  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* GLOBAL */

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

body.noer-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
  radial-gradient(circle at bottom, rgba(194, 135, 74, 0.15) 0%, transparent 70%),
  radial-gradient(circle at top, #222834 0, #111318 55%, #060508 100%);
  color: var(--text-main);
}

.noer-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

/* HERO (TITLE ON SLAB) */

.hero {
  margin-bottom: 32px;
}

.hero-slab {
  background: linear-gradient(
    135deg,
    #2a3037 0%,
    #576069 35%,
    #6a747e 50%,
    #343941 100%
  ); /* steel blade gradient */
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

/* brushed metal / subtle texture */
.hero-slab::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.05) 0,
      transparent 40%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
  opacity: 0.7;
  pointer-events: none;
}

/* moving blade shine */
.hero-slab::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -70%;           /* start well off the left side */
  width: 90%;           /* wide diagonal beam */
  height: 180%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 30%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.0) 70%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
  animation: bladeSweep 10s ease-in-out infinite;
}

/* one quick pass across the slab, then long rest */
@keyframes bladeSweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  45% {
    transform: translateX(0);
    opacity: 0;
  }
  55% {
    opacity: 0.65;                     /* flare appears */
  }
  70% {
    transform: translateX(170%);       /* pass fully across */
    opacity: 0;                        /* fades out as it exits */
  }
  100% {
    transform: translateX(170%);
    opacity: 0;
  }
}

.hero-title {
  font-family: "Norse", sans-serif;
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;

  /* 🔥 This creates a dark engraved edge */
  -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.75);

  /* 🔥 This creates a faint inner molten glow */ 
  text-shadow:
      0 0 4px rgba(255, 110, 40, 0.45),
      0 0 10px rgba(255, 80, 25, 0.28),
      0 0 18px rgba(190, 60, 18, 0.2);
  }
.hero-title::before {
  content: "";
  position: absolute;
  top: 58%;
  left: 50%;
  width: 120%;
  height: 65%;
  transform: translate(-50%, -50%);

  /* 🔥 An elongated, horizontal molten glow */
  background: radial-gradient(
    ellipse at center,
    rgba(255, 110, 40, 0.55) 0%,
    rgba(255, 70, 20, 0.35) 25%,
    rgba(160, 40, 18, 0.18) 55%,
    transparent 75%
  );

  filter: blur(16px);   /* less blur = looks more realistic */
  pointer-events: none;

  @keyframes emberPulse {
    0%   { opacity: 0.75; }
    50%  { opacity: 0.5; }
    100% { opacity: 0.75; }
  }

  /* and */
  animation: emberPulse 6s ease-in-out infinite;
}

.hero-subtitle {
  margin-top: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
/* SECTIONS */

.about,
.actions,
.footer,
.apps-header,
.apps-list {
    background:
    linear-gradient(145deg, var(--bg-panel), #151114),
    url("https://www.transparenttextures.com/patterns/old-wall.png");
  background-size: cover;
  background-blend-mode: multiply;
  opacity: 0.98;
  border-radius: var(--radius-md);
  padding: 20px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
  border-bottom-color: rgba(122, 74, 43, 0.45); /* subtle rust edge */
}
/* subtle forge-glow underneath each panel */
.about,
.actions,
.footer,
.apps-header,
.apps-list {
  position: relative;
}

.about::after,
.actions::after,
.footer::after,
.apps-header::after,
.apps-list::after {
  content: "";
  position: absolute;
  bottom: -6px;           /* just below the panel */
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  height: 12px;           /* thin, glowing strip */
  background: radial-gradient(
    ellipse at center,
    rgba(194, 135, 74, 0.35) 0%,
    rgba(194, 135, 74, 0.08) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(12px);
  opacity: 0.45;          /* can adjust between 0.2 - 0.55 */
  pointer-events: none;
}
.about h2,
.apps-header h1 {
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--sky);
}

.about p,
.apps-header p,
.footer p {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* BUTTONS */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.btn {
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
  font-weight: 500;
}

.btn.primary {
  background: linear-gradient(135deg, var(--sky), #89a9c8);
  color: #041018;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.btn.ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243, 233, 218, 0.35);
}

.btn.ghost:hover {
  background: rgba(243, 233, 218, 0.06);
}

.btn.small {
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* APPS PAGE */

.apps-header h1 {
  font-size: 1.1rem;
}

.apps-list {
  min-height: 160px;
}

/* placeholder style when empty */
.apps-list::before {
  content: "No apps have been listed yet. This library will grow as new tools are forged.";
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  font-size: 0.85rem;
}
.hero {
  text-align: center;
}

.hero-slab {
  text-align: center;
}
.footer-main {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.footer-sub {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-meta {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* --- FORGE PARTICLES (ENHANCED) --- */
.forge-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* We create 6 drifting forge embers */
.forge-particles span {
  position: absolute;
  bottom: -10vh;
  width: 4px;
  height: 4px;
  background: radial-gradient(
    circle,
    rgba(255,140,60,0.9) 0%,
    rgba(255,80,20,0.0) 70%
  );
  border-radius: 50%;
  opacity: 0.55;
  animation: drift 7s linear infinite;
  filter: blur(0.4px);
}

/* Slight variations per particle */
.forge-particles span:nth-child(1) {
  left: 12%;
  animation-duration: 7.4s;
  width: 4px; height: 4px;
}
.forge-particles span:nth-child(2) {
  left: 28%;
  animation-duration: 6.8s;
  opacity: 0.45;
}
.forge-particles span:nth-child(3) {
  left: 46%;
  animation-duration: 8.2s;
  width: 3px; height: 3px;
}
.forge-particles span:nth-child(4) {
  left: 62%;
  animation-duration: 7.1s;
  opacity: 0.55;
}
.forge-particles span:nth-child(5) {
  left: 78%;
  animation-duration: 6.6s;
  width: 5px; height: 5px;
  opacity: 0.50;
}
.forge-particles span:nth-child(6) {
  left: 88%;
  animation-duration: 7.9s;
  width: 3px; height: 3px;
}

/* Ember drift animation */
@keyframes drift {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.4;
    transform: translateY(-45vh) translateX(8px) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateY(-90vh) translateX(14px) scale(0.6);
  }
}