/* ============================================
   TAMRIEL UNBOUND — STYLE
   Dark Gothic Medieval Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #08080f;
  --bg-stone: #0e0e18;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a2e;
  --gold: #c8a84b;
  --gold-dim: #a08535;
  --gold-glow: #d4b85c;
  --parchment: #d4c5a9;
  --parchment-dim: #9e9278;
  --blood: #8b1a1a;
  --blood-bright: #b82e2e;
  --white-soft: #e8e0d0;
  --shadow-color: rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-deep);
  color: var(--parchment);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--blood-bright);
}

::selection {
  background: var(--gold-dim);
  color: var(--bg-deep);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 15, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(200, 168, 75, 0.08);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(200, 168, 75, 0.15);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--parchment-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--parchment-dim);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-daggerfall.png') center center / cover no-repeat;
  transform: scale(1.05);
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,8,15,0.3) 0%, rgba(8,8,15,0.1) 30%, rgba(8,8,15,0.5) 70%, rgba(8,8,15,0.97) 100%),
    radial-gradient(ellipse at center top, rgba(200,168,75,0.06) 0%, transparent 60%);
  z-index: 1;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 2rem;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dim);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow:
    0 0 60px rgba(200,168,75,0.15),
    0 4px 20px rgba(0,0,0,0.7);
}

.hero-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--parchment-dim);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  background: rgba(200,168,75,0.06);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,168,75,0.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn:hover {
  background: rgba(200,168,75,0.14);
  border-color: var(--gold);
  color: var(--gold-glow);
  box-shadow: 0 0 30px rgba(200,168,75,0.12), inset 0 0 30px rgba(200,168,75,0.05);
}

.btn:hover::before {
  opacity: 1;
}

/* --- Section Shared --- */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.section-divider .line {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}

.section-divider .line:last-child {
  background: linear-gradient(to left, transparent, var(--gold-dim));
}

.section-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white-soft);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--parchment-dim);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-style: italic;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* --- About Section --- */
.about-bg {
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg-stone), var(--bg-deep));
}

.about-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.12rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: var(--parchment);
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-highlight {
  color: var(--gold);
  font-weight: 600;
}

/* --- Features Section --- */
.features-bg {
  background: var(--bg-deep);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(200,168,75,0.08);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(200,168,75,0.18);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 60px rgba(200,168,75,0.04);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.4rem;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(200,168,75,0.15);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Custom engraved icon set (48-unit artwork) */
.feature-icon:has(svg[viewBox="0 0 48 48"]) {
  width: 68px;
  height: 68px;
  outline: 1px solid rgba(200,168,75,0.12);
  outline-offset: -6px;
}

.feature-card:hover .feature-icon:has(svg[viewBox="0 0 48 48"]) {
  outline-color: rgba(200,168,75,0.35);
}

.feature-icon svg[viewBox="0 0 48 48"] {
  width: 38px;
  height: 38px;
  stroke-width: 1.6;
}

.feature-icon svg .f {
  fill: var(--gold);
  fill-opacity: 0.85;
}

.feature-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--parchment-dim);
  line-height: 1.7;
}

/* --- World Section --- */
.world-bg {
  background:
    linear-gradient(to bottom, var(--bg-deep), rgba(14,14,24,0.95), var(--bg-deep));
  position: relative;
  overflow: hidden;
}

.world-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.world-quote {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--parchment);
  line-height: 1.8;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 2rem;
}

.world-quote::before,
.world-quote::after {
  content: '"';
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: var(--gold-dim);
  opacity: 0.4;
  position: absolute;
}

.world-quote::before {
  top: -0.5rem;
  left: -0.5rem;
}

.world-quote::after {
  bottom: -1.5rem;
  right: -0.5rem;
}

.world-attribution {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.world-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,0.04) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* --- CTA Section --- */
.cta-bg {
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg-stone));
}

.cta-inner {
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(212,197,169,0.2);
  color: var(--parchment-dim);
}

.btn-secondary:hover {
  border-color: var(--parchment);
  color: var(--parchment);
  background: rgba(212,197,169,0.05);
  box-shadow: 0 0 30px rgba(212,197,169,0.06);
}

/* --- Footer --- */
.footer {
  background: var(--bg-stone);
  border-top: 1px solid rgba(200,168,75,0.08);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--parchment-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(158,146,120,0.5);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200,168,75,0.05);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(8,8,15,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(200,168,75,0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
