/* ===== VivoPlay — Casual Game Studio Site ===== */
:root {
  --bg: #0f0a24;
  --bg-2: #1a1140;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --text: #f5f3ff;
  --text-dim: #c2bce0;
  --muted: #8a82b8;
  --brand: #7c5cff;
  --brand-2: #ff5cad;
  --brand-3: #2bd4ff;
  --accent: #ffd166;
  --success: #4ade80;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --font-en: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  --font-hi: 'Hind', 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
  --font-ne: 'Mukta', 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body.lang-bn { font-family: var(--font-bn), var(--font-en); }
body.lang-hi { font-family: var(--font-hi), var(--font-en); }
body.lang-ne { font-family: var(--font-ne), var(--font-en); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== Background ambient ====== */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #2a1769 0%, #0f0a24 60%);
}
.bg-ambient::before,
.bg-ambient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.bg-ambient::before {
  width: 500px; height: 500px;
  background: var(--brand);
  top: -150px; left: -100px;
  animation: float1 20s ease-in-out infinite;
}
.bg-ambient::after {
  width: 600px; height: 600px;
  background: var(--brand-2);
  bottom: -200px; right: -150px;
  animation: float2 25s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(80px, 60px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-60px, -80px); } }

/* ====== Nav ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(15, 10, 36, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px;
}
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: grid; place-items: center;
  color: white; font-size: 18px;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.5);
}
.brand-name span { color: var(--brand-2); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

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

.lang-switch {
  position: relative;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: background 0.2s;
}
.lang-btn:hover { background: var(--surface-2); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 140px;
  padding: 6px;
  display: none;
  box-shadow: var(--shadow);
}
.lang-menu.open { display: block; }
.lang-menu button {
  width: 100%; text-align: left;
  padding: 10px 12px;
  background: transparent;
  color: var(--text-dim);
  border-radius: 6px;
  font-size: 14px;
}
.lang-menu button:hover { background: var(--surface); color: var(--text); }
.lang-menu button.active { color: var(--brand-3); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124, 92, 255, 0.6); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ====== Hero ====== */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #c2bce0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 480px;
}
.hero-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.4s;
}
.hero-card:hover { transform: translateY(-8px) rotate(0deg) !important; }
.hc-1 { top: 0; left: 0; width: 240px; transform: rotate(-6deg); }
.hc-2 { top: 60px; right: 0; width: 220px; transform: rotate(4deg); }
.hc-3 { bottom: 0; left: 30px; width: 260px; transform: rotate(-3deg); }
.hc-4 { bottom: 80px; right: 30px; width: 200px; transform: rotate(6deg); }

.hc-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 14px;
}
.hc-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.hc-desc { font-size: 13px; color: var(--text-dim); }
.hc-stars { color: var(--accent); font-size: 13px; margin-top: 8px; }

.bg-purple { background: linear-gradient(135deg, #7c5cff, #5b3ce6); }
.bg-pink { background: linear-gradient(135deg, #ff5cad, #ff2d83); }
.bg-cyan { background: linear-gradient(135deg, #2bd4ff, #0aa6e0); }
.bg-yellow { background: linear-gradient(135deg, #ffd166, #ffaa1d); }

/* ====== Stats ====== */
.stats {
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(20px);
}
.stat { text-align: center; }
.stat-num {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-label { color: var(--text-dim); font-size: 14px; }

/* ====== Section ====== */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #c2bce0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--text-dim); font-size: 17px; }

/* ====== Games grid ====== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 100px;
  opacity: 0.15;
  z-index: 0;
}
.game-card:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
  border-color: rgba(124, 92, 255, 0.4);
}
.game-card > * { position: relative; z-index: 1; }
.game-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 32px;
  margin-bottom: 18px;
}
.game-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  margin-bottom: 10px;
}
.game-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.game-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.game-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.game-meta .stars { color: var(--accent); }

/* ====== Features ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.feature-card:hover { transform: translateY(-4px); background: var(--surface-2); }
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: grid; place-items: center;
  font-size: 24px;
  color: white;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14px; }

/* ====== CTA banner ====== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.cta-banner::before { width: 300px; height: 300px; top: -100px; left: -100px; }
.cta-banner::after { width: 400px; height: 400px; bottom: -150px; right: -150px; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
}
.cta-banner p { color: rgba(255, 255, 255, 0.9); font-size: 17px; margin-bottom: 30px; }
.cta-banner .btn-primary {
  background: white;
  color: var(--brand);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cta-banner .btn-primary:hover { background: #f5f3ff; }

/* ====== Footer ====== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-col h4 {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-3); }

.store-badges { display: flex; flex-direction: column; gap: 12px; }
.store-badge {
  display: flex; align-items: center; gap: 12px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  color: white;
  transition: transform 0.2s, background 0.2s;
  max-width: 200px;
}
.store-badge:hover { transform: translateY(-2px); background: #1a1a1a; }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge .small { font-size: 11px; opacity: 0.8; line-height: 1; }
.store-badge .big { font-size: 16px; font-weight: 700; line-height: 1.2; }

.contact-list { font-size: 14px; color: var(--text-dim); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.contact-list .ic { color: var(--brand-3); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom .legal-mini { display: flex; gap: 20px; }
.footer-bottom .legal-mini a:hover { color: var(--text); }

/* ====== Sub-pages (legal / contact) ====== */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #c2bce0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p { color: var(--text-dim); font-size: 17px; }

.legal-content {
  max-width: 820px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 60px;
}
.legal-content h2 {
  font-size: 24px; font-weight: 700; margin: 32px 0 12px;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-dim); font-size: 15px; margin-bottom: 12px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content .updated { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.contact-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  color: white; flex-shrink: 0;
}
.contact-row .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-row .value { font-size: 15px; color: var(--text); font-weight: 500; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ====== Responsive ====== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 380px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .games-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-content { padding: 24px; }
  .hero-visual { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
