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

:root {
  --bg: #0a0c12;
  --bg2: #0f1118;
  --bg3: #161923;
  --bg4: #1e2130;
  --border: rgba(255,255,255,0.07);
  --accent: #6ee7f7;
  --accent2: #7c6af7;
  --accent-glow: rgba(110,231,247,0.15);
  --text: #e8eaf0;
  --text2: #8b90a0;
  --text3: #555a6e;
  --red: #ef4444;
  --green: #22c55e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

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

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

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,12,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-icon { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; color: var(--text2); }
.nav-links a:hover { color: var(--text); }
.nav-admin {
  padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.82rem; color: var(--text2);
  transition: border-color .2s, color .2s;
}
.nav-admin:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6ee7f7, transparent);
  top: -100px; left: -150px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c6af7, transparent);
  bottom: 0; right: -100px;
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 680px;
}
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(110,231,247,0.3);
  background: rgba(110,231,247,0.06);
  font-size: 0.78rem; font-weight: 500; color: var(--accent);
  letter-spacing: 0.04em;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500; color: var(--text2); margin-bottom: 16px;
}
.hero-desc {
  font-size: 0.95rem; color: var(--text3); line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 13px 32px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0c12; cursor: pointer; border: none;
  box-shadow: 0 0 24px rgba(110,231,247,0.25);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(110,231,247,0.4); }

.btn-ghost {
  padding: 13px 32px; border-radius: 10px; font-weight: 500; font-size: 0.95rem;
  border: 1px solid var(--border); color: var(--text2);
  cursor: pointer; background: transparent;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── PREVIEW MOCKUPS ── */
.preview-wrapper {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 24px;
  margin-top: 64px;
  perspective: 1000px;
}

/* Desktop */
.mockup-desktop {
  width: min(860px, 90vw);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(110,231,247,0.08);
  background: var(--bg2);
  transform: rotateX(2deg);
}
.mockup-titlebar {
  height: 36px; background: var(--bg3);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
  border-bottom: 1px solid var(--border);
}
.tb-dot { width: 12px; height: 12px; border-radius: 50%; }
.tb-red { background: #ef4444; }
.tb-yellow { background: #f59e0b; }
.tb-green { background: #22c55e; }
.tb-title { margin-left: auto; font-size: 0.75rem; color: var(--text3); margin-right: auto; }

.mockup-app { display: flex; height: 420px; }

/* Server icons sidebar */
.app-servers {
  width: 60px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 0; gap: 6px; border-right: 1px solid var(--border);
}
.srv-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--text2); cursor: pointer;
  transition: border-radius .2s, background .2s;
}
.srv-icon:hover, .srv-icon.srv-active {
  border-radius: 16px; background: var(--accent); color: #0a0c12;
}
.srv-icon.srv-add { font-size: 1.2rem; color: var(--accent); background: rgba(110,231,247,0.1); }
.srv-sep { width: 28px; height: 1px; background: var(--border); margin: 2px 0; }

/* Channel list */
.app-channels {
  width: 180px; background: var(--bg2);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border); overflow: hidden;
}
.ch-header {
  padding: 12px 12px 8px; font-size: 0.8rem; font-weight: 700;
  color: var(--text); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.ch-badge { font-size: 0.65rem; }
.ch-badge.online { color: var(--green); }
.ch-section {
  padding: 10px 12px 4px; font-size: 0.62rem; font-weight: 700;
  color: var(--text3); letter-spacing: 0.08em;
}
.ch-item {
  padding: 5px 10px; font-size: 0.78rem; color: var(--text2);
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  border-radius: 6px; margin: 1px 6px;
  transition: background .15s, color .15s;
}
.ch-item:hover { background: var(--bg3); color: var(--text); }
.ch-item.ch-active { background: rgba(110,231,247,0.12); color: var(--accent); }
.ch-ico { font-size: 0.7rem; opacity: 0.7; }
.ch-count {
  margin-left: auto; font-size: 0.65rem; background: var(--accent);
  color: #0a0c12; padding: 1px 5px; border-radius: 8px; font-weight: 700;
}
.app-user {
  margin-top: auto; padding: 10px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.user-info span:first-child { font-size: 0.78rem; font-weight: 600; }
.user-status { font-size: 0.65rem; color: var(--green); }
.user-mic { font-size: 0.75rem; margin-left: auto; }

/* Main area */
.app-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.voice-header {
  padding: 10px 14px; background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600;
}
.voice-ico { color: var(--accent); font-size: 0.85rem; }
.voice-controls { margin-left: auto; display: flex; gap: 6px; }
.vc-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg4); cursor: pointer; font-size: 0.7rem; color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.vc-btn.active { background: rgba(110,231,247,0.15); border-color: var(--accent); color: var(--accent); }
.vc-btn.red { background: rgba(239,68,68,0.15); border-color: var(--red); color: var(--red); }

.voice-tiles {
  display: flex; gap: 10px; padding: 12px 14px;
  background: rgba(110,231,247,0.03);
  border-bottom: 1px solid var(--border);
}
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--bg4); border: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text2); min-width: 72px;
}
.tile-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: #fff;
}
.tile-speaking { font-size: 0.62rem; color: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } }

