/* World Sports Betting — App Download Landing Page
   Brand palette pulled from worldsportsbetting.co.za:
   primary CTA #ff3304, dark navy #1f283a / #2b333f / #1b2435,
   surfaces & text in greys, Ubuntu for headings, Roboto for body. */

:root {
  --wsb-orange: #ff3304;
  --wsb-orange-2: #ff6b00;
  --wsb-navy: #1f283a;
  --wsb-navy-2: #2b333f;
  --wsb-navy-3: #1b2435;
  --wsb-navy-4: #2b364b;
  --wsb-ink: #0f1626;
  --wsb-cloud: #f4f6fa;
  --wsb-line: rgba(255, 255, 255, 0.08);
  --wsb-line-strong: rgba(255, 255, 255, 0.14);
  --wsb-muted: #73859f;
  --wsb-text: #e6e9ef;
  --wsb-text-strong: #ffffff;
  --wsb-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --wsb-shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.5);
  --wsb-radius: 12px;
  --wsb-radius-lg: 20px;
  --wsb-cta-gradient: linear-gradient(135deg, #ff4500, #ff6b00);
  --wsb-cta-gradient-hover: linear-gradient(135deg, #ff5a1a, #ff8a2a);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--wsb-text);
  background: var(--wsb-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--wsb-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: 'Ubuntu', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--wsb-text-strong);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--wsb-cta-gradient);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(255, 75, 0, 0.35);
}

.btn--primary:hover {
  background: var(--wsb-cta-gradient-hover);
  box-shadow: 0 10px 28px rgba(255, 75, 0, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--wsb-text-strong);
  border: 1px solid var(--wsb-line-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 22, 38, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--wsb-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo img {
  width: auto;
  height: 44px;
  display: block;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 80px 0 90px;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(255, 75, 0, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(25, 118, 210, 0.18), transparent 60%),
    linear-gradient(180deg, var(--wsb-navy-3), var(--wsb-ink) 70%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-family: 'Ubuntu', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--wsb-orange);
  background: rgba(255, 75, 0, 0.12);
  border: 1px solid rgba(255, 75, 0, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--wsb-text);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.hero__badges li {
  position: relative;
  padding-left: 22px;
  color: var(--wsb-text);
  font-size: 0.92rem;
}

.hero__badges li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wsb-cta-gradient);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255, 75, 0, 0.15);
}

/* Decorative phone illustration */

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 280px;
  height: 560px;
  border-radius: 42px;
  background: linear-gradient(180deg, #2b364b, #131a2a);
  padding: 14px;
  box-shadow: var(--wsb-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: rotate(-4deg);
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #0a0f1a;
  border-radius: 14px;
  z-index: 2;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #ff3304 0%, #ff6b00 35%, #1f283a 35%, #1f283a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 24px;
}

.phone__logo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

.phone__lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  flex: 1;
}

.phone__lines span {
  display: block;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone__lines span:nth-child(2) {
  background: rgba(255, 75, 0, 0.18);
  border-color: rgba(255, 75, 0, 0.4);
}

.phone__cta {
  width: 100%;
  text-align: center;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: #fff;
  background: var(--wsb-cta-gradient);
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(255, 75, 0, 0.4);
}

/* ---------- Section heads ---------- */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head p {
  color: var(--wsb-muted);
  font-size: 1.05rem;
}

/* ---------- Downloads ---------- */

.downloads {
  padding: 80px 0;
  background: var(--wsb-navy);
  border-top: 1px solid var(--wsb-line);
  border-bottom: 1px solid var(--wsb-line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--wsb-navy-2), var(--wsb-navy-3));
  border: 1px solid var(--wsb-line);
  border-radius: var(--wsb-radius-lg);
  padding: 32px 26px 28px;
  box-shadow: var(--wsb-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 75, 0, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wsb-line);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card__desc {
  color: var(--wsb-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card__hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--wsb-muted);
  text-align: center;
}

.card--featured {
  border-color: rgba(255, 75, 0, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 75, 0, 0.12), transparent 40%),
    linear-gradient(180deg, var(--wsb-navy-2), var(--wsb-navy-3));
}

.card--featured::before {
  content: 'Popular';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wsb-cta-gradient);
  color: #fff;
}

/* ---------- Features ---------- */

.features {
  padding: 90px 0;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(255, 75, 0, 0.08), transparent 70%),
    var(--wsb-ink);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px 22px;
  border: 1px solid var(--wsb-line);
  border-radius: var(--wsb-radius);
  background: linear-gradient(180deg, var(--wsb-navy-2), var(--wsb-navy-3));
}

.feature__num {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--wsb-orange);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature p {
  color: var(--wsb-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Install help ---------- */

.install-help {
  padding: 80px 0;
  background: var(--wsb-navy);
  border-top: 1px solid var(--wsb-line);
}

.install-help__inner {
  max-width: 760px;
  margin: 0 auto;
}

.install-help ol {
  padding-left: 18px;
  margin: 0;
  color: var(--wsb-text);
}

.install-help li {
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0a111d;
  padding: 50px 0 30px;
  border-top: 1px solid var(--wsb-line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.site-footer__brand img {
  width: auto;
  height: 52px;
  flex-shrink: 0;
}

.site-footer__brand p {
  font-size: 0.85rem;
  color: var(--wsb-muted);
  margin: 0;
}

.site-footer__warn p {
  font-size: 0.85rem;
  color: var(--wsb-text);
  margin: 0 0 8px;
}

.site-footer__warn strong {
  color: var(--wsb-orange);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.site-footer__legal a {
  color: var(--wsb-text);
}

.site-footer__legal a:hover {
  color: var(--wsb-orange);
}

.site-footer__copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--wsb-line);
  padding-top: 20px;
  margin: 30px 0 0;
  font-size: 0.8rem;
  color: var(--wsb-muted);
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    padding: 60px 0 70px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas,
  .hero__badges {
    justify-content: center;
  }
  .hero__visual {
    order: -1;
    margin-bottom: 20px;
  }
  .phone {
    transform: rotate(-3deg) scale(0.9);
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .install-help__inner {
    grid-template-columns: 1fr;
  }
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    height: 64px;
  }
  .site-header__logo img {
    height: 36px;
  }
  .hero {
    padding: 48px 0 60px;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .phone {
    width: 240px;
    height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
