@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

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

:root {
  --bg: #05060a;
  --text: #e8eaf0;
  --muted: #9aa0ad;
  --accent: #5865F2;
  --accent2: #7289da;
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Page background image (fixed layer covering the whole viewport).
   body must be transparent, otherwise its own background paints over the layer. */
body { background: transparent; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(5,6,10,.35), rgba(5,6,10,.35)),
    url('/assest/backsc.png') center / cover no-repeat;
}

/* ── Background Effects ─────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(88,101,242,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,101,242,.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.orb {
  display: none; /* the background image replaces the glowing orbs */
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: drift 12s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: rgba(88,101,242,.06); top: -150px; right: -100px; }
.orb2 { width: 350px; height: 350px; background: rgba(87,242,135,.03); bottom: 0; left: -80px; animation-delay: -4s; }
.orb3 { width: 300px; height: 300px; background: rgba(235,69,158,.03); top: 50%; left: 40%; animation-delay: -8s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(.95); }
}

/* ── Layout: window + greeting on the left, logo on the right ─── */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 48px;
  padding: 40px 64px;
  direction: ltr;
}

/* Right side: logo with an image under it */
.brand {
  justify-self: center;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeUp .8s ease both;
}
.brand-logo { width: 100%; height: auto; display: block; }

/* ── Top bar ────────────────────────────────────────── */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  height: 68px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(rgba(5,6,10,.75), rgba(5,6,10,0));
  direction: ltr;
}
.top-brand { display: flex; align-items: center; gap: 10px; color: #f2f3f5; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.top-brand img { width: 24px; height: 24px; object-fit: contain; display: block; }
.top-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
}
.top-nav a { display: inline-flex; align-items: center; gap: 5px; color: #9aa0ad; text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .15s; }
.top-nav a:hover { color: #f2f3f5; }.top-nav a.on { color: #f2f3f5; font-weight: 700; }
.ext { width: 14px; height: 14px; flex: none; }

/* ── Account (top-left) ─────────────────────────────── */
.account { position: relative; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chev { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: #9aa0ad; transition: transform .15s; }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }

.login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  background: rgba(10,10,12,.7);
  border: 1px solid #26343a;
  color: #f2f3f5;
  font-size: .9rem; font-weight: 700;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.login-btn:hover { border-color: #3A8AA3; transform: translateY(-1px); }
.login-btn[hidden], .user[hidden], .menu[hidden] { display: none; }

.user { display: flex; align-items: center; gap: 8px; }

.user { align-items: stretch; }
.dash-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: rgba(10,10,12,.7);
  border: 1px solid #26343a;
  color: #f2f3f5;
  font-size: .88rem; font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.dash-btn .ico { width: 16px; height: 16px; color: #3A8AA3; }
.dash-btn:hover { border-color: #3A8AA3; background: rgba(58,138,163,.16); }

.user-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(10,10,12,.7);
  border: 1px solid #26343a;
  color: #f2f3f5;
  font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
}
.user-btn:hover, .user-btn[aria-expanded="true"] { border-color: #3A8AA3; }
.user-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; background: #1e1f22; }
.user-btn span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  padding: 6px;
  background: #101213;
  border: 1px solid #1f2528;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  animation: fadeUp .15s ease both;
}
.menu-title { padding: 6px 8px 4px; color: #7d848e; font-size: .72rem; font-weight: 600; }
.menu a, .menu button {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px;
  border: 0; border-radius: 7px;
  background: transparent;
  color: #e8eaf0;
  font: inherit; font-size: .83rem; font-weight: 600;
  text-align: left; text-decoration: none;
  cursor: pointer;
}
.menu a:hover, .menu button:hover { background: #1a1d1f; }
.menu .ico { width: 15px; height: 15px; color: #b5bac1; }
.menu-sep { height: 1px; background: #1f2528; margin: 4px 4px; }
.menu .danger { color: #f0506e; }
.menu .danger .ico { color: #f0506e; }

/* ── Buttons ────────────────────────────────────────── */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; align-self: flex-start; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, filter .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #3A8AA3; color: #04161d; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: rgba(10,10,12,.7); color: #f2f3f5; border: 1px solid #26343a; }
.btn-ghost:hover { border-color: #3A8AA3; }

/* ── Discord-embed style card ───────────────────────── */
.embed {
  --embed: #3A8AA3;               /* embed colour (lighter teal) */
  display: block;
  width: fit-content;             /* small card that hugs its text */
  max-width: 100%;
  align-self: flex-start;         /* aligned to the left edge, under the logo */
  text-align: left;
  background: #0a0a0c;
  border: 1px solid #1c1f22;
  border-left: 4px solid var(--embed);
  border-radius: 4px;
  padding: 8px 14px 9px 12px;
}

.embed-title {
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.35;
  color: #f2f3f5;
  margin-bottom: 2px;
}

/* the word "Clue": bold, in the embed colour */
.accent {
  font-weight: 800;
  color: var(--embed);
}

.embed-desc {
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.35;
  color: #dbdee1;
}

/* ── Discord-style window ───────────────────────────── */
.preview { display: flex; justify-content: center; animation: fadeUp .8s .15s ease both; }
/* window with the greeting card right under it */
.preview-col {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.window {
  width: 100%;
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #111214;
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3f4147; }
.window-bar em { margin-left: 8px; font-style: normal; color: #949ba4; font-size: .82rem; }
.window-body { display: flex; height: 340px; }
.rail {
  width: 64px;
  background: #111214;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}
.rail i { width: 40px; height: 40px; border-radius: 50%; background: #2b2d31; display: block; }
.rail i.on { border-radius: 14px; background: #5865F2; overflow: hidden; }
.rail i.on img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rooms { width: 200px; background: #2b2d31; padding: 14px 10px; }
.rooms strong { display: block; color: #f2f3f5; font-size: .92rem; margin-bottom: 14px; }
.rooms b { display: block; color: #949ba4; font-size: .68rem; letter-spacing: .04em; margin: 12px 8px 6px; }
.rooms p { color: #949ba4; font-size: .88rem; padding: 6px 8px; border-radius: 4px; margin: 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rooms p.on { background: #404249; color: #f2f3f5; }
/* voice channel: Discord-style speaker icon */
.rooms p.voice { display: flex; align-items: center; gap: 6px; }
.rooms p.voice span { overflow: hidden; text-overflow: ellipsis; }
.vico { width: 20px; height: 20px; flex: none; color: #949ba4; }
.pane { flex: 1; background: #313338; padding: 16px; }
.pane-head { color: #f2f3f5; font-weight: 700; margin-bottom: 18px; }
.line { height: 10px; border-radius: 6px; background: #3f4147; margin-bottom: 10px; }
.line.short { width: 60%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(7,10,11,.92);
  border-top: 1px solid #14191b;
  direction: ltr;
}
.footer-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 32px 80px;
}
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #f2f3f5; text-decoration: none; }
.footer-logo strong { font-size: 1rem; font-weight: 700; }
.footer-logo-img {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0f1a1d; border: 1px solid #1f3238;
}
.footer-logo-img img { width: 18px; height: 18px; object-fit: contain; display: block; }

.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: #0d1214; border: 1px solid #1a2226;
  color: #e6e8ea;
  transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: #3A8AA3; color: #fff; }
.footer-social svg { width: 15px; height: 15px; display: block; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 4px; color: #f2f3f5; font-size: .88rem; font-weight: 700; }
.footer-col a { color: #8b939c; font-size: .84rem; font-weight: 500; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #f2f3f5; }
.footer-col a svg { width: 15px; height: 15px; flex: none; margin-right: 9px; vertical-align: -3px; }

.footer-bottom {
  border-top: 1px solid #14191b;
}
.footer-bottom-in {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
/* copyright in the middle, payment icons on the right */
.footer-bottom-in > span { grid-column: 2; grid-row: 1; color: #6f7781; font-size: .8rem; text-align: center; white-space: nowrap; }
.footer-bottom .pay { grid-column: 3; grid-row: 1; justify-self: end; display: flex; gap: 10px; }
.pay-box {
  width: 56px; height: 38px;
  display: grid; place-items: center;
  background: #0d1214;
  border: 1px solid #1c2428;
  border-radius: 10px;
  color: inherit; font-size: 0;
}
.pay-box img { width: 38px; height: auto; display: block; }
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; padding: 36px 24px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-in { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .footer-bottom-in > span, .footer-bottom .pay { grid-column: 1; grid-row: auto; justify-self: center; }
  .stage { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .brand { width: min(320px, 100%); }
  .top { padding: 0 20px; }
  .top-nav { display: none; }
}
