/* Faqlynx Bot — dark gaming premium */
:root {
  --bg: #07090f;
  --bg-elevated: rgba(16, 20, 32, 0.72);
  --stroke: rgba(148, 163, 255, 0.14);
  --stroke-strong: rgba(56, 232, 255, 0.35);
  --text: #e8ecf8;
  --muted: #9aa3b8;
  --cyan: #38e8ff;
  --violet: #8b5cff;
  --mint: #3dffb5;
  --amber: #ffc14a;
  --rose: #ff5c8a;
  --sky: #5aa7ff;
  --danger: #ff4d6d;
  --success: #2ee59d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #9af3ff; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.55rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.15rem; }

::selection {
  background: rgba(56, 232, 255, 0.28);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible,
.nav a:focus-visible,
.logo:focus-visible {
  outline-offset: 4px;
}

/* Custom scrollbar — same cyan / violet */
html { scrollbar-color: var(--violet) #07090f; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07090f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  border-radius: 999px;
  border: 2px solid #07090f;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9b74ff, #5af0ff);
}

/* Animated mesh background */
.mesh {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(139, 92, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(56, 232, 255, 0.18), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(61, 255, 181, 0.08), transparent 55%),
    #07090f;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: orbPulse 5.5s ease-in-out infinite;
  will-change: opacity;
}
.orb-a { width: 420px; height: 420px; background: #8b5cff; top: -80px; left: -60px; animation-duration: 6.2s; }
.orb-b { width: 360px; height: 360px; background: #38e8ff; top: 20%; right: -80px; animation-duration: 7.4s; animation-delay: -1.5s; }
.orb-c { width: 280px; height: 280px; background: #3dffb5; bottom: 5%; left: 35%; animation-duration: 8.6s; animation-delay: -3s; }
.orb-d {
  width: 220px; height: 220px; background: #8b5cff;
  top: 58%; right: 18%; animation-duration: 9.5s; animation-delay: -4.5s;
  filter: blur(70px);
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: .5;
  animation: gridDrift 40s linear infinite;
}

.matrix-rain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .38;
  pointer-events: none;
  mix-blend-mode: screen;
}
.noise {
  position: absolute; inset: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes orbPulse {
  0%, 100% { opacity: .32; }
  50% { opacity: .72; }
}
@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin: .75rem auto 0;
  padding: .7rem 1rem;
  border-radius: 999px;
  transition: box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(56, 232, 255, 0.12);
}
.glass-nav {
  position: relative;
  background: linear-gradient(135deg, var(--cyan), #7cf0ff 40%, var(--violet));
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(56, 232, 255, 0.28), 0 0 28px rgba(139, 92, 255, 0.18);
}
.glass-nav .logo {
  color: #e8f4f8;
  background: rgba(7, 9, 15, 0.72);
  border: 1px solid rgba(56, 232, 255, 0.5);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  box-shadow:
    0 0 0 1px rgba(139, 92, 255, 0.22),
    0 0 16px rgba(56, 232, 255, 0.18),
    0 0 22px rgba(139, 92, 255, 0.12);
}
.glass-nav .logo:hover {
  opacity: 1;
  border-color: rgba(56, 232, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(139, 92, 255, 0.35),
    0 0 20px rgba(56, 232, 255, 0.28),
    0 0 28px rgba(139, 92, 255, 0.18);
}
.glass-nav .logo-text {
  display: inline-block;
  background: linear-gradient(105deg, var(--violet), var(--mint), var(--cyan), var(--violet));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}
.glass-nav .nav a {
  color: rgba(4, 16, 24, 0.78);
}
.glass-nav .nav a:hover {
  color: #041018;
}
.glass-nav .nav a:not(.btn)::after {
  background: rgba(4, 16, 24, 0.55);
}
.glass-nav .lang-switch {
  border: 1px solid rgba(56, 232, 255, 0.55);
  background: rgba(7, 9, 15, 0.55);
  box-shadow: 0 0 14px rgba(56, 232, 255, 0.12);
}
.glass-nav .lang-btn {
  color: rgba(200, 220, 230, 0.75) !important;
}
.glass-nav .lang-btn.is-active {
  color: var(--cyan) !important;
  background: rgba(7, 9, 15, 0.72);
  border: 1px solid rgba(56, 232, 255, 0.55);
  box-shadow: 0 0 14px rgba(56, 232, 255, 0.12);
}
.glass-nav .lang-btn:not(.is-active):hover {
  color: #fff !important;
}
.glass-nav .nav-toggle span {
  background: #041018;
}
.glass-nav .btn-ghost {
  color: #041018;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(4, 16, 24, 0.18);
}
.glass-nav .btn-ghost:hover {
  color: #041018;
  border-color: rgba(4, 16, 24, 0.35);
  background: rgba(255, 255, 255, 0.4);
}
.glass-nav .btn-primary {
  /* keep contrast if a primary btn appears in header */
  box-shadow: 0 6px 18px rgba(4, 16, 24, 0.18);
}
.logo {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; font-size: 1.1rem;
}
.logo:hover { color: #fff; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.logo-mark img {
  width: 100%; height: 100%; display: block; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(4, 16, 24, 0.28));
}
.glass-nav .logo-mark {
  box-shadow: none;
}
/* logo-mark img sized in .logo-mark block */
@keyframes markGlow {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 0 14px rgba(56, 232, 255, 0.22); }
  50% { background-position: 100% 50%; box-shadow: 0 0 22px rgba(139, 92, 255, 0.4); }
}
.nav { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:hover { color: var(--text); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: .4rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0;
  transition: transform .2s;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .65rem 1.2rem; font-weight: 600; font-size: .95rem;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s, color .18s;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #7cf0ff 40%, var(--violet));
  box-shadow: 0 8px 28px rgba(56, 232, 255, 0.25);
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.38) 50%, transparent 75%);
  transform: translateX(-130%);
  animation: shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%, 55% { transform: translateX(-130%); }
  80%, 100% { transform: translateX(130%); }
}
.btn-primary:hover { color: #041018; box-shadow: 0 12px 36px rgba(139, 92, 255, 0.35); }
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: var(--stroke);
}
.btn-ghost:hover { border-color: var(--stroke-strong); color: #fff; }
.btn-danger {
  color: #fff; background: rgba(255, 77, 109, 0.15); border-color: rgba(255, 77, 109, 0.4);
}
.btn-danger:hover { background: rgba(255, 77, 109, 0.28); color: #fff; }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.inline-form { display: inline; margin: 0; }

.btn-glow { isolation: isolate; z-index: 0; }
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  filter: blur(18px);
  opacity: .42;
  z-index: -1;
  animation: glowPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: .32; transform: scale(0.96); }
  50% { opacity: .58; transform: scale(1.04); }
}

/* Cards / glass */
.card, .glass {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.card { padding: 1.35rem 1.4rem; position: relative; }
.glass.card { transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.glass.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56,232,255,.32), transparent 42%, rgba(139,92,255,.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass.card:hover {
  border-color: rgba(56, 232, 255, 0.28);
  box-shadow: 0 28px 70px rgba(56, 232, 255, 0.08);
}
.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.form-card { max-width: 820px; }

/* Hero */
.hero {
  text-align: center;
  padding: 4.25rem 0 2.25rem;
}
.hero-kicker {
  margin: 0 0 .65rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
}
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--muted); font-size: .85rem; font-weight: 500;
  margin-bottom: 1.1rem;
  letter-spacing: .01em;
}
.pulse-dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(61, 255, 181, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 255, 181, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 255, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 255, 181, 0); }
}
.gradient-text {
  display: inline-block;
  background: linear-gradient(105deg, var(--cyan), #b08cff 35%, var(--mint), var(--cyan));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lead {
  max-width: 640px; margin: 1.15rem auto 1.85rem;
  color: var(--muted); font-size: 1.14rem;
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; max-width: 720px; margin: 2.75rem auto 0;
}
.hero-stats > div {
  padding: 1.05rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: rgba(255,255,255,0.03);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.hero-stats > div:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 232, 255, 0.28);
  box-shadow: 0 16px 40px rgba(56, 232, 255, 0.07);
}
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.float-in { animation: floatIn .7s ease both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }
@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Scroll reveal — start visible; is-in only softens motion (never hide forms) */
html.js .reveal {
  opacity: 1;
  transform: none;
  transition: opacity .75s ease, transform .75s ease;
}
html.js .reveal:not(.is-in) {
  /* soft hint only on marketing homepage blocks that opt into below-fold anim */
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .4s; }

/* Game-tag marquee */
.marquee {
  margin: 2.25rem 0 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
  will-change: transform;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--muted);
  padding: 0 1.35rem;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "·";
  margin-left: 1.35rem;
  color: var(--cyan);
  opacity: .7;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--marquee-shift, 25%)), 0, 0); }
}

