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

/* ─── Reset & tokens ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0c0c10;
  --bg-surface:  #16161d;
  --bg-card:     #1b1b24;
  --bg-nav:      #0c0c10cc;
  --border:      #2a2a35;
  --border-soft: #232330;
  --text:        #f3f1f6;
  --muted:       #9d99ab;
  --muted-2:     #716d80;
  --pink:        #ff3f8e;
  --pink-2:      #ff77ac;
  --pink-deep:   #c2185f;
  --radius:      14px;
  --radius-sm:   9px;
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--muted); }

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

::selection { background: var(--pink); color: #fff; }

/* ─── Utility ───────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,63,142,0.12);
  color: var(--pink-2);
  border: 1px solid rgba(255,63,142,0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.badge::before { content: '●'; font-size: 0.55rem; color: var(--pink); }

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,63,142,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,63,142,0.4); }
.btn-outline {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink-2); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ─── CONSTRUCTION BANNER ─────────────────────────────────── */
.construction-banner {
  position: sticky;
  top: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, #3a2a0e 0%, #4a3512 100%);
  border-bottom: 1px solid rgba(255,193,7,0.35);
  color: #ffd873;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.construction-banner code {
  background: rgba(0,0,0,0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  color: #fff2cc;
}

/* ─── NAV ───────────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: var(--banner-h, 0px);
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1.5px solid rgba(255,63,142,0.5);
  box-shadow: 0 4px 14px rgba(255,63,142,0.35);
}
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff !important; padding: 0.5rem 1.15rem; border-radius: 8px; font-weight: 600 !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,63,142,0.3); }

.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 68px; right: 0; width: min(300px, 85vw); height: calc(100vh - 68px);
  background: var(--bg-surface); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 99; display: flex; flex-direction: column; padding: 2rem 1.5rem; gap: 0.5rem;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a { display: block; padding: 0.85rem 1rem; font-size: 1.05rem; font-weight: 500; color: var(--muted); border-radius: 8px; }
.nav-drawer a:hover { background: var(--bg-card); color: var(--text); }
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 98; }
.drawer-overlay.open { display: block; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ─── HERO ──────────────────────────────────────────────────── */
#home {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}
#home::before, #home::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
#home::before {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(255,63,142,0.22) 0%, transparent 70%);
  top: -180px; right: -180px;
}
#home::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(194,24,95,0.18) 0%, transparent 70%);
  bottom: -160px; left: -140px;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.hero-content { position: relative; max-width: 680px; }

.hero-portrait { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hero-portrait::before {
  content: ''; position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,63,142,0.35) 0%, transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.hero-portrait img {
  position: relative;
  width: 300px; height: 300px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,63,142,0.55);
  box-shadow: 0 0 0 10px rgba(255,63,142,0.06), 0 20px 60px rgba(0,0,0,0.5);
}
@media (max-width: 980px) {
  .hero-flex { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-eyebrow, .hero-actions { justify-content: center; }
  .hero-pillars { justify-content: center; }
  .hero-portrait img { width: 220px; height: 220px; }
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--pink-2); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 1.3rem; text-transform: uppercase; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 32px; height: 2px; background: var(--pink); border-radius: 2px; }

