* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --purple: #7C3AED;
  --mint: #A7F3D0;
  --plum: #1A1025;
  --plum2: #241636;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', -apple-system, sans-serif;
  background: var(--plum);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* aurora background */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 55vw; height: 55vw; background: #7C3AED; top: -15vw; left: -10vw; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; background: #2dd4a8; bottom: -12vw; right: -8vw; animation-delay: -6s; opacity: 0.35; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; background: #a855f7; top: 35%; left: 55%; animation-delay: -12s; opacity: 0.4; }
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(6vw, 4vh) scale(1.15); }
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, nav, footer { position: relative; z-index: 2; }

/* nav */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 2rem; max-width: 1200px; margin: 0 auto;
}
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.logo em { font-style: normal; color: var(--mint); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.btn {
  padding: 0.7rem 1.4rem; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(120deg, var(--purple), #a855f7); color: #fff;
  font-family: inherit; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.45); }
.btn.ghost { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
.btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
.user-chip {
  display: none; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  padding: 0.4rem 0.9rem 0.4rem 0.4rem; border-radius: 999px; font-size: 0.85rem;
}
.user-chip img { width: 28px; height: 28px; border-radius: 50%; }
.user-chip button { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 0.8rem; }
.user-chip button:hover { color: #fff; }

/* hero */
.hero {
  min-height: 88vh; display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.5rem; gap: 4rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
}
.hero-text { max-width: 560px; animation: fadeUp 1s ease-out both; }
.pill {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(167,243,208,0.35); color: var(--mint);
  padding: 0.45rem 1rem; border-radius: 999px; margin-bottom: 1.4rem;
  background: rgba(167,243,208,0.06);
}
h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 1.2rem; }
h1 .grad {
  background: linear-gradient(100deg, var(--mint), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { font-weight: 300; font-size: 1.15rem; opacity: 0.75; line-height: 1.7; margin-bottom: 2.2rem; }
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* floating mock card */
.card-wrap { perspective: 1200px; animation: fadeUp 1s 0.2s ease-out both; }
.mock {
  width: 300px; border-radius: 28px; padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transform-style: preserve-3d; transition: transform 0.25s ease-out;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.mock .avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 0.9rem;
  background: linear-gradient(135deg, var(--purple), var(--mint));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
}
.mock .name { text-align: center; font-weight: 600; margin-bottom: 0.2rem; }
.mock .handle { text-align: center; font-size: 0.8rem; opacity: 0.55; margin-bottom: 1.4rem; }
.mock .link {
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 0.8rem 1rem; margin-bottom: 0.7rem; font-size: 0.88rem;
  transition: transform 0.15s, background 0.15s; cursor: pointer;
}
.mock .link:hover { transform: scale(1.03); background: rgba(124,58,237,0.25); }
.mock .link .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }

/* features */
.features { padding: 5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.features h2, .chat-section h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.lede { text-align: center; opacity: 0.6; font-weight: 300; margin-bottom: 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.feat {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 1.8rem 1.5rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.feat:hover { transform: translateY(-6px); border-color: rgba(167,243,208,0.4); background: rgba(124,58,237,0.12); }
.feat .icon { font-size: 1.8rem; margin-bottom: 1rem; }
.feat h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feat p { font-size: 0.88rem; font-weight: 300; opacity: 0.65; line-height: 1.6; }

/* group chat */
.chat-section { padding: 5rem 1.5rem; max-width: 720px; margin: 0 auto; }
.chat-box {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px; overflow: hidden; backdrop-filter: blur(12px);
}
.chat-msgs { height: 340px; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.chat-msgs::-webkit-scrollbar { width: 6px; }
.chat-msgs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.msg { max-width: 80%; padding: 0.7rem 1rem; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; animation: fadeUp 0.3s ease-out; }
.msg .who { font-size: 0.72rem; opacity: 0.6; margin-bottom: 0.2rem; font-weight: 600; }
.msg.them { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: linear-gradient(120deg, var(--purple), #9333ea); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.system { align-self: center; background: none; font-size: 0.78rem; opacity: 0.5; }
.chat-input { display: flex; gap: 0.6rem; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-input input {
  flex: 1; padding: 0.8rem 1.1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff; font-family: inherit; font-size: 0.9rem; outline: none;
}
.chat-input input:focus { border-color: var(--mint); }
.chat-input input::placeholder { color: rgba(255,255,255,0.35); }
.chat-login-hint { text-align: center; padding: 1rem; font-size: 0.85rem; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.08); }

/* footer */
footer { text-align: center; padding: 3rem 2rem 2rem; font-size: 0.82rem; opacity: 0.45; letter-spacing: 0.06em; }
footer .links { margin-bottom: 1rem; display: flex; gap: 1.5rem; justify-content: center; }
footer .links a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer .links a:hover { color: var(--mint); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .hero { gap: 2.5rem; padding-top: 2rem; }
  .nav-links a.hide-mobile { display: none; }
}
