/* Design tokens */
:root {
  --color-black: #1c1b19;
  --color-gray: #464646;
  --color-muted-bg: #ebebeb;
  --color-accent: #892884;
  --color-cyan: #6dcbd9;
  --color-white: #ffffff;
  --max-width: 1366px;
  --gutter: 51px;
  --gutter-wide: 121px;
  --gutter-mobile: 24px;
  --content-max: 1264px;
  --box-row-max: 1120px;
  --cards-row-max: 1265px;
  --grid-gap: 32px;
  --logo-tile-size: 400px;
  --hero-gradient: linear-gradient(122.55deg, #50aaad 2.03%, #91177f 97.42%);
}

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

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 27px;
  color: var(--color-gray);
  background: var(--color-white);
  min-width: 0;
}

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

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

/* Layout utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  padding: 0 var(--gutter-wide);
}

/* Header */
.site-header {
  width: 100%;
  background: var(--color-black);
}

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

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

.site-header__logo img {
  display: block;
  width: 206px;
  height: 63px;
  object-fit: contain;
}

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

.site-header__nav a {
  font-weight: 700;
  font-size: 18px;
  line-height: 27px;
  color: var(--color-white);
  white-space: nowrap;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

.site-header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .site-header__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-nav-open .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 747px;
  background: var(--hero-gradient);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  max-width: 1048px;
  padding: 40px var(--gutter);
}

.hero__title {
  font-weight: 700;
  font-size: 60px;
  line-height: 73px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 10px;
}

.hero__text {
  font-weight: 400;
  font-size: 20px;
  line-height: 27px;
  color: var(--color-white);
  margin-bottom: 21px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  text-transform: uppercase;
  padding: 25px 60px;
  white-space: nowrap;
}

/* 5-box section */
.box-section {
  width: 100%;
  background: var(--color-white);
  padding: 100px 0;
}

.box-section__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-black);
  margin-bottom: 32px;
}

.box-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  max-width: var(--box-row-max);
  margin: 0 auto;
}

.box-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  max-width: 200px;
  width: auto;
}

.box-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 259px;
  background: var(--color-black);
  transition: background-color 0.2s ease;
}

.box-card__star {
  display: block;
  width: 44px;
  height: 42px;
  object-fit: contain;
}

.box-card__label {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 33px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white);
}

.box-card__footer {
  height: 40px;
  background: var(--color-gray);
  transition: background-color 0.2s ease;
}

.box-card__chevron {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-cyan);
  transform: translateX(-50%) translateY(50%);
  transition: background-color 0.2s ease;
}

.box-card__chevron::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin-left: -2px;
  border-right: 2px solid var(--color-gray);
  border-bottom: 2px solid var(--color-gray);
  transform: rotate(-45deg);
  transition: border-color 0.2s ease;
}

.box-card:hover .box-card__body {
  background: #000000;
}

.box-card:hover .box-card__footer {
  background: var(--color-cyan);
}

.box-card:hover .box-card__chevron {
  background: #000000;
}

.box-card:hover .box-card__chevron::after {
  border-color: var(--color-white);
}

/* Split sections */
.split {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.split--benefits-1,
.split--benefits-2 {
  min-height: 527px;
}

.split--benefits-1 {
  background: var(--color-muted-bg);
}

.split--benefits-2 {
  background: var(--color-muted-bg);
}

.split--half {
  min-height: 455px;
  background: var(--color-white);
}

.split__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 53%;
  min-width: 0;
  padding: 60px var(--gutter);
  gap: 19px;
}

.split--half .split__content {
  padding-left: 40px;
  padding-right: var(--gutter);
}

.split__heading {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.split__eyebrow {
  font-weight: 700;
  font-size: 17px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--color-accent);
}

.split__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  text-transform: uppercase;
  color: var(--color-black);
}

.split__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.split__list-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.split__list-item::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  background: #892884;
  border-radius: 50px;
}

.split__list-item span {
  flex: 1;
  font-size: 18px;
  line-height: 27px;
  color: var(--color-gray);
}

.split__paragraph {
  font-size: 18px;
  line-height: 27px;
  color: var(--color-gray);
  max-width: 100%;
}

