@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #03030a;
  --bg2: #070714;
  --bg3: #0c0c20;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-glow: #1d4ed8;
  --accent: #60a5fa;
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.5);
  --text-dim: rgba(255,255,255,0.25);
  --border: rgba(59,130,246,0.15);
  --card: rgba(10,10,30,0.7);
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── CANVAS STARS ── */
#stars-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ── GLOW ORBS ── */
.orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #1e3a8a; top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: #1d4ed8; bottom: -100px; right: -50px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: #2563eb; top: 40%; left: 50%; animation-delay: -6s; }
@keyframes float {
  0%,100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(3,3,10,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-size: 22px; font-weight: 800; text-decoration: none;
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.nav-logo span { color: rgba(255,255,255,0.4); -webkit-text-fill-color: rgba(255,255,255,0.4); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  padding: 8px 18px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: all 0.2s; border: none; background: none; cursor: pointer;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-primary {
  padding: 9px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white; text-decoration: none;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,99,235,0.5); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 60px;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(59,130,246,0.3);
  font-size: 13px; font-weight: 500; color: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(38px, 5vw, 64px); font-weight: 900;
  line-height: 1.05; letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-title .grad {
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin-bottom: 36px; }

/* Claim strip */
.claim-row {
  display: flex; align-items: center;
  background: rgba(10,10,30,0.8); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-bottom: 20px;
}
.claim-prefix { padding: 0 0 0 16px; color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }
.claim-input {
  flex: 1; padding: 14px 12px; background: none; border: none;
  color: white; font-size: 15px; outline: none; font-family: 'Inter', sans-serif;
}
.claim-input::placeholder { color: var(--text-dim); }
.claim-btn {
  margin: 6px; padding: 10px 22px; border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(37,99,235,0.4);
}
.claim-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.5); }

/* ── PROFILE CARD (hero right) ── */
.hero-mockup {
  background: rgba(7,7,20,0.7);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 28px; padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(37,99,235,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}
.mockup-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.mockup-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.mockup-handle { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.mockup-bio { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.mockup-socials { display: flex; gap: 8px; margin-bottom: 18px; }
.mockup-social {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.mockup-social:hover { background: rgba(37,99,235,0.2); border-color: rgba(59,130,246,0.3); }
.mockup-stats { display: flex; gap: 20px; }
.mockup-stat { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.mockup-stat strong { color: var(--text-muted); font-size: 13px; }

/* ── FEATURES ── */
.section { padding: 100px 0; }
.section-title { font-size: clamp(28px,4vw,42px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 16px; margin-bottom: 60px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  backdrop-filter: blur(12px); transition: all 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.3); box-shadow: 0 20px 40px rgba(37,99,235,0.1); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(59,130,246,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 20px;
}
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── CTA ── */
.cta-box {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(29,78,216,0.1));
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 24px; padding: 72px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.3), transparent, rgba(37,99,235,0.3));
  border-radius: 24px; z-index: -1;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 40px 0;
  color: var(--text-dim); font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 80px 20px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: rgba(7,7,20,0.8); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px; backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: white; font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; transition: all 0.2s;
}
.form-input:focus { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.form-input::placeholder { color: var(--text-dim); }
.form-btn {
  width: 100%; padding: 13px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white; font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  margin-top: 8px;
}
.form-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(37,99,235,0.5); }
.form-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-dim); font-size: 12px;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07);
}
.discord-btn {
  width: 100%; padding: 13px; border-radius: 12px;
  background: #5865F2; color: white; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.discord-btn:hover { background: #4752c4; transform: translateY(-1px); }
.form-link { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 20px; }
.form-link a { color: var(--accent); text-decoration: none; }
.form-link a:hover { text-decoration: underline; }
.form-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; padding: 12px 16px; border-radius: 10px;
  font-size: 13px; margin-bottom: 16px; display: none;
}
.form-success {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #86efac; padding: 12px 16px; border-radius: 10px;
  font-size: 13px; margin-bottom: 16px; display: none;
}

/* ── DASHBOARD ── */
.dashboard { padding-top: 80px; min-height: 100vh; }
.dash-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; padding: 32px 0; }
.dash-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; backdrop-filter: blur(12px);
}
.dash-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--accent); }
.avatar-upload {
  width: 90px; height: 90px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; margin: 0 auto 16px;
  position: relative; overflow: hidden; transition: all 0.2s;
}
.avatar-upload:hover { transform: scale(1.05); }
.avatar-upload img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-btn { text-align: center; font-size: 12px; color: var(--accent); cursor: pointer; margin-bottom: 20px; }
.profile-preview {
  background: rgba(7,7,20,0.8); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; text-align: center;
}
.preview-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; margin: 0 auto 16px;
}
.preview-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.preview-handle { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.preview-bio { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.preview-socials { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.preview-social {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: all 0.2s;
}
.preview-social:hover { transform: translateY(-2px); background: rgba(37,99,235,0.2); }
.save-btn {
  width: 100%; padding: 12px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.2s; margin-top: 16px;
}
.save-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.4); }

/* ── PUBLIC PROFILE PAGE ── */
.profile-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.profile-card {
  width: 100%; max-width: 480px;
  background: rgba(7,7,20,0.85); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 28px; padding: 40px; backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(37,99,235,0.1), 0 0 0 1px rgba(255,255,255,0.03);
  text-align: center;
}
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; margin: 0 auto 20px;
  box-shadow: 0 4px 24px rgba(37,99,235,0.4);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-name { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.profile-handle { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.profile-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.profile-socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.profile-social {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.2s;
}
.profile-social:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
.profile-stats {
  display: flex; justify-content: center; gap: 24px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px; color: var(--text-dim);
}
.profile-stat strong { display: block; font-size: 18px; font-weight: 700; color: white; margin-bottom: 2px; }
.profile-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 600;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent); margin-bottom: 16px;
}
.powered-by {
  text-align: center; margin-top: 24px; font-size: 12px; color: var(--text-dim);
}
.powered-by a { color: var(--accent); text-decoration: none; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 500;
  background: rgba(10,10,30,0.95); border: 1px solid var(--border);
  backdrop-filter: blur(20px); box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(34,197,94,0.4); color: #86efac; }
.toast.error { border-color: rgba(239,68,68,0.4); color: #fca5a5; }

/* ── UTILITY ── */
.hidden { display: none !important; }
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .cta-box { padding: 40px 24px; }
}