/* Game chips under marquee */
.game-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  list-style: none;
  margin: 1.35rem auto 0;
  padding: 0;
  max-width: var(--max);
}
.game-chip {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 1.05rem .5rem .5rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.game-chip.glass {
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.game-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 232, 255, 0.4);
  box-shadow:
    0 12px 36px rgba(56, 232, 255, 0.14),
    0 0 24px rgba(139, 92, 255, 0.18);
}
.game-chip-icon {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
  filter:
    drop-shadow(0 0 8px rgba(56, 232, 255, 0.32))
    drop-shadow(0 0 16px rgba(139, 92, 255, 0.22));
}
.game-chip span {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--text);
}

/* Discord showcase */
.showcase-caption {
  margin: 0 0 .85rem;
  padding: 0 .15rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cyan);
}
.showcase {
  max-width: 640px; margin: 2.5rem auto 1rem; padding: 0; overflow: hidden;
}
.showcase-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--stroke);
  background: rgba(0,0,0,.25);
}
.showcase-bar > span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57;
}
.showcase-bar > span:nth-child(2) { background: #febc2e; }
.showcase-bar > span:nth-child(3) { background: #28c840; }
.showcase-bar em { margin-left: .5rem; font-style: normal; color: var(--muted); font-size: .85rem; }
.showcase-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mint); font-style: normal;
}
.chat-feed { padding: .85rem 0 1.15rem; }
.chat-msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .7rem;
  padding: .55rem 1.1rem;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .9rem; font-weight: 700;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
}
.chat-avatar.bot-av {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 16px rgba(56, 232, 255, 0.18);
}
.chat-avatar.bot-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.chat-avatar.user-av {
  background: rgba(255,255,255,.08);
  color: var(--muted);
}
.chat-meta {
  display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap;
  font-size: .8rem; margin-bottom: .25rem;
}
.chat-meta strong { font-size: .92rem; }
.chat-meta time { color: var(--muted); font-size: .72rem; }
.bot-tag {
  font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .12rem .38rem; border-radius: 4px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #041018;
}
.chat-line { padding: .75rem 1.1rem 0; font-size: .8rem; color: var(--muted); font-weight: 600; }
.chat-line.bot { color: var(--cyan); }
.chat-bubble {
  margin: 0; padding: .7rem .9rem; border-radius: 12px;
  font-size: .92rem; max-width: 100%;
  white-space: pre-line;
}
.chat-bubble.bot {
  background: linear-gradient(135deg, rgba(56,232,255,.12), rgba(139,92,255,.12));
  border: 1px solid var(--stroke);
}
.chat-bubble.user {
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke);
}
.showcase .chat-bubble:last-child { margin-bottom: 0; }
.chat-typing {
  display: flex; align-items: center; gap: .45rem;
  padding: .35rem 1.15rem 0 4.15rem;
  color: var(--muted); font-size: .78rem;
}
.chat-typing i {
  display: inline-flex; gap: 4px;
  font-style: normal;
}
.chat-typing i b {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  display: block;
  animation: typing 1.2s ease-in-out infinite;
}
.chat-typing i b:nth-child(2) { animation-delay: .15s; }
.chat-typing i b:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Sections */
.section { padding: 3.75rem 0 1rem; }
.section-head { text-align: center; margin-bottom: 2.15rem; }
.eyebrow {
  color: var(--cyan); text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 700; margin: 0 0 .5rem;
}
.eyebrow a { color: inherit; }
.pricing-foot { margin: 1.35rem 0 0; letter-spacing: .12em; }

