/* ===== NexChat Landing CSS ===== */
:root {
  --bg: #0d0e11;
  --bg2: #111214;
  --surface: #1a1b1e;
  --surface2: #232428;
  --border: rgba(255,255,255,0.06);
  --text: #ffffff;
  --text2: #b5bac1;
  --text3: #6d6f78;
  --accent: #5865F2;
  --accent2: #4752c4;
  --green: #57F287;
  --pink: #EB459E;
  --yellow: #FEE75C;
  --red: #ED4245;
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
  background: rgba(13,14,17,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(13,14,17,0.98); }
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; }
.logo-icon.small { width: 28px; height: 28px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-links a {
  color: var(--text2); text-decoration: none; padding: 8px 14px;
  border-radius: 8px; font-weight: 500; font-size: 15px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; gap: 8px; }
.btn-login {
  color: var(--text2); text-decoration: none; padding: 9px 18px;
  font-weight: 600; font-size: 15px; border-radius: 8px;
  transition: all 0.2s;
}
.btn-login:hover { color: var(--text); }
.btn-cta {
  background: var(--accent); color: white; text-decoration: none;
  padding: 9px 20px; border-radius: 8px; font-weight: 700; font-size: 15px;
  transition: all 0.2s;
}
.btn-cta:hover { background: var(--accent2); transform: translateY(-1px); }
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--text2); border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--text2); text-decoration: none; padding: 12px 16px;
  border-radius: 8px; font-weight: 500;
}
.mobile-menu.open { display: flex; }

/* HERO */
.hero {
  min-height: 100vh; padding: 120px 24px 80px;
  display: flex; align-items: center; gap: 60px;
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--pink);
  top: 200px; right: -100px;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: var(--green);
  bottom: 0; left: 30%;
  animation-delay: -5s;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.3);
  padding: 6px 14px; border-radius: 100px;
  font-size: 14px; color: var(--accent); font-weight: 600;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 24px;
}
.hero-title .line1, .hero-title .line2 { display: block; }
.hero-title .line3 { display: block; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 50%, var(--yellow) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px; color: var(--text2); line-height: 1.7;
  margin-bottom: 36px; max-width: 480px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white; text-decoration: none;
  padding: 14px 28px; border-radius: 12px;
  font-weight: 700; font-size: 16px;
  transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(88,101,242,0.4);
}
.btn-primary.large { padding: 16px 36px; font-size: 18px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text); text-decoration: none;
  padding: 14px 28px; border-radius: 12px;
  font-weight: 700; font-size: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.btn-secondary svg { width: 18px; height: 18px; }
.btn-secondary:hover { background: var(--surface2); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); text-decoration: none;
  padding: 16px 36px; border-radius: 12px;
  font-weight: 700; font-size: 18px;
  border: 2px solid var(--border);
  transition: all 0.3s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 24px; font-weight: 800; color: var(--text); }
