*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #D4A84C;
  --gold-light: #F5D878;
  --gold-dark: #8B6914;
  --obsidian: #0C0B18;
  --deep: #110F20;
  --surface: #1A1830;
  --surface2: #221F38;
  --surface3: #2C2A44;
  --text: #F2EBD8;
  --text-muted: #9A8FA8;
  --accent: #9B72D0;
  --accent2: #4A8FE8;
  --border: rgba(201,168,76,0.25);
  --border-strong: rgba(201,168,76,0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  background:
    radial-gradient(ellipse 140% 60% at 50% 0%, rgba(123, 94, 167, 0.1) 0%, transparent 55%),
    var(--obsidian);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

nav.scrolled {
  background: rgba(10, 10, 15, 0.98);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

/* NAV SEARCH */
.nav-search {
  position: relative;
}

#nav-search-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  outline: none;
  width: 180px;
  transition: border-color 0.3s, width 0.3s;
}

#nav-search-input:focus {
  border-color: var(--border-strong);
  width: 240px;
}

#nav-search-input::placeholder {
  color: var(--text-muted);
}

.nav-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-search-results.active {
  display: block;
}

.nav-search-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.nav-search-item:last-child {
  border-bottom: none;
}

.nav-search-item:hover {
  background: var(--surface2);
}

.nav-search-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.nav-search-title {
  font-size: 0.78rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-search-author {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-search-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  #nav-search-input {
    width: 120px;
  }

  #nav-search-input:focus {
    width: 160px;
  }

  .nav-search-results {
    width: 280px;
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-sub {
  min-height: 60vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(155, 114, 208, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(123, 94, 167, 0.3) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 25% 65%, rgba(58, 123, 213, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 65%, rgba(74, 143, 232, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(201, 168, 76, 0.15) 0%, transparent 55%);
}

.hero-card-left,
.hero-card-right {
  position: absolute;
  width: 180px;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), rgba(30, 28, 43, 0.8));
  transform-origin: center;
}

.hero-card-left {
  left: 8%;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  opacity: 0.65;
}

.hero-card-right {
  right: 8%;
  top: 50%;
  transform: translateY(-50%) rotate(15deg);
  opacity: 0.65;
}

.hero-card-left::before,
.hero-card-right::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.divider-gold {
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.divider-gold-sm {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1rem auto;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #F0D080 0%, #C9A84C 40%, #8B6914 70%, #C9A84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 60px rgba(201, 168, 76, 0.45)) drop-shadow(0 0 120px rgba(155, 114, 208, 0.2));
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.hero-description {
  max-width: 560px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(242, 235, 216, 0.82);
  margin-bottom: 3rem;
}

.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-primary:hover::after {
  left: 160%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fff5c0, var(--gold-light));
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.4));
}

.btn-outline {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 1rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.1);
  transform: translateY(-2px);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  font-family: 'Cinzel', serif;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.section-lead {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(242, 235, 216, 0.75);
  max-width: 500px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}

/* ABOUT */
.about-section {
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(155, 114, 208, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(74, 143, 232, 0.06) 0%, transparent 60%),
    linear-gradient(to bottom, var(--obsidian), var(--deep), var(--obsidian));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rune-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 60px rgba(155, 114, 208, 0.18),
    0 0 120px rgba(155, 114, 208, 0.08),
    inset 0 0 60px rgba(155, 114, 208, 0.06);
}

.rune-circle::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.1);
  animation: rotateSlow 20s linear infinite;
}

.rune-circle::after {
  content: '⬡';
  font-size: 6rem;
  color: rgba(201, 168, 76, 0.15);
}

.rune-inner {
  position: absolute;
  font-size: 4rem;
  animation: rotateSlow 15s linear infinite reverse;
  opacity: 0.25;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hex-icon {
  position: absolute;
  font-family: 'Cinzel Decorative', serif;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
}

.about-text .divider-gold-sm {
  margin: 0 0 1.5rem;
}

.about-text h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.about-text .gold-accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(242, 235, 216, 0.78);
  margin-bottom: 1.2rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
}