.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.feature-icon {
  width: 2.65rem; height: 2.65rem; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .75rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
  transition: box-shadow .35s ease, border-color .35s ease;
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; display: block; filter: drop-shadow(0 0 4px currentColor); }
.feature-icon--img {
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.feature-icon--img img {
  width: 1.55rem; height: 1.55rem; display: block; object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(61,255,181,.35));
}
.feature-icon.cyan {
  color: var(--cyan); border-color: rgba(56,232,255,.35);
  box-shadow: inset 0 0 18px rgba(56,232,255,.18), 0 0 14px rgba(56,232,255,.35), 0 0 28px rgba(56,232,255,.12);
}
.feature-icon.violet {
  color: var(--violet); border-color: rgba(139,92,255,.4);
  box-shadow: inset 0 0 18px rgba(139,92,255,.22), 0 0 14px rgba(139,92,255,.4), 0 0 28px rgba(139,92,255,.14);
}
.feature-icon.mint {
  color: var(--mint); border-color: rgba(61,255,181,.35);
  box-shadow: inset 0 0 18px rgba(61,255,181,.18), 0 0 14px rgba(61,255,181,.35), 0 0 28px rgba(61,255,181,.12);
}
.feature-icon.amber {
  color: var(--amber); border-color: rgba(255,193,74,.35);
  box-shadow: inset 0 0 18px rgba(255,193,74,.18), 0 0 14px rgba(255,193,74,.35), 0 0 28px rgba(255,193,74,.12);
}
.feature-icon.rose {
  color: var(--rose); border-color: rgba(255,92,138,.4);
  box-shadow: inset 0 0 18px rgba(255,92,138,.2), 0 0 14px rgba(255,92,138,.4), 0 0 28px rgba(255,92,138,.14);
}
.feature-icon.sky {
  color: var(--sky); border-color: rgba(90,167,255,.4);
  box-shadow: inset 0 0 18px rgba(90,167,255,.2), 0 0 14px rgba(90,167,255,.4), 0 0 28px rgba(90,167,255,.14);
}
.feature:hover .feature-icon.cyan { box-shadow: inset 0 0 20px rgba(56,232,255,.25), 0 0 18px rgba(56,232,255,.5), 0 0 36px rgba(56,232,255,.2); }
.feature:hover .feature-icon.violet { box-shadow: inset 0 0 20px rgba(139,92,255,.28), 0 0 18px rgba(139,92,255,.55), 0 0 36px rgba(139,92,255,.22); }
.feature:hover .feature-icon.mint { box-shadow: inset 0 0 20px rgba(61,255,181,.25), 0 0 18px rgba(61,255,181,.5), 0 0 36px rgba(61,255,181,.2); }
.feature:hover .feature-icon.amber { box-shadow: inset 0 0 20px rgba(255,193,74,.25), 0 0 18px rgba(255,193,74,.5), 0 0 36px rgba(255,193,74,.2); }
.feature:hover .feature-icon.rose { box-shadow: inset 0 0 20px rgba(255,92,138,.28), 0 0 18px rgba(255,92,138,.55), 0 0 36px rgba(255,92,138,.22); }
.feature:hover .feature-icon.sky { box-shadow: inset 0 0 20px rgba(90,167,255,.28), 0 0 18px rgba(90,167,255,.55), 0 0 36px rgba(90,167,255,.22); }
.feature p, .card p { color: var(--muted); margin: 0; }
.tilt:hover { transform: translateY(-6px); }