.chat-area { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; align-items: flex-start; gap: 8px; }
.msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff;
}
.msg-body { display: flex; flex-direction: column; gap: 2px; }
.msg-name { font-size: 0.7rem; font-weight: 700; color: var(--text2); }
.msg-text { font-size: 0.78rem; color: var(--text); }

/* User list */
.app-users {
  width: 150px; background: var(--bg2);
  border-left: 1px solid var(--border); padding: 10px 0; overflow-y: auto;
}
.ul-section {
  padding: 6px 12px 3px; font-size: 0.6rem; font-weight: 700;
  color: var(--text3); letter-spacing: 0.08em;
}
.ul-item {
  padding: 4px 10px; display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text2); cursor: pointer; border-radius: 6px; margin: 1px 6px;
}
.ul-item:hover { background: var(--bg3); color: var(--text); }
.ul-item.ul-offline { opacity: 0.45; }
.ul-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg4); display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.ul-dot { margin-left: auto; font-size: 0.55rem; }
.ul-dot.green { color: var(--green); }
.ul-dot.gray { color: var(--text3); }

/* ── PHONE MOCKUP ── */
.mockup-phone {
  width: 180px; flex-shrink: 0;
  border-radius: 28px; border: 2px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow), 0 0 30px rgba(124,106,247,0.12);
  overflow: hidden; position: relative;
  align-self: flex-end;
}
.phone-notch {
  width: 60px; height: 10px; background: var(--bg3);
  border-radius: 0 0 10px 10px; margin: 0 auto;
}
.phone-screen { padding: 0; display: flex; flex-direction: column; height: 360px; }

.mob-topbar {
  padding: 8px 12px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; font-weight: 600;
}
.mob-back, .mob-menu { color: var(--accent); font-size: 1rem; }
.mob-title { font-size: 0.78rem; font-weight: 700; }

.mob-voice {
  display: flex; gap: 6px; padding: 8px 8px 6px;
  background: rgba(110,231,247,0.04);
}
.mob-tile {
  flex: 1; background: var(--bg4); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 7px 4px; font-size: 0.65rem; color: var(--text2);
  border: 1px solid var(--border);
}
.mob-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: #fff;
}
.mob-speaking {
  width: 20px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: pulse 1s infinite;
}

.mob-controls {
  display: flex; justify-content: center; gap: 10px; padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}
.mob-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg3); font-size: 0.75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mob-btn.active { background: rgba(110,231,247,0.15); border-color: var(--accent); }
.mob-btn.red { background: rgba(239,68,68,0.15); border-color: var(--red); }

