@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #172033;
  background: #f6f8fb;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 72px);
  color: #fff;
  background: rgba(16, 24, 39, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.94rem;
}

nav a {
  color: rgba(255, 255, 255, 0.84);
  width: 60px;
  text-align: center;
}

nav a:hover {
  color: #fff;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 6vw, 88px) 96px;
  color: #fff;
  background: linear-gradient(90deg, rgba(9, 15, 28, 0.88) 0%, rgba(9, 15, 28, 0.72) 43%, rgba(9, 15, 28, 0.16) 100%),
  url('./images/popup-light.png') right 54% / min(760px, 62vw) auto no-repeat,
  #152033;
}

.hero-content {
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #1f8f72;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #68e0bc;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 16px;
  color: #172033;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.hero-actions,
.store-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 7px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: #2777c6;
}

.primary-action:hover {
  background: #1d64aa;
}

.store-action {
  gap: 10px;
}

.store-action img {
  width: 24px;
  height: 24px;
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d9e1ea;
}

.summary-band div {
  min-height: 132px;
  padding: 28px clamp(20px, 4vw, 42px);
  background: #fff;
}

.summary-band strong,
.summary-band span {
  display: block;
}

.summary-band strong {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.summary-band span {
  color: #58667a;
}

.section,
.showcase,
.context-section {
  padding: clamp(62px, 9vw, 112px) clamp(20px, 6vw, 88px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 248px;
  padding: 24px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 42, 70, 0.08);
}

.feature-icon {
  font-family: 'Material Symbols Outlined';
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: #fff;
  background: #d64f45;
  border-radius: 8px;
  font-size: 24px;
}

.feature-grid p,
.showcase-copy p,
.theme-copy p,
.context-copy p {
  color: #58667a;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
  background: #eaf0f7;
}

.screen-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(170px, 0.75fr);
  align-items: end;
  gap: 16px;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  border: 1px solid #cfd8e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 32, 51, 0.16);
}

figcaption {
  margin-top: 10px;
  color: #66758a;
  font-size: 0.92rem;
}

.theme-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(62px, 9vw, 112px) clamp(20px, 6vw, 88px);
  background: #101827;
}

.theme-section h2 {
  color: #fff;
}

.theme-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
}

.theme-compare {
  position: relative;
  width: min(100%, 700px);
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #0b1220;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  user-select: none;
}

.theme-image {
  width: 100%;
  pointer-events: none;
}

.theme-image-dark {
  position: relative;
}

.theme-image-light-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.theme-image-light {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-divider {
  position: absolute;
  inset: 0 auto 0 var(--split);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.2);
  transform: translateX(-1px);
  pointer-events: none;
}

.theme-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(16, 24, 39, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.theme-divider::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
  clip-path: polygon(0 50%, 36% 18%, 36% 39%, 64% 39%, 64% 18%, 100% 50%, 64% 82%, 64% 61%, 36% 61%, 36% 82%);
  transform: translate(-50%, -50%);
}

.theme-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.theme-label {
  position: absolute;
  top: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 24, 39, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
}

.theme-label-dark {
  right: 14px;
}

.theme-label-light {
  left: 14px;
}

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

.filters-section {
  background: #fff;
}

.context-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  background: #172033;
}

.context-section h2 {
  color: #fff;
}

.context-copy p {
  color: rgba(255, 255, 255, 0.75);
}

.context-media {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.context-media img {
  width: min(47%, 282px);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: #59677a;
  background: #fff;
  border-top: 1px solid #dce4ee;
}

footer span {
  font-weight: 800;
  color: #172033;
}

footer a {
  color: #2777c6;
}

@media (max-width: 980px) {
  .hero {
    min-height: 88vh;
    background: linear-gradient(180deg, rgba(9, 15, 28, 0.86) 0%, rgba(9, 15, 28, 0.76) 58%, rgba(9, 15, 28, 0.54) 100%),
    url('./images/popup-light.png') center 72% / min(680px, 95vw) auto no-repeat,
    #152033;
  }

  .summary-band,
  .feature-grid,
  .showcase,
  .theme-section,
  .filter-screens,
  .context-section {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    padding-top: 150px;
  }

  .screen-pair {
    grid-template-columns: 1fr;
  }

  .context-media {
    align-items: center;
    flex-direction: column;
  }

  .context-media img {
    width: min(100%, 320px);
  }

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