:root {
  --bg: #f5f5f7;
  --bg-soft: #fbfbfd;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-raised: #ffffff;
  --ink: #111827;
  --muted: #5d6470;
  --muted-strong: #343b45;
  --line: rgba(17, 24, 39, 0.12);
  --line-strong: rgba(17, 24, 39, 0.2);
  --brand: #0f8f78;
  --brand-dark: #05685b;
  --accent: #2474ff;
  --warm: #ffb020;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 14px 38px rgba(17, 24, 39, 0.08);
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #07090d;
  --bg-soft: #0c1117;
  --surface: rgba(17, 24, 39, 0.78);
  --surface-solid: #111827;
  --surface-raised: #151f2c;
  --ink: #f8fafc;
  --muted: #b8c0cc;
  --muted-strong: #e2e8f0;
  --line: rgba(226, 232, 240, 0.14);
  --line-strong: rgba(226, 232, 240, 0.24);
  --brand: #40d6b5;
  --brand-dark: #7ce5cf;
  --accent: #79a8ff;
  --warm: #ffd166;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 420px),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 6px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
}

.brand img {
  display: block;
  width: clamp(88px, 9vw, 108px);
}

.menu-toggle {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav {
  position: absolute;
  inset: calc(100% + 10px) 12px auto 12px;
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: grid;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink);
  text-decoration: none;
}

.nav-cta,
.button.primary {
  background: var(--ink);
  color: var(--surface-solid) !important;
  border-color: transparent;
}

.theme-toggle {
  min-width: 62px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(460px, calc(100svh - 188px), 680px);
  padding: clamp(60px, 8vw, 94px) clamp(18px, 6vw, 72px) clamp(42px, 7vw, 76px);
  background: #111827;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, 0.86) 0, rgba(5, 8, 14, 0.58) 48%, rgba(5, 8, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.2) 0, rgba(5, 8, 14, 0.82) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.hero-panel {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #111827;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.03);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ff0dc;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 820;
}

h3 {
  font-size: 1.18rem;
  font-weight: 800;
}

p {
  margin: 0 0 16px;
}

.hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.button.secondary {
  background: var(--surface-solid);
  color: var(--ink);
}

.hero .button.primary {
  background: white;
  color: #111827 !important;
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: white;
  backdrop-filter: blur(16px);
}

.section,
.video-section,
.deal-grid,
.deal-tools,
.deal-status,
.page-hero,
.embedded-app {
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  padding-right: max(18px, calc((100vw - var(--max)) / 2));
}

.section {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 88px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
}

.section-head p,
.page-hero p,
.content p,
.card p,
.media-card p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card,
.media-card,
.video-card,
.deal-card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card {
  display: grid;
  gap: 12px;
  min-height: 250px;
  padding: clamp(22px, 3vw, 30px);
}

.card h3,
.card p,
.card a,
.media-card h2,
.media-card p,
.deal-card-body h3,
.video-card h3 {
  overflow-wrap: anywhere;
}

.card a,
.quick-links a {
  align-self: end;
  font-weight: 850;
}

.card a::after,
.quick-links a::after {
  content: " ->";
}

.ad-slot {
  min-height: 112px;
  margin: 18px auto 0;
  width: min(calc(100% - 36px), var(--max));
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  color: var(--muted);
}

.split {
  display: grid;
  gap: 26px;
  background: var(--surface-solid);
  border-block: 1px solid var(--line);
}

.split > div:first-child {
  max-width: 760px;
}

.split p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.quick-links {
  display: grid;
  gap: 10px;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.quick-links a:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-solid));
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px max(18px, calc((100vw - var(--max)) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
}

.site-footer p {
  margin: 0;
}

.page-hero {
  display: grid;
  align-content: center;
  min-height: clamp(220px, 30vw, 360px);
  padding-top: clamp(38px, 6vw, 72px);
  padding-bottom: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 92%, transparent) 0, transparent 100%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1000px;
  font-size: clamp(2.35rem, 6vw, 4.85rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.page-hero .button {
  justify-self: start;
  margin-top: 12px;
}

.content {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 68px) 18px clamp(62px, 8vw, 96px);
}

.content > p {
  font-size: 1.07rem;
}

.media-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(18px, 3vw, 26px);
}

.media-card h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.media-card + .media-card {
  margin-top: 24px;
}

.media-card .button {
  justify-self: start;
}

.app-shot {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.video-section {
  padding-top: clamp(38px, 5vw, 64px);
  padding-bottom: clamp(62px, 8vw, 96px);
}

.video-feed-status {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dde5e8;
}

.video-card > h3 {
  display: flex;
  align-items: flex-start;
  min-height: 4.4em;
  margin: 0;
  padding: 14px;
  font-size: 0.95rem;
  line-height: 1.32;
}

.video-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.video-card-body h3 {
  min-height: 3.8em;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.32;
}

.video-meta {
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-card:hover,
.deal-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.deal-tools {
  display: grid;
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 18px;
}

.search-field,
.country-field {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 850;
}

.search-field input,
.country-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.deal-status {
  padding-top: 0;
  padding-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.deal-status p {
  margin: 0;
}

.deal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: clamp(62px, 8vw, 96px);
}

.deal-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.deal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
  background: #ffffff;
}

.deal-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.deal-card-body p {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.deal-card-body h3 {
  min-height: 4.1em;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.32;
}

.app-page-hero {
  min-height: auto;
  padding-bottom: 22px;
}

.embedded-app {
  padding-top: 20px;
  padding-bottom: 34px;
}

.embedded-app iframe {
  display: block;
  width: 100%;
  height: min(1100px, calc(100svh - 148px));
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .site-header {
  background: rgba(7, 9, 13, 0.72);
}

:root[data-theme="dark"] .menu-toggle,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .site-nav,
:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] .search-field input,
:root[data-theme="dark"] .country-field select {
  background: var(--surface-solid);
}

:root[data-theme="dark"] .quick-links a {
  background: var(--surface-raised);
}

:root[data-theme="dark"] .deal-card img,
:root[data-theme="dark"] .app-shot {
  background: #ffffff;
}

@media (max-width: 560px) {
  .site-header {
    min-height: 62px;
  }

  .theme-toggle {
    min-width: 54px;
    min-height: 36px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: clamp(500px, calc(100svh - 142px), 620px);
    padding-top: 64px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 8, 14, 0.52) 0, rgba(5, 8, 14, 0.9) 76%),
      linear-gradient(90deg, rgba(5, 8, 14, 0.78), rgba(5, 8, 14, 0.28));
  }

  .hero-panel img {
    object-position: 68% center;
  }

  .actions,
  .hero .button {
    width: 100%;
  }

  .actions {
    display: grid;
  }
}

@media (min-width: 620px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .deal-tools {
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: end;
  }
}

@media (min-width: 840px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav a {
    min-height: 38px;
    padding: 8px 11px;
  }

  .nav-cta {
    margin-left: 6px;
    padding-inline: 14px !important;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
    align-items: center;
  }

  .media-card {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
    align-items: center;
  }

  .media-card h2,
  .media-card p,
  .media-card .button {
    grid-column: 2;
  }

  .media-card .app-shot {
    grid-row: 1 / span 4;
  }
}

@media (min-width: 980px) {
  .video-grid,
  .deal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .video-grid,
  .deal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
