: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: 1280px; margin: 0 auto; padding: 0 40px; }

/* 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; }

/* Project banners */
.project-banners { display: flex; flex-direction: column; gap: 18px; }
.project-banner {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 28px;
  background: linear-gradient(120deg, rgba(47,129,247,0.10), rgba(13,17,23,0.4));
  border: 1px solid var(--card-border); border-radius: 16px;
  position: relative; overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.project-banner:hover { border-color: rgba(47,129,247,0.6); box-shadow: 0 12px 32px rgba(0,0,0,0.35); transform: translateY(-3px); }
.project-banner::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, #00ffd1, #36a2ff, #b76bff);
}
.project-icon {
  width: 60px; height: 60px; border-radius: 16px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
  border: 1px solid var(--card-border);
}
.tile-bot { background: rgba(88,101,242,0.18); box-shadow: 0 0 18px rgba(88,101,242,0.25); }
.tile-mod { background: rgba(46,160,67,0.18); box-shadow: 0 0 18px rgba(46,160,67,0.25); }
.tile-web { background: rgba(47,129,247,0.18); box-shadow: 0 0 18px rgba(47,129,247,0.25); }
.project-body { flex: 1; min-width: 0; }
.project-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.project-head h3 { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.3px; }
.project-btn { flex: 0 0 auto; }
/* per-project accent on the button */
.project-banner.tile-bot ~ .project-btn,
.banner-bot .project-btn,
.banner-mod .project-btn,
.banner-web .project-btn {
  background: rgba(47,129,247,0.18);
  border-color: rgba(47,129,247,0.6);
  color: #a9d2ff;
  box-shadow: 0 0 0 rgba(47,129,247,0);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.banner-bot .project-btn:hover,
.banner-mod .project-btn:hover,
.banner-web .project-btn:hover {
  background: rgba(47,129,247,0.32);
  border-color: rgba(88,166,255,0.95);
  color: #d6e8ff;
  box-shadow: 0 0 18px rgba(47,129,247,0.55);
}
@media (max-width: 640px) {
  .project-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .project-btn { width: 100%; text-align: center; }
}
.more-soon {
  display: flex; align-items: center; gap: 20px;
  margin-top: 22px; padding: 24px 26px;
  background:
    linear-gradient(120deg, rgba(47,129,247,0.08), rgba(183,107,255,0.06));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.more-soon:hover { border-color: rgba(47,129,247,0.5); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.more-soon::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, #00ffd1, #36a2ff, #b76bff);
}
.more-soon-icon {
  width: 54px; height: 54px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  background: rgba(139,148,158,0.15); border: 1px solid var(--card-border);
}
.more-soon-text { flex: 1; min-width: 0; }
.more-soon-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.more-soon-text h3 { margin: 0; font-size: 1.25rem; }
.pill {
  font-size: .72rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--accent-2); background: rgba(63,185,80,0.12);
  border: 1px solid rgba(63,185,80,0.35); padding: 3px 10px; border-radius: 999px;
}
.more-soon-text p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.more-soon-btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .more-soon { flex-direction: column; align-items: flex-start; gap: 14px; }
  .more-soon-btn { width: 100%; text-align: center; }
}

/* 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 widgets */
.discord-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; justify-items: center; }
.discord-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); width: 100%; max-width: 380px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.discord-card:hover { border-color: rgba(47,129,247,0.5); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.discord-card-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; background: linear-gradient(160deg, rgba(47,129,247,0.10), transparent 70%);
  border-bottom: 1px solid var(--card-border);
}
.discord-icon { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(47,129,247,0.35); }
.discord-icon-bot { display: flex; align-items: center; justify-content: center; background: #2f3136; font-size: 1.7rem; box-shadow: 0 0 0 2px rgba(47,129,247,0.35); }
.discord-card-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.discord-name { font-weight: 700; font-size: 1.18rem; line-height: 1.2; }
.discord-online { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 7px; }
.dot-green { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); display: inline-block; box-shadow: 0 0 7px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.discord-desc { color: var(--muted); font-size: .92rem; margin: 0; padding: 18px 22px 4px; line-height: 1.55; flex: 1; }
.discord-join-btn { margin: 16px 22px 22px; width: auto; align-self: stretch; text-align: center; box-sizing: border-box; }


.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: linear-gradient(135deg, rgb(47,129,247), rgb(88,166,255));
  color: #fff;
  border: 1px solid rgba(120,180,255,0.7);
  box-shadow: 0 0 16px rgba(47,129,247,0.45);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgb(58,140,255), rgb(110,178,255));
  border-color: rgba(150,195,255,0.95);
  box-shadow: 0 0 26px rgba(47,129,247,0.75);
  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; }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: stretch; }
.about-text {
  background: linear-gradient(160deg, rgba(47,129,247,0.06), transparent 60%);
  border: 1px solid var(--card-border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 26px 28px;
}
.about-text p { color: var(--muted); margin: 0 0 14px; line-height: 1.75; font-size: 1.04rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.about-stats li {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.about-stats li:hover { border-color: rgba(47,129,247,0.5); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700; background: linear-gradient(90deg, #00ffd1, #36a2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .82rem; }

/* CTA */
.cta { text-align: center; }
.cta-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; }
.cta-sub { color: var(--muted); margin: 0 0 24px; }
.cta .profile-actions { justify-content: center; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
}
