*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: rgba(201, 168, 76, 0.18);
  --gold-border: rgba(201, 168, 76, 0.28);
  --bg: #0b0b0b;
  --bg-card: #141414;
  --bg-section: #101010;
  --text: #f0f0f0;
  --text-muted: #888;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── NAVBAR ────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

nav.scrolled {
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(18px);
  padding: 14px 60px;
  border-bottom: 1px solid var(--gold-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
}

.nav-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 8px 22px;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: #000 !important;
}

/* ─── HERO ──────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 60%),
    #0b0b0b;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.55)) drop-shadow(0 0 60px rgba(201,168,76,0.2));
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f0d68a 0%, #c9a84c 45%, #e8c96a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-sub {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  max-width: 420px;
  line-height: 1.8;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #c9a84c, #a87c2a);
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 24px rgba(201,168,76,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(201,168,76,0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 3px;
  border: 1px solid var(--gold-border);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator .mouse-dot {
  width: 3px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ─── SECTION COMMONS ───────────────────────── */
section {
  padding: 100px 60px;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 540px;
}

.gold-line {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── FEATURES ──────────────────────────────── */
#features {
  background: var(--bg-section);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-desc {
  margin: 0 auto;
}

.features-header .gold-line {
  margin: 0 auto 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card:nth-child(5) {
  grid-column-start: 2;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  border-color: rgba(201,168,76,0.55);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,168,76,0.07);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ─── ABOUT ─────────────────────────────────── */
#about {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 60px;
}

.about-image-wrap {
  flex: 0 0 auto;
  position: relative;
}

.about-img-box {
  width: 320px;
  height: 320px;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-img-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
}

.about-img-box img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(201,168,76,0.4));
}

.about-corner {
  position: absolute;
  width: 20px;
  height: 20px;
}

.about-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.about-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.about-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.about-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.about-text { flex: 1; }

.about-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── COMMUNITY / DISCORD ───────────────────── */
#community {
  background: var(--bg-section);
  text-align: center;
  padding: 100px 60px;
}

.community-inner {
  max-width: 640px;
  margin: 0 auto;
}

.community-inner .section-desc {
  margin: 0 auto 40px;
}

.community-inner .gold-line {
  margin: 0 auto 20px;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #5865F2;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 20px rgba(88,101,242,0.3);
}

.discord-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 32px rgba(88,101,242,0.45);
}

.discord-badge svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* ─── CONNECT BANNER ────────────────────────── */
#connect {
  padding: 80px 60px;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  border-top: 1px solid var(--gold-border);
}

.connect-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.connect-text .section-title { margin-bottom: 8px; }

.connect-ip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.connect-ip:hover { border-color: var(--gold); }

.connect-ip-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.connect-ip-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.copy-icon {
  margin-left: auto;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.connect-ip:hover .copy-icon { opacity: 1; }

.copy-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 10px 22px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── FOOTER ────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--gold-border);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img {
  height: 28px;
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.3));
}

.footer-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

/* ─── ANIMATIONS ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
.hero-content > *:nth-child(6) { animation-delay: 0.6s; }
.hero-content > *:nth-child(7) { animation-delay: 0.7s; }

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(5) { grid-column-start: auto; }
}

@media (max-width: 900px) {
  nav { padding: 18px 28px; }
  nav.scrolled { padding: 12px 28px; }
  .nav-links { display: none; }
  section { padding: 70px 28px; }
  #about {
    flex-direction: column;
    padding: 70px 28px;
    gap: 40px;
  }
  .about-img-box { width: 260px; height: 260px; }
  footer { padding: 32px 28px; flex-direction: column; text-align: center; }
  .connect-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 96px; height: 96px; }
  .hero-actions { flex-direction: column; width: 100%; padding: 0 20px; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
