/* ── Heyven landing ─────────────────────────────────────────── */
:root {
  --bg: #0a0a10;
  --bg-2: #0d0d16;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #ededf2;
  --text-dim: #9ca0ac;
  --text-faint: #666b78;
  --sky: #38bdf8;
  --indigo: #6366f1;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --radius: 16px;
  --grad: linear-gradient(100deg, var(--sky), var(--indigo) 55%, var(--violet));
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── Background decor ── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow-a { width: 620px; height: 620px; top: -220px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(99,102,241,.32), transparent 65%); }
.bg-glow-b { width: 520px; height: 520px; top: 34%; left: -220px; background: radial-gradient(circle, rgba(56,189,248,.14), transparent 65%); }
.bg-glow-c { width: 520px; height: 520px; top: 46%; right: -220px; background: radial-gradient(circle, rgba(168,85,247,.15), transparent 65%); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 28px rgba(99, 102, 241, .38);
}
.btn-primary:hover { box-shadow: 0 10px 36px rgba(99, 102, 241, .55); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border-color: var(--panel-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 16, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.scrolled { border-bottom-color: var(--panel-border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo { border-radius: 9px; box-shadow: 0 4px 16px rgba(99,102,241,.35); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none; background: none; border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 8px; cursor: pointer; flex-direction: column; gap: 4px;
}
.nav-burger span { width: 18px; height: 2px; background: var(--text-dim); border-radius: 2px; }

/* ── Hero ── */
.hero { padding: 110px 0 70px; text-align: center; }
.hero-logo {
  width: 108px; height: 108px; margin: 0 auto 30px;
  filter: drop-shadow(0 14px 44px rgba(124, 58, 237, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-title {
  font-size: clamp(38px, 6.2vw, 62px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 660px; margin: 0 auto 36px;
  color: var(--text-dim); font-size: clamp(16px, 2vw, 18.5px);
}
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; color: var(--text-faint); font-size: 13.5px; }
.hero-meta .ver { color: var(--indigo); font-weight: 600; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 760px; margin: 60px auto 0;
}
.stat {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 18px 10px;
}
.stat-num { font-size: 20px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

/* ── App mock ── */
.mock-section { padding: 44px 0 40px; }
.mock-wrap { position: relative; max-width: 1060px; margin: 0 auto; }
.mock-wrap::before {
  content: ''; position: absolute; inset: -1px; border-radius: 26px; z-index: -1;
  background: linear-gradient(135deg, rgba(56,189,248,.4), rgba(99,102,241,.25) 45%, rgba(168,85,247,.4));
  filter: blur(22px); opacity: .55;
}
.mock {
  position: relative;
  display: grid; grid-template-columns: 76px 220px 1fr 236px;
  height: 470px; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background: #10101a;
  box-shadow: var(--shadow), 0 0 90px rgba(99, 102, 241, .15);
}
.mock::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); }
.mock-rail { background: #0b0b12; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mock-home {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(99, 102, 241, .45);
}
.mock-sep { width: 32px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); margin: 2px 0; }
.mock-server { width: 48px; height: 48px; border-radius: 16px; background: #171722; position: relative; display: flex; align-items: center; justify-content: center; }
.mock-server span { width: 20px; height: 20px; border-radius: 7px; background: #262637; }
.mock-server-live { box-shadow: inset 0 0 0 2px rgba(52, 211, 153, .7); }
.dot-live {
  position: absolute; bottom: -5px; right: -5px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--green); border: 3px solid #0b0b12;
}
.badge-unread {
  position: absolute; top: -6px; right: -8px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: #ef4444; color: #fff;
  font-size: 10.5px; font-weight: 700; font-style: normal;
  display: flex; align-items: center; justify-content: center; border: 2.5px solid #0b0b12;
}
.mock-server-add { background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.14); color: #5b6070; }
.mock-server-add svg { width: 18px; height: 18px; }
.mock-channels { background: #11111b; padding: 14px 10px; font-size: 12.5px; color: var(--text-faint); overflow: hidden; }
.mock-c-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 8px 12px; font-weight: 700; font-size: 13.5px; color: var(--text);
}
.mock-c-header svg { width: 14px; height: 14px; color: var(--text-faint); }
.mock-c-cat { font-size: 10px; letter-spacing: .1em; font-weight: 700; color: #565d70; padding: 10px 8px 4px; }
.mock-c-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; margin-bottom: 2px; }
.mock-c-row.active { background: rgba(99, 102, 241, .18); color: var(--text); }
.mock-hash { color: #4a5164; font-weight: 700; font-size: 15px; }
.mock-c-row-v svg { width: 14px; height: 14px; color: #4a5164; }
.mock-c-row.active svg { color: var(--indigo); }
.mock-c-count { margin-left: auto; background: rgba(255,255,255,.08); border-radius: 8px; padding: 0 7px; font-size: 11px; color: var(--text-dim); }
.mock-chat { background: #14141f; display: flex; flex-direction: column; min-width: 0; }
.mock-chat-top {
  padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
}
.mock-chat-top .mock-hash { font-size: 17px; }
.mock-topic { color: var(--text-faint); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.mock-chat-icons { margin-left: auto; display: flex; gap: 10px; color: #4a5164; }
.mock-chat-icons svg { width: 16px; height: 16px; }
.mock-pinned {
  display: flex; align-items: center; gap: 8px; padding: 7px 16px;
  font-size: 12px; color: var(--text-faint);
  border-bottom: 1px solid rgba(255,255,255,.04); background: rgba(255,255,255,.015);
}
.mock-pinned svg { width: 12px; height: 12px; color: var(--indigo); flex-shrink: 0; }
.mock-pinned b { color: var(--text-dim); font-weight: 600; }
.mock-msgs { flex: 1; padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.mock-msg { display: flex; gap: 11px; }
.mock-ava {
  position: relative; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff;
}
.mock-ava-1 { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.mock-ava-2 { background: linear-gradient(135deg, #a855f7, #f472b6); }
.mock-ava-3 { background: linear-gradient(135deg, #34d399, #22d3ee); }
.dot {
  position: absolute; bottom: -1px; right: -1px; width: 12px; height: 12px;
  border-radius: 50%; background: #3f3f46; border: 2.5px solid #14141f;
}
.dot-online { background: var(--green); }
.mock-msg-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; flex-wrap: wrap; }
.mock-name-1 { color: #7dd3fc; }
.mock-name-2 { color: #f0abfc; }
.mock-name-3 { color: #6ee7b7; }
.mock-time { color: var(--text-faint); font-size: 11px; font-weight: 400; }
.mock-chip { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; }
.chip-violet { background: rgba(168, 85, 247, .18); color: #d8b4fe; }
.chip-cyan { background: rgba(34, 211, 238, .15); color: #67e8f9; }
.mock-msg-text { font-size: 13px; color: #c6c9d4; margin-top: 2px; line-height: 1.45; }
.mock-mention { background: rgba(99, 102, 241, .25); color: #a5b4fc; border-radius: 5px; padding: 1px 5px; font-weight: 600; }
.mock-reactions { display: flex; gap: 6px; margin-top: 5px; }
.mock-reactions span {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 1px 8px; font-size: 11.5px; color: var(--text-dim);
}
.mock-reactions span.hot { border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.1); }
.mock-typing {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 4px;
  font-size: 12px; color: var(--text-faint);
}
.mock-typing-ava {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #f472b6); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mock-typing b { font-weight: 600; }
.td { display: inline-flex; gap: 3px; margin-left: 2px; }
.td i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); animation: td 1.2s infinite; }
.td i:nth-child(2) { animation-delay: .2s; }
.td i:nth-child(3) { animation-delay: .4s; }
@keyframes td { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.mock-input {
  margin: 4px 16px 14px; padding: 10px 14px; border-radius: 11px;
  background: #1b1b28; display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.05); font-size: 13px; color: var(--text-faint);
}
.mock-input svg { width: 16px; height: 16px; flex-shrink: 0; color: #4a5164; }
.mock-input-right { margin-left: auto; display: flex; gap: 12px; }
.mock-members { background: #11111b; padding: 16px 12px; display: flex; flex-direction: column; overflow: hidden; }
.mock-m-title { font-size: 10.5px; letter-spacing: .08em; font-weight: 700; color: var(--text-faint); margin-bottom: 12px; }
.mock-voice { display: flex; flex-direction: column; gap: 10px; }
.mock-vtile {
  background: #1a1a28; border: 1px solid rgba(255,255,255,.05); border-radius: 14px;
  padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.mock-vtile.speaking { border-color: rgba(52, 211, 153, .45); box-shadow: 0 0 18px rgba(52, 211, 153, .15); }
.mock-vtile.muted { opacity: .55; }
.mock-vtile .mock-ava { width: 44px; height: 44px; font-size: 16px; }
.mock-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2.5px solid var(--green);
  animation: ring 1.6s ease-in-out infinite;
}
@keyframes ring {
  0%,100% { box-shadow: 0 0 6px rgba(52, 211, 153, .4); }
  50% { box-shadow: 0 0 18px rgba(52, 211, 153, .8); }
}
.mock-vname { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.mock-muted-label { font-size: 10.5px; color: var(--text-faint); }
.mock-voicebar { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.mock-voicebar i {
  width: 3.5px; border-radius: 2px; background: var(--grad);
  animation: eq 1s ease-in-out infinite;
}
.mock-voicebar i:nth-child(1) { height: 6px; }
.mock-voicebar i:nth-child(2) { height: 14px; animation-delay: .15s; }
.mock-voicebar i:nth-child(3) { height: 10px; animation-delay: .3s; }
.mock-voicebar i:nth-child(4) { height: 16px; animation-delay: .45s; }
@keyframes eq { 0%,100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }
.mock-controls { margin-top: auto; display: flex; gap: 10px; padding-top: 14px; }
.mc {
  width: 44px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center; color: var(--text-dim);
}
.mc svg { width: 17px; height: 17px; }
.mc-off { background: var(--indigo); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,.4); }
.mc-danger { background: #dc2626; border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,.35); }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(99,102,241,.05) 30%, rgba(168,85,247,.05) 70%, transparent); }
.section-title { font-size: clamp(30px, 4.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--text-dim); max-width: 560px; margin: 0 auto 54px; font-size: 16.5px; }

/* Features grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.045); }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 23px; height: 23px; }
.icon-sky { background: rgba(56,189,248,.12); color: var(--sky); }
.icon-violet { background: rgba(168,85,247,.12); color: var(--violet); }
.icon-cyan { background: rgba(34,211,238,.12); color: var(--cyan); }
.icon-pink { background: rgba(244,114,182,.12); color: var(--pink); }
.icon-indigo { background: rgba(99,102,241,.14); color: var(--indigo); }
.icon-green { background: rgba(52,211,153,.12); color: var(--green); }
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 64px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 30px 26px 26px; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; }
.center-cta { text-align: center; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 13px; overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: rgba(99,102,241,.4); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 500; color: var(--indigo);
  transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--text-dim); font-size: 14.5px; max-width: 640px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--panel-border); padding: 34px 0; margin-top: 30px; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-brand img { border-radius: 7px; }
.footer-copy { color: var(--text-faint); font-size: 13.5px; }
.footer-links { display: flex; gap: 18px; margin-left: auto; }
.footer-links a { color: var(--text-dim); font-size: 13.5px; transition: color .15s; }
.footer-links a:hover { color: var(--text); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Sub-pages (FAQ / Changelog) ── */
.page-hero { padding: 84px 0 10px; text-align: center; }
.page-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-faint); font-size: 13.5px; margin-bottom: 18px;
  transition: color .15s;
}
.page-back:hover { color: var(--text); }
.page-title { font-size: clamp(32px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-sub { color: var(--text-dim); font-size: 16px; max-width: 560px; margin: 0 auto; }
.page-section { padding-top: 44px; }

/* FAQ search */
.faq-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 26px;
  transition: border-color .2s ease;
}
.faq-search:focus-within { border-color: rgba(99, 102, 241, .5); }
.faq-search svg { width: 19px; height: 19px; color: var(--text-faint); flex-shrink: 0; }
.faq-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font: inherit; font-size: 15px;
}
.faq-search input::placeholder { color: var(--text-faint); }
.faq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.faq-count { color: var(--text-faint); font-size: 12.5px; white-space: nowrap; }
.faq-empty { text-align: center; color: var(--text-faint); padding: 34px 0; }

/* Active nav link */
.nav a.active { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .mock { grid-template-columns: 64px 190px 1fr; height: 430px; }
  .mock-members { display: none; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-burger { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,10,16,.97); border-bottom: 1px solid var(--panel-border);
    padding: 12px 24px 18px; backdrop-filter: blur(14px);
  }
  .nav.open a { padding: 10px 0; font-size: 16px; }
  .hero { padding: 76px 0 50px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .mock { grid-template-columns: 56px 1fr; height: 400px; }
  .mock-channels { display: none; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { margin-left: 0; width: 100%; justify-content: center; }
}
