﻿/* ====== GLOBAL ====== */
:root { --phone-radius: 32px; } /* adjust once here */

body {
  color: #222222;
  font-family: Figtree, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}
.body-sc { background-color: #f9f9f9; }

.hero-sc { width: 100%; min-height: 100vh; }
.hero-container {
  width: 100%;
  max-width: 90rem;
  min-height: 100vh;
  padding: 3.125rem 5rem 0 3rem;
  box-sizing: border-box;
}

.hero-sc-content-wrapper {
  grid-column-gap: 48px;
  grid-row-gap: 48px;
  padding-bottom: 3.125rem;
  display: flex;
}

.hero-left-content-wrapper {
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 70%;
  display: flex;
}

.logo {
  max-width: 261px;
  margin-left: -2.5rem;
  margin-bottom: 5.75rem;
  margin-top: -6rem;
}

img { display: inline-block; vertical-align: middle; border: 0; }

.title-h1 {
  letter-spacing: -2.49px;
  font-size: 5.18rem;
  font-weight: 800;
  line-height: 100%;
}
h1 { margin: 0; }

.text-gradient {
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #cb6ce6, #2394d5);
  -webkit-background-clip: text;
  background-clip: text;
}

.div-block-4 { flex-flow: column; height: 100%; display: flex; }

.button-wrapper { padding-top: 4.75rem; display: flex; gap: 0.5rem; }
.button {
  -webkit-backdrop-filter: blur(31px);
  backdrop-filter: blur(31px);
  color: white;
  text-align: center;
  background-color: #cb6ce6;
  border-radius: 1.18rem;
  justify-content: center;
  align-items: center;
  max-width: 15.0625rem;
  height: 4.125rem;
  font-size: 1.31rem;
  font-weight: 700;
  line-height: 100%;
  text-decoration: none;
  display: flex;
  position: relative;
  flex: 1;
}
.button:hover { background-color: #b25ed0; }
.button-icon { width: 1.375rem; margin-top: .25rem; margin-left: .75rem; }

.highlights { z-index: 0; opacity: 0; position: absolute; inset: 0% 0% auto auto; color: #cb6ce6; }

.screen-mobile {
  aspect-ratio: 382 / 774;
  justify-content: center;
  align-items: center;
  height: 80vh;
  min-height: 774px;
  display: flex;
  position: relative;
}

.screen-mobile-frame {
  z-index: 100;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ====== SINGLE CLIPPER with one radius ====== */
.screem-mobile-wideo-frame {
  z-index: 100;
  width: 90%;
  height: 95%;
  margin: auto;
  position: absolute;
  inset: 0%;
  overflow: hidden;
  border-radius: var(--phone-radius);
  background-color: #ffffff;
  /* Smooth anti-aliased corners on iOS */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Children should NOT add their own radius or background */
.hero_video {
  z-index: 15;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
  border-radius: 0;
  background: transparent;
}

.w-background-video {
  color: #fff;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.w-background-video > video {
  object-fit: cover;
  z-index: -100;
  background-position: 50%;
  background-size: cover;
  width: 100%;
  height: 100%;
  margin: auto;
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.hero_bottom {
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: auto;
  display: flex;
  position: relative;
}

.mobile_bottom {
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: auto;
  display: none;
  position: relative;
}

.counter_subtext { color: #ef5222; }
.hero_link-list { grid-column-gap: .5rem; grid-row-gap: .5rem; padding-left: 20px; display: flex; }
.hero_link-list a {
  color: #2394d5;
  font-weight: 500;
  text-decoration: none;
  margin-right: 1rem;
  transition: color 0.3s ease;
}
.hero_link-list a:hover { color: #1c7bb8; }

/* keep big curves by default */
.screen-mobile-frame,
.screem-mobile-wideo-frame,
.hero_video { border-radius: var(--phone-radius); }

.hero_bottom .counter_subtext { color: #cb6ce6; }

/*counter css*/
#counter {
  width: 280px;
  height: 76px;
  overflow: hidden;
  position: absolute;
  bottom: 16px;
  color: #222222;
  font-size: 50px;
  font-weight: 500;
  line-height: 80px;
}

@media screen and (min-width: 1440px) {
  .hero-container { padding-top: 3.9375rem; padding-left: 6rem; padding-right: 9rem; }
  .hero-sc-content-wrapper { padding-bottom: 3.125rem; }
  .div-block-4 { flex-flow: column; width: 100%; height: 100%; display: flex; }
  .screen-mobile { height: 70vh; }
  .hero_link-list { grid-column-gap: 1.5rem; grid-row-gap: 1.5rem; }
  .hero_link { color: #222; font-size: .875rem; font-weight: 500; text-decoration: none; }
}

/* ====== MOBILE: denser hero + visible status bar + same corners ====== */
@media screen and (max-width: 768px) {
  /* Use visible viewport and respect the notch */
  .hero-sc { min-height: 100svh; }
  .hero-container {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }

  /* Stack tighter */
  .hero-sc-content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    gap: 12px; /* tighter than desktop */
  }

  .hero-left-content-wrapper { width: 100%; align-items: center; }

  /* Smaller logo + minimal margins (remove negative desktop offsets) */
  .logo {
    max-width: 140px;
    margin: 0 auto 8px auto;
  }

  /* Tighter heading */
  .title-h1 {
    font-size: 2.25rem;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 8px 0;
  }

  /* Bring buttons closer to the title */
  .button-wrapper { padding-top: 10px; }

  /* Links/counter only on mobile footer area */
  .hero_bottom { display: none; }
  .mobile_bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 8px;
  }

  #counter {
    position: static;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 2px;
    text-align: center;
    height: fit-content;
  }

  .counter_subtext { font-size: 0.9rem; text-align: center; }

  .hero_link-list { padding-left: 0; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .hero_link-list a { font-size: 0.85rem; margin-right: 0; }

  .hero-right-content-wrapper { width: 100%; margin-top: 6px; }

  /* Phone demo uses space better; still respects aspect */
  .screen-mobile {
    height: auto;
    min-height: 360px;
    margin-top: 4px;       /* pull it up closer */
  }

  /* Keep status bar visible in the video */
  .w-background-video > video {
    object-fit: contain !important;
    object-position: top center !important;
    inset: 0 !important;
  }

  /* One radius value everywhere */
  .screem-mobile-wideo-frame { border-radius: var(--phone-radius); }
}

@media screen and (max-width: 480px) {
  .title-h1 { font-size: 2rem; }
  .button { min-width: 170px; height: 3rem; font-size: 0.9rem; }
}
