@import url("./design-system/tokens.css");

:root {
  color-scheme: dark;
  --bg: #06071a;
  --bg-2: #10005b;
  --panel: rgba(20, 17, 60, 0.78);
  --panel-solid: #11132d;
  --text: #f8fbff;
  --muted: #b9c7ff;
  --blue-soft: #a8e3ff;
  --purple: #8b63b7;
  --purple-2: #5216d9;
  --gold: #f5c542;
  --line: rgba(206, 218, 255, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--wb-font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 78% 10%, rgba(108, 37, 255, 0.44), transparent 30%),
    radial-gradient(circle at 18% 28%, rgba(40, 124, 255, 0.26), transparent 28%),
    linear-gradient(180deg, #070922 0%, #080044 54%, #050616 100%);
  font-weight: 700;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(191, 218, 255, 0.22);
  border-radius: 32px;
  background: rgba(6, 7, 26, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.site-nav,
.header-actions,
.language-switcher,
.store-actions,
.trust-row,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 0 26px rgba(115, 155, 255, 0.42);
}

.site-nav {
  gap: 6px;
}

.header-actions {
  gap: 10px;
}

.language-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(190, 218, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.language-button {
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.language-button:hover,
.language-button.active {
  color: #08071d;
  background: var(--blue-soft);
}

.site-nav a {
  padding: 12px 15px;
  border-radius: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-cta {
  color: #08071d;
  background: linear-gradient(180deg, #ffdc65, #f3b332);
  box-shadow: 0 12px 28px rgba(245, 197, 66, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 10px;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 5vw, 82px);
  padding: 128px max(22px, calc((100vw - 1120px) / 2)) 76px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 50%, rgba(184, 26, 255, 0.4), transparent 27%),
    radial-gradient(circle at 52% 72%, rgba(0, 125, 255, 0.22), transparent 29%);
  pointer-events: none;
}

.poster-ribbon {
  position: absolute;
  top: 98px;
  right: -70px;
  display: flex;
  gap: 18px;
  opacity: 0.22;
  transform: rotate(9deg);
  pointer-events: none;
}

.poster-ribbon img {
  width: 128px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-stage,
.section,
.download-section {
  position: relative;
  z-index: 1;
}

.section,
.download-section {
  scroll-margin-top: 104px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-soft);
  font-size: clamp(20px, 2.2vw, 31px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.eyebrow {
  color: var(--gold);
  font-size: 17px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--blue-soft);
  font-family: var(--wb-font-body);
  font-size: clamp(45px, 5.5vw, 74px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-subtitle {
  max-width: 650px;
  color: rgba(248, 251, 255, 0.86);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.48;
}

.store-actions {
  --store-badge-height: 54px;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-actions a {
  display: inline-flex;
  height: var(--store-badge-height);
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-actions a:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.store-actions img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.trust-row {
  max-width: 760px;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row div {
  min-width: 132px;
  padding: 15px 17px;
  border: 1px solid rgba(190, 218, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.trust-row strong {
  display: block;
  color: #fff;
  font-family: var(--wb-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.trust-row span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.hero-stage {
  min-height: 650px;
}

.hero-tvboy {
  position: absolute;
  right: -118px;
  bottom: -108px;
  width: min(56vw, 640px);
  max-width: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.46));
}

.phone-frame {
  position: absolute;
  left: 0;
  top: 58px;
  width: min(36vw, 300px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 44px;
  background: #050510;
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
}

.phone-frame img {
  width: 100%;
  border-radius: 32px;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(130, 105, 157, 0.72);
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  backdrop-filter: blur(12px);
}

.chip-top {
  top: 116px;
  right: 6px;
}

.chip-bottom {
  left: 12px;
  bottom: 80px;
}

.section {
  padding: 96px max(22px, calc((100vw - 1120px) / 2));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading h2,
.tvboy-section h2,
.download-section h2 {
  margin-bottom: 16px;
  color: var(--blue-soft);
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(123, 78, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(10, 12, 38, 0.72);
}

.steps span,
.video-card span {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.steps h3,
.video-card h3 {
  margin: 18px 0 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.steps p,
.tvboy-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.video-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(84, 22, 217, 0.46), transparent 34%),
    radial-gradient(circle at 78% 68%, rgba(0, 142, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(8, 7, 35, 0.94), rgba(9, 0, 68, 0.82));
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 24px 28px;
  overflow: hidden;
  border: 1px solid rgba(190, 218, 255, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(139, 99, 183, 0.22), rgba(5, 5, 16, 0.94)),
    #050510;
  box-shadow: var(--shadow);
}

.video-card.large {
  grid-row: auto;
  min-height: 560px;
}

.video-device {
  position: relative;
  width: min(100%, 245px);
  aspect-ratio: 9 / 20;
  overflow: hidden;
  border: 1px solid rgba(190, 218, 255, 0.18);
  border-radius: 34px;
  background: #02030c;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.video-device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.video-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 24px;
}

.video-card h3 {
  margin-top: 8px;
  color: #fff;
}

.tvboy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(330px, 0.7fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: center;
}

.tvboy-section > img {
  width: min(100%, 480px);
  justify-self: end;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.storefront-section {
  background: rgba(6, 7, 26, 0.38);
}

.storefront-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.storefront-grid img {
  width: 100%;
  border: 1px solid rgba(190, 218, 255, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.download-section {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  padding: 80px max(22px, calc((100vw - 1120px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 36%, rgba(178, 29, 255, 0.35), transparent 35%),
    linear-gradient(135deg, #0b0642, #06071a);
}

.download-tvboy {
  width: min(100%, 520px);
  justify-self: center;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.44));
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(22px, calc((100vw - 1120px) / 2));
  color: rgba(255, 255, 255, 0.65);
  background: #03040e;
  font-size: 15px;
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  gap: 18px;
}

.footer a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .language-button {
    min-width: 38px;
    min-height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(190, 218, 255, 0.18);
    border-radius: 24px;
    background: rgba(6, 7, 26, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  body.nav-open .site-nav {
    display: flex;
  }

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

  .hero,
  .tvboy-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-stage {
    min-height: 610px;
  }

  .hero-tvboy {
    right: -230px;
    width: min(128vw, 660px);
  }

  .phone-frame {
    width: min(60vw, 300px);
  }

  .steps,
  .storefront-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-rows: auto;
  }

  .video-card.large,
  .video-card {
    min-height: 560px;
    grid-row: auto;
  }

  .tvboy-section > img {
    justify-self: center;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand span {
    max-width: 148px;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header {
    min-height: 62px;
    padding: 8px 10px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 4px;
  }

  .language-switcher {
    gap: 2px;
    padding: 3px;
  }

  .language-button {
    min-width: 29px;
    min-height: 28px;
    padding: 0 5px;
    font-size: 12px;
  }

  .language-button[data-lang="pt"] {
    min-width: 42px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-kicker {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .store-actions {
    --store-badge-height: 46px;
  }

  .trust-row div {
    min-width: calc(50% - 6px);
  }

  .hero-stage {
    min-height: 540px;
  }

  .hero-tvboy {
    right: -250px;
    bottom: -44px;
    width: 610px;
  }

  .phone-frame {
    top: 42px;
    left: 6px;
    width: 230px;
    border-radius: 34px;
  }

  .phone-frame img {
    border-radius: 24px;
  }

  .floating-chip {
    padding: 10px 13px;
    font-size: 16px;
  }

  .chip-top {
    top: 14px;
    right: 0;
  }

  .chip-bottom {
    bottom: 50px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading h2,
  .tvboy-section h2,
  .download-section h2 {
    font-size: 38px;
  }

  .video-section {
    background-attachment: scroll;
  }

  .video-card,
  .video-card.large {
    min-height: 520px;
  }
}