/* GUIDES */
.guides-section {
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(155, 114, 208, 0.06) 0%, transparent 50%),
    var(--obsidian);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  display: block;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.guide-card:hover {
  border-color: var(--border-strong);
  background: var(--surface2);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(155, 114, 208, 0.08);
}

.guide-card:hover::before {
  transform: scaleX(1);
}

.guide-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  border-bottom: 1px solid transparent;
  border-right: 1px solid transparent;
  transition: border-color 0.4s, width 0.4s, height 0.4s;
}

.guide-card:hover::after {
  border-color: var(--gold-dark);
  width: 32px;
  height: 32px;
}

.guide-card-cover {
  margin: -2rem -2rem 1.5rem;
  height: 160px;
  overflow: hidden;
}

.guide-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s;
}

.guide-card:hover .guide-card-cover img {
  transform: scale(1.05);
}

.guide-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 0.3rem 0.8rem;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.guide-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.guide-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(242, 235, 216, 0.68);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-author {
  font-size: 0.75rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.guide-link {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-link::after {
  content: '→';
  transition: transform 0.3s;
}

.guide-card:hover .guide-link::after {
  transform: translateX(4px);
}

.guide-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  opacity: 0.08;
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
}

.guides-cta {
  text-align: center;
  margin-top: 3rem;
}

.guides-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

.form-submit {
  text-align: center;
  margin-top: 1.5rem;
}

/* GUIDE CARD TOP ROW */
.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.guide-card-top .guide-badge {
  margin-bottom: 0;
}

/* GRADE BADGE */
.guide-grade {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border: 1px solid;
  line-height: 1;
}

.guide-grade--gold {
  color: var(--gold-light);
  border-color: rgba(240, 208, 128, 0.4);
  background: rgba(201, 168, 76, 0.08);
}

.guide-grade--silver {
  color: #c0c8d8;
  border-color: rgba(192, 200, 216, 0.4);
  background: rgba(192, 200, 216, 0.06);
}

/* FEATURED PRO GUIDE */
.guide-featured {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  position: relative;
  margin-bottom: 1rem;
  overflow: hidden;
}

.guide-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.guide-featured-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 3rem;
  border-right: 1px solid var(--border);
}

.guide-featured-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.guide-featured-author {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.guide-featured-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(237, 232, 216, 0.65);
  line-height: 1.8;
}

.guide-pro-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(201, 168, 76, 0.04);
}

.guide-pro-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.guide-pro-platform {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* METAFY LINK PREVIEW CARD */
.guide-metafy-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
  align-self: stretch;
}

.guide-metafy-card:hover {
  border-color: var(--border-strong);
  background: var(--surface3);
}

.guide-metafy-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.guide-metafy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.guide-metafy-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.guide-metafy-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  word-break: break-all;
}

.guide-metafy-cta {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s;
}

.guide-metafy-card:hover .guide-metafy-cta {
  color: var(--gold-light);
}

/* FEATURED GUIDE COVER IMAGE */
.guide-featured-cover-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  border: 1px solid var(--border);
}

.guide-featured-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.guide-featured-cover-link:hover .guide-featured-cover-img {
  transform: scale(1.04);
}

.guide-featured-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
}

.guide-featured-cover-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s;
}

.guide-featured-cover-link:hover .guide-featured-cover-cta {
  color: var(--gold-light);
}

/* GUIDES MORE (below featured) */
.guides-more {
  margin-top: 4rem;
}

/* GUIDES NOTE LINK */
.guides-note-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.guides-note-link:hover {
  color: var(--gold-light);
}

/* CONTACT */
.contact-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(155, 114, 208, 0.07) 0%, transparent 55%),
    linear-gradient(to bottom, var(--obsidian), var(--deep));
  border-top: 1px solid var(--border);
}

.contact-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3.5rem;
  position: relative;
}

.contact-box::before,
.contact-box::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
}

.contact-box::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.contact-box::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid rgba(201, 168, 76, 0.15);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-strong);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138, 128, 112, 0.5);
}

.form-group select option {
  background: var(--surface2);
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--border-strong);
  background: rgba(201, 168, 76, 0.05);
}

/* SEARCH BAR */
.guide-search-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem;
  padding: 0 1.5rem;
}

