/* ─── DESIGN TOKENS ─── */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm:   0.375rem;
  --radius-lg:   0.75rem;
  --radius-full: 9999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --content-wide: 1200px;
}

/* ─── DARK THEME (default) ─── */
:root,
[data-theme="dark"] {
  --bg:             #0d0d0f;
  --surface:        #16161d;
  --border:         #252535;
  --divider:        #1e1e2a;

  --text:           #e8e8f0;
  --text-muted:     #8888a8;
  --text-faint:     #44445a;

  --primary:        #7c6cfc;
  --primary-hover:  #9a8dff;
  --primary-bg:     #1e1b3a;
  --primary-border: rgba(124, 108, 252, 0.25);

  --pink:           #f06dab;
  --cyan:           #44d9e8;

  --shadow-glow: 0 0 30px rgba(124, 108, 252, 0.25);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.5);
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
  --bg:             #f5f5fa;
  --surface:        #ffffff;
  --border:         #d0d0de;
  --divider:        #dcdce8;

  --text:           #14141e;
  --text-muted:     #5e5e78;
  --text-faint:     #aaaabc;

  --primary:        #5b4bdc;
  --primary-hover:  #4535c8;
  --primary-bg:     #eeeefb;
  --primary-border: rgba(91, 75, 220, 0.25);

  --pink:           #cc3a7e;
  --cyan:           #0a8ea0;

  --shadow-glow: 0 0 30px rgba(91, 75, 220, 0.12);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ─── BASE RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
::selection { background: rgba(124, 108, 252, 0.25); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── MOUNTAIN BACKGROUND ─── */
.mountain-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mountain-bg svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.mountain-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(
    180deg,
    rgba(58, 111, 168, 0.07) 0%,
    rgba(212, 120, 138, 0.06) 35%,
    rgba(232, 232, 240, 0.04) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ─── LAYOUT ─── */
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  width: 100%;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(var(--space-16), 12vw, var(--space-24)) 0 clamp(var(--space-12), 8vw, var(--space-20));
  min-height: 90svh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-name {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: var(--space-10);
}
.hero-tagline strong {
  color: var(--text);
  font-weight: 600;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-discord {
  background: #5865f2;
  color: #fff;
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

/* ─── AVATAR ─── */
.avatar-card {
  position: relative;
  flex-shrink: 0;
}
.avatar-ring {
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary), var(--pink), var(--cyan));
  box-shadow: var(--shadow-glow);
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-emoji {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
}
.status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #4ade80;
  border-radius: 50%;
  border: 3px solid var(--bg);
  animation: status-pulse 3s infinite;
}
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0); }
}

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--divider);
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.footer-copy span { color: var(--primary); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar-card   { justify-self: center; order: -1; }
  .hero-eyebrow  { justify-content: center; }
  .hero-tagline  { margin-inline: auto; }
  .hero-cta-group { justify-content: center; }
}
@media (max-width: 480px) {
  .container--wide { padding-inline: var(--space-4); }
}