:root {
  --bg: #070816;
  --bg-2: #0d0f23;
  --card: rgba(17, 20, 42, 0.72);
  --card-strong: rgba(20, 24, 52, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f7fb;
  --muted: #b7b8c9;

  --pink: #ff4da6;
  --pink-2: #ff6bc2;
  --purple: #7b4dff;
  --purple-2: #9d6dff;
  --orange: #ff8a1d;
  --orange-2: #ffb020;
  --blue: #4a6cff;
  --green: #41d97d;

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow-pink: 0 0 35px rgba(255, 77, 166, 0.28);
  --shadow-glow-purple: 0 0 35px rgba(123, 77, 255, 0.28);
  --shadow-glow-orange: 0 0 35px rgba(255, 138, 29, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top center, #11153a 0%, #080917 35%, #060712 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  z-index: 0;
  filter: blur(20px);
  opacity: 0.95;
  pointer-events: none;
}

.orb-left {
  width: 360px;
  height: 520px;
  left: -120px;
  top: 120px;
  background: radial-gradient(circle at 60% 40%, rgba(157, 109, 255, 0.95), rgba(123, 77, 255, 0.18) 65%, transparent 100%);
  border-radius: 44% 56% 45% 55% / 40% 55% 45% 60%;
}

.orb-right {
  width: 360px;
  height: 520px;
  right: -120px;
  top: 90px;
  background: radial-gradient(circle at 40% 45%, rgba(255, 138, 29, 0.95), rgba(255, 77, 166, 0.26) 60%, transparent 100%);
  border-radius: 54% 46% 60% 40% / 45% 50% 50% 55%;
}

.orb-bottom {
  width: 520px;
  height: 220px;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(255, 77, 166, 0.24), rgba(123, 77, 255, 0.2), transparent 75%);
  border-radius: 999px;
}

.topbar,
.hero,
.footer {
  position: relative;
  z-index: 2;
}

.topbar {
  max-width: 1380px;
  margin: 0 auto;
  padding: 26px 28px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--orange), var(--pink), var(--purple)) border-box;
  border-radius: 20px;
  position: relative;
  box-shadow: var(--shadow-glow-purple);
}

.face-eye {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  top: 18px;
}

.eye-left {
  left: 16px;
}

.eye-right {
  right: 16px;
}

.face-mouth {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 20px;
  height: 10px;
  transform: translateX(-50%);
  border-bottom: 3px solid #fff;
  border-radius: 0 0 20px 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.brand-main {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-glow-purple);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 18, 38, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px 18px;
  box-shadow: var(--shadow-soft);
}

.server-status strong {
  display: block;
  font-size: 1rem;
}

.server-status small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(65, 217, 125, 0.75);
}

.hero {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

.floating {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.floating-left {
  align-items: flex-start;
}

.floating-right {
  align-items: flex-end;
}

.avatar-card {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.avatar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.38), transparent 30%),
    linear-gradient(135deg, rgba(255, 138, 29, 0.95), rgba(255, 77, 166, 0.88), rgba(123, 77, 255, 0.9));
}

.avatar-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: 6px;
  bottom: 8px;
  background: #4bdf79;
  border: 3px solid #1d1f35;
  border-radius: 50%;
}

.avatar-1 {
  margin-left: 26px;
}

.avatar-2 {
  margin-left: 48px;
}

.avatar-3 {
  margin-right: 20px;
}

.avatar-4 {
  margin-right: 44px;
}

.bubble {
  max-width: 140px;
  border-radius: 999px;
  padding: 16px 22px;
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid transparent;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.bubble-purple {
  color: #caacff;
  border-color: rgba(157, 109, 255, 0.5);
  background: rgba(71, 33, 129, 0.28);
}

.bubble-pink {
  color: #ff72bf;
  border-color: rgba(255, 77, 166, 0.48);
  background: rgba(115, 17, 70, 0.24);
}

.bubble-orange {
  color: #ff9f36;
  border-color: rgba(255, 138, 29, 0.5);
  background: rgba(126, 50, 12, 0.22);
}

.hero-center {
  padding-top: 26px;
  text-align: center;
}

.hero-badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 52, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  color: #f0f1f8;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
  font-weight: 900;
}

.text-gradient {
  display: inline-block;
}