#guide-search {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem 1.2rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.3s;
}

#guide-search:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface3);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.1);
}

#guide-search::placeholder {
  color: var(--text-muted);
}

/* FILTERS */
.guide-filters {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}

.filter-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--gold);
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.3s;
}

.filter-checkbox input[type="checkbox"]:hover {
  border-color: var(--gold);
}

.filter-checkbox input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230A0A0F' d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 11-.06-1.06l7.25-7.25a.75.75 0 011.06 0z'/%3E%3Cpath fill='%230A0A0F' d='M3.22 9.78a.75.75 0 01-1.06-1.06l5-5a.75.75 0 011.06 1.06l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.filter-checkbox:hover {
  color: var(--gold-light);
}

/* FOOTER */
footer {
  background: linear-gradient(to bottom, var(--deep), #080712);
  position: relative;
  z-index: 1;
}

footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 168, 76, 0.5),
    rgba(155, 114, 208, 0.35),
    rgba(212, 168, 76, 0.5),
    transparent
  );
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
}

.footer-logo:hover {
  color: var(--gold-light);
}

.footer-brand-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(154, 143, 168, 0.65);
  line-height: 1.8;
  max-width: 300px;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(154, 143, 168, 0.35);
  font-weight: 300;
}

.footer-col-title {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s, padding-left 0.3s;
  display: block;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom-copy {
  font-size: 0.7rem;
  color: rgba(154, 143, 168, 0.35);
  font-weight: 300;
}

.footer-bottom-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: rgba(154, 143, 168, 0.25);
  text-transform: uppercase;
}

.rune-separator {
  text-align: center;
  padding: 1rem 0;
  position: relative;
}

.rune-separator::before,
.rune-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 3rem);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}

.rune-separator::before {
  left: 0;
}

.rune-separator::after {
  right: 0;
  background: linear-gradient(to left, transparent, var(--border));
}

.rune-separator span {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    display: none;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .guide-featured {
    grid-template-columns: 1fr;
  }

  .guide-featured-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
  }

  .guide-featured-cover-link {
    min-height: 240px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 2rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    padding: 1.5rem;
  }

  .hero-card-left,
  .hero-card-right {
    display: none;
  }
}

/* ===== LEGENDS ===== */
.legends-section {
  padding: 4rem 0 6rem;
  position: relative;
  z-index: 1;
}

.legend-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.legend-tab {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.6rem 1.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.legend-tab:hover,
.legend-tab.active {
  color: var(--gold);
  border-color: var(--border-strong);
  background: rgba(201, 168, 76, 0.06);
}

.legends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.25rem;
}

.legend-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  aspect-ratio: 3 / 4;
}

.legend-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 168, 76, 0.2), 0 0 60px rgba(155, 114, 208, 0.1);
}

.legend-card-art {
  position: absolute;
  inset: 0;
}

.legend-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.legend-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(12, 11, 24, 0.5) 70%,
    rgba(12, 11, 24, 0.97) 100%
  );
}

.legend-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0.9rem 0.9rem;
}

.legend-set-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.45rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.4rem;
}

