/* BetTech Gaming — brand-aligned corporate styles */
:root {
  --blue: #3889c9;
  --mid-blue: #0c3c54;
  --light-blue: #87b6e2;
  --emerald: #00946d;
  --green: #71bf43;
  --black: #000000;
  --grey: #55565a;
  --grey-light: #f4f6f8;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #55565a;
  --radius: 8px;
  --shadow: 0 12px 40px rgba(12, 60, 84, 0.12);
  --font: "Montserrat", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--dark {
  background: var(--mid-blue);
  color: var(--white);
}

.section--grey {
  background: var(--grey-light);
}

.section--blue {
  background: var(--blue);
  color: var(--white);
}

.section--emerald {
  background: var(--emerald);
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section--dark .eyebrow,
.section--blue .eyebrow,
.section--emerald .eyebrow {
  color: var(--light-blue);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 18ch;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.section--dark .section-lead,
.section--blue .section-lead,
.section--emerald .section-lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

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

.btn--green {
  background: var(--emerald);
  color: var(--white);
}

.btn--green:hover {
  background: #007a5a;
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
}

.btn--blue:hover {
  background: #2f78b5;
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--white {
  background: var(--white);
  color: var(--mid-blue);
}

.btn--white:hover {
  background: var(--grey-light);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 60, 84, 0.08);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 68px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mid-blue);
  opacity: 0.85;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--mid-blue);
  margin: 6px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(56, 137, 201, 0.35), transparent 55%),
    linear-gradient(160deg, #061828 0%, var(--mid-blue) 45%, #14506e 100%);
  color: var(--white);
  padding: 4rem 0 0;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  flex: 1;
}

.hero__copy {
  padding-bottom: 4rem;
}

.hero-brand {
  height: 44px;
  width: auto;
  margin-bottom: 1.5rem;
}

@media (max-width: 800px) {
  .hero__copy .hero-brand {
    margin-inline: auto;
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 12ch;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__media img {
  width: min(100%, 480px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  animation: float-in 0.9s ease-out both;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy {
  animation: float-in 0.7s ease-out both;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(12, 60, 84, 0.08);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--blue);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--mid-blue);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Split / showcase */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split--reverse .split__media {
    order: -1;
  }
}

.split__media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--grey-light);
}

.split__media img {
  width: 100%;
}

.split__media--phones {
  background:
    radial-gradient(circle at 50% 30%, rgba(56, 137, 201, 0.25), transparent 60%),
    #0a1f2e;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

/* Accordion */
.accordion {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(12, 60, 84, 0.12);
}

.accordion__item {
  border-bottom: 1px solid rgba(12, 60, 84, 0.12);
}

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mid-blue);
  text-align: left;
  cursor: pointer;
}

.accordion__btn::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion__btn[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.accordion__panel {
  display: none;
  padding: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion__panel[hidden] {
  display: none;
}

.accordion__btn[aria-expanded="true"] + .accordion__panel {
  display: block;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 1.25rem;
}

.stat__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--blue);
  display: block;
}

.section--dark .stat__value {
  color: var(--light-blue);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.7);
}

/* Partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.partner-pill {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.75;
}

/* Benefit cards (careers) */
.benefit-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .benefit-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--mid-blue);
  color: var(--white);
}

.benefit:nth-child(even) {
  background: var(--blue);
}

.benefit h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.benefit p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Careers hero */
.hero--careers {
  min-height: auto;
  padding: 5rem 0;
  background:
    linear-gradient(135deg, rgba(6, 24, 40, 0.92), rgba(56, 137, 201, 0.75)),
    linear-gradient(160deg, var(--mid-blue), var(--blue));
}

.hero--careers .hero__grid {
  align-items: center;
}

.hero--careers h1 {
  max-width: 14ch;
}

/* Interview steps */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.05rem;
  color: var(--mid-blue);
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta-band p {
  margin: 0 auto 1.75rem;
  max-width: 40ch;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: #061828;
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer .logo img {
  height: 32px;
  filter: brightness(0) invert(1);
  /* logo is colored — better use icon for dark footer */
}

.footer-brand .logo img {
  filter: none;
  height: 40px;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col a:hover {
  color: var(--light-blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-compliance {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-compliance img {
  height: 36px;
  width: auto;
  background: var(--white);
  border-radius: 4px;
  padding: 4px 8px;
}

/* Mobile nav */
@media (max-width: 800px) {
  :root {
    --header-h: 72px;
  }

  .logo img {
    height: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(12, 60, 84, 0.1);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(12, 60, 84, 0.08);
  }

  .nav .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    padding-bottom: 1.5rem;
    text-align: center;
  }

  .hero h1,
  .hero__lead {
    margin-inline: auto;
  }

  .hero__media img {
    width: min(100%, 340px);
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-center .section-title,
.text-center .section-lead {
  margin-inline: auto;
}
