/* The sections under the hero: the app demo, features, voice, personalisation, Dust and the footer. */

/* ---------- app window demo ---------- */
.app-window {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--panel); box-shadow: var(--shadow), 0 0 120px rgba(107, 133, 255, .14);
}
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0c1224; border-bottom: 1px solid var(--line); }
.win-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #f0565f; }
.win-bar > span:nth-child(2) { background: #f5b544; }
.win-bar > span:nth-child(3) { background: #3ccf8b; }
.win-bar em { font-style: normal; font-size: 13px; color: var(--faint); margin-left: 10px; font-family: var(--mono); }
.win-body { display: grid; grid-template-columns: 68px 220px 1fr 200px; height: 520px; }

.rail { background: #0b1122; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.rail-item {
  position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #0d1326; background: var(--c, var(--raised));
  background-image: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 60%); transition: border-radius .2s;
}
.rail-item:hover { border-radius: 11px; }
.rail-item.on::before { content: ''; position: absolute; left: -12px; width: 4px; height: 26px; border-radius: 0 4px 4px 0; background: var(--text); }
.rail-item.logo { background: none; }
.rail-item.add { background: var(--raised); color: var(--online); font-size: 22px; font-weight: 500; }
.rail-item.folder { background: var(--raised); grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; }
.rail-item.folder span { width: 100%; aspect-ratio: 1; border-radius: 5px; background: var(--c); }
.rail-sep { width: 28px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.pip { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; border-radius: 99px; font-style: normal; font-size: 11px; line-height: 18px; color: #fff; background: var(--badge); border: 3px solid #0b1122; box-sizing: content-box; text-align: center; }

.channels { background: var(--panel-2); padding: 0 10px 12px; overflow: hidden; }
.srv-banner { position: relative; margin: 0 -10px 8px; height: 82px; overflow: hidden; }
.srv-banner img { width: 100%; height: 100%; object-fit: cover; }
.srv-banner strong { position: absolute; left: 14px; bottom: 10px; font-size: 16px; text-shadow: 0 2px 8px #000; }
.cat { margin: 14px 8px 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.ch { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.ch.on { background: var(--raised); color: var(--text); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--badge); color: #fff; font: normal 700 11.5px/20px var(--font); text-align: center; }
.vc-people { display: grid; gap: 4px; padding: 2px 0 2px 26px; }
.vc { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--soft); }
.vc b, .mem b {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 9px; color: #0d1326; background: var(--c);
  background-image: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 60%);
}
.vc em { font-style: normal; }
.vc.speaking b { box-shadow: 0 0 0 2px var(--panel-2), 0 0 0 4px var(--online); }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }
.chat-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.chat-head span { color: var(--faint); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 14px 6px 6px; scrollbar-width: thin; scrollbar-color: var(--raised) transparent; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 6px 12px; border-radius: 8px; animation: rise .3s ease-out; }
.msg:hover { background: rgba(255, 255, 255, .025); }
.msg.mention { background: rgba(240, 68, 79, .09); box-shadow: inset 2px 0 var(--badge); }
.msg.whisper { opacity: .85; font-style: italic; }
@keyframes rise { from { opacity: 0; translate: 0 8px; } }
.msg .av {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #0d1326; background: var(--c);
  background-image: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 60%);
}
.msg .who { font-weight: 700; color: var(--c); }
.msg time { color: var(--faint); font-size: 12px; margin-left: 8px; }
.msg p { margin: 2px 0 0; color: var(--soft); font-size: 15px; overflow-wrap: anywhere; }
.msg p.big { font-size: 34px; line-height: 1.2; }
.msg code { font-family: var(--mono); font-size: 13px; padding: 1px 5px; border-radius: 5px; background: var(--raised); }
.msg .at { color: var(--accent-2); background: var(--accent-soft); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.spoiler { background: var(--raised-2); color: transparent; border-radius: 4px; cursor: pointer; transition: color .2s; }
.spoiler.open { color: var(--soft); background: var(--raised); }
.reacts { display: flex; gap: 6px; margin-top: 6px; }
.react { display: inline-flex; gap: 5px; align-items: center; padding: 2px 8px; border-radius: 8px; font-size: 13px; background: var(--raised); border: 1px solid var(--line-strong); animation: pop .3s; }
.react.mine { background: var(--accent-soft); border-color: var(--accent); }
@keyframes pop { 50% { transform: scale(1.25); } }
.typing { margin: 0; padding: 0 20px 4px; font-size: 13px; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; margin-right: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 30% { opacity: 1; translate: 0 -2px; } 0%, 60%, 100% { opacity: .35; } }
.composer { display: flex; gap: 8px; margin: 6px 16px 16px; padding: 4px 4px 4px 14px; background: var(--raised); border-radius: var(--r-md); border: 1px solid transparent; transition: border-color .15s; }
.composer:focus-within { border-color: var(--accent); }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 9px 0; font-size: 15px; }
.composer input::placeholder { color: var(--faint); }
.composer button { width: 38px; border-radius: var(--r-sm); background: var(--accent); color: #fff; }

.members { background: var(--panel-2); padding: 0 10px; }
.mem { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--soft); }
.mem b { width: 32px; height: 32px; border-radius: 10px; font-size: 10px; }
.mem .dot { position: absolute; left: 33px; top: 30px; width: 9px; height: 9px; border: 3px solid var(--panel-2); box-sizing: content-box; --dot-cut: var(--panel-2); }
.mem.off { opacity: .45; }

/* ---------- features ---------- */
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(4, 1fr); }
.features .card { transition: transform .2s ease-out, border-color .2s; transform-style: preserve-3d; }
.features .card:hover { border-color: rgba(143, 163, 255, .35); }
.features p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; font-size: 22px; font-weight: 800; color: var(--accent-2); background: var(--accent-soft); }