.text-gradient.warm {
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient.cool {
  background: linear-gradient(90deg, #ffffff, #a963ff, #ff57b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 900px;
  margin: 0 auto 28px;
  font-size: 1.62rem;
  line-height: 1.45;
  color: #f0f1f8;
}

.entry-box {
  max-width: 940px;
  margin: 0 auto;
  padding: 28px;
  background: rgba(12, 15, 34, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.entry-label {
  display: block;
  text-align: left;
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: #f5f5fb;
}

.entry-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.1rem;
  border-radius: 18px;
  padding: 18px 18px;
  outline: none;
  margin-bottom: 24px;
  transition: 0.2s ease;
}

.entry-input::placeholder {
  color: #a4a8c4;
}

.entry-input:focus {
  border-color: rgba(157, 109, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(123, 77, 255, 0.15);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.mood-card {
  position: relative;
  display: block;
  text-align: center;
  border-radius: 28px;
  padding: 28px 24px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.mood-card:hover {
  transform: translateY(-4px);
}

.mood-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-serious {
  background:
    linear-gradient(180deg, rgba(60, 30, 120, 0.18), rgba(24, 25, 55, 0.88)),
    rgba(24, 25, 55, 0.88);
  border-color: rgba(123, 77, 255, 0.45);
  box-shadow: var(--shadow-glow-purple);
}

.mood-chill {
  background:
    linear-gradient(180deg, rgba(110, 26, 66, 0.18), rgba(41, 22, 35, 0.92)),
    rgba(41, 22, 35, 0.92);
  border-color: rgba(255, 138, 29, 0.45);
  box-shadow: var(--shadow-glow-orange);
}

.mood-card:has(input:checked) {
  transform: translateY(-4px) scale(1.01);
}

.mood-serious:has(input:checked) {
  border-color: #8d69ff;
  box-shadow: 0 0 0 2px rgba(123, 77, 255, 0.22), 0 0 38px rgba(123, 77, 255, 0.34);
}

.mood-chill:has(input:checked) {
  border-color: #ff8f30;
  box-shadow: 0 0 0 2px rgba(255, 138, 29, 0.2), 0 0 38px rgba(255, 77, 166, 0.26);
}

.mood-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 16px;
}

.mood-name {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.mood-desc {
  color: #e8e8f2;
  font-size: 1.1rem;
  line-height: 1.5;
  min-height: 52px;
}

.cta-btn {
  margin-top: 4px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 20px 28px;
  font-size: 1.22rem;
  font-weight: 900;
  color: white;
  cursor: pointer;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--pink));
  box-shadow: 0 18px 35px rgba(91, 74, 255, 0.35);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  opacity: 0.97;
}

.cta-arrow {
  display: inline-block;
  margin-left: 10px;
}

.features {
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.feature-card {
  background: rgba(16, 19, 41, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 128px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex: 0 0 48px;
  background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
  margin: 2px 0 8px;
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.footer {
  max-width: 1380px;
  margin: 30px auto 0;
  padding: 24px 28px 42px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 260px;
}

.brand-footer .brand-logo {
  width: 52px;
  height: 52px;
}

.footer-col h4 {
  margin: 8px 0 14px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  margin: 10px 0;
  color: var(--muted);
}

.footer-col a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 12px;
  font-size: 1.45rem;
}

.socials span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .floating {
    display: none;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 20px 16px 6px;
    gap: 14px;
  }

  .brand-main {
    font-size: 1.85rem;
  }

  .brand-sub {
    font-size: 1.45rem;
  }

  .nav {
    justify-content: center;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 0.96rem;
  }

  .hero {
    padding: 18px 14px 34px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .entry-box {
    padding: 20px 16px;
    border-radius: 26px;
  }

  .mood-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mood-name {
    font-size: 1.9rem;
  }

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

  .feature-card {
    min-height: auto;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 22px 16px 36px;
  }

  .server-status {
    width: 100%;
    justify-content: center;
  }
}

/* CHAT */

.chat-container {
  max-width: 900px;
  margin: 40px auto;
  background: rgba(10,10,20,0.9);
  border-radius: 20px;
  padding: 20px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  background: #111;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.chat-messages div {
  margin: 5px 0;
}

.chat-input {
  display: flex;
}

.chat-input input {
  flex: 1;
  padding: 10px;
}

.chat-input button {
  padding: 10px;
}

/* === CHAT UI === */

.chat-body {
  margin: 0;
  background: #0f0f14;
  font-family: Arial, sans-serif;
  color: #fff;
}

.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* HEADER */
.chat-header {
  padding: 12px 16px;
  background: #181820;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a35;
}

.chat-logo {
  font-weight: bold;
  font-size: 18px;
}

.chat-logo span {
  color: #a855f7;
}

.chat-room {
  font-size: 14px;
  color: #aaa;
}

/* MESSAGES */
.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

/* BULLES */
.msg {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1e1e28;
  max-width: 80%;
  word-break: break-word;
}

.msg.self {
  background: #a855f7;
  margin-left: auto;
}

.msg .nick {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.msg .text {
  font-size: 14px;
}

/* INPUT */
.chat-input-bar {
  display: flex;
  padding: 10px;
  background: #181820;
  border-top: 1px solid #2a2a35;
}

.chat-input-bar input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #2a2a35;
  color: #fff;
}

.chat-input-bar button {
  margin-left: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #a855f7;
  color: #fff;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 600px) {
  .chat-logo {
    font-size: 16px;
  }
}
