:root {
  --bg: #0d1117;
  --bg-alt: #010409;
  --card: #161b22;
  --card-border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #2ea043;
  --accent-2: #3fb950;
  --radius: 12px;
  --maxw: 1060px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, .brand, .nav-links a { font-family: 'Space Grotesk', 'Inter', sans-serif; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: static;
  backdrop-filter: blur(10px);
  background: rgba(13,17,23,0.92);
  border-bottom: 1px solid var(--card-border);
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; margin-left: 0; }
.brand-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: block; }
.brand .dot { color: var(--accent); }
.nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent); color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-2); }

/* Profile / Banner */
.profile { position: relative; }
.banner {
  width: 100%;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 70px 20px;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(47,129,247,0.18), transparent 60%),
    linear-gradient(135deg, #06080f 0%, #0b1020 55%, #141a30 100%);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}
.banner-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.banner-kicker { letter-spacing: 6px; font-size: .8rem; font-weight: 600; color: #5f7290; }
.banner-name {
  margin: 0; font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700; letter-spacing: -1px;
  background: linear-gradient(90deg, #00ffd1, #36a2ff, #b76bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.banner-handle { margin: 0; color: var(--muted); font-weight: 500; font-size: 1.05rem; }
.profile-body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 30px 0 8px; flex-wrap: wrap;
}
.profile-name { margin: 0; font-size: clamp(1.9rem, 4vw, 2.4rem); }
.handle { color: var(--muted); margin: 0; font-weight: 500; }
.bio { max-width: 640px; margin: 4px 0 12px; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.tag {
  background: rgba(110,118,129,0.15); color: var(--muted);
  padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 500;
}
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 30px; }
.block-title { margin: 36px 0 16px; font-size: 1.3rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: rgba(46,160,67,0.5); transform: translateY(-2px); }
.card-icon { font-size: 1.8rem; margin-bottom: 8px; }
.card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.card-tag { color: var(--accent-2); font-size: .8rem; font-weight: 600; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: .95rem; flex: 1; }
.card-link { color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; align-self: flex-start; }
.card-link:hover { color: var(--accent-2); }

/* Link grid */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.linktile {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text);
  transition: transform .15s, border-color .15s;
}
.linktile:hover { transform: translateY(-2px); border-color: rgba(46,160,67,0.5); }
.link-emoji { font-size: 1.5rem; }
.linktile span:nth-child(2) { font-weight: 600; font-size: 1.05rem; }
.link-sub { color: var(--muted); font-size: .85rem; }

/* Discord widget */
.discord-join { margin-bottom: 8px; }
.discord-widget {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px; max-width: 460px;
}
.discord-guild { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.discord-icon { width: 56px; height: 56px; border-radius: 50%; }
.discord-name { font-weight: 700; font-size: 1.2rem; }
.discord-online { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.dot-green { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); display: inline-block; }
.discord-blurb { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }


.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; transition: transform .12s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.arrow { transition: transform .12s; display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(3px); }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 26px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .banner { min-height: 240px; padding: 44px 16px; }
  .section { padding: 44px 0; }
  .nav-links { gap: 14px; font-size: .92rem; }
}