/* ---------- voice ---------- */
.voice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--online); background: rgba(60, 207, 139, .14); }
.call-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow); }
.call-top { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 14px; }
.call-top em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--online); background: rgba(60, 207, 139, .12); padding: 3px 9px; border-radius: 99px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--panel-2);
  border: 2px solid transparent; transition: border-color .15s, box-shadow .15s;
}
.tile b { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 16px; color: #0d1326; background: var(--c); background-image: linear-gradient(160deg, rgba(255,255,255,.3), rgba(255,255,255,0) 60%); }
.tile span { position: absolute; left: 10px; bottom: 8px; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .45); }
.tile.talk { border-color: var(--online); box-shadow: 0 0 24px rgba(60, 207, 139, .25); }
.cipher { margin: 14px 0; padding: 10px 12px; border-radius: var(--r-sm); background: #070b17; border: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.cipher code { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.call-btns { display: flex; justify-content: center; gap: 10px; }
.call-btns span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font-size: 18px; }
.call-btns .hang { background: #f0565f; }

/* ---------- personalise ---------- */
.banner-belt { overflow: hidden; margin: 0 0 48px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.belt-track { display: flex; gap: 16px; width: max-content; animation: belt 60s linear infinite; }
.banner-belt:hover .belt-track { animation-play-state: paused; }
.belt-track img { width: 300px; height: 91px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line-strong); }
@keyframes belt { to { translate: calc(-50% - 8px) 0; } }
.yours-row { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; max-width: 900px; margin: 0 auto; }
.profile-card { border-radius: var(--r-xl); overflow: hidden; background: color-mix(in srgb, var(--accent-c) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent-c) 40%, transparent); box-shadow: var(--shadow); transition: background .3s, border-color .3s; }
.pc-banner { height: 110px; background: var(--accent-c); }
.pc-banner img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { position: relative; padding: 0 20px 22px; }
.pc-avatar {
  position: relative; width: 84px; height: 84px; margin-top: -42px; border-radius: 24px; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #0d1326; background: #6b85ff; background-image: linear-gradient(160deg, rgba(255,255,255,.3), rgba(255,255,255,0) 60%);
  border: 5px solid color-mix(in srgb, var(--accent-c) 14%, var(--panel));
}
.pc-avatar .dot { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border: 4px solid var(--panel); box-sizing: content-box; }
.pc-bubble { position: absolute; left: 112px; top: 10px; max-width: calc(100% - 130px); padding: 6px 12px; border-radius: 12px 12px 12px 4px; font-size: 13px; background: var(--raised); color: var(--soft); }
.pc-body h3 { margin-top: 14px; font-size: 22px; }
.pc-name { padding: 0 6px; margin-left: -6px; border-radius: 6px; background: color-mix(in srgb, var(--accent-c) 28%, transparent); transition: background .3s; }
.pc-handle { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.pc-badges { display: flex; gap: 8px; min-height: 30px; }
.pc-badges img { width: 30px; height: 30px; animation: pop .3s; }
.ctl-label { margin: 0 0 10px; font-weight: 700; font-size: 14px; color: var(--soft); }
.ctl-label:not(:first-child) { margin-top: 26px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 32px; height: 32px; border-radius: 10px; background: var(--c); border: 2px solid transparent; transition: transform .15s; }
.swatches button:hover { transform: scale(1.12); }
.swatches button.on { border-color: #fff; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
.status-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.status-pick button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: var(--raised); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; --dot-cut: var(--raised); }
.status-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.badge-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-pick button { position: relative; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line-strong); transition: transform .15s, border-color .15s; }
.badge-pick button:hover { transform: translateY(-2px); }
.badge-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.badge-pick img { width: 28px; height: 28px; }
.badge-pick button[data-tip]:hover::after, .badge-pick button[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; z-index: 5; width: max-content; max-width: 220px;
  padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; text-align: left; white-space: pre-line; background: #05070f; border: 1px solid var(--line-strong); pointer-events: none;
}