/* How it works */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.step {
  padding: 1.5rem 1.35rem 1.4rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(56, 232, 255, 0.25);
  filter: drop-shadow(0 0 12px rgba(139, 92, 255, 0.35));
}
.step h3 { margin: 0; }
.step p { margin: 0; }

/* Pricing */
.pricing {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; align-items: stretch;
}
.price-card { position: relative; display: flex; flex-direction: column; gap: .75rem; }
.price-card ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); flex: 1; }
.price-card li { margin: .35rem 0; }
.price { font-family: var(--display); margin: 0; }
.price span { font-size: 2.4rem; font-weight: 700; color: var(--text); }
.price small { color: var(--muted); margin-left: .25rem; }
.price-card.featured {
  border-color: rgba(56, 232, 255, 0.45);
  background: linear-gradient(180deg, rgba(56,232,255,.1), rgba(16,20,32,.8));
  transform: scale(1.03);
  box-shadow: 0 28px 70px rgba(56, 232, 255, 0.12), 0 0 40px rgba(139, 92, 255, 0.1);
}
.price-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}
.price-card > h3 {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #041018;
  box-shadow: 0 0 18px rgba(56, 232, 255, 0.22);
}
.ribbon {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 999px;
  background: rgba(7, 9, 15, 0.55);
  border: 1px solid rgba(56, 232, 255, 0.55);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(56, 232, 255, 0.12);
}

/* FAQ */
.faq-list { display: grid; gap: .75rem; max-width: 760px; margin: 0 auto; }
.faq-item { padding: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; float: right; color: var(--cyan); font-weight: 700;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.25rem 1.15rem; margin: 0; color: var(--muted); }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; margin: 3.25rem 0 1rem; padding: 2.1rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(139,92,255,.18), rgba(56,232,255,.12));
  border: 1px solid var(--stroke-strong);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: auto -10% -40% auto;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--cyan);
  filter: blur(80px); opacity: .14;
  pointer-events: none;
}
.cta-band h2 { position: relative; z-index: 1; }
.cta-band p, .cta-band .btn { position: relative; z-index: 1; }

