:root {
  color-scheme: light;
  --ink: #102235;
  --muted: #5a6a78;
  --soft: #16b5e9;
  --brand: #16b5e9;
  --brand-strong: #0089c5;
  --brand-glow: rgba(22, 181, 233, 0.3);
  --orange: #ff6700;
  --orange-soft: #ffb45f;
  --orange-glow: rgba(255, 103, 0, 0.3);
  --purple: #16b5e9; /* mapped to brand blue for simplicity */
  --navy: #ffffff;
  --navy-2: #f4f9fd;
  --line: rgba(0, 0, 0, 0.06);
  --paper: #ffffff;
  --paper-ink: #102235;
  --paper-muted: #5a6a78;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  min-width: 320px;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography Enhancements */
h1, h2, h3, .eyebrow, .brand-link {
  font-family: 'Outfit', sans-serif;
}

.site-header {
  align-items: center;
  background: linear-gradient(135deg, #082845 0%, #0b4e8a 100%);
  border-bottom: none;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 72px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.brand-link {
  align-items: center;
  display: inline-flex;
  gap: 14px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  overflow: visible;
}

.brand-link em {
  font-style: normal;
  color: var(--orange);
}

.brand-link img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  transition: transform 300ms ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.brand-link:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(8px, 2vw, 24px);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  min-width: 0;
}

.site-nav a {
  white-space: nowrap;
  position: relative;
  transition: color 200ms ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 300ms ease;
}

.site-nav a:hover::after {
  width: 60%;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--orange-glow);
  transition: all 250ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px var(--orange-glow);
  background: linear-gradient(135deg, #ff8c42 0%, var(--orange) 100%) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta svg {
  flex-shrink: 0;
}

.hero {
  min-height: 88vh;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at bottom right, #1d6eac 0%, #082845 100%);
}

.hero-bg {
  display: block;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.025) 2px,
    transparent 2px,
    transparent 12px
  );
  z-index: 0;
}

.hero-bg::after {
  content: 'mig33\A reborn';
  white-space: pre;
  position: absolute;
  bottom: 5%;
  right: 5%;
  font-size: clamp(6rem, 12vw, 14rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  text-align: right;
  line-height: 0.85;
  font-family: 'Outfit', sans-serif;
  z-index: 0;
  pointer-events: none;
}

.hero-shade {
  display: block;
  position: absolute;
  top: 15%;
  left: 8%;
  width: 140px;
  height: 2px;
  background: var(--orange);
  z-index: 1;
}

.hero-shade::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -60vw;
  width: 40vw;
  height: 200px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
  transform: skewX(-45deg);
  pointer-events: none;
}

/* Floating animated background elements */
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-el {
  position: absolute;
  opacity: 0.07;
  border-radius: 16px;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.float-1 { width: 60px; height: 60px; top: 10%; left: 5%; animation: floatA 14s infinite; }
.float-2 { width: 45px; height: 45px; top: 65%; left: 15%; opacity: 0.05; animation: floatB 18s infinite; }
.float-3 { width: 70px; height: 70px; top: 30%; right: 8%; opacity: 0.06; animation: floatC 16s infinite; }
.float-4 { width: 120px; height: auto; bottom: 8%; left: 3%; opacity: 0.04; animation: floatB 20s infinite; border-radius: 0; }
.float-5 { width: 35px; height: 35px; top: 75%; right: 20%; opacity: 0.06; animation: floatA 12s infinite reverse; }
.float-6 { width: 90px; height: auto; top: 5%; right: 25%; opacity: 0.04; animation: floatC 22s infinite; border-radius: 0; }
.float-7 { width: 50px; height: 50px; top: 50%; left: 45%; opacity: 0.05; animation: floatA 15s infinite; }

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-15px, -50px) rotate(-3deg); }
  75% { transform: translate(25px, -20px) rotate(4deg); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-25px, -40px) rotate(-5deg); }
  66% { transform: translate(15px, -25px) rotate(3deg); }
}

@keyframes floatC {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -20px) rotate(8deg); }
  50% { transform: translate(-20px, -45px) rotate(-6deg); }
  75% { transform: translate(10px, -15px) rotate(4deg); }
}

