:root {
  --bg:        #080914;
  --surface:   #0d0f1e;
  --surface2:  #131627;
  --accent:    #4f6ef7;
  --accent2:   #a78bfa;
  --text:      #dde1f5;
  --muted:     #5a6490;
  --border:    rgba(79, 110, 247, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(8, 9, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #3d5be0; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(79,110,247,0.35); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,110,247,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(167,139,250,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 600px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(79,110,247,0.1);
  border: 1px solid rgba(79,110,247,0.25);
  font-size: 12px;
  color: #a0aeff;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 36px;
}

/* ── FEATURE SECTIONS ────────────────────────────── */
.features { padding: 0 40px 40px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 100px 0;
}

.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-text { }

.feature-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ── CHAT MOCKUP ─────────────────────────────────── */
.chat-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.chat-header-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ba55d;
  box-shadow: 0 0 6px #3ba55d;
}

.chat-header-name { font-size: 13px; font-weight: 600; color: var(--text); }
.chat-header-tag  { font-size: 11px; color: var(--muted); }

.msg { display: flex; gap: 10px; align-items: flex-start; }

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.msg-avatar.user-av  { background: #4752c4; color: #fff; }
.msg-avatar.bot-av   {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 12px;
}

.msg-body  { flex: 1; }
.msg-name  { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.msg-text  {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
  background: var(--surface2);
  padding: 10px 14px;
  border-radius: 0 10px 10px 10px;
}

.msg.is-user .msg-text {
  background: rgba(79,110,247,0.12);
  border-radius: 10px 10px 10px 0;
}

.msg-name.user-name { color: #7289da; }
.msg-name.bot-name  { color: var(--accent2); }

.msg-bar {
  font-size: 11.5px;
  color: #3ba55d;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 0;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  padding: 60px 40px 40px;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.footer-brand { display: flex; align-items: center; gap: 10px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 12px; color: var(--muted); }

/* ── DASHBOARD ───────────────────────────────────── */
.dash-layout {
  min-height: 100vh;
  padding: 100px 40px 60px;
  max-width: 1060px;
  margin: 0 auto;
}

.dash-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.dash-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.dash-welcome h1 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.dash-welcome p { font-size: 14px; color: var(--muted); }

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.server-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.server-card:hover { border-color: rgba(79,110,247,0.35); transform: translateY(-2px); }

.server-name { font-size: 15px; font-weight: 600; color: #fff; }

.server-meta { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(79,110,247,0.1);
  color: #a0aeff;
  border: 1px solid rgba(79,110,247,0.18);
}

.badge.green { background: rgba(59,165,93,0.1); color: #57f287; border-color: rgba(59,165,93,0.2); }
.badge.gray  { background: rgba(91,105,144,0.15); color: var(--muted); border-color: transparent; }

.server-usage { font-size: 12px; color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  max-width: 440px;
  margin: 0 auto;
}

.empty-icon { font-size: 48px; margin-bottom: 20px; opacity: 0.6; }

.empty-state h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.empty-state p  { color: var(--muted); font-size: 14px; margin-bottom: 28px; line-height: 1.7; }

/* ── FADE IN ON SCROLL ───────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .hero { padding: 100px 20px 60px; }
  .features { padding: 0 20px 20px; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
  .feature.reverse { direction: ltr; }
  footer { padding: 40px 20px; }
  .dash-layout { padding: 90px 20px 40px; }
}
