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

:root {
  --bg: #0E0F12;
  --surface: #16171C;
  --surface2: #1E1F26;
  --surface3: #282A33;
  --border: #2D2F3A;
  --text: #E4E5E8;
  --text-secondary: #8B8D97;
  --text-muted: #5C5E69;
  --purple: #7C3AED;
  --purple-light: #9F67FF;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --green: #22C55E;
  --error: #EF4444;
}

html {
  scroll-behavior: smooth;
}

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

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

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, #EC4899 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 24px var(--purple-glow);
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px var(--purple-glow);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface3);
  transform: translateY(-2px);
}

/* ── Preview Window ── */

.hero-preview {
  margin-top: 60px;
  perspective: 1000px;
}

.preview-window {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transform: rotateX(4deg);
}

.preview-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

.preview-content {
  display: flex;
  height: 300px;
}

.preview-sidebar {
  width: 180px;
  padding: 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-channel {
  height: 28px;
  background: var(--surface2);
  border-radius: 6px;
}

.preview-channel.active {
  background: var(--surface3);
  border-left: 3px solid var(--purple);
}

.preview-channel.voice {
  background: var(--surface2);
  border-left: 3px solid var(--green);
}

.preview-chat {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-msg {
  height: 32px;
  background: var(--surface2);
  border-radius: 8px;
  width: 80%;
}

.preview-msg.short { width: 45%; }

.preview-msg.ai {
  width: 70%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.ai-badge {
  background: var(--purple);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Features ── */

.features {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  color: var(--purple-light);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Download ── */

.download {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-content {
  text-align: center;
}

.download-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-content > p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  min-width: 220px;
}

.btn-download:hover {
  border-color: var(--purple);
  background: var(--surface3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-download svg {
  flex-shrink: 0;
}

.btn-download div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dl-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dl-platform {
  font-size: 18px;
  font-weight: 700;
}

.dl-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.dl-note a {
  color: var(--purple-light);
  text-decoration: none;
}

.dl-note a:hover {
  text-decoration: underline;
}

.dl-warning {
  max-width: 620px;
  margin: 20px auto 0;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.dl-warning summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.dl-warning summary::-webkit-details-marker {
  display: none;
}

.dl-warning summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s ease;
}

.dl-warning[open] summary::before {
  transform: rotate(90deg);
}

.dl-warning p {
  margin: 12px 0 0;
}

.dl-warning a {
  color: var(--purple-light);
}

.dl-warning pre {
  margin: 10px 0 0;
  padding: 10px 12px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}

.dl-warning code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
}

/* ── Footer ── */

.footer {
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.footer-content p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Responsive ── */

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

  .hero {
    padding: 120px 0 60px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .preview-window {
    transform: none;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}
