/* PrediBall landing — brand tokens mirror lib/presentation/theme/app_theme.dart */
:root {
  --primary: #ff8c3b;        /* orange — interactive */
  --primary-hover: #ffa05c;
  --secondary: #35c1ce;      /* neon blue — informational emphasis */
  --navy: #091627;           /* page background */
  --surface-lowest: #040b15;
  --surface-low: #0d1d33;
  --surface-mid: #11233e;
  --surface-high: #162949;
  --surface-highest: #1c3057;
  --text: #ffffff;
  --text-70: rgba(255, 255, 255, 0.72);
  --text-54: rgba(255, 255, 255, 0.54);
  --line: rgba(255, 255, 255, 0.10);
  --radius: 16px;
  --shell: 1160px;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { line-height: 1.15; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: 0.5em; }
h3 { font-size: 1.12rem; }

.kicker {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--surface-lowest); }
.section-intro { color: var(--text-70); max-width: 720px; margin-bottom: 32px; }
.section-cta { margin-top: 40px; }

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--surface-lowest); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-54); }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }
.btn-lg { padding: 17px 40px; font-size: 1.1rem; }
.text-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.text-link:hover { color: var(--primary-hover); }

a:focus-visible, summary:focus-visible, .nav-burger:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 22, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 36px; height: 36px; }
.brand-wordmark { height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.site-nav a { color: var(--text-70); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.site-nav .btn { color: var(--surface-lowest); }
.nav-signin { white-space: nowrap; }
.nav-toggle, .nav-burger { display: none; }

/* Header language picker (no-JS <details> dropdown) */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-picker summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-70);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary:hover, .lang-picker[open] summary { color: var(--text); border-color: var(--text-54); }
.lang-picker nav {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  display: grid;
  gap: 2px;
  min-width: 190px;
  max-height: min(70vh, 480px);
  overflow-y: auto;
  background: var(--surface-high);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(4, 11, 21, 0.55);
}
.lang-picker nav a, .lang-picker nav span {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--text-70);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.lang-picker nav a:hover { background: var(--surface-highest); color: var(--text); }
.lang-picker nav span[aria-current] { color: var(--secondary); font-weight: 600; }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.hero-copy .lede { color: var(--text-70); font-size: 1.12rem; margin: 20px 0 28px; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { color: var(--text-54); font-size: 0.9rem; margin-top: 16px; }
.store-badges { display: flex; gap: 12px; margin-top: 20px; }
.store-badges img { height: 44px; width: auto; }
.wc-chip {
  display: inline-block;
  margin-top: 26px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.hero-media img { border-radius: var(--radius); }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.step-card {
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-highest);
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--text-70); font-size: 0.95rem; }

/* Card grids */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }

.arena-card {
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.arena-card img { aspect-ratio: 3 / 2; object-fit: cover; }
.arena-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.arena-card-body p { color: var(--text-70); font-size: 0.95rem; flex: 1; }

.feature-card {
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-70); font-size: 0.93rem; }


/* Product tour — Rostara pattern: copy on top, screenshots in a row below.
   Desktop: every shot of the strip visible, shrinking to fit (never clipped).
   Mobile: paged swipe, one shot per view with a peek of the next. */
.tour { display: grid; gap: 88px; margin: 56px 0 72px; }
/* Grid items default to min-width:auto — without this, non-shrinking strip
   items blow the block wider than the viewport and the PAGE pans sideways. */
.tour-block { min-width: 0; }
.tour-copy { max-width: 640px; margin-bottom: 30px; }
.tour-tag {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tour-copy h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 14px; }
.tour-copy p { color: var(--text-70); }
.tour-shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 10px 2px 6px;
}
.tour-shots img {
  flex: 0 1 264px;
  min-width: 0;
  height: auto;
  border: 9px solid #e8edf5;
  border-radius: 34px;
  background: #e8edf5;
  box-shadow: 0 24px 64px rgba(4, 11, 21, 0.55);
}
.details-title { margin-top: 8px; font-size: 1.3rem; }

/* Gallery strip — paged carousel (JS arrows; swipe/snap without JS) */
.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 232px;
  gap: 20px;
  overflow-x: auto;
  padding-top: 36px;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-item { scroll-snap-align: start; }

/* Carousel arrows (injected by carousel.js; hidden when nothing overflows) */
.carousel { position: relative; min-width: 0; }
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(22, 41, 73, 0.92);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.car-btn:hover { background: var(--surface-highest); }
.car-prev { inset-inline-start: 4px; }
.car-next { inset-inline-end: 4px; }
.gallery-item img {
  border: 7px solid #e8edf5;
  border-radius: 26px;
  background: #e8edf5;
  box-shadow: 0 12px 32px rgba(4, 11, 21, 0.45);
}
.gallery-item figcaption { color: var(--text-54); font-size: 0.85rem; margin-top: 10px; text-align: center; }

/* Leagues */
.league-flagship {
  background: linear-gradient(135deg, var(--surface-high), var(--surface-mid));
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 720px;
  margin-bottom: 28px;
}
.league-flagship p { color: var(--text-70); margin-top: 6px; }
.league-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.league-chips li {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface-mid);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
}
.league-note { color: var(--text-54); font-size: 0.88rem; margin: 12px 0 28px; }

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--surface-highest), var(--surface-low));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.banner-inner { text-align: center; }
.banner-inner p { color: var(--text-70); margin: 10px 0 30px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; margin-top: 32px; }
.faq-item {
  background: var(--surface-mid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding-block: 18px;
  padding-inline: 22px 48px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 500;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-inline: 22px; padding-bottom: 20px; color: var(--text-70); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--surface-lowest); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { color: var(--text-54); font-size: 0.9rem; margin-top: 14px; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid nav h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-54); margin-bottom: 4px; }
.footer-grid nav a { color: var(--text-70); text-decoration: none; font-size: 0.92rem; }
.footer-grid nav a:hover { color: var(--text); }
.footer-langs { margin-top: 40px; }
.lang-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lang-nav a, .lang-nav span { color: var(--text-54); text-decoration: none; font-size: 0.85rem; }
.lang-nav a:hover { color: var(--text); }
.lang-nav span[aria-current] { color: var(--secondary); }
.footer-bottom { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { color: var(--text-54); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { max-width: min(420px, 100%); margin: 0 auto; }
  .tour { gap: 64px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .lang-picker { margin-inline-start: auto; order: 1; }
  .lang-picker summary { padding: 7px 11px; }
  .lang-picker .lang-picker-current { display: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    order: 2;
    cursor: pointer;
    align-items: center;
  }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface-low);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
  }
  .site-nav a { padding: 10px 0; font-size: 1.05rem; }
  .site-nav .btn { margin-top: 10px; padding: 12px 26px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 700px) {
  .tour-shots {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 14px;
  }
  .tour-shots::-webkit-scrollbar { display: none; }
  .tour-shots img {
    flex: 0 0 84%;
    max-width: 320px;
    scroll-snap-align: center;
  }
  .tour-shots img:only-child { flex-basis: min(320px, 92%); margin: 0 auto; }
  /* Gallery pages one card per view on mobile — identical mechanics to the
     tour strips: flex row, 84% cards, center snap. */
  .gallery-strip {
    display: flex;
    gap: 20px;
    grid-auto-columns: unset;
    scroll-padding-inline: 0;
  }
  .gallery-item { flex: 0 0 84%; max-width: 320px; scroll-snap-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .cards-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 64px; }
}
