/* ============================================================
   NeuroBloom — style.css
   Mobile-first, clean & playful design system
   ============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Brand gradient */
  --grad-start:  #6366f1;   /* indigo */
  --grad-mid:    #a855f7;   /* purple */
  --grad-end:    #ec4899;   /* pink */

  /* Solid colors */
  --primary:     #6366f1;
  --purple:      #a855f7;
  --pink:        #ec4899;
  --cyan:        #06b6d4;
  --green:       #10b981;
  --amber:       #f59e0b;

  /* Neutrals */
  --bg:          #ffffff;
  --bg-soft:     #f8f7ff;
  --bg-card:     #ffffff;
  --border:      #e8e4f8;
  --text:        #1e1b4b;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Nunito', sans-serif;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(99, 102, 241, 0.08);
  --shadow-md:  0 8px 30px rgba(99, 102, 241, 0.12);
  --shadow-lg:  0 20px 60px rgba(99, 102, 241, 0.18);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; }

/* ── 3. UTILITY CLASSES ───────────────────────────────────── */

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section spacing */
.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section tag */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.12));
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(99,102,241,0.2);
}

/* Section title */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text);
}

/* Section sub */
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 50px;
}

/* Inline link */
.btn-inline {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  transition: gap 0.2s var(--ease);
}
.btn-inline:hover { gap: 8px; }

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid), var(--grad-end));
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.55);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
}

/* Full-width */
.btn-full { width: 100%; }

/* ── 5. ANIMATIONS ────────────────────────────────────────── */

/* Fade up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay { /* used in hero */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpIn 0.9s var(--ease) 0.4s forwards;
}

@keyframes fadeUpIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Float (for bot) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* Pulse */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.7; }
}

/* Ring expand */
@keyframes ringPulse {
  0%   { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.1);  opacity: 0; }
}

/* Blink */
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.1); }
}

/* Gradient shift */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Blob drift */
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 10px) scale(0.95); }
}

/* Arm wave */
@keyframes waveLeft {
  0%, 100% { transform: rotate(-15deg); }
  50%      { transform: rotate(15deg); }
}
@keyframes waveRight {
  0%, 100% { transform: rotate(15deg); }
  50%      { transform: rotate(-15deg); }
}

/* Bubble pop-in */
@keyframes bubblePop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── 6. NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(99, 102, 241, 0.1);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--purple); }

/* Nav links */
.nav-links {
  display: none; /* hidden on mobile, shown via JS */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 20px;
  gap: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.nav-links.open { display: flex; }

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.07);
}

/* CTA link */
.nav-link.nav-cta {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
}
.nav-link.nav-cta:hover {
  background: linear-gradient(135deg, var(--grad-mid), var(--grad-end));
  box-shadow: 0 4px 15px rgba(168,85,247,0.35);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
  }
}

/* ── 7. HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 120px 0 0;
  background: linear-gradient(160deg, #f0eeff 0%, #fdf4ff 40%, #fff0f8 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(60px);
  opacity: 0.35;
  animation: blobDrift 8s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a855f7, #6366f1);
  top: -100px; right: -80px;
  animation-delay: 0s;
}
.blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ec4899, #a855f7);
  bottom: 60px; left: -60px;
  animation-delay: -3s;
}
.blob-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #06b6d4, #6366f1);
  top: 50%; left: 50%;
  animation-delay: -5s;
}

.hero-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
}

/* Hero text */
.hero-text {
  text-align: center;
  max-width: 640px;
  animation: fadeUpIn 0.9s var(--ease) 0s forwards;
  opacity: 0;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}