.split__media {
  flex: 1 1 41%;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 100%;
}

/* Logo grid */
.logo-section {
  width: 100%;
  background: var(--color-black);
  padding: 100px 0;
}

.logo-section__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white);
  margin-bottom: 32px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  max-width: var(--content-max);
  margin: 0 auto;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #000000;
  padding: 1rem;
}

.logo-tile > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-tile > img[alt="Apple"] {
  width: 105px;
  height: 129px;
}

.logo-tile > img[alt="Amazon"] {
  width: 278px;
  height: 53px;
}

.logo-tile > img[alt="WebFX"] {
  width: 180px;
  height: 95px;
}

.logo-tile > img[alt="Facebook"] {
  width: 100%;
  max-width: 346px;
  height: auto;
}

.logo-tile > img[alt="Google"] {
  width: 227px;
  height: 76px;
}

/* Feature cards */
.cards-section {
  width: 100%;
  background: var(--color-muted-bg);
  padding: 100px 0;
}

.cards-section__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-black);
  margin-bottom: 32px;
}

.cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 35px;
  max-width: var(--cards-row-max);
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 250px;
  max-width: 290px;
  min-height: 318px;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
}

.feature-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  width: 100%;
  padding: 42px 24px 20px;
  gap: 19px;
  text-align: center;
}

.feature-card__icon {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-card__icon--inline {
  width: 76px;
  height: 16px;
}

.feature-card__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 21px;
  text-transform: uppercase;
  color: var(--color-gray);
}

.feature-card__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-gray);
}

.feature-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  font-size: 17px;
  line-height: 21px;
  margin-top: auto;
  border-radius: 0 0 10px 10px;
}

/* Sticky side CTA */
.ab-sticky-btn {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 150px;
  padding: 12px 8px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ab-sticky-btn:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: -2px;
}

/* Footer */
.site-footer {
  width: 100%;
  min-height: 47px;
  background: var(--color-black);
}

/* Desktop split proportions (Figma: 559px media / 1366px frame) */
@media (min-width: 900px) {
  .split--benefits-1,
  .split--benefits-2 {
    min-height: 527px;
  }

  .split__media {
    flex: 0 0 41%;
  }

  .split__content {
    flex: 1 1 59%;
  }
}

/* Responsive */
@media (max-width: 899px) {
  .container,
  .container--wide {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding: 16px 0;
    min-height: auto;
  }

  .site-header__logo img {
    width: 160px;
    height: auto;
  }

  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: 8px;
  }

  .site-header.is-nav-open .site-header__nav {
    display: flex;
  }

  .site-header__nav a {
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 30px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 60px var(--gutter-mobile);
  }

  .hero__title {
    font-size: 40px;
    line-height: 48px;
  }

  .hero__text {
    font-size: 18px;
  }

  .box-section,
  .logo-section,
  .cards-section {
    padding: 60px 0;
  }

  .box-section__title,
  .logo-section__title,
  .cards-section__title,
  .split__title {
    font-size: 26px;
    line-height: 34px;
  }

  .box-row {
    gap: 20px;
  }

  .box-card {
    flex: 1 1 calc(50% - 10px);
    max-width: none;
  }

  .split {
    flex-direction: column;
  }

  .split--benefits-1,
  .split--benefits-2,
  .split--half {
    min-height: auto;
  }

  .split__content {
    padding: 40px var(--gutter-mobile);
    max-width: none;
  }

  .split--half .split__content {
    padding-left: var(--gutter-mobile);
  }

  .split__media {
    flex: none;
    width: 100%;
    min-height: 240px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ab-sticky-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .ab-sticky-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 599px) {
  .logo-grid {
    grid-template-columns: 1fr;
    max-width: var(--logo-tile-size);
  }

  .logo-tile > img[alt="Amazon"],
  .logo-tile > img[alt="Facebook"] {
    width: 100%;
    max-width: 278px;
    height: auto;
  }
}

@media (max-width: 599px) {
  .box-card {
    flex: 1 1 100%;
    max-width: none;
  }

  .box-card__body {
    min-height: 220px;
  }
}