.hero-content h1,
.hero-content h2,
.hero-content h3 {
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-content .hero-copy {
  color: rgba(255, 255, 255, 0.85);
}

.hero-content .eyebrow {
  color: var(--orange-soft);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(140px, 20vh, 190px) clamp(20px, 5vw, 64px) 96px;
  position: relative;
  width: 100%;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  max-width: 680px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-bot {
  max-width: 100%;
  width: 500px;
  height: auto;
  object-fit: contain;
  animation: floatBot 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.1));
}

@keyframes floatBot {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.hero-banner-img {
  max-width: 100%;
  width: 620px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  animation: floatBot 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.eyebrow {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.95;
  margin-bottom: 24px;
  color: var(--brand-strong);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--brand-strong);
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  max-width: min(100%, 640px);
  margin-bottom: 32px;
}

.hero-actions,
.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-button {
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--ink);
  display: inline-flex;
  gap: 14px;
  min-height: 64px;
  min-width: 208px;
  padding: 10px 20px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.store-button.primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
  border: 1px solid var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px var(--orange-glow);
}

.store-button:hover,
.store-button:focus-visible {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.store-button.primary:hover,
.store-button.primary:focus-visible {
  box-shadow: 0 16px 36px var(--orange-glow);
  filter: brightness(1.05);
  background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
  color: #fff;
}

.store-button small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.8;
  font-family: 'Inter', sans-serif;
}

.store-button span:last-child {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  font-family: 'Outfit', sans-serif;
}

