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

:root {
  --bg: #000;
  --border: #1a1a1a;
  --border2: #222;
  --text: #fff;
  --muted: #666;
  --muted2: #444;
  --radius: 6px;
  --blurple: #5865F2;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* === CUSTOM CURSOR === */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-ring.hovered {
  width: 34px; height: 34px;
  border-color: rgba(255,255,255,0.8);
}

body:not(:hover) .cursor-dot,
body:not(:hover) .cursor-ring { opacity: 0; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-logo-icon { font-size: 1.1rem; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.1rem;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active {
  color: var(--text);
  border-color: var(--border2);
}

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  cursor: none;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 1.5rem 5rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.88;
  margin-bottom: 1.75rem;
  color: #fff;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted2);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted2), transparent);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  cursor: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn-primary:hover { background: #e8e8e8; border-color: #e8e8e8; }

.btn-outline {
  background: transparent;
  color: var(--text);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: #333; }

.btn-discord {
  background: var(--blurple);
  color: #fff;
  border-color: var(--blurple);
  font-size: 0.8rem;
  padding: 0.75rem 2rem;
}
.btn-discord:hover { background: #4752C4; border-color: #4752C4; }

.btn-full { width: 100%; justify-content: center; }

/* === STATS BAR === */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* === FEATURES === */
.features-section {
  padding: 5rem 2.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 3rem;
}

.features-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.features-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  max-width: 540px;
}

.features-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature-cell {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.feature-cell:hover { background: rgba(255,255,255,0.02); }

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  display: block;
}

.feature-cell h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-cell p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* === DISCORD CTA === */
.discord-cta {
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.discord-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 560px;
}

.discord-cta p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 460px;
}

/* === FOOTER === */
.footer {
  padding: 3rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--muted2);
  width: 100%;
}

/* === PAGE HERO (subpages) === */
.page-hero {
  padding: 120px 2.5rem 4rem;
  border-bottom: 1px solid var(--border);
}

.page-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.page-date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* === LEGAL DOCUMENT STYLE === */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
}

.legal-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child { border-bottom: none; }

.legal-section-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-section p {
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.legal-section li {
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

.legal-callout {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: #ccc;
  line-height: 1.7;
}

/* === PRIVACY TABLE === */
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.82rem;
}

.privacy-table th {
  text-align: left;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border2);
}

.privacy-table td {
  padding: 0.75rem 1rem;
  color: #aaa;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

.privacy-table tr:last-child td { border-bottom: none; }

/* === DASHBOARD === */
.dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.25rem;
}

.dashboard-icon { font-size: 2.5rem; margin-bottom: 0.25rem; }

.dashboard-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}

.dashboard-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.7;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-cell { border-right: none; }
  .features-section { padding: 4rem 1.25rem 0; }
  .legal-doc { padding: 3rem 1.25rem 4rem; }
  .footer { padding: 2.5rem 1.25rem; }
  .page-hero { padding: 100px 1.25rem 3rem; }
  .discord-cta { padding: 3.5rem 1.25rem; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1.25rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: #000; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; gap: 0.1rem; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}