.hero-trust span {
  background: rgba(255,255,255,0.8);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* ── BOT CHARACTER ── */
.hero-bot {
  position: relative;
  display: flex;
  justify-content: center;
}

.bot-wrap {
  position: relative;
  display: inline-block;
}

/* Main bot structure */
.bot {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  filter: drop-shadow(0 12px 30px rgba(168,85,247,0.3));
}

/* Bot head */
.bot-head {
  width: 120px;
  height: 100px;
  background: linear-gradient(160deg, #7c3aed, #a855f7);
  border-radius: 30px 30px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
}

/* Eyes */
.bot-eyes {
  display: flex;
  gap: 18px;
}

.bot-eye {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blink 4s ease-in-out infinite;
}
.bot-eye.big {
  width: 28px;
  height: 28px;
}

.bot-pupil {
  width: 10px;
  height: 10px;
  background: #1e1b4b;
  border-radius: 50%;
  position: relative;
  transition: transform 0.1s;
}
.bot-eye.big .bot-pupil {
  width: 13px;
  height: 13px;
}

/* Mouth */
.bot-mouth {
  width: 28px;
  height: 12px;
  border: 3px solid rgba(255,255,255,0.6);
  border-top: none;
  border-radius: 0 0 20px 20px;
}
.bot-mouth.happy {
  width: 36px;
  height: 16px;
}

/* Antenna */
.bot-antenna {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 18px;
  background: rgba(168,85,247,0.6);
  border-radius: 2px;
}
.bot-antenna-ball {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(236,72,153,0.6);
}
.bot-antenna-ball.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Bot body */
.bot-body {
  width: 100px;
  height: 80px;
  background: linear-gradient(160deg, #8b5cf6, #a855f7);
  border-radius: 16px 16px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(139,92,246,0.3);
}
.bot-body.big {
  width: 130px;
  height: 100px;
}

.bot-heart {
  font-size: 1.4rem;
  animation: pulse 2s ease-in-out infinite;
}
.bot-heart.big { font-size: 1.8rem; }

/* Arms */
.bot-arms {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.bot-arm {
  width: 18px;
  height: 50px;
  background: linear-gradient(to bottom, #8b5cf6, #a855f7);
  border-radius: 12px;
}
.bot-arm-left  { transform-origin: top center; animation: waveLeft  2s ease-in-out infinite; }
.bot-arm-right { transform-origin: top center; animation: waveRight 2s ease-in-out infinite; }

/* Speech bubble */
.bot-bubble {
  position: absolute;
  top: -70px;
  right: -140px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: bubblePop 0.5s var(--ease-spring) 1s both;
  line-height: 1.5;
}
.bot-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  transform: rotate(45deg);
}

/* Stat cards */
.stat-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 4s ease-in-out infinite;
  border: 1px solid var(--border);
}
.stat-card-1 { bottom: 10px; left: -80px; animation-delay: -1s; }
.stat-card-2 { bottom: 60px; right: -80px; animation-delay: -2.5s; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
}

/* Hero wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; }

/* ── 8. ABOUT ─────────────────────────────────────────────── */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  gap: 24px;
  margin-top: 50px;
}

.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.about-card-highlight {
  background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(168,85,247,0.07));
  border-color: rgba(168,85,247,0.3);
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.about-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text);
}
.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── 9. FEATURES ──────────────────────────────────────────── */
.features {
  background: var(--bg-soft);
}

.features-grid {
  display: grid;
  gap: 20px;
  margin-top: 50px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--icon-color, #6366f1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { opacity: 0.05; }

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--icon-color) 15%, transparent), color-mix(in srgb, var(--icon-color) 8%, transparent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--icon-color) 20%, transparent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── 10. GAMES ────────────────────────────────────────────── */
.games { background: var(--bg); }

.games-grid {
  display: grid;
  gap: 20px;
  margin-top: 50px;
}

.game-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.game-emoji {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.game-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.game-badge-mid {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(236,72,153,0.1));
  color: var(--amber);
}
.game-badge-adv {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.1));
  color: var(--green);
}