/* Auth / forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 550; font-size: .92rem; letter-spacing: -0.01em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 12px;
  border: 1px solid var(--stroke); background: rgba(0,0,0,.35);
  color: var(--text); font: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
input:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 232, 255, 0.15);
}
.checkbox {
  display: flex !important; flex-direction: row !important; align-items: flex-start; gap: .6rem;
  font-weight: 500 !important;
}
.checkbox input { width: auto; accent-color: var(--cyan); }
.hint { color: var(--muted); font-weight: 400; font-size: .85em; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; margin-top: 1rem; }
.break-all { word-break: break-all; font-size: .8rem; }

.alert {
  padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .95rem;
}
.alert-ok {
  background: rgba(46,229,157,.12);
  border: 1px solid rgba(46,229,157,.35);
  color: var(--success);
  padding: .75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.alert-error {
  background: rgba(255, 77, 109, 0.12); border: 1px solid rgba(255, 77, 109, 0.35); color: #ffb3c1;
}
.alert-success {
  background: rgba(46, 229, 157, 0.1); border: 1px solid rgba(46, 229, 157, 0.35); color: #9dffd4;
}

/* Dashboard */
.page-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 1.5rem;
}
.tenant-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.tenant-card.is-inactive { opacity: .7; }
.tenant-top { display: flex; justify-content: space-between; align-items: start; gap: .75rem; }
.tenant-top h2 { font-size: 1.2rem; margin: 0; }
.tenant-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .55rem; border-radius: 999px; white-space: nowrap;
}
.pill-on { background: rgba(46,229,157,.15); color: var(--success); border: 1px solid rgba(46,229,157,.35); }
.pill-off { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--stroke); }
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.code-block {
  background: rgba(0,0,0,.4); border: 1px solid var(--stroke); border-radius: 12px;
  padding: 1rem; overflow-x: auto; font-size: .8rem; color: var(--muted);
}


/* Footer brand — same dark pill + gradient text as header logo */
.site-footer .logo {
  color: #e8f4f8;
  background: rgba(7, 9, 15, 0.72);
  border: 1px solid rgba(56, 232, 255, 0.5);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 0.65rem;
  box-shadow:
    0 0 0 1px rgba(139, 92, 255, 0.22),
    0 0 16px rgba(56, 232, 255, 0.18),
    0 0 22px rgba(139, 92, 255, 0.12);
}
.site-footer .logo:hover {
  color: #e8f4f8;
  opacity: 1;
  border-color: rgba(56, 232, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(139, 92, 255, 0.35),
    0 0 20px rgba(56, 232, 255, 0.28),
    0 0 28px rgba(139, 92, 255, 0.18);
}
.site-footer .logo-text {
  display: inline-block;
  background: linear-gradient(105deg, var(--violet), var(--mint), var(--cyan), var(--violet));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}

/* Footer */
.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stroke);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; gap: .45rem .85rem; flex-wrap: nowrap; max-width: none; justify-content: flex-end; align-items: center; }
.footer-links a { color: var(--muted); }
.footer-copy { color: var(--muted); font-size: .85rem; margin: 0; }

/* Mobile */
@media (max-width: 900px) {
  .game-chips { gap: .6rem .7rem; }
  .features, .pricing, .hero-stats, .steps { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .form-row { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 1rem; border-radius: var(--radius);
    background: rgba(10, 12, 20, 0.95); border: 1px solid var(--stroke);
    backdrop-filter: blur(16px);
  }
  .glass-nav .nav a {
    color: var(--muted);
  }
  .glass-nav .nav a:hover {
    color: var(--text);
  }
  .glass-nav .nav a:not(.btn)::after {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
  }
  .site-header { position: sticky; flex-wrap: wrap; border-radius: 20px; }
  .nav.is-open { display: flex; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grid-overlay, .orb, .noise { animation: none !important; }
  .matrix-rain { display: none !important; }
  .btn-primary::after, .btn-glow::before { animation: none !important; opacity: .28; }
}


/* Language switcher — uses existing tokens only */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: .35rem;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(7, 9, 15, 0.55);
}
.lang-btn {
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  padding: .28rem .55rem !important;
  border-radius: 999px;
  color: var(--muted) !important;
  text-decoration: none !important;
}
.lang-btn::after { display: none !important; }
.lang-btn.is-active {
  color: var(--cyan) !important;
  background: rgba(7, 9, 15, 0.55);
  border: 1px solid rgba(56, 232, 255, 0.55);
  box-shadow: 0 0 14px rgba(56, 232, 255, 0.12);
}
.lang-btn:not(.is-active):hover { color: var(--text) !important; }
.badge-soon {
  display: inline-block;
  margin: .35rem 0 0;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--mint);
  border: 1px solid rgba(61, 255, 181, 0.35);
  background: rgba(61, 255, 181, 0.08);
}
.journey-steps {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
  .journey-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .journey-steps { grid-template-columns: 1fr; }
  .game-chips { gap: .5rem; }
  .game-chip { padding: .42rem .8rem .42rem .42rem; }
  .game-chip-icon { width: 40px; height: 40px; }
  .game-chip span { font-size: .72rem; letter-spacing: .08em; }
}

