/* Hexgate Shared Styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #c8aa6e;
  --gold-bright: #e8d5a3;
  --gold-light: #f0dfa0;
  --gold-dark: #9a7b4f;
  --bg-deep: #121016;
  --bg-card: rgba(30, 28, 36, 0.6);
  --bg-card-hover: rgba(40, 37, 48, 0.7);
  --text-primary: #e0dbd2;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.25);
  --gold-glow: rgba(200, 170, 110, 0.15);
  --gold-border: rgba(200, 170, 110, 0.12);
  --gold-border-hover: rgba(200, 170, 110, 0.25);
  --section-gap: 120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hex Grid Background */
.hex-bg { position: fixed; inset: 0; z-index: 0; opacity: 0.4; pointer-events: none; }
.hex-bg svg { width: 100%; height: 100%; }

/* Ambient Glow Orbs */
.glow-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(80px); }
.glow-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(200,170,110,0.08), transparent 70%); top: -200px; right: -100px; animation: orbFloat 12s ease-in-out infinite; }
.glow-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,170,110,0.06), transparent 70%); bottom: 20%; left: -150px; animation: orbFloat 15s ease-in-out infinite reverse; }
.glow-orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(200,170,110,0.05), transparent 70%); top: 50%; right: -100px; animation: orbFloat 18s ease-in-out infinite 3s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 20px); }
  66% { transform: translate(20px, -30px); }
}

/* Shared Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

.section-label {
  text-transform: uppercase; font-size: 11px; font-weight: 600;
  letter-spacing: 3px; color: var(--gold); opacity: 0.7; margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 30%, var(--gold-bright) 55%, var(--gold) 75%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-subtitle { font-size: 17px; color: var(--text-muted); max-width: 560px; line-height: 1.7; }

.gold-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border-hover), transparent);
  margin: var(--section-gap) 0;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; font-size: 15px; font-weight: 700; font-family: inherit;
  color: #000; background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: none; border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,170,110,0.3), 0 0 60px rgba(200,170,110,0.1);
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 14px; font-weight: 600; font-family: inherit;
  color: var(--gold); background: rgba(200,170,110,0.06);
  border: 1px solid var(--gold-border); border-radius: 8px;
  cursor: pointer; text-decoration: none; transition: all 0.3s ease;
}
.btn-secondary:hover { background: rgba(200,170,110,0.1); border-color: var(--gold-border-hover); }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; background: rgba(18,16,22,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200,170,110,0.06); transition: all 0.3s ease;
}
nav.scrolled { padding: 12px 0; background: rgba(18,16,22,0.95); border-bottom-color: rgba(200,170,110,0.1); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand svg { width: 28px; height: 28px; }
.nav-brand-text {
  font-size: 16px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-bright), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-muted); text-decoration: none; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 9px 20px !important; font-size: 13px !important;
  font-weight: 800 !important; border-radius: 6px !important; color: #2a2015 !important;
}

/* Footer */
footer { border-top: 1px solid var(--gold-border); padding: 24px 0; position: relative; z-index: 1; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-left svg { width: 20px; height: 20px; }
.footer-text { font-size: 12px; color: var(--text-dim); }
.footer-sep { color: var(--text-dim); font-size: 12px; }
.footer-link { font-size: 12px; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }
.footer-discord { font-size: 12px; color: var(--text-dim); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s; }
.footer-discord:hover { color: rgba(114, 137, 218, 0.8); }
.footer-discord svg { width: 14px; height: 14px; }
.footer-right { font-size: 11px; color: var(--text-dim); max-width: 500px; text-align: right; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links .nav-link-text { display: none; }
  .btn-primary { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-right { text-align: center; }
}

/* Shared page hero (subpages) */
.page-hero { padding: 160px 0 60px; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 30%, var(--gold-bright) 55%, var(--gold) 75%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; line-height: 1.7; }
