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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #18181f;
  --border: rgba(255,255,255,0.08);
  --accent: #3b8ef5;
  --accent2: #60a5fa;
  --text: #e8e8f0;
  --muted: #888899;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo-img--footer { height: 36px; margin-bottom: 10px; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
  align-items: center;
}
.accent { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59,142,245,0.35); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-discord {
  background: var(--discord);
  color: #fff;
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}
.btn-discord:hover { background: var(--discord-hover); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(59,142,245,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-block;
  background: rgba(124,107,255,0.15);
  border: 1px solid rgba(124,107,255,0.3);
  color: var(--accent2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-sub {
  max-width: 540px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── SECTION LABELS ── */
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

/* ── SERVICES ── */
.services {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services h2 { text-align: center; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(59,142,245,0.4); transform: translateY(-3px); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ── WHY US ── */
.why { padding: 100px 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why h2 { margin-bottom: 28px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.why-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.check { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Discord card */
.discord-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.discord-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--discord);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.discord-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.discord-tag {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.discord-tag strong { color: var(--text); }

/* ── CONTACT ── */
.contact {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.contact h2, .contact .section-label { text-align: center; display: block; }
.contact-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
  font-size: 0.95rem;
}
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 0.85rem; font-weight: 600; color: var(--text); }

input, select, textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,142,245,0.12);
}
input::placeholder, textarea::placeholder { color: #4a4a5a; }
select option { background: var(--bg3); }
textarea { resize: vertical; min-height: 130px; }

.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 24px;
  font-weight: 500;
}
.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

#submitBtn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
.footer .logo { display: block; margin-bottom: 8px; }
.footer p { color: var(--muted); font-size: 0.85rem; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 70px; }
  h2 { margin-bottom: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── STATS ── */
.stats {
  padding: 64px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.stat-item:hover { border-color: rgba(59,142,245,0.4); transform: translateY(-3px); }
.stat-number {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── PROCESS ── */
.process {
  padding: 100px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.process h2 { text-align: center; }
.process-steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 0;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}
.process-step:hover { border-color: rgba(59,142,245,0.4); transform: translateY(-3px); }
.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.65;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.process-step p  { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.process-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--muted);
  opacity: 0.4;
  user-select: none;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .process-arrow { display: none; }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials h2 { text-align: center; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.testi-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.testi-card:hover { border-color: rgba(59,142,245,0.4); transform: translateY(-3px); }
.testi-stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; }
.testi-card > p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; flex: 1; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.testi-name { font-size: 0.9rem; font-weight: 700; }
.testi-role { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ── FAQ ── */
.faq {
  padding: 100px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.faq h2 { text-align: center; }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(59,142,245,0.4); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── AI CHATBOT WIDGET ── */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59,142,245,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(59,142,245,0.55); }
.chat-toggle svg { transition: opacity 0.2s; }
.chat-toggle .icon-close { display: none; }
.chat-widget.open .icon-chat { display: none; }
.chat-widget.open .icon-close { display: block; }

.chat-window {
  display: none;
  flex-direction: column;
  width: 340px;
  height: 480px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  animation: chatIn 0.25s ease;
}
.chat-widget.open .chat-window { display: flex; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 5px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.chat-header-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.chat-header-name { font-size: 0.9rem; font-weight: 700; }
.chat-header-status { font-size: 0.75rem; color: #4ade80; display: flex; align-items: center; gap: 5px; }
.chat-header-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.bot  { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
}
.chat-msg.user .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot .chat-bubble {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingDot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 9px 12px;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
  max-height: 100px;
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: #4a4a5a; }
.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-end;
}
.chat-send:hover { background: #2563eb; transform: scale(1.05); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

@media (max-width: 400px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-window { width: calc(100vw - 32px); }
}