.legend-name {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.legend-title {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.legend-faction {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.44rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
}

.faction-ionia        { background: rgba(200,110,180,0.22); color: #e8b8d8; border: 1px solid rgba(200,110,180,0.45); }
.faction-noxus        { background: rgba(220,70,70,0.22);  color: #f0a0a0; border: 1px solid rgba(220,70,70,0.45); }
.faction-demacia      { background: rgba(110,155,220,0.22); color: #b8d0f0; border: 1px solid rgba(110,155,220,0.45); }
.faction-piltover     { background: rgba(215,170,65,0.22); color: #e8cc80; border: 1px solid rgba(215,170,65,0.45); }
.faction-zaun         { background: rgba(90,200,115,0.22); color: #a8e8b8; border: 1px solid rgba(90,200,115,0.45); }
.faction-freljord     { background: rgba(90,195,235,0.22); color: #a8e0f5; border: 1px solid rgba(90,195,235,0.45); }
.faction-void         { background: rgba(140,75,220,0.22); color: #c8a8f0; border: 1px solid rgba(140,75,220,0.45); }
.faction-targon       { background: rgba(235,215,110,0.22); color: #f0e090; border: 1px solid rgba(235,215,110,0.45); }
.faction-bilgewater   { background: rgba(65,155,175,0.22); color: #98ccd8; border: 1px solid rgba(65,155,175,0.45); }
.faction-shadow-isles { background: rgba(70,185,95,0.22);  color: #98d8a8; border: 1px solid rgba(70,185,95,0.45); }
.faction-bandle-city  { background: rgba(235,175,50,0.22); color: #f0d078; border: 1px solid rgba(235,175,50,0.45); }
.faction-shurima      { background: rgba(215,155,50,0.22); color: #e8c078; border: 1px solid rgba(215,155,50,0.45); }

.legend-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

/* LEGEND HERO ART */
.legend-hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  filter: blur(2px);
  z-index: 0;
}

@media (max-width: 768px) {
  .legends-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.9rem;
  }

  .legend-name {
    font-size: 0.75rem;
  }

  .legend-tabs {
    gap: 0.4rem;
  }

  .legend-tab {
    padding: 0.5rem 1.1rem;
    font-size: 0.6rem;
  }
}

/* ===== HAMBURGER NAV ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1.5rem 1rem;
    z-index: 99;
  }

  nav.menu-open .nav-links {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
  }

  nav.menu-open .nav-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  nav.menu-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }

  nav.menu-open .nav-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ===== SKELETON LOADING ===== */
.guide-skeleton {
  pointer-events: none;
  cursor: default;
}

.skeleton-badge,
.skeleton-title,
.skeleton-line {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}

.skeleton-badge  { height: 20px; width: 80px;  margin-bottom: 1.2rem; }
.skeleton-title  { height: 18px; width: 90%;   margin-bottom: 0.8rem; }
.skeleton-line   { height: 12px; width: 100%;  margin-bottom: 0.5rem; }
.skeleton-line--short { width: 65%; }

@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--gold);
}

/* ===== LEGEND SEARCH ===== */
.legend-search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#legend-search {
  width: 100%;
  max-width: 360px;
  padding: 0.7rem 1.1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

#legend-search:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface3);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.1);
}

#legend-search::placeholder {
  color: var(--text-muted);
}

.legends-empty,
.guides-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}

/* ===== GUIDE COUNT BADGE ===== */
.guide-count {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}

.guide-count:empty {
  display: none;
}

/* ===== NAV SEARCH BADGE VARIANTS ===== */
.nav-search-badge--legend {
  color: var(--accent);
  background: rgba(155, 114, 208, 0.08);
  border-color: rgba(155, 114, 208, 0.2);
}

.nav-search-badge--scout,
.nav-search-badge--pro,
.nav-search-badge--certified {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.2);
}

/* ===== HERO ENTRANCE ANIMATIONS ===== */
.hero-eyebrow     { animation: heroFadeDown 0.8s ease 0.2s  both; }
.hero h1          { animation: heroFadeDown 0.9s ease 0.38s both; }
.hero .divider-gold { animation: heroScaleIn 0.7s ease 0.58s both; }
.hero-subtitle    { animation: heroFadeUp   0.8s ease 0.72s both; }
.hero-description { animation: heroFadeUp   0.8s ease 0.88s both; }
.hero-ctas        { animation: heroFadeUp   0.8s ease 1.02s both; }
.scroll-indicator { animation: heroFadeUp   0.8s ease 1.2s  both; }
.hero-card-left   { animation: heroFadeIn   1.4s ease 0.4s  both; }
.hero-card-right  { animation: heroFadeIn   1.4s ease 0.6s  both; }

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroScaleIn {
  from { opacity: 0; transform: scaleX(0.15); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.65; }
}

/* ===== SCROLL FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION TAG WITH FLANKING LINES ===== */
.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.section-header .section-tag::before,
.section-header .section-tag::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold-dark);
  flex-shrink: 0;
  opacity: 0.7;
}

.about-text .section-tag {
  display: inline-block;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
}

/* ===== FOOTER RESPONSIVE (narrow) ===== */
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
