:root {
  color-scheme: light;
  --ink: #103c61;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #225885; color: var(--ink); font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-frame {
  position: relative;
  width: calc(100% - 32px);
  min-height: calc(100svh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border: 10px solid #201e20;
  border-radius: 32px;
  isolation: isolate;
  background: #77bee9 url("./assets/sky-hills.svg") center center / cover no-repeat;
  box-shadow: 0 18px 0 #191719, 0 30px 34px rgba(6, 35, 67, .32);
}

.site-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.screen-notch {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: -1px;
  width: 118px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: #201e20;
}
.screen-notch span { display: block; width: 5px; height: 5px; margin: 5px auto; border-radius: 50%; background: #4b484b; }

.site-header, .site-footer { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; }
.site-header { padding: 28px clamp(22px, 4.5vw, 70px) 0; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: #fff; font-size: 17px; font-weight: 900; line-height: 1; letter-spacing: -.04em; white-space: nowrap; text-shadow: 0 2px 5px rgba(10, 66, 119, .58); }
.brand img { width: 49px; height: 49px; object-fit: cover; border: 2px solid rgba(255,255,255,.8); border-radius: 14px; box-shadow: 0 5px 12px rgba(14, 74, 116, .24); }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, .contract:focus-visible { outline: 3px solid #073e78; outline-offset: 4px; }

.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: calc(100svh - 154px); padding: 0 20px 24px; text-align: center; }
.giant-type { position: absolute; top: 49%; left: 50%; z-index: 0; transform: translate(-50%, -50%) scaleX(1.08); color: rgba(255, 255, 255, .26); filter: blur(9px); font-family: Impact, "Arial Black", sans-serif; font-size: clamp(240px, 39vw, 720px); font-weight: 900; line-height: .75; letter-spacing: -.09em; white-space: nowrap; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(#000 30%, transparent 100%); mask-image: linear-gradient(#000 30%, transparent 100%); }
.cat-stage { position: absolute; top: 1%; left: 50%; z-index: 2; width: min(84vw, 980px); height: min(74vh, 760px); transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 25px 18px rgba(13, 48, 63, .34)); }
.cat-stage canvas, .cat-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cat-stage video { opacity: .001; }
.cat-stage canvas { opacity: 0; transition: opacity .35s ease; }
.cat-stage canvas.is-ready { opacity: 1; }
.cat-stage.fallback video { opacity: 1; }
.sparkle { position: absolute; z-index: 3; color: #fff; text-shadow: 0 3px 7px rgba(18, 91, 147, .28); animation: twinkle 3.5s ease-in-out infinite; }
.sparkle-one { top: 25%; right: 18%; font-size: clamp(35px, 5vw, 75px); }
.sparkle-two { top: 52%; left: 17%; font-size: clamp(27px, 3vw, 48px); animation-delay: -1.4s; }
.sparkle-three { top: 40%; right: 8%; font-size: clamp(22px, 2.5vw, 38px); animation-delay: -.7s; }

.hero-content { position: relative; z-index: 4; width: 100%; max-width: 1000px; margin-top: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 7px 12px; border: 1px solid rgba(11, 76, 126, .2); border-radius: 99px; background: rgba(255, 255, 255, .85); color: #155083; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #62ac2d; box-shadow: 0 0 0 3px rgba(98, 172, 45, .2); }
h1 { margin: 0; color: #fff; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(47px, 6.35vw, 105px); font-weight: 900; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 4px 0 rgba(10, 67, 119, .43), 0 13px 18px rgba(8, 53, 88, .25); white-space: nowrap; }
.title-star { display: inline-block; margin-left: .12em; color: #f7ffb8; font-family: Arial, sans-serif; font-size: .5em; vertical-align: top; animation: rotate 12s linear infinite; }
.tagline { margin: 13px auto 21px; color: #123b5d; font-size: clamp(15px, 1.4vw, 19px); font-weight: 900; line-height: 1.3; text-wrap: balance; text-shadow: 0 1px 0 rgba(255, 255, 255, .38); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 19px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 900; white-space: nowrap; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button span:last-child { font-size: 18px; font-weight: 400; line-height: 0; }
.button-primary { min-width: 140px; color: white; background: #1557b5; box-shadow: 0 5px 0 rgba(5, 49, 118, .28); }
.button-light { color: #13518b; background: #fff; box-shadow: 0 5px 0 rgba(14, 73, 125, .16); }
.button-outline { color: #103f73; border-color: rgba(19, 79, 129, .38); background: rgba(255, 255, 255, .82); }
.button:active { transform: translateY(2px); box-shadow: none; }

.site-footer { gap: 20px; min-height: 48px; margin: 0 clamp(22px, 4.5vw, 70px); border-top: 1px solid rgba(13, 77, 63, .28); color: #143d58; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.footer-left span { padding: 0 5px; color: #fff; }
.contract { display: flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; background: none; color: inherit; cursor: pointer; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.contract:hover { color: #fffaf0; }
.contract span:last-child { font-size: 19px; line-height: 0; }
.toast { position: fixed; right: 26px; bottom: 24px; z-index: 20; padding: 12px 18px; border-radius: 12px; background: #123c69; color: white; font-size: 13px; font-weight: 900; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes twinkle { 50% { transform: scale(.78) rotate(20deg); opacity: .6; } }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 800px) {
  .site-frame { width: calc(100% - 16px); min-height: calc(100svh - 16px); margin: 8px; border-width: 6px; border-radius: 22px; }
  .site-header { padding: 24px 18px 0; }
  .brand { font-size: 14px; }
  .brand img { width: 42px; height: 42px; }
  .hero { min-height: calc(100svh - 139px); padding: 0 14px 18px; }
  .giant-type { top: 44%; font-size: 48vw; }
  .cat-stage { top: 5%; width: min(112vw, 710px); height: 65vh; }
  .sparkle-one { right: 6%; top: 27%; }
  .sparkle-two { left: 4%; top: 46%; }
  .sparkle-three { display: none; }
  h1 { font-size: clamp(38px, 7vw, 63px); }
  .tagline { margin-bottom: 17px; }
  .site-footer { margin: 0 18px; font-size: 9px; }
}

@media (max-width: 520px) {
  .site-frame { min-height: calc(100svh - 16px); }
  .site-header { gap: 8px; padding-right: 14px; padding-left: 14px; }
  .brand { gap: 7px; font-size: 11px; }
  .brand img { width: 36px; height: 36px; }
  .screen-notch { width: 85px; height: 13px; }
  .screen-notch span { margin-top: 3px; }
  .hero { min-height: calc(100svh - 152px); }
  .giant-type { top: 40%; font-size: 56vw; }
  .cat-stage { top: 8%; width: 130%; height: 56vh; }
  .hero-content { padding-bottom: 3px; }
  .eyebrow { font-size: 8px; }
  h1 { font-size: clamp(32px, 9.5vw, 51px); white-space: normal; }
  .title-star { display: none; }
  .tagline { max-width: 320px; font-size: 14px; }
  .desktop-break { display: none; }
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .actions .button-outline { grid-column: 1 / -1; }
  .button { min-width: 0; min-height: 43px; padding: 8px 10px; font-size: 11px; gap: 8px; }
  .site-footer { min-height: 47px; justify-content: center; }
  .footer-left { display: none; }
  .toast { right: 15px; bottom: 15px; }
}

@media (max-height: 720px) and (min-width: 801px) {
  .cat-stage { top: 1%; height: 66vh; }
  .hero { min-height: calc(100svh - 142px); }
  h1 { font-size: clamp(43px, 5vw, 76px); }
  .tagline { margin: 8px auto 13px; }
}

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