.hero-headline {
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 35%, var(--pink-2) 85%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin-bottom: 2.4rem; line-height: 1.75; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-pillars { display: flex; gap: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.pillar { display: flex; align-items: center; gap: 0.65rem; }
.pillar-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,63,142,0.1); border: 1px solid rgba(255,63,142,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.pillar-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.pillar-sub { font-size: 0.74rem; color: var(--muted-2); }

/* ─── Section shared ───────────────────────────────────────── */
.section { padding: 6.5rem 0; position: relative; }
.section-alt { background: var(--bg-surface); }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 3.75rem; }
.section-header p { margin-top: 0.85rem; font-size: 1.02rem; line-height: 1.75; }

/* ─── Feature cards ────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(255,63,142,0.08), transparent 60%);
  opacity: 0; transition: opacity var(--transition);
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255,63,142,0.4); box-shadow: 0 16px 36px rgba(0,0,0,0.35); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,63,142,0.18), rgba(194,24,95,0.1));
  border: 1px solid rgba(255,63,142,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.15rem;
}
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.65; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.feature-tag { font-size: 0.72rem; font-weight: 600; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft); padding: 0.25rem 0.6rem; border-radius: 99px; }

/* ─── Steps ────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(255,63,142,0.3);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; }

/* ─── Final CTA ────────────────────────────────────────────── */
.cta-band {
  position: relative;
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #1c1420 0%, #14101a 100%);
  border: 1px solid rgba(255,63,142,0.25);
}
.cta-band::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,63,142,0.25) 0%, transparent 70%);
  top: -220px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.cta-band h2 { position: relative; margin-bottom: 0.9rem; }
.cta-band p { position: relative; max-width: 480px; margin: 0 auto 2rem; }
.cta-band .hero-actions { position: relative; justify-content: center; margin-bottom: 0; }

/* ─── Footer ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border-soft); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--muted-2); }

.section-divider { border: none; border-top: 1px solid var(--border-soft); margin: 0; }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD (site/dashboard.html + login.html shared styles)
   ══════════════════════════════════════════════════════════════ */

.center-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px; text-align: center; padding: 24px;
}

.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.75rem; height: 68px;
  background: var(--bg-nav); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: var(--banner-h, 0px); z-index: 50;
}
.dash-user { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); font-size: 0.88rem; }
.dash-user img.avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); }

.dash-layout { display: flex; min-height: calc(100vh - 68px); }

.dash-sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--bg-surface); border-right: 1px solid var(--border-soft);
  padding: 1.5rem 0;
}
.guild-select-wrap { padding: 0 1.1rem 1.25rem; }
.guild-select-wrap select {
  width: 100%; padding: 0.65rem 0.8rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.88rem; font-family: inherit;
}
.dash-nav a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1.4rem; color: var(--muted); font-size: 0.9rem; font-weight: 500;
  border-left: 3px solid transparent; cursor: pointer; transition: background var(--transition), color var(--transition);
}
.dash-nav a:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.dash-nav a.active { color: var(--text); background: rgba(255,63,142,0.08); border-left-color: var(--pink); }

.dash-content { flex: 1; padding: 2.25rem; max-width: 760px; }

.dash-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.75rem; margin-bottom: 1.4rem;
}
.dash-card h2 { font-size: 1.05rem; margin-bottom: 1.1rem; }
.dash-card > p:first-of-type { margin-top: -0.4rem; margin-bottom: 1.1rem; font-size: 0.88rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.45rem; font-weight: 600; }
.field .hint { font-size: 0.76rem; color: var(--muted-2); margin-top: 0.35rem; }

input[type="text"], input[type="number"], select, textarea {
  width: 100%; padding: 0.65rem 0.85rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.88rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,63,142,0.15); }
textarea { min-height: 70px; resize: vertical; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.toggle-row label { font-weight: 600; font-size: 0.88rem; }
.row-inline { display: flex; gap: 0.85rem; }
.row-inline > * { flex: 1; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border-soft); }
th { color: var(--muted-2); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }

.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 0.75rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.86rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 200;
}
.toast.error { border-color: #ff5470; color: #ff5470; }
.toast.success { border-color: #2ecc71; color: #4fd68c; }

.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
.server-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.1rem 0.6rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all var(--transition); text-align: center;
}
.server-tile:hover { border-color: var(--pink); transform: translateY(-3px); }
.server-tile img, .server-tile .server-fallback {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
}
.server-tile .server-name { font-size: 0.8rem; font-weight: 600; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .dash-sidebar { display: none; }
}
@media (max-width: 768px) {
  .hero-pillars { gap: 1.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .section { padding: 4.5rem 0; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }
