@font-face {
  font-family: "klaxon";
  src: url("/klaxon.otf");
}
@font-face {
  font-family: "Friend Bestie";
  src: url("/Friend_Bestie.otf");
}
@keyframes floatToTop {
  0% {
    transform: translate3d(0, 0, 0) scale(var(--scale, 1));
    opacity: 0;
  }
  6% {
    opacity: 0.42;
  }
  100% {
    transform: translate3d(0, calc(-1 * (100vh + 200px)), 0) scale(var(--scale, 1));
    opacity: 0.42;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth;
  overscroll-behavior: none;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  background: #0c0c0c;
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.55;
  overscroll-behavior: none;
}
a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: none; }
.credits a { color: inherit; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(18, 18, 18, 0.92);
  border-bottom: 1px solid #2a2a2a;
  backdrop-filter: blur(10px);
}
.nav-brand {
  display: flex;
  align-items: center;
  vertical-align: middle;
  color: #f0f0f0;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; color: #fff; }
.brand-div, .brand-cord {
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  background: transparent !important;
  user-select: none;
}
.brand-div {
  font-family: klaxon;
  color: #FAA !important;
  margin: 0;
}
.brand-cord {
  font-family: Friend Bestie;
  color: #FFF !important;
  margin: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a, .nav-links span {
  color: #a3a3a3;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.nav-links a:hover { color: #e0e0e0; background: #222; text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: #2563eb;
  color: #fff;
}
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-ghost {
  background: #222;
  color: #e0e0e0;
  border: 1px solid #333;
}
.btn-ghost:hover { background: #2a2a2a; color: #fff; }
.btn-lg { padding: 12px 20px; font-size: 15px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 64px;
  text-align: center;
  border-bottom: 1px solid #222;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40% 20% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.22), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 750;
  line-height: 1.15;
  color: #f5f5f5;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 span {
  background: linear-gradient(90deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 17px;
  color: #a3a3a3;
  max-width: 540px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: center;
  color: #737373;
  font-size: 13px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta i { color: #525252; }
.preview-wrap, #features, .how {
  position: relative;
  z-index: 1;
}
.preview-wrap, #features {
  background-color: rgba(12, 12, 12, 0.92);
}
#bgWrapper {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
}
.bgItem {
  height: 15vh;
  width: 25vh;
  position: absolute;
  z-index: -2;
  left: 10vw;
  top: 100%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: floatToTop var(--dur, 14s) linear var(--delay, 0s) infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.bgItem1 {
  background: linear-gradient(-15deg, #2563eb 0%, #2563eb 55%, #4f46e5);
  border-radius: 10px 10px 0 10px;
}
.bgItem1:after {
  content: " ";
  display: block;
  height: 10px;
  width: 10px;
  transform: rotate(45deg);
  position: absolute;
  right: -5px;
  bottom: 3px;
  background: #2563eb;
}
.bgItem2 {
  background: linear-gradient(15deg, #1e1e1e 0%, #1e1e1e 70%, #252536);
  border: 1px solid #2a2a2a;
  border-radius: 10px 10px 10px 0;
}
.bgItem2:after {
  content: " ";
  display: block;
  height: 10px;
  width: 10px;
  transform: rotate(45deg);
  position: absolute;
  left: -5px;
  bottom: 3px;
  background: #1e1e1e;
}

.bgItem:nth-child(1)  { --delay: 0s;    --dur: 11s; --scale: 0.7; left: 8vw;  }
.bgItem:nth-child(2)  { --delay: -3s;   --dur: 16s; --scale: 1.4; left: 22vw; }
.bgItem:nth-child(3)  { --delay: -7s;   --dur: 13s; --scale: 0.9; left: 37vw; }
.bgItem:nth-child(4)  { --delay: -1s;   --dur: 18s; --scale: 1.8; left: 51vw; }
.bgItem:nth-child(5)  { --delay: -10s;  --dur: 12s; --scale: 0.55; left: 64vw; }
.bgItem:nth-child(6)  { --delay: -5s;   --dur: 15s; --scale: 1.2; left: 78vw; }
.bgItem:nth-child(7)  { --delay: -12s;  --dur: 10s; --scale: 1.6; left: 14vw; }
.bgItem:nth-child(8)  { --delay: -8s;   --dur: 17s; --scale: 0.8; left: 43vw; }
.bgItem:nth-child(9)  { --delay: -2s;   --dur: 14s; --scale: 1.1; left: 71vw; }
.bgItem:nth-child(10) { --delay: -14s;  --dur: 19s; --scale: 1.9; left: 86vw; }

/* Mock chat preview */
.preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 24px 56px;
  pointer-events: none;
  user-select: none;
  position: relative;
}
.preview {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  position: relative;
}
.preview-wrap:after {
  content: "*Live demo is not interactable, these are not real people.";
  display: block;
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
  font-size: 10pt;
  color: #555;
  visibility: visible;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}
.preview-userinfo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.preview-username {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
}
.preview-status {
  font-size: 11px;
  color: #888;
}
.preview-roombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}
.preview-roomname {
  font-size: 12px;
  color: #888;
}
.preview-roommore {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 12px;
  opacity: 0.8;
}
.preview-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 280px;
}
@media (max-width: 640px) {
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
}
.preview-side {
  background: #141414;
  border-right: 1px solid #2a2a2a;
  padding: 10px 8px;
  overflow: hidden;
}
.preview-nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #666;
  margin: 8px 4px 4px;
}
.preview-nav-label:first-child { margin-top: 0; }
.preview-nav-label i { font-size: 8px; }
.preview-unread {
  margin-left: auto;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}
.preview-room {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #bbb;
  margin-bottom: 2px;
}
.preview-room.active {
  background: #1e3a5f;
  color: #fff;
}
.preview-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  margin-bottom: 2px;
  font-size: 12px;
  color: #bbb;
}
.preview-user.on { background: #1e1e1e; color: #e0e0e0; }
.preview-online { min-height: 0; }
.av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #aaa;
}
.av.blue { background: #1e3a5f; color: #93c5fd; }
.av.purple { background: #3b2760; color: #c4b5fd; }
.av.green { background: #14532d; color: #86efac; }
.av.orange { background: #7c2d12; color: #fdba74; }
.av.red { background: #7f1d1d; color: #fca5a5; }
.av.teal { background: #134e4a; color: #5eead4; }
.greenname { color: #4ade80 !important; }
.pinkname { color: #f9a8d4 !important; }
.purplename { color: #c4b5fd !important; }
.bluename { color: #60a5fa !important; }
.yellowname { color: #facc15 !important; }
.redname { color: #f87171 !important; }
.hacker { color: #4ade80 !important; font-family: ui-monospace, monospace; }
.preview-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.preview-chat {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.msg.preview-in {
  animation: preview-in 0.22s ease;
}
@keyframes preview-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 8px;
  background: #1e1e1e;
  border-radius: 6px;
}
.msg .body { min-width: 0; }
.msg .meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 2px;
}
.msg .meta strong { color: #ddd; font-weight: 600; }
.msg .text {
  font-size: 13px;
  color: #ccc;
}
.msg .text a {
  color: inherit;
  text-decoration: underline;
}
.msg .text code {
  background: #222;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: #93c5fd;
}
.preview-composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #2a2a2a;
  background: #161616;
}
.preview-ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
}
.preview-input {
  flex: 1;
  min-width: 0;
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #666;
}
.preview-send {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  flex-shrink: 0;
}

/* Sections */
section {
  padding: 64px 24px;
}
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.section-head p {
  color: #888;
  max-width: 520px;
  margin: 0 auto;
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.feature {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s ease;
}
.feature:hover { border-color: #3b3b3b; }
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e1e1e;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  margin-bottom: 14px;
  font-size: 15px;
}
.feature h3 {
  font-size: 15px;
  font-weight: 600;
  color: #eee;
  margin-bottom: 6px;
}
.feature p {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.how {
  background: rgba(17, 17, 17, 0.92);
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 8px 0 8px 0;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #eee;
}
.step p { font-size: 13.5px; color: #888; }

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.audience-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 22px;
}
.audience-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.audience-card h3 i { color: #a78bfa; font-size: 14px; }
.audience-card p { font-size: 13.5px; color: #888; }

.cta-band {
  position: relative;
  text-align: center;
  padding: 72px 24px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.12), transparent 60%);
  border-top: 1px solid #222;
}
.cta-band h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
  color: #f0f0f0;
}
.cta-band p {
  color: #888;
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .hero-cta { margin-bottom: 0; }

footer {
  position: relative;
  padding: 24px;
  border-top: 1px solid #222;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 13px;
  background: rgba(18, 18, 18, 0.92);
}
footer .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: #888; }
footer a:hover { color: #ccc; }