/* ---------- dust ---------- */
.dust-card { padding: 48px; background: linear-gradient(130deg, rgba(176, 108, 255, .16), rgba(107, 133, 255, .08) 50%, rgba(255, 209, 102, .08)), var(--panel); }
.dust-head { max-width: 680px; }
.dust-head h2 { font-size: clamp(36px, 5vw, 56px); }
.dust-head p:not(.eyebrow) { color: var(--soft); font-size: 17.5px; margin: 16px 0 0; }
.dust-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dust-points li { display: flex; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: rgba(7, 11, 23, .55); border: 1px solid var(--line-strong); }
.dust-points h3 { font-size: 16.5px; }
.dust-points p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.dp-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 20px; background: rgba(255, 209, 102, .12); }
.mote {
  position: absolute; width: 22px; height: 22px; margin: -11px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff, #ffd166 35%, rgba(255, 159, 67, .6) 60%, transparent 72%);
  filter: drop-shadow(0 0 8px #ffd166); animation: twinkle 1.6s ease-in-out infinite;
}
@keyframes twinkle { 50% { scale: .7; opacity: .7; } }


/* ---------- footer ---------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14.5px; }
.foot p { margin: 0; flex: 1; }

/* ---------- smaller screens ---------- */
@media (max-width: 1060px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .win-body { grid-template-columns: 68px 200px 1fr; }
  .members { display: none; }
}
@media (max-width: 860px) {
  .hero, .voice { grid-template-columns: 1fr; }
  .hero { min-height: 0; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-cta { justify-content: center; }
  .hero-art { width: min(400px, 82%); grid-row: 1; }
  .yours-row { grid-template-columns: 1fr; justify-items: center; }
  .profile-card { width: min(340px, 100%); }
  .dust-card { padding: 32px 22px; }
  .dust-points { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  main > section { padding: 64px 16px; }
  .nav { padding: 12px 16px; }
  .features { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 1fr; height: 460px; }
  .rail, .channels { display: none; }
  .banner-belt { margin: 0 0 40px; }
  .belt-track img { width: 220px; height: 67px; }
  .foot { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  main > section { padding: 56px 16px; }
  .nav { gap: 12px; }
  .nav-right { gap: 8px; }
  .brand { font-size: 18px; }
  .nav-right .btn { white-space: nowrap; padding: 7px 12px; }
  .hero-art { width: 72%; }
  .ring-3 { inset: -4%; }
  .hero h1 { font-size: 40px; }
  .eyebrow.live { display: block; }
  .eyebrow.live .sdot { vertical-align: -1px; margin-right: 6px; }
  .lede { font-size: 17px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .section-head { margin-bottom: 32px; }
  .section-head p:not(.eyebrow) { font-size: 16px; }
  .card { padding: 20px; }
  .win-body { height: 420px; }
  .chat-head span { display: none; }
  .msg { grid-template-columns: 34px 1fr; gap: 10px; padding: 6px 8px; }
  .msg .av { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
  .msg time { display: none; }
  .composer { margin: 6px 10px 10px; }
  .composer input { font-size: 16px; }
  .composer input::placeholder { font-size: 13.5px; }
  .voice { gap: 36px; }
  .call-card { padding: 14px; }
  .tile b { width: 42px; height: 42px; border-radius: 13px; font-size: 13px; translate: 0 -8px; }
  .tile span { font-size: 11px; left: 6px; bottom: 5px; padding: 1px 6px; }
  .cipher code { font-size: 12px; }
  .call-btns { gap: 8px; }
  .call-btns span { width: 38px; height: 38px; font-size: 16px; }
  .yours-row { gap: 32px; }
  .pc-bubble { left: 104px; max-width: calc(100% - 114px); font-size: 12px; }
  .dust-card { padding: 24px 16px; }
  .dust-points li { padding: 16px; }
}
@media (max-width: 360px) {
  .nav .brand span { display: none; }
}