.stat span { font-size: 13px; color: var(--text3); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* APP MOCKUP */
.hero-visual { flex: 1; display: flex; justify-content: flex-end; }
.app-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  width: 520px;
  height: 380px;
  display: flex;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  animation: mockup-float 6s ease-in-out infinite;
}
@keyframes mockup-float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
.mockup-sidebar {
  width: 220px; background: #1e1f22;
  display: flex;
}
.server-list {
  width: 56px; background: #1a1b1e;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0; gap: 8px;
}
.server-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.server-icon.active { background: var(--accent); border-radius: 14px; }
.server-icon:hover { border-radius: 14px; }
.server-add {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(87,242,135,0.1); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; transition: all 0.2s;
}
.server-add:hover { border-radius: 14px; background: var(--green); color: white; }
.channel-list { flex: 1; padding: 8px; overflow: hidden; }
.channel-category {
  font-size: 10px; font-weight: 700; color: var(--text3);
  padding: 12px 8px 4px; letter-spacing: 0.8px;
}
.channel-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 6px;
  font-size: 13px; color: var(--text3); cursor: pointer;
  transition: all 0.2s;
}
.channel-item.active { background: rgba(255,255,255,0.07); color: var(--text); }
.channel-item:hover { background: rgba(255,255,255,0.05); color: var(--text2); }
.channel-item span { font-size: 16px; color: var(--text3); }
.mockup-chat {
  flex: 1; display: flex; flex-direction: column;
  background: #313338;
}
.chat-header {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; height: 48px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  font-weight: 600; font-size: 15px;
}
.channel-hash { color: var(--text3); font-size: 20px; }
.chat-actions { margin-left: auto; display: flex; gap: 12px; font-size: 16px; cursor: pointer; }
.chat-messages { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.message { display: flex; gap: 10px; animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.msg-content { flex: 1; }
.msg-author { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.msg-time { font-size: 10px; color: var(--text3); font-weight: 400; margin-left: 6px; }
.msg-text { font-size: 13px; color: var(--text2); line-height: 1.4; }
.typing-dots { display: flex; gap: 4px; align-items: center; padding: 8px 0; }
.typing-dots span {
  width: 6px; height: 6px; background: var(--text3); border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
}
.chat-input {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px 12px;
  background: #383a40; border-radius: 8px; padding: 8px 12px;
}
.chat-input input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text2); font-size: 13px; font-family: 'Outfit', sans-serif;
}
.input-actions { display: flex; gap: 8px; font-size: 16px; cursor: pointer; }

/* FEATURES */
.features { padding: 100px 24px; }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  background: rgba(88,101,242,0.15); color: var(--accent);
  padding: 6px 16px; border-radius: 100px; font-size: 13px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px; border: 1px solid rgba(88,101,242,0.2);
}
.section-header h2 {
  font-size: clamp(36px, 4vw, 56px); font-weight: 900;
  letter-spacing: -1.5px; margin-bottom: 16px;
}
.section-header p { font-size: 18px; color: var(--text2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.feature-large { grid-column: span 2; }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(var(--color, #5865F2), 0.15);
  background-color: color-mix(in srgb, var(--color, #5865F2) 15%, transparent);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; fill: var(--color, #5865F2); }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--text2); line-height: 1.6; }
.voice-cards { display: flex; gap: 12px; margin-top: 24px; }
.voice-user {
  background: var(--surface2);
  border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1;
}
.voice-user.active-speaker { border: 2px solid var(--green); }
.vu-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.vu-name { font-size: 12px; font-weight: 600; color: var(--text2); }
.voice-wave { display: flex; gap: 2px; align-items: flex-end; height: 20px; }
.voice-wave span {
  width: 3px; background: var(--green); border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
.voice-wave span:nth-child(1) { height: 8px; }
.voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 10px; animation-delay: 0.4s; }
@keyframes wave {
  0%,100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}
.bot-showcase { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.bot-item {
  background: var(--surface2);
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text2);
  border: 1px solid var(--border);
}

/* HOW IT WORKS */
.how-it-works { padding: 80px 24px; background: var(--bg2); }
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap; margin-top: 48px;
}
.step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 220px;
}
.step-num {
  font-size: 56px; font-weight: 900; color: var(--accent);
  opacity: 0.3; line-height: 1; margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.step-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text2); line-height: 1.6; }
.step-arrow { font-size: 32px; color: var(--text3); }

/* CTA */
.cta-section {
  padding: 100px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(88,101,242,0.2), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.cta-section h2 {
  font-size: clamp(40px,5vw,72px); font-weight: 900;
  letter-spacing: -2px; margin-bottom: 16px; position: relative;
}
.cta-section p { font-size: 20px; color: var(--text2); margin-bottom: 40px; position: relative; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* FOOTER */
.footer { padding: 64px 24px 32px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text3); margin-top: 12px; font-size: 14px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text2); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text3);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-desc { max-width: 100%; }
  .hero-btns, .cta-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { justify-content: center; }
  .app-mockup { width: 100%; max-width: 520px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-large { grid-column: span 1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; margin-left: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
}
