/* =========================================================
   TROYZNUN: REALMS OF THE SECOND BREATH — Landing Page CSS
   ========================================================= */

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

:root {
  --void:        #04030a;
  --deep-night:  #0d0b1a;
  --dusk:        #1a1530;
  --amber:       #e8902a;
  --gold:        #f5c842;
  --parchment:   #f0e6d3;
  --muted:       #9c8f7e;
  --light-glow:  rgba(232, 144, 42, 0.15);
  --font-title:  'Cinzel', Georgia, serif;
  --font-body:   'Raleway', sans-serif;
}

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

body {
  background: var(--void);
  color: var(--parchment);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; letter-spacing: 0.04em; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.75rem;
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { position: relative; overflow: hidden; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--void);
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(232, 144, 42, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(240, 230, 211, 0.35);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

/* =========================================================
   HERO
   ========================================================= */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(ellipse 60% 55% at 50% 70%, rgba(232,144,42,0.08) 0%, transparent 70%),
    linear-gradient(180deg, rgba(4,3,10,0.72) 0%, rgba(13,11,26,0.65) 40%, rgba(26,21,48,0.55) 70%, rgba(4,3,10,0.85) 100%),
    url('https://troyznun.com/og-image.jpg') center center / cover no-repeat;
  position: relative;
}

/* Animated hex grid overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 58,17 58,53 30,68 2,53 2,17' fill='none' stroke='rgba(232,144,42,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px;
  opacity: 1;
  pointer-events: none;
}

/* Dark vignette bottom */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--void), transparent);
  pointer-events: none;
}

#hero-content { position: relative; z-index: 2; max-width: 820px; }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

#hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.1;
  color: var(--parchment);
  text-shadow: 0 0 60px rgba(232, 144, 42, 0.3);
  margin-bottom: 0.4rem;
}

#hero h1 .subtitle-game {
  display: block;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.25em;
  margin-top: 0.5rem;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  font-style: italic;
  margin: 2rem 0 2.8rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-tagline em { color: var(--parchment); font-style: normal; }

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Discord icon inline */
.icon-discord::before {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2304030a'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Embers canvas */
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   THE WORLD
   ========================================================= */
#world {
  padding: 7rem 0;
  background: var(--void);
}

.world-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.world-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--parchment);
}

.world-text h2 span { color: var(--amber); }

.world-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
}

.world-text p strong { color: var(--parchment); font-weight: 600; }

.world-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animated glow orb representing the circle of light */
.light-orb {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,144,42,0.18) 0%, rgba(232,144,42,0.04) 45%, transparent 70%);
  border: 1px solid rgba(232,144,42,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-orb 4s ease-in-out infinite;
  position: relative;
}

.light-orb::before {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,144,42,0.25) 0%, transparent 70%);
  animation: pulse-orb 4s ease-in-out infinite reverse;
}

.light-orb::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(232,144,42,0.08);
  animation: pulse-orb 6s ease-in-out infinite;
}

.orb-label {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-title);
}
.orb-label .orb-value {
  display: block;
  font-size: 3rem;
  color: var(--amber);
  text-shadow: 0 0 30px rgba(232,144,42,0.6);
  line-height: 1;
}
.orb-label .orb-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.75; }
}

/* =========================================================
   THE NIGHT (dramatic divider section)
   ========================================================= */
#night {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--void) 0%, #000000 50%, var(--void) 100%);
  text-align: center;
  position: relative;
}

#night::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(232,144,42,0.02) 2px,
    rgba(232,144,42,0.02) 4px
  );
  pointer-events: none;
}

.night-quote {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--parchment);
  font-weight: 400;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  opacity: 0.9;
}

.night-sub {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  max-width: 480px;
  margin: 0 auto;
}

/* =========================================================
   PILLARS
   ========================================================= */
#pillars {
  padding: 7rem 0;
  background: var(--deep-night);
}

#pillars .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

#pillars .section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--parchment);
  margin-bottom: 0.75rem;
}

#pillars .section-header p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

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

.pillar-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232,144,42,0.12);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar-card:hover {
  border-color: rgba(232,144,42,0.35);
  background: rgba(232,144,42,0.04);
  transform: translateY(-4px);
}
.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.pillar-card h3 {
  font-size: 1.1rem;
  color: var(--amber);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.pillar-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =========================================================
   FEATURES / GAMEPLAY
   ========================================================= */
#features {
  padding: 7rem 0;
  background: var(--void);
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--parchment);
  margin-bottom: 0.75rem;
}

.features-header p { color: var(--muted); font-size: 0.95rem; }

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

.feature-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.25s, background 0.25s;
}

.feature-item:hover {
  border-color: rgba(232,144,42,0.2);
  background: rgba(232,144,42,0.03);
}

.feature-dot {
  width: 8px; height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 0.5rem;
  box-shadow: 0 0 8px rgba(232,144,42,0.6);
}

.feature-item h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--parchment);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.feature-item p { color: var(--muted); font-size: 0.87rem; line-height: 1.6; }

/* =========================================================
   COMMUNITY
   ========================================================= */
#community {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--void) 0%, var(--deep-night) 100%);
  text-align: center;
}

.community-inner { max-width: 640px; margin: 0 auto; }

.community-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--parchment);
  margin-bottom: 1rem;
}

.community-inner > p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 2.5rem;
}

.discord-card {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  transition: border-color 0.25s, background 0.25s;
}
.discord-card:hover {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
}

.discord-card .discord-logo {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.discord-card h3 {
  color: #7289da;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.discord-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.btn-discord {
  background: #5865F2;
  color: #fff;
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.4);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--amber);
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }

.newsletter-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
  letter-spacing: 0.05em;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #000;
  border-top: 1px solid rgba(232,144,42,0.1);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); }

.footer-copy {
  color: rgba(156, 143, 126, 0.5);
  font-size: 0.78rem;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* =========================================================
   ANIMATIONS (Intersection Observer)
   ========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   FAQ
   ========================================================= */
#faq {
  padding: 7rem 0;
  background: var(--deep-night);
}

#faq .section-label { display: block; margin-bottom: 0.5rem; }

#faq h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--parchment);
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.6rem 0;
}

.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.faq-item dt {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--parchment);
  font-weight: 700;
  margin-bottom: 0.6rem;
  cursor: default;
}

.faq-item dd {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
#lang-switcher {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(4, 3, 10, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 144, 42, 0.18);
  border-radius: 3px;
  padding: 0.35rem 0.75rem;
}

#lang-switcher span {
  color: rgba(156, 143, 126, 0.3);
  font-size: 0.7rem;
  user-select: none;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  border-radius: 2px;
  transition: color 0.2s;
}

.lang-btn.active { color: var(--amber); }
.lang-btn:hover:not(.active) { color: var(--parchment); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .world-inner { grid-template-columns: 1fr; gap: 3rem; }
  .world-visual { order: -1; }
  .pillars-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: center; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  #hero { padding: 5rem 1.2rem 3rem; }
}