.mob-chat { flex: 1; overflow: hidden; padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; }
.mob-msg { display: flex; }
.mob-msg.right { justify-content: flex-end; }
.mob-msg.left { justify-content: flex-start; }
.mob-bubble {
  max-width: 80%; padding: 5px 9px; border-radius: 12px;
  font-size: 0.68rem; line-height: 1.4;
}
.mob-bubble.right { background: linear-gradient(135deg, var(--accent2), #5b50c0); color: #fff; }
.mob-bubble.left { background: var(--bg4); color: var(--text); border: 1px solid var(--border); }

.mob-input {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-top: 1px solid var(--border);
  background: var(--bg2);
}
.mob-input-field {
  flex: 1; font-size: 0.68rem; color: var(--text3);
  background: var(--bg3); padding: 4px 8px; border-radius: 8px;
}
.mob-send { font-size: 0.75rem; color: var(--accent); background: none; border: none; cursor: pointer; }

.mob-nav {
  display: flex; justify-content: space-around; align-items: center;
  padding: 6px 0; border-top: 1px solid var(--border);
  background: var(--bg2);
}
.mob-nav-item { font-size: 1rem; opacity: 0.4; cursor: pointer; }
.mob-nav-item.active { opacity: 1; }

/* ── SECTIONS ── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; text-align: center; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--text2); font-size: 1rem;
  margin-bottom: 48px;
}

/* ── FEATURES ── */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: rgba(110,231,247,0.3);
  transform: translateY(-3px);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.6; }

/* ── DOWNLOAD ── */
.download {
  padding: 100px 0; background: linear-gradient(180deg, transparent, var(--bg2) 50%, transparent);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.dl-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; transition: border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.dl-card:hover { border-color: rgba(110,231,247,0.35); transform: translateY(-4px); }
.dl-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity .2s;
}
.dl-card:hover::before { opacity: 1; }

.dl-icon { font-size: 2.8rem; margin-bottom: 4px; }
.dl-label { font-size: 1.05rem; font-weight: 700; }
.dl-count { font-size: 0.78rem; color: var(--text3); }
.dl-count span { color: var(--accent); font-weight: 600; }

.dl-btn {
  margin-top: 8px; padding: 11px 28px;
  border-radius: 10px; font-weight: 600; font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0c12; border: none; cursor: pointer;
  box-shadow: 0 0 20px rgba(110,231,247,0.2);
  transition: transform .15s, box-shadow .15s;
  width: 100%;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(110,231,247,0.35); }
.dl-btn:disabled {
  background: var(--bg4); color: var(--text3); box-shadow: none;
  cursor: not-allowed; transform: none;
  border: 1px solid var(--border);
}

/* ── CHANGELOG ── */
.changelog { padding: 80px 0 100px; }
.changelog-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.cl-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.cl-item.open { border-color: rgba(110,231,247,0.25); }

.cl-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.cl-header:hover { background: rgba(255,255,255,0.03); }

.cl-version {
  font-size: 0.75rem; font-weight: 700; padding: 3px 10px;
  border-radius: 6px; background: rgba(110,231,247,0.1);
  border: 1px solid rgba(110,231,247,0.2); color: var(--accent);
  white-space: nowrap;
}
.cl-title { font-size: 0.95rem; font-weight: 600; flex: 1; }
.cl-date { font-size: 0.78rem; color: var(--text3); white-space: nowrap; }
.cl-chevron {
  font-size: 0.75rem; color: var(--text3);
  transition: transform .25s; flex-shrink: 0;
}
.cl-item.open .cl-chevron { transform: rotate(180deg); }

.cl-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.cl-item.open .cl-body { max-height: 800px; }

.cl-content {
  padding: 0 20px 20px;
  font-size: 0.875rem; color: var(--text2); line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.cl-content ul { padding-left: 18px; margin: 0; }
.cl-content li { margin-bottom: 4px; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border); padding: 28px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  text-align: center; font-size: 0.82rem; color: var(--text3);
}
.footer-sep { margin: 0 8px; }
.footer-inner a:hover { color: var(--accent); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 22px; font-size: 0.85rem;
  box-shadow: var(--shadow); z-index: 200; transition: transform .3s;
  pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .preview-wrapper { flex-direction: column; align-items: center; }
  .mockup-phone { align-self: center; }
  .app-users { display: none; }
}
@media (max-width: 600px) {
  .mockup-desktop { display: none; }
  .nav-links a:not(.nav-admin) { display: none; }
}
