/* =====================================================
   BrawlWidget — design tokens
   ===================================================== */
:root {
  --bg: #0a0e1f;
  --bg-2: #131934;
  --card: #1a2040;
  --card-2: #232a4d;
  --gold: #ffc107;
  --gold-glow: rgba(255, 193, 7, 0.55);
  --teal: #26c6da;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-2: rgba(255, 255, 255, 0.35);
  --border: rgba(255, 255, 255, 0.09);
  --bg-gradient: linear-gradient(160deg, #0a0e1f 0%, #1a1f33 100%);
  --card-gradient: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  --action-gradient: linear-gradient(135deg, #ffc107 0%, #ff9100 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1100px;
}

/* =====================================================
   Reset & base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--white);
  font-family: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--bg); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 31, 0.7);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--action-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.brand-logo svg { width: 18px; height: 18px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  background: rgba(255,255,255,0.03);
}
.lang-switch button {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 100px;
  transition: all 0.15s;
}
.lang-switch button.active {
  background: var(--white);
  color: var(--bg);
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--gold-glow), transparent 60%);
  opacity: 0.18;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 193, 7, 0.10);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0 0 18px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--action-gradient);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 28px var(--gold-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--gold-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Hero mockups */
.mockups {
  position: relative;
  perspective: 1200px;
}
.widget-mock {
  background: var(--card-gradient);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.widget-mock.large {
  width: 240px;
  height: 240px;
  position: absolute;
  top: 0;
  right: 0;
  transform: rotate(4deg) translateZ(0);
  z-index: 2;
}
.widget-mock.small {
  width: 150px;
  height: 150px;
  padding: 12px;
  position: absolute;
  bottom: 0;
  left: 16px;
  transform: rotate(-6deg) translateZ(0);
  z-index: 1;
}
.mockups-wrapper {
  position: relative;
  height: 400px;
}
@media (max-width: 880px) {
  .mockups-wrapper { height: 340px; }
  .widget-mock.large { width: 210px; height: 210px; }
  .widget-mock.small { width: 130px; height: 130px; padding: 11px; }
}

.widget-mock .name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.widget-mock .trophies {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  white-space: nowrap;
}
.widget-mock .trophies .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.widget-mock.large .trophies .num { font-size: 32px; letter-spacing: -1px; }
.widget-mock.small .trophies .num { font-size: 20px; }
.widget-mock.small .trophy-icon { width: 18px; height: 18px; }
.widget-mock .trophy-icon {
  width: 22px;
  height: 22px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 3h14v6a7 7 0 01-14 0V3zM5 5H2v2c0 2 2 4 4 4M19 5h3v2c0 2-2 4-4 4M9 14h6v4H9zM6 18h12v3H6z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 3h14v6a7 7 0 01-14 0V3zM5 5H2v2c0 2 2 4 4 4M19 5h3v2c0 2-2 4-4 4M9 14h6v4H9zM6 18h12v3H6z'/></svg>") center/contain no-repeat;
}
.widget-mock .divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0 8px;
}
.widget-mock.small .divider { margin: 8px 0 6px; }
.widget-mock .row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--white);
  margin-bottom: 6px;
}
.widget-mock.small .row { font-size: 11px; gap: 6px; margin-bottom: 0; }
.widget-mock .avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #5dd4e8, #5e88ff);
  flex-shrink: 0;
}
.widget-mock.small .avatar { width: 18px; height: 18px; border-radius: 5px; }
.widget-mock .avatar.b1 { background: linear-gradient(135deg, #ff7eb9, #5b2dbd); }
.widget-mock .avatar.b2 { background: linear-gradient(135deg, #ffd84a, #ff8c00); }
.widget-mock .avatar.b3 { background: linear-gradient(135deg, #34d399, #0a3a1a); }
.widget-mock .row .gold { color: var(--gold); font-weight: 700; margin-left: auto; }

/* =====================================================
   Features
   ===================================================== */
.section {
  padding: 70px 0;
  position: relative;
}
.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
  text-align: center;
}
.section .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin: 0 auto 48px;
  max-width: 580px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 193, 7, 0.3);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.15);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* =====================================================
   Premium CTA
   ===================================================== */
.premium {
  background: var(--card-gradient);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.premium::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 50% -20%, var(--gold-glow), transparent 60%);
  pointer-events: none;
  opacity: 0.4;
}
.premium-crown {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.18);
  margin: 0 auto 16px;
  font-size: 28px;
  position: relative;
}
.premium h2 { margin-bottom: 8px; position: relative; }
.premium .price {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(255, 193, 7, 0.12);
  border-radius: 100px;
  padding: 6px 14px;
  margin-top: 4px;
  position: relative;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  position: relative;
}
@media (max-width: 700px) {
  .benefits { grid-template-columns: 1fr; }
}
.benefit {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 193, 7, 0.15);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.benefit-text { font-size: 13px; }
.benefit-text strong { display: block; margin-bottom: 2px; }
.benefit-text span { color: var(--muted); }

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  margin-top: 80px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--white); }

/* =====================================================
   Legal pages
   ===================================================== */
.legal-page {
  padding: 60px 0 40px;
}
.legal-page h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
}
.legal-page .updated {
  color: var(--muted-2);
  font-size: 13px;
  margin-bottom: 36px;
}
.legal-page article {
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  font-size: 15px;
  line-height: 1.7;
}
.legal-page article h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 8px;
  letter-spacing: -0.3px;
}
.legal-page article h2:first-child { margin-top: 0; }
.legal-page article p,
.legal-page article ul {
  color: rgba(255,255,255,0.78);
  margin: 8px 0;
}
.legal-page article ul { padding-left: 20px; }
.legal-page article li { margin: 4px 0; }
.legal-page article a { color: var(--teal); }
.legal-page article a:hover { text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--white); }

/* =====================================================
   Utility
   ===================================================== */
[data-i18n-hide]:not([data-shown]) { visibility: hidden; }