.store-icon {
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.store-button.primary .store-icon {
  background: rgba(255, 255, 255, 0.2);
}

.store-icon svg {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.ghost-link {
  align-items: center;
  background: transparent;
  border: 1px solid var(--brand);
  border-radius: 12px;
  color: var(--brand);
  display: inline-flex;
  font-weight: 700;
  min-height: 64px;
  padding: 0 24px;
  transition: all 250ms ease;
}

.ghost-link:hover {
  background: rgba(22, 181, 233, 0.05);
  transform: translateY(-2px);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(20px, 5vw, 64px);
}

.intro-band {
  background: var(--navy-2);
  color: var(--paper-ink);
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--line);
}

.intro-grid {
  align-items: center;
  display: grid;
  gap: clamp(40px, 8vw, 100px);
  grid-template-columns: minmax(260px, 380px) 1fr;
}

.phone-shell {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(22, 181, 233, 0.05) inset;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-shell:hover {
  transform: translateY(-8px);
  box-shadow: 0 36px 64px rgba(0, 0, 0, 0.12), 0 0 0 4px rgba(22, 181, 233, 0.1) inset;
}

.phone-top {
  align-items: center;
  background: var(--brand);
  display: flex;
  gap: 14px;
  padding: 18px 20px;
}

.phone-top img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.phone-top strong {
  color: #fff;
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.phone-top span {
  color: rgba(255,255,255,0.8);
  display: block;
  font-size: 0.85rem;
  margin-top: 2px;
}

.chat-preview {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.6;
  min-height: 286px;
  padding: 20px;
  background: #ffffff;
}

.chat-preview p {
  margin-bottom: 14px;
  animation: fadeUp 0.5s ease backwards;
}

.chat-preview p:nth-child(1) { animation-delay: 0.1s; }
.chat-preview p:nth-child(2) { animation-delay: 0.2s; }
.chat-preview p:nth-child(3) { animation-delay: 0.3s; }
.chat-preview p:nth-child(4) { animation-delay: 0.4s; }
.chat-preview p:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-preview span {
  color: var(--muted);
  font-size: 0.85rem;
}

.room {
  color: #ef4444;
}

.bot {
  color: var(--brand-strong);
}

.blue {
  color: #3b82f6;
}

.green {
  color: #10b981;
}

.composer-preview {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  padding: 16px 20px;
}

.composer-preview span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  flex: 1;
  padding: 14px 18px;
}

.composer-preview button {
  align-items: center;
  background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
  border: 0;
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 12px var(--orange-glow);
}

.composer-preview button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px var(--orange-glow);
}

.composer-preview svg {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.intro-copy p,
.games-layout p,
.download-layout p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 720px;
}

.feature-band {
  background: #ffffff;
  padding: 100px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.download-band {
  background: radial-gradient(circle at top left, #0f3d6e 0%, #082845 50%, #061c33 100%);
  padding: 100px 0;
  border-top: none;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 32px 32px;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  transition: height 300ms ease;
}

.card-blue::before  { background: linear-gradient(135deg, #16b5e9, #0089c5); }
.card-orange::before { background: linear-gradient(135deg, #ff6700, #ff8c42); }
.card-green::before  { background: linear-gradient(135deg, #10b981, #059669); }
.card-purple::before { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.card-red::before    { background: linear-gradient(135deg, #ef4444, #f97316); }
.card-teal::before   { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
  height: 6px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-mark {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  margin-bottom: 24px;
  width: 56px;
  transition: all 300ms ease;
}

.feature-mark.blue   { background: rgba(22, 181, 233, 0.1); color: #0089c5; }
.feature-mark.orange { background: rgba(255, 103, 0, 0.1); color: #ff6700; }
.feature-mark.green  { background: rgba(16, 185, 129, 0.1); color: #059669; }
.feature-mark.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.feature-mark.red    { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.feature-mark.teal   { background: rgba(20, 184, 166, 0.1); color: #0d9488; }

.feature-card:hover .feature-mark { transform: scale(1.1) rotate(5deg); }

.card-blue:hover .feature-mark.blue     { background: #0089c5; color: #fff; box-shadow: 0 8px 24px rgba(22,181,233,0.3); }
.card-orange:hover .feature-mark.orange { background: #ff6700; color: #fff; box-shadow: 0 8px 24px rgba(255,103,0,0.3); }
.card-green:hover .feature-mark.green   { background: #059669; color: #fff; box-shadow: 0 8px 24px rgba(16,185,129,0.3); }
.card-purple:hover .feature-mark.purple { background: #8b5cf6; color: #fff; box-shadow: 0 8px 24px rgba(139,92,246,0.3); }
.card-red:hover .feature-mark.red       { background: #ef4444; color: #fff; box-shadow: 0 8px 24px rgba(239,68,68,0.3); }
.card-teal:hover .feature-mark.teal     { background: #0d9488; color: #fff; box-shadow: 0 8px 24px rgba(20,184,166,0.3); }

.feature-mark svg { fill: currentColor; height: 28px; width: 28px; }
.card-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; background: var(--navy-2); color: var(--muted); }
.section-subtitle { color: var(--muted); font-size: 1.1rem; line-height: 1.7; margin-top: 12px; }

.games-band { background: radial-gradient(circle at bottom right, #1d6eac 0%, #082845 100%); color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden; }
.games-bg-pattern { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 2px, transparent 2px, transparent 12px); z-index: 0; }
.games-content { position: relative; z-index: 1; }
.games-banner {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 48px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 400ms ease, box-shadow 400ms ease;
}
.games-banner:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.games-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms ease;
}
.games-banner:hover .games-banner-img {
  transform: scale(1.03);
}
.games-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,40,69,0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px;
}
.banner-badge {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 50px;
  letter-spacing: 0.02em;
  font-family: 'Outfit', sans-serif;
  transition: all 300ms ease;
}
.games-banner:hover .banner-badge {
  background: rgba(255,103,0,0.8);
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(255,103,0,0.3);
}

.games-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.games-eyebrow { color: var(--orange-soft) !important; }
.games-band h2 { color: #fff; text-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.games-subtitle { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.7; margin-top: 12px; }
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.game-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 32px 24px; text-align: center; backdrop-filter: blur(12px); transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1); }
.game-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.2); }
.game-icon { font-size: 3rem; margin-bottom: 16px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); transition: transform 300ms ease; }
.game-card:hover .game-icon { transform: scale(1.2) rotate(-5deg); }
.game-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.game-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }
.games-bottom { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.games-mascot { height: auto; max-width: 220px; width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); transition: transform 400ms ease; }
.games-mascot:hover { transform: translateY(-8px) scale(1.05); }
.mini-assets { display: grid; gap: 16px; grid-template-columns: repeat(4, 72px); }
.mini-assets img { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; height: 72px; padding: 10px; width: 72px; transition: transform 300ms ease; box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
.mini-assets img:hover { transform: translateY(-6px) scale(1.1); border-color: rgba(255,255,255,0.3); }

.download-bg-pattern { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015) 2px, transparent 2px, transparent 14px); z-index: 0; }
.download-floats { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dl-float { position: absolute; opacity: 0.06; border-radius: 14px; }
.dl-f1 { width: 70px; height: 70px; top: 12%; right: 10%; animation: floatA 16s infinite; }
.dl-f2 { width: 50px; height: 50px; bottom: 15%; left: 8%; animation: floatB 20s infinite; }
.dl-f3 { width: 40px; height: 40px; top: 60%; right: 30%; animation: floatC 14s infinite; }

.download-layout { position: relative; z-index: 1; align-items: center; display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: 1fr 1fr; }
.download-info { max-width: 520px; }
.dl-eyebrow { color: var(--orange-soft) !important; }
.download-band h2 { color: #fff; text-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.dl-desc { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; }

.dl-stats { display: flex; gap: 32px; }
.dl-stat { display: flex; flex-direction: column; gap: 4px; }
.dl-stat strong { color: var(--orange); font-size: 1.6rem; font-weight: 800; font-family: 'Outfit', sans-serif; }
.dl-stat span { color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; }

.download-cards { display: flex; flex-direction: column; gap: 20px; }
.dl-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl-note { color: rgba(255,255,255,0.5); font-size: 0.85rem; text-align: center; margin: 0; letter-spacing: 0.02em; }

.site-footer { background: #0a1628; border-top: 1px solid rgba(255,255,255,0.06); color: #8b9ab5; padding: 64px 0 0; }

.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }

.footer-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; color: #fff; font-family: 'Outfit', sans-serif; margin-bottom: 16px; }
.footer-logo em { font-style: normal; color: var(--orange); }
.footer-logo img { border-radius: 10px; }

.footer-desc { color: #6b7c95; font-size: 0.9rem; line-height: 1.7; max-width: 300px; margin-bottom: 24px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #8b9ab5; transition: all 250ms ease; }
.footer-socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(22,181,233,0.25); }
.footer-socials svg { width: 18px; height: 18px; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; font-family: 'Outfit', sans-serif; margin: 0 0 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col a { display: block; color: #6b7c95; font-size: 0.9rem; padding: 6px 0; transition: color 200ms ease, padding-left 200ms ease; }
.footer-col a:hover { color: #fff; padding-left: 6px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; margin-top: 0; font-size: 0.82rem; color: #4a5a72; }
.footer-bottom span:last-child { color: #6b7c95; }

.toast { background: var(--ink); border: 1px solid var(--brand); border-radius: 12px; bottom: 24px; box-shadow: 0 24px 48px rgba(0,0,0,0.2); color: #fff; left: 50%; max-width: min(92vw, 420px); opacity: 0; padding: 16px 20px; pointer-events: none; position: fixed; transform: translate(-50%, 20px); transition: opacity 300ms ease, transform 300ms cubic-bezier(0.4, 0, 0.2, 1); z-index: 40; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .site-header { padding: 0 16px; }
  .brand-link img { height: 36px; width: 36px; }
  .brand-link span { display: none; }
  .site-nav { flex: 1; justify-content: flex-end; }
  .hero { min-height: 84vh; }
  .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero-text { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; }
  .floating-bot { width: 320px; height: auto; margin-top: 24px; }
  .intro-grid, .download-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .download-grid { justify-content: flex-start; }
  .download-layout { grid-template-columns: 1fr; text-align: center; }
  .download-info { max-width: 100%; margin: 0 auto; }
  .dl-stats { justify-content: center; }
  .dl-card-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .dl-note { text-align: center; }
  .download-cards { width: 100%; max-width: 400px; margin: 0 auto; }
  .store-btn { min-width: 0; width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 540px) {
  /* General mobile */
  body { overflow-x: hidden; }
  .section-inner { padding: 0 20px; }

  /* Header */
  .site-header { width: 100vw; }
  .site-nav { flex: 0 0 auto; font-size: 0.85rem; gap: 8px; }
  .site-nav a[href="#features"], .site-nav a[href="#games"] { display: none; }
  .nav-cta { padding: 8px 16px !important; font-size: 0.8rem; }

  /* Hero */
  .hero-content { max-width: 100vw; padding-left: 24px; padding-right: 24px; padding-bottom: 72px; width: 100vw; }
  h1 { font-size: 2.4rem; }
  .hero-copy { font-size: 1rem; line-height: 1.6; max-width: calc(100vw - 48px); width: calc(100vw - 48px); }
  .hero-actions { max-width: calc(100vw - 48px); width: calc(100vw - 48px); }
  .hero-floats { opacity: 0.3; }
  .floating-bot { width: 220px; }
  .store-button, .download-grid .store-button { min-width: 0; width: 100%; }
  .ghost-link { justify-content: center; width: 100%; }

  /* Intro / Phone */
  .intro-band { padding: 60px 0; }
  .intro-grid { gap: 40px; }
  .phone-shell { max-width: 300px; margin: 0 auto; border-radius: 28px; }
  .intro-grid .section-heading { font-size: 2rem; }

  /* Features */
  .feature-band { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-heading { font-size: 2rem; }

  /* Games */
  .games-band { padding: 60px 0 50px; }
  .games-banner { border-radius: 16px; margin-bottom: 32px; }
  .games-banner-overlay { padding: 16px; }
  .banner-badge { font-size: 0.82rem; padding: 8px 18px; }
  .games-header h2 { font-size: 1.8rem; }
  .games-grid { grid-template-columns: 1fr; gap: 14px; }
  .games-bottom { flex-direction: column; align-items: center; gap: 20px; }
  .games-mascot { width: 180px; }
  .mini-assets { grid-template-columns: repeat(4, 60px); }
  .mini-assets img { height: 60px; width: 60px; }

  /* Download */
  .download-band { padding: 60px 0; }
  .download-band .section-inner { padding-left: 20px; padding-right: 20px; }
  .download-layout { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .download-info { max-width: 100%; }
  .dl-stats { justify-content: center; }
  .dl-card-grid { grid-template-columns: 1fr; gap: 12px; }
  .dl-desc { font-size: 0.95rem; }
  .dl-note { font-size: 0.78rem; }
  .download-floats { opacity: 0.15; }
  .store-btn { min-width: 0; width: 100%; }

  /* Footer */
  .site-footer { padding: 40px 0 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { text-align: center; }
  .footer-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .footer-logo { justify-content: center; }
  .footer-socials { justify-content: center; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== BRANDED STORE BUTTONS ===== */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  min-width: 220px;
  padding: 12px 24px;
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.store-btn span:last-child {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.15;
  font-family: 'Outfit', sans-serif;
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.store-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.store-btn-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.store-btn:hover {
  transform: translateY(-4px);
}

/* Google Play - white badge like official */
.btn-playstore {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  border: 1px solid #d4d4d4;
  color: #3c4043;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.btn-playstore:hover {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.btn-playstore span:last-child { color: #3c4043; }
.btn-playstore small { color: #5f6368; }

/* App Store - white badge like official */
.btn-appstore {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  border: 1px solid #d4d4d4;
  color: #3c4043;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.btn-appstore:hover {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.btn-appstore span:last-child { color: #3c4043; }
.btn-appstore small { color: #5f6368; }
.btn-appstore .store-btn-icon svg { width: 28px; height: 28px; fill: #000; }

/* Windows - Microsoft blue */
.btn-windows {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  border: 1px solid rgba(0,120,212,0.3);
  box-shadow: 0 4px 16px rgba(0,120,212,0.25);
}
.btn-windows:hover {
  box-shadow: 0 12px 32px rgba(0,120,212,0.35);
  background: linear-gradient(135deg, #1a86d8 0%, #0078d4 100%);
}

/* macOS - dark gray Apple */
.btn-mac {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  border: 1px solid #444;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-mac:hover {
  background: linear-gradient(135deg, #444 0%, #2a2a2a 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.btn-mac .store-btn-icon svg { width: 26px; height: 26px; }

.slider-shell { padding: 0; position: relative; width: 100%; aspect-ratio: 9/19; overflow: hidden; background: #0b4e8a; }
.app-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; opacity: 0; animation: fadeSlide 8s infinite ease-in-out; }
.app-slide:nth-child(1) { animation-delay: 0s; }
.app-slide:nth-child(2) { animation-delay: 4s; }
@keyframes fadeSlide { 0%, 40% { opacity: 1; z-index: 2; } 50%, 90% { opacity: 0; z-index: 1; } 100% { opacity: 1; z-index: 2; } }

/* ===== PREMIUM EFFECTS ===== */

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* --- SVG Wave Dividers --- */
.wave-divider { position: relative; width: 100%; overflow: hidden; line-height: 0; margin-top: -1px; z-index: 2; }
.wave-divider svg { display: block; width: 100%; height: 70px; }
.wave-divider.flip { transform: rotate(180deg); }

/* --- Gradient Mesh Blobs --- */
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; pointer-events: none; z-index: 0; }
.mesh-blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, #16b5e9, transparent); top: -10%; right: -5%; animation: blobFloat1 20s ease-in-out infinite; }
.mesh-blob-2 { width: 400px; height: 400px; background: radial-gradient(circle, #ff6700, transparent); bottom: -10%; left: -5%; animation: blobFloat2 25s ease-in-out infinite; }
.mesh-blob-3 { width: 300px; height: 300px; background: radial-gradient(circle, #0089c5, transparent); top: 40%; left: 30%; animation: blobFloat3 18s ease-in-out infinite; }

@keyframes blobFloat1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-30px, 40px) scale(1.1); } 66% { transform: translate(20px, -30px) scale(0.95); } }
@keyframes blobFloat2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -40px) scale(1.15); } }
@keyframes blobFloat3 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, 30px) scale(1.1); } 66% { transform: translate(-20px, -40px) scale(0.9); } }

/* --- Header Scroll Effect --- */
.site-header { transition: background 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease; }
.site-header.is-scrolled { background: rgba(10, 22, 40, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

/* --- Hamburger Menu --- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 50; }
.hamburger-line { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: all 300ms ease; }
.hamburger.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: rgba(8,24,39,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 45; padding: 90px 32px 32px; transition: right 400ms cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; gap: 4px; }
.mobile-nav.is-open { right: 0; }
.mobile-nav a { color: rgba(255,255,255,0.7); font-size: 1.05rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 200ms ease, padding-left 200ms ease; font-family: 'Outfit', sans-serif; text-decoration: none; display: block; }
.mobile-nav a:hover, .mobile-nav a.is-active { color: #fff; padding-left: 8px; }
.mobile-nav a.is-active { color: var(--orange); }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .hamburger { display: flex; flex-direction: column; }
  .site-nav a[href="#features"], .site-nav a[href="#games"] { display: none; }
}
@media (max-width: 540px) {
  .site-nav a[href="#features"], .site-nav a[href="#games"], .site-nav a[href="#download"] { display: none; }
}

/* --- Glow Effects --- */
.glow-hover { transition: box-shadow 400ms ease, transform 400ms ease; }
.glow-hover:hover { box-shadow: 0 8px 32px rgba(22, 181, 233, 0.25), 0 0 0 1px rgba(22, 181, 233, 0.1); transform: translateY(-4px); }
.glow-orange:hover { box-shadow: 0 8px 32px rgba(255, 103, 0, 0.25), 0 0 0 1px rgba(255, 103, 0, 0.1); }

/* --- How It Works --- */
.hiw-section { background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%); padding: 100px 0; position: relative; overflow: hidden; }
.hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; position: relative; }
.hiw-steps::before { content: ''; position: absolute; top: 50px; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), var(--orange), transparent); z-index: 0; }
.hiw-step { text-align: center; position: relative; z-index: 1; }
.hiw-number { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--orange)); color: #fff; font-size: 1.8rem; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-family: 'Outfit', sans-serif; box-shadow: 0 12px 32px rgba(22, 181, 233, 0.3); transition: transform 400ms ease, box-shadow 400ms ease; }
.hiw-step:hover .hiw-number { transform: scale(1.1) rotate(-5deg); box-shadow: 0 16px 40px rgba(255, 103, 0, 0.3); }
.hiw-step h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; font-family: 'Outfit', sans-serif; }
.hiw-step p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 280px; margin: 0 auto; }
@media (max-width: 540px) {
  .hiw-steps { grid-template-columns: 1fr; gap: 48px; }
  .hiw-steps::before { display: none; }
  .hiw-section { padding: 60px 0; }
}

/* --- Testimonials --- */
.testimonials-section { background: #082845; color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.testimonial-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 32px; transition: all 400ms ease; }
.testimonial-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.testimonial-stars { color: #FFD700; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--orange)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1rem; font-family: 'Outfit', sans-serif; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: #fff; }
.testimonial-role { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .testimonials-section { padding: 60px 0; }
}

/* --- Active Nav --- */
.site-nav a.is-active { color: var(--orange); }
.site-nav a { position: relative; }
.site-nav a.is-active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--orange); border-radius: 1px; }

/* --- Gallery Section (Carousel) --- */
.gallery-section { background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 50%, #fff5eb 100%); padding: 100px 0; position: relative; overflow: hidden; }
.gallery-carousel-wrap { position: relative; margin-top: 50px; }
.gallery-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 20px 0 30px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 calc(25% - 15px); scroll-snap-align: start; position: relative;
  border-radius: 20px; overflow: hidden; cursor: pointer; aspect-ratio: 9/16;
  background: #e2e8f0; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 400ms ease;
}
.gallery-item:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.15); z-index: 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%); opacity: 0; transition: opacity 300ms ease; display: flex; align-items: flex-end; padding: 20px; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label { color: #fff; font-size: 0.85rem; font-weight: 600; font-family: 'Outfit', sans-serif; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem; color: var(--ink); z-index: 5;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.gallery-nav:hover { background: var(--brand); color: #fff; transform: translateY(-50%) scale(1.1); box-shadow: 0 8px 24px rgba(22,181,233,0.3); }
.gallery-nav-prev { left: -24px; }
.gallery-nav-next { right: -24px; }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.gallery-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(8,40,69,0.15); cursor: pointer; transition: all 300ms ease; padding: 0; }
.gallery-dot.active { background: var(--brand); width: 28px; border-radius: 5px; }
/* Lightbox */
.gallery-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gallery-lightbox.is-open { display: flex; animation: lbFadeIn 300ms ease; }
.gallery-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.gallery-lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.15); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 200ms ease; }
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.3); }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 860px) {
  .gallery-item { flex: 0 0 calc(33.333% - 14px); }
  .gallery-nav-prev { left: 8px; }
  .gallery-nav-next { right: 8px; }
}
@media (max-width: 540px) {
  .gallery-section { padding: 60px 0; }
  .gallery-item { flex: 0 0 calc(50% - 10px); }
  .gallery-track { gap: 12px; padding: 12px 0 20px; }
  .gallery-nav { width: 36px; height: 36px; font-size: 1rem; }
  .gallery-nav-prev { left: 4px; }
  .gallery-nav-next { right: 4px; }
}

/* --- Counter --- */
.counter-value { display: inline-block; font-variant-numeric: tabular-nums; }

/* --- Branded Floating Decorations (Bubble Rise) --- */
.brand-floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.brand-float { position: absolute; opacity: 0.045; }
.brand-float.light { opacity: 0.065; }

/* Bubble rise animation - items float upward continuously */
.bf-bubble-1 { width: 160px; bottom: -10%; left: 5%; animation: bubbleRise1 10s linear infinite; }
.bf-bubble-2 { width: 100px; bottom: -10%; left: 25%; animation: bubbleRise2 12s linear infinite; animation-delay: 2s; }
.bf-bubble-3 { width: 70px; bottom: -10%; right: 15%; animation: bubbleRise1 9s linear infinite; animation-delay: 4s; }
.bf-bubble-4 { width: 130px; bottom: -10%; right: 5%; animation: bubbleRise3 11s linear infinite; animation-delay: 1s; }
.bf-bubble-5 { width: 50px; bottom: -10%; left: 45%; animation: bubbleRise2 8s linear infinite; animation-delay: 5s; }
.bf-bubble-6 { width: 90px; bottom: -10%; left: 60%; animation: bubbleRise1 13s linear infinite; animation-delay: 3s; }
.bf-bubble-7 { width: 110px; bottom: -10%; right: 30%; animation: bubbleRise3 10s linear infinite; animation-delay: 6s; }
.bf-bubble-8 { width: 60px; bottom: -10%; left: 15%; animation: bubbleRise2 9s linear infinite; animation-delay: 7s; }

/* Bot floats */
.bf-bot-1 { width: 120px; bottom: -10%; left: 8%; animation: bubbleRise3 12s linear infinite; animation-delay: 2s; }
.bf-bot-2 { width: 80px; bottom: -10%; right: 10%; animation: bubbleRise1 10s linear infinite; animation-delay: 5s; }
.bf-bot-3 { width: 100px; bottom: -10%; left: 50%; animation: bubbleRise2 11s linear infinite; animation-delay: 8s; }

/* Family float */
.bf-family-1 { width: 150px; bottom: -10%; left: 35%; animation: bubbleRise3 14s linear infinite; animation-delay: 3s; }

/* Rise animations - float up with subtle horizontal sway */
@keyframes bubbleRise1 {
  0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: 0.05; }
  50% { transform: translateY(-50vh) translateX(20px) rotate(8deg) scale(1.05); opacity: 0.045; }
  90% { opacity: 0.02; }
  100% { transform: translateY(-110vh) translateX(-10px) rotate(-5deg) scale(0.9); opacity: 0; }
}
@keyframes bubbleRise2 {
  0% { transform: translateY(0) translateX(0) rotate(0deg) scale(0.9); opacity: 0; }
  10% { opacity: 0.06; }
  50% { transform: translateY(-55vh) translateX(-25px) rotate(-10deg) scale(1.1); opacity: 0.04; }
  90% { opacity: 0.015; }
  100% { transform: translateY(-115vh) translateX(15px) rotate(6deg) scale(0.85); opacity: 0; }
}
@keyframes bubbleRise3 {
  0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1.05); opacity: 0; }
  10% { opacity: 0.05; }
  30% { transform: translateY(-30vh) translateX(15px) rotate(5deg) scale(1); }
  70% { transform: translateY(-70vh) translateX(-20px) rotate(-8deg) scale(1.08); opacity: 0.035; }
  100% { transform: translateY(-120vh) translateX(10px) rotate(3deg) scale(0.9); opacity: 0; }
}

@media (max-width: 540px) {
  .brand-floats { opacity: 0.7; }
  .brand-float { max-width: 60px; }
  .brand-float.light { max-width: 50px; }
  .bf-bubble-5, .bf-bubble-6, .bf-bubble-7, .bf-bubble-8, .bf-bot-3, .bf-family-1 { display: none; }
  .mesh-blob { opacity: 0.06; }
  .mesh-blob-1 { width: 250px; height: 250px; }
  .mesh-blob-2 { width: 200px; height: 200px; }
  .mesh-blob-3 { display: none; }
}

/* --- Community Banner (Full-width Parallax) --- */
.community-banner-section {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin: 0;
}

.community-banner-parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.community-banner-img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center 30%;
  transform: translateY(0);
  will-change: transform;
}

.community-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
  background: linear-gradient(
    to bottom,
    rgba(8, 40, 69, 0) 0%,
    rgba(8, 40, 69, 0.15) 50%,
    rgba(8, 40, 69, 0.7) 100%
  );
}

.community-banner-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
  margin: 0;
}

.community-banner-tagline span {
  color: var(--orange);
}

@media (max-width: 860px) {
  .community-banner-section { height: 280px; }
  .community-banner-img { object-position: center 20%; }
  .community-banner-overlay { padding-bottom: 24px; }
}

@media (max-width: 520px) {
  .community-banner-section { height: 200px; }
  .community-banner-overlay { padding-bottom: 16px; }
}