/* Legal documents */
.legal-hero { margin-bottom: 1.25rem; }
.legal-doc {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  padding: 1.75rem 1.5rem 2rem;
}
.legal-doc h2 {
  margin: 1.6rem 0 .65rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p,
.legal-doc li {
  color: var(--muted);
  line-height: 1.65;
}
.legal-doc ul {
  margin: .4rem 0 1rem;
  padding-left: 1.2rem;
}
.legal-doc a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc a:hover { color: var(--text); }
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stroke);
}
.legal-nav a {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 720px) {
  .footer-links { max-width: none; justify-content: flex-start; flex-wrap: wrap; }
  .legal-doc { padding: 1.25rem 1rem 1.5rem; }
}


/* Hero breakout: head out of frame + light float */
.hero-logo--breakout {
  position: relative;
  width: min(360px, 72vw);
  margin: 0.15rem auto 0.85rem;
  overflow: visible;
  border-radius: 18px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 0 0 4px rgba(56, 232, 255, 0.55),
    0 0 28px rgba(56, 232, 255, 0.35),
    0 0 48px rgba(139, 92, 255, 0.22),
    0 28px 40px rgba(0, 0, 0, 0.45);
}
.hero-logo--breakout video,
.hero-logo--breakout .hero-logo-fallback {
  border-radius: 16px;
}
.hero-logo-mark {
  position: absolute;
  left: 50%;
  bottom: 2.2%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  font-family: var(--display), Inter, system-ui, sans-serif;
  font-size: clamp(0.58rem, 1.55vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #0a0a0a;
  opacity: 0.78;
  white-space: nowrap;
  line-height: 1;
}
.hero-logo--breakout video,
.hero-logo--breakout .hero-logo-fallback {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: none;
  filter: none;
  margin: 0;
  background: transparent;
}
.hero-logo--breakout video {
  display: block;
  object-fit: contain;
}
/* Never show fallback + video together (iOS was showing both) */
.hero-logo--breakout .hero-logo-fallback {
  display: none !important;
}
.hero-logo--breakout.is-static video {
  display: none !important;
}
.hero-logo--breakout.is-static .hero-logo-fallback {
  display: block !important;
}
/* Hide iOS big play button / media chrome */
.hero-logo--breakout video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}
.hero-logo--breakout video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo--breakout { /* force static */ }
  .hero-logo--breakout video { display: none !important; }
  .hero-logo--breakout .hero-logo-fallback { display: block !important; }
}

/* Soft letter wave on hero title line 1 — same font & colors; words stay whole on mobile */
.title-wave {
  display: inline;
}
.title-wave-word {
  display: inline-block;
  white-space: nowrap;
}
.title-wave-word > span {
  display: inline-block;
  will-change: transform;
  animation: titleWave 2.4s ease-in-out infinite;
}
@keyframes titleWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.11em); }
}
@media (prefers-reduced-motion: reduce) {
  .title-wave-word > span { animation: none; }
}


/* Keep hero title readable on phones — avoid mid-word breaks */
@media (max-width: 420px) {
  h1 { font-size: clamp(2.05rem, 9.2vw, 2.6rem); }
}


/* Tutoriel pour modifier le Bot */
.guide-doc h2 { margin-top: 1.75rem; font-size: 1.15rem; }
.guide-doc h2:first-child { margin-top: 0; }
.guide-steps { margin: 0.75rem 0 1rem 1.25rem; line-height: 1.55; }
.guide-steps li { margin: 0.35rem 0; }
.guide-example {
  display: block;
  white-space: pre-wrap;
  margin: 0.75rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-x: auto;
}


/* Non-clickable CTAs when public signups are closed */
.btn.btn-disabled,
a.btn.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: saturate(0.7);
  box-shadow: none !important;
}
