@font-face {
  font-family: "Scrambles";
  src: url("../fonts/Scrambles-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* =========================
   GLOBAL RESET
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background-color: #28347d;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;

  font-family: "Scrambles", sans-serif;
  background-color: #28347d;
  color: #48cfff;
}

body,
h1,
h2,
h3,
p,
a,
button,
span {
  font-family: "Scrambles", sans-serif;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

/* =========================
   PAGE BACKGROUND
   ========================= */

.page-bg {
  position: relative;
  min-height: 178vh;

  display: flex;
  flex-direction: column;
  overflow-x: hidden;

  background-color: #28347d;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../assets/bg/bird.png");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;

  z-index: 0;
  pointer-events: none;
}

.site-header,
.demo-main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* =========================
   SHARED HEADER
   Keep this matching every page
   ========================= */

.site-header {
  width: 100%;
  padding-top: clamp(14px, 2vw, 28px);
}

.main-nav {
  width: min(94vw, 1120px);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(24px, 4.2vw, 72px);
  flex-wrap: nowrap;
}

.main-nav a {
  color: #48baff;
  text-decoration: none;

  font-size: clamp(0.9rem, 1.25vw, 1.45rem);
  letter-spacing: 1.5px;
  white-space: nowrap;

  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.2s ease;
}

.main-nav .current-page {
  color: white;
  text-shadow: none;
  transform: none;
}

.main-nav a:hover {
  color: white;
  text-shadow:
    0 0 6px white,
    0 0 12px white,
    0 0 18px #74ccff;
  transform: scale(1.08);
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.star-logo {
  width: clamp(125px, 12vw, 265px);
  height: auto;
  display: block;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.logo-link:hover .star-logo {
  transform: scale(1.06);
  filter:
    drop-shadow(0 0 3px white)
    drop-shadow(0 0 6px #e041e2);
}

/* =========================
   MAIN CONTENT
   ========================= */

.demo-main {
  flex: 1;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 135px 20px 20px;
}

/* =========================
   VIDEO AREA
   ========================= */

.video-section {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.video-shell {
  position: relative;
  width: min(88vw, 920px);
  margin: 0 auto;
  overflow: visible;
}

.demo-video {
  display: block;

  width: min(74vw, 850px);
  margin: 120px auto 130px;

  aspect-ratio: 16 / 9;
  object-fit: cover;

  background-color: #d8d9f5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);

  position: relative;
  z-index: 1;
}

/* =========================
   CAT OVERLAY
   ========================= */

.video-click-layer {
  position: absolute;
  inset: 0;
  z-index: 3;

  border: 0;
  padding: 0;
  margin: 0;

  background: transparent;
  cursor: pointer;
}

.video-click-layer.is-hidden {
  opacity: 1;
  pointer-events: none;
  cursor: default;
}

.cat-frame {
  position: absolute;

  width: 1350px;
  max-width: none;
  height: auto;

  left: 50%;
  top: 75%;

  transform: translate(-50%, -50%);

  display: block;
  pointer-events: none;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  width: 68px;
  height: 68px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-left: 5px;

  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  color: white;

  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);

  pointer-events: none;
}

.video-click-layer.is-hidden .play-dot {
  opacity: 0;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  width: 100%;
  padding: 10px 20px 12px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links img {
  width: 70px;
  height: auto;
  display: block;
}

/* =========================
   1920 x 1080 / DESKTOP FIRST
   This keeps your current perfect look.
   ========================= */

@media (min-width: 1200px) {
  .page-bg {
    min-height: 178vh;
  }

  .demo-main {
    padding-top: 135px;
  }

  .video-shell {
    width: min(88vw, 920px);
  }

  .demo-video {
    width: min(74vw, 850px);
    margin: 120px auto 130px;
  }

  .cat-frame {
    width: 1350px;
    top: 75%;
  }
}

/* =========================
   TABLET / SMALL LAPTOP
   ========================= */

@media (max-width: 900px) {
  .main-nav {
    width: min(96vw, 760px);
    gap: 18px 28px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 1.05rem;
  }

  .star-logo {
    width: 170px;
  }

  .demo-main {
    padding: 115px 18px 80px;
  }

  .video-shell {
    width: min(92vw, 760px);
  }

  .demo-video {
    width: min(58vw, 520px);
    margin: 95px auto 110px;
  }

  .cat-frame {
    width: 920px;
    top: 73%;
  }

  .social-links img {
    width: 52px;
  }
}

/* =========================
   PHONE
   ========================= */

@media (max-width: 560px) {
  .site-header {
    padding-top: 12px;
  }

  .main-nav {
    width: 100%;
    padding: 0 10px;

    gap: 10px 16px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .star-logo {
    width: 125px;
  }

  .demo-main {
    padding: 80px 14px 70px;
  }

  .video-shell {
    width: 100vw;
  }

  .demo-video {
    width: 68vw;
    margin: 70px auto 85px;
  }

  .cat-frame {
    width: 620px;
    top: 72%;
  }

  .play-dot {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }

  .social-links {
    gap: 20px;
  }

  .social-links img {
    width: 36px;
  }
}

/* =========================
   VERY SMALL PHONE
   ========================= */

@media (max-width: 390px) {
  .main-nav a {
    font-size: 0.78rem;
  }

  .star-logo {
    width: 112px;
  }

  .demo-video {
    width: 70vw;
  }

  .cat-frame {
    width: 560px;
  }
}