.game-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.game-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.game-tags span {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ── 11. NEUROBOT SECTION ─────────────────────────────────── */
.neurobot {
  background: linear-gradient(160deg, #f5f0ff 0%, #fff0fa 100%);
}

.blob-nb-1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(168,85,247,0.25), transparent);
  top: -80px; left: -80px;
  animation: blobDrift 9s ease-in-out infinite;
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(50px);
}
.blob-nb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(236,72,153,0.2), transparent);
  bottom: -60px; right: -60px;
  animation: blobDrift 11s ease-in-out infinite;
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(50px);
  animation-delay: -4s;
}

.neurobot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* Big bot showcase */
.nb-bot-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 260px;
}

.nb-bot-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.2);
  animation: ringPulse 3s ease-out infinite;
}
.nb-ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.nb-ring-2 { width: 220px; height: 220px; animation-delay: 0.8s; }
.nb-ring-3 { width: 260px; height: 260px; animation-delay: 1.6s; }

.nb-bot {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

/* Tooltips */
.nb-tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 3;
}
.nb-tip-1 { top: 10px;  right: -20px; animation: float 4s ease-in-out infinite -1s; }
.nb-tip-2 { bottom: 10px; left: -20px; animation: float 4.5s ease-in-out infinite -2s; }
.nb-tip-3 { top: 50%;  left: -30px; transform: translateY(-50%); animation: float 3.5s ease-in-out infinite -0.5s; }

/* NB text */
.nb-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.nb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.nb-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.nb-list li span:first-child {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── 12. TEAM ─────────────────────────────────────────────── */
.team { background: var(--bg); }

.team-grid {
  display: grid;
  gap: 24px;
  margin-top: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Stylized avatar */
.team-avatar { flex-shrink: 0; }

.avatar-bg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd, #f0abfc);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(168,85,247,0.3);
  position: relative;
  overflow: hidden;
}

.avatar-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-top: 10px;
}
.avatar-hair {
  width: 60px;
  height: 30px;
  background: #4c1d95;
  border-radius: 30px 30px 0 0;
  position: absolute;
  top: -6px;
}
.avatar-eyes-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.avatar-eye {
  width: 8px;
  height: 8px;
  background: #1e1b4b;
  border-radius: 50%;
}
.avatar-smile {
  width: 18px;
  height: 8px;
  border: 2.5px solid #4c1d95;
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-top: 2px;
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.team-role {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.team-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.team-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.team-join {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.06));
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-xl);
}
.team-join p {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

/* ── 13. CONTACT ──────────────────────────────────────────── */
.contact {
  background: var(--bg-soft);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}
.contact-info-item span:first-child {
  font-size: 1.1rem;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.form-success {
  display: none;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.1));
  border: 1px solid rgba(16,185,129,0.3);
  color: #047857;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}
.form-success.visible { display: block; }

/* ── 14. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 16px;
  display: inline-flex;
}
.footer-brand .logo-accent { color: #c4b5fd; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-links h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: #c4b5fd; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom strong { color: rgba(255,255,255,0.6); }

/* ── 15. RESPONSIVE — TABLET & UP (768px+) ────────────────── */
@media (min-width: 768px) {

  .section { padding: 100px 0; }

  .hero-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    padding-bottom: 100px;
  }
  .hero-text { text-align: left; }
  .hero-buttons { justify-content: flex-start; }
  .hero-trust  { justify-content: flex-start; }

  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card:last-child { grid-column: span 2; }

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

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

  .neurobot-inner {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }
  .nb-bot-showcase { flex-shrink: 0; }

  .contact-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }
  .contact-text { flex: 1; }
  .contact-form-wrap { flex: 1; }

  .footer-inner { flex-direction: row; gap: 60px; }
  .footer-brand { flex: 2; }
  .footer-links { flex: 1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ── 16. RESPONSIVE — DESKTOP (1024px+) ──────────────────── */
@media (min-width: 1024px) {

  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .about-card:last-child { grid-column: auto; }

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

  .games-grid { grid-template-columns: repeat(3, 1fr); }

  .bot-bubble { right: -160px; }
}
