.hero__media { inset:auto; left:50%; bottom:0; transform:translateX(-50%); }
/* 화면 폭이 바뀌어 다른 이미지로 갈아끼우는 순간에도 칸을 빈틈없이 채운다(contain이면 비율이 안 맞는 동안 위아래·양옆이 빈다). */
.hero__media > img { display:block; object-fit:cover; }
.site-header:not(.is-scrolled):not(.is-menu-open) .brand img { filter:brightness(0) invert(1); }
.site-header.is-menu-open { color:#1a2128; }
.site-header.is-menu-open::before { opacity:1; }
.hero h1 img { display:block; width:100%; height:100%; }
.hero__copy { align-items:flex-start; text-align:left; }
.hero__downloads { align-items:stretch; flex-direction:column; }
.hero__stores { display:flex; gap:6px; }
.hero__stores .store-button,.hero-event { border-radius:12px; min-width:max-content; white-space:nowrap; }
.hero__stores .store-button { width:132px; height:44px; padding:0; border:1px solid white; background:rgb(0 0 0 / 30%); }
.store-mobile-label { display:none; }
.store-button[data-store="ios"] .store-wordmark { transform:translate(-1px,-.5px); }
.store-button[data-store="android"] .store-wordmark { transform:translate(-.22px,.5px); }
.hero-event {
  position:relative; display:flex; align-items:center; justify-content:center; gap:6px;
  width:270px; height:48px; padding:0 4px 0 0; border:0; background:#f9fafb;
  font-size:14px; font-weight:600; line-height:21.5px; opacity:1; cursor:default;
}
/* One broad reflection follows the perimeter, with a matching exterior bloom. */
@property --light-x { syntax:"<percentage>"; inherits:true; initial-value:100%; }
@property --light-y { syntax:"<percentage>"; inherits:true; initial-value:50%; }
.hero-event {
  isolation:isolate;
  --event-blue:#3978ff;
  --reflection:radial-gradient(ellipse 54% 84% at var(--light-x) var(--light-y),
    #edf3ff 0%, #a8c2ff 12%, var(--event-blue) 38%, rgb(57 120 255 / 35%) 72%, transparent 100%);
  box-shadow:0 0 18px 3px rgb(57 120 255 / 24%);
  animation:event-reflection 3.2s linear infinite;
  animation-delay:-.2s;
}
.hero-event::before,
.hero-event::after,
.hero-event__surface {
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
}
.hero-event::before {
  content:"";
  z-index:-2;
  background:radial-gradient(ellipse 58% 96% at var(--light-x) var(--light-y),
    var(--event-blue) 0%, rgb(57 120 255 / 75%) 38%, transparent 100%);
  filter:blur(12px);
}
.hero-event__surface { z-index:-1; background:inherit; }
.hero-event::after {
  content:"";
  padding:var(--stroke-width,1.5px);
  background:var(--reflection), var(--stroke-color,#3978ff);
  -webkit-mask:linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
  mask:linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
}
@keyframes event-reflection {
  0%,100% { --light-x:100%; --light-y:50%; }
  12.5% { --light-x:96%; --light-y:96%; }
  25% { --light-x:50%; --light-y:100%; }
  37.5% { --light-x:4%; --light-y:96%; }
  50% { --light-x:0%; --light-y:50%; }
  62.5% { --light-x:4%; --light-y:4%; }
  75% { --light-x:50%; --light-y:0%; }
  87.5% { --light-x:96%; --light-y:4%; }
}
.event-label { background:linear-gradient(#00afff,#01549c); background-clip:text; -webkit-background-clip:text; color:transparent; }
.event-label--mobile { display:none; }
.floating-qr { color:#fff; background:rgb(0 0 0 / 20%); border-radius:16px; width:120px; padding:9px 9px 5px; }
.floating-qr img { width:101px; height:101px; }
.floating-qr__label { font-size:14px; line-height:22px; }
/* Copy and actions inherit the same container edges as the overview heading. */
.hero__downloads { align-items:flex-start; justify-content:flex-start; }
.hero__copy { bottom:auto; }
.hero__copy p { font-weight:600; }
@media(width > 900px) {
  .hero { height:600px; min-height:600px; background:#0097ec; }
  .hero__media { width:1440px; height:600px; }
  .hero::after {
    background:linear-gradient(180deg, rgb(0 0 0 / 40%) 0%, rgb(0 0 0 / 6%) 30%, transparent 60%);
  }
  .site-header__inner { width:calc(100% - 2 * max(5.556vw,40px)); max-width:1280px; }
  .hero__copy { top:184px; gap:8px; }
  .hero h1 { width:398px; height:53px; }
  .hero__copy p { font-size:17px; line-height:26px; }
  .hero__downloads { top:303px; bottom:auto; gap:12px; }
  .floating-qr { right:80px; bottom:60px; }
}
@media(600px <= width <= 900px) {
  .site-header__inner,.hero__copy,.hero__downloads { width:calc(100% - 40px); }
  .desktop-nav { display:flex; }
  .site-header__actions { gap:clamp(12px,2.9vw,22px); }
  .desktop-nav { gap:clamp(8px,2.6vw,20px); }
  .menu-toggle,.mobile-nav { display:none; }
  .hero { height:431px; min-height:431px; background:#009bf1; }
  .hero__media { width:768px; height:431px; }
  .hero::after { background:linear-gradient(180deg,rgb(0 0 0 / 40%),rgb(0 0 0 / 6%) 30%,transparent 60%); }
  .hero__copy { top:122px; gap:8px; bottom:auto; }
  .hero h1 { width:326px; height:43px; }
  .hero__copy p { font-size:15px; line-height:23px; }
  .hero__downloads { top:233px; bottom:auto; gap:12px; }
  .hero__downloads .store-button:not(.is-device-store) { display:inline-flex; }
  .floating-qr { display:flex; right:20px; bottom:40px; }
}
@media(width < 600px) {
  :root { --gutter:16px; }
  main { display:flow-root; background:#fff; }
  .site-header { color:#1a2128; background:white; }
  .site-header::before,.site-header__inner,.site-header .brand img,.site-header .solid-button { transition:none; }
  .site-header__inner { height:60px; width:calc(100% - 2 * var(--gutter)); }
  .site-header .brand img,.site-header.is-scrolled .brand img { width:103px; }
  .site-header:not(.is-scrolled):not(.is-menu-open) .brand img { filter:none; }
  .site-header .menu-toggle img,.site-header.is-scrolled .menu-toggle img { filter:brightness(.32); }
  .site-header__actions { gap:12px; }
  .site-header .solid-button { width:84px; height:32px; font-size:14px; min-width:max-content; padding-inline:12px; }
  .hero {
    margin:calc(67px + env(safe-area-inset-top,0px)) var(--gutter) 0;
    height:auto; min-height:0; aspect-ratio:353 / 327; border-radius:20px; background:#00afff;
    container-type:inline-size;
  }
  /* 배경까지 들어간 카드 이미지를 카드에 꽉 채우고, 넘치는 좌우만 잘라낸다. */
  .hero__media { inset:0; width:100%; height:100%; transform:none; overflow:hidden; }
  .hero__media > img { width:100%; height:100%; max-width:none; object-fit:cover; object-position:50% 50%; }
  .hero::after { background:linear-gradient(180deg,transparent 60%,rgb(0 0 0 / 40%)); }
  .hero__copy,.hero__downloads { width:auto; margin:0; inset-inline:clamp(10px,5.666cqw,20px); }
  .hero__copy { top:auto; bottom:calc(7.95% + 44px + 12px); gap:4px; }
  .hero h1 { width:min(217.2px,100%); height:auto; aspect-ratio:543 / 72; font-size:24px; }
  .hero__copy p { font-size:14px; line-height:21.5px; }
  .hero__downloads {
    top:auto; bottom:7.95%; display:grid; justify-content:start; gap:6px;
    grid-template-columns:152px;
  }
  .hero__stores { display:none; }
  .hero-event { width:100%; }
  .hero__stores .store-button,.hero-event { height:44px; border-radius:12px; font-size:14px; line-height:21.5px; }
  .hero__stores .store-button { width:100%; padding-inline:4px 0; border:0; background:#00afff; }
  .store-wordmark { display:none; }
  .store-mobile-label { display:inline-flex; align-items:center; gap:6px; }
  .hero-event { --stroke-width:1px; --stroke-color:#0099e8; }
  .hero-event img { width:16px; height:16px; }
  .overview__download {
    width:152px; height:44px; justify-content:center; padding-inline:4px 0;
    background:#00afff; color:white; border-radius:12px; font-size:14px; line-height:21.5px;
  }
  .overview__download > [data-os-download-label],.overview__download > img { display:none; }
  .network__cta,.stories__more { font-size:15px; }
  .site-footer__download { font-size:14px; }
  .network__cta img,.stories__more img { width:16px; height:16px; }
  .store-mobile-label img,.site-footer__mobile-label img { width:14px; height:14px; }
  .event-label--desktop { display:none; }
  .event-label--mobile { display:inline; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-event { animation:none; }
}

@media(min-width:901px) and (pointer:coarse) {
  html { scroll-snap-type:y proximity; }
  #overview { scroll-snap-align:start; scroll-snap-stop:always; }
  .hero { scroll-snap-align:start; }
}
a.hero-event { color:inherit; text-decoration:none; cursor:pointer; }
/* 1440px보다 넓은 화면: 이미지 양 끝 색으로 바깥을 채우고, 경계는 흐리게 이어 붙인다. 헤더 이미지를 바꾸면 두 색도 새 이미지 끝 색으로 맞춘다. */
@media(width > 1440px) {
  .hero { background:linear-gradient(90deg, #0091ea 0 50%, #00a8fa 50% 100%); }
  .hero__media > img { mask-image:linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
}
/* 이미지보다 좁은 화면: 폰이 제목 오른쪽에 오도록 하면서 오른팔이 최대한 보이게 이미지 위치를 잡는다.
   (PC 이미지 기준 폰 왼쪽 806px·오른팔 끝 1343px, 제목 폭 398px) 헤더 이미지를 바꾸면 이 값도 새 이미지에 맞춘다. */
@media(900px < width <= 1440px) {
  .hero__media { right:auto; transform:none; left:min(0px, max(calc(5.556vw - 396px), calc(100vw - 1359px))); }
}
/* 태블릿: 같은 원리(폰 왼쪽 420px·오른팔 끝 745px, 제목 끝 346px). 768px보다 넓으면 왼쪽 빈 곳을 이미지 왼쪽 끝 색으로 채운다. */
@media(600px <= width <= 900px) {
  .hero { background:#009bf1; }
  .hero__media { right:auto; transform:none; left:max(-62px, calc(100vw - 755px)); }
  .hero__media > img { mask-image:linear-gradient(90deg, transparent 0, #000 32px); }
}
