@font-face {
  font-family: Pretendard;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/pretendard-600.woff2') format('woff2');
}
@font-face {
  font-family: Pretendard;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./assets/pretendard-700.woff2') format('woff2');
}
@font-face {
  font-family: Pretendard;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./assets/pretendard-800.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --brand: #00afff;
  --white: #fff;
  --gutter: 60px;
  --header-height: 74px;
  --type-heading-3: 20px;
  --type-title-1: 17px;
  --type-title-2: 15px;
  --type-body-2: 13px;
  --type-caption-1: 12px;
  --hero-bottom: clamp(32px, 7.662835svh, 60px);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); scrollbar-width: thin; scrollbar-color: #b8c0c680 #f5f6f7; }
html::-webkit-scrollbar { width: 6px; height: 6px; }
html::-webkit-scrollbar-track { background: #f5f6f7; }
html::-webkit-scrollbar-thumb { background: #b8c0c680; border-radius: 8px; }
html::-webkit-scrollbar-thumb:hover { background: #9ba6af; }
body { margin: 0; background: #032a3c; color: var(--white); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 12px 18px; background: #003752; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Hero and section 2 share fluid content with 80px desktop / 20px mobile gutters. */
.container--fluid,
.container--fixed {
  width: calc(100% - var(--gutter) * 2);
  margin-inline: auto;
}
/* Below this width the gutter alone keeps content off the edges, same as every
   other section; only very wide screens hit the cap and gain extra margin. */
.container--fluid { max-width: 1152px; }
/* Sections 3+ set their own --section-content-width when their design is specified. */
.container--fixed { max-width: var(--section-content-width); }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  inset-inline: 0;
  padding-top: env(safe-area-inset-top, 0px);
  isolation: isolate;
  transition: color 220ms ease;
}
.site-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.site-header.is-scrolled { color: #1a2128; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header:is(.is-scrolled, .is-menu-open) :focus-visible { outline-color: var(--brand); }
.site-header.is-scrolled .menu-toggle img { filter: brightness(0); }
.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.site-header__actions { display: flex; align-items: center; gap: 24px; }
.desktop-nav { display: flex; align-items: center; gap: 20px; }
.desktop-nav a { position: relative; padding: 4px 8px; font-size: 14px; line-height: 21.5px; font-weight: 600; white-space: nowrap; }
.desktop-nav a::before { content: ''; position: absolute; inset: -7px 0; }
.desktop-nav a:hover { color: #0099e8; }
.solid-button {
  position: relative;
  width: 84px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: var(--white);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}
.solid-button::before { content: ''; position: absolute; inset: -6px 0; }
.solid-button:hover { background: #009dea; }
.solid-button:active, .store-button:active { transform: scale(.97); }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #00afff;
}
.hero__media { position: absolute; z-index: -2; inset: 0; }
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Raw photographs/video share a viewport-relative gradient independent of crop. */
.hero__motion { position: absolute; z-index: -2; inset: 0; opacity: 0; pointer-events: none; }
.hero__motion video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .15) 25%, rgba(0, 0, 0, 0) 50.480771%, rgba(0, 0, 0, .3) 75%, rgba(0, 0, 0, .6) 100%);
}
.hero.is-video-ready .hero__motion { opacity: 1; }
.hero__copy {
  position: absolute;
  inset-inline: 0;
  /* +16px here, not the scroll cue or downloads: the cue sits at the midpoint
     between this and .hero__downloads, so raising the title by 16px widens
     both the title-to-cue and cue-to-downloads gaps by 8px each. */
  bottom: calc(25.031928% + 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 4.444445vw, 64px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  word-break: keep-all;
}
.hero__copy p { margin: 0; font-size: 24px; font-weight: 700; line-height: 33px; word-break: keep-all; }
.hero__downloads {
  position: absolute;
  inset-inline: 0;
  bottom: var(--hero-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  width: 200px;
  height: 54px;
  border: 1px solid #f9fafb;
  border-radius: 100px;
  background: rgba(4, 40, 62, .11);
  font-size: 15px;
  font-weight: 600;
  line-height: 22.5px;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}
.store-button img { flex: none; }
.store-button:hover { background: rgba(255, 255, 255, .15); }
.floating-qr {
  position: fixed;
  z-index: 20;
  right: var(--gutter);
  bottom: calc(var(--hero-bottom) + env(safe-area-inset-bottom, 0px));
  width: 102px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 5px;
  gap: 3px;
  border-radius: 14px;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 27, 45, .05);
}
.floating-qr img { width: 86px; height: 86px; border-radius: 8px; }

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .desktop-nav, .floating-qr, .hero__motion { display: none; }
  .site-header__actions { gap: 12px; }
  .hero__downloads { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .hero__downloads .store-button:not(.is-device-store) { display: none; }
  .menu-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .menu-toggle::before { content: ''; position: absolute; inset: -10px; }
  .menu-toggle__close { display: none; width: 24px; height: 24px; position: relative; }
  .menu-toggle__close::before, .menu-toggle__close::after { content: ''; position: absolute; top: 11px; left: 3px; width: 18px; height: 1.5px; background: currentColor; }
  .menu-toggle__close::before { transform: rotate(45deg); }
  .menu-toggle__close::after { transform: rotate(-45deg); }
  .menu-toggle[aria-expanded='true'] img { display: none; }
  .menu-toggle[aria-expanded='true'] .menu-toggle__close { display: block; }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    color: #1a2128;
    border-top: 1px solid #edf0f2;
    box-shadow: 0 20px 30px rgba(0, 20, 35, .05);
  }
  .mobile-nav a { padding: 18px 0; font-weight: 600; font-size: 18px; border-bottom: 1px solid #edf0f2; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a:hover { color: #0099e8; }
  .hero { min-height: 720px; }
  .hero__copy { top: calc(clamp(120px, 16.666667svh, 172px) + env(safe-area-inset-top, 0px)); bottom: auto; gap: 23.2px; }
  .hero h1 { font-size: clamp(42px, 13.231553vw, 52px); line-height: 1.2; }
  .hero h1 span { display: block; }
  .hero__copy p { font-size: 17px; line-height: 25.5px; }
}

@media (max-width: 350px) {
  :root { --gutter: 16px; }
  .site-header__actions { gap: 8px; }
  .site-header__inner { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.floating-qr__label { font-size:13px; line-height:19.5px; font-weight:600; white-space:nowrap; transition:color 160ms ease; }
.floating-qr.is-on-light { color:#1a2128; }

/* The cue stays midway between the hero copy and the download buttons. */
.hero__scroll-cue { position:absolute; left:50%; bottom:calc((25.031928% + var(--hero-bottom) + 54px) / 2 - 20px); width:40px; height:40px; margin-left:-20px; display:grid; place-items:center; color:#fff; border-radius:50%; opacity:0; visibility:hidden; pointer-events:none; transition:opacity 120ms ease, visibility 120ms; }
.hero.is-cue-ready .hero__scroll-cue { opacity:1; visibility:visible; pointer-events:auto; }
.hero__scroll-cue::before,.hero__scroll-cue::after { content:''; position:absolute; inset:calc(20px / 3); border-radius:50%; background:rgba(255,255,255,.18); opacity:0; animation:hero-cue-ripple 2.8s ease-out infinite; animation-play-state:paused; }
.hero__scroll-cue::after { animation-delay:240ms; }
.hero.is-cue-ready .hero__scroll-cue::before,.hero.is-cue-ready .hero__scroll-cue::after,.hero.is-cue-ready .hero__scroll-cue svg { animation-play-state:running; }
.hero__scroll-cue svg { width:16px; height:16px; position:relative; animation:hero-cue-float 2.8s ease-in-out infinite; animation-play-state:paused; z-index:1; }
.hero__scroll-cue:focus-visible { outline:2px solid #fff; outline-offset:6px; }
@keyframes hero-cue-float { 0%,100% { transform:translateY(-3px); } 50% { transform:translateY(3px); } }
@keyframes hero-cue-ripple { 0% { transform:scale(.65); opacity:0; } 8% { opacity:1; } 50%,100% { transform:scale(1.6); opacity:0; } }
@media(max-width:900px) { .hero__scroll-cue { bottom:calc(144px + env(safe-area-inset-bottom,0px)); } }
@media(prefers-reduced-motion:reduce) { .hero__scroll-cue::before,.hero__scroll-cue::after,.hero__scroll-cue svg { animation:none; } }

/* Compact header after scrolling; the page and pinned section geometry stay stable. */
.site-header__inner { transition:height 240ms cubic-bezier(.22,1,.36,1); }
.site-header .brand img { width:124px; height:auto; transition:width 240ms cubic-bezier(.22,1,.36,1); }
.site-header .solid-button { transition:width 240ms ease,height 240ms ease,font-size 240ms ease,background-color 180ms ease; }
.site-header.is-scrolled .site-header__inner { height:48px; }
.site-header.is-scrolled .brand img { width:104px; }
.site-header.is-scrolled .solid-button { width:78px; height:30px; font-size:12px; }
.site-header.is-scrolled .solid-button::before { inset:-7px 0; }
.site-header.is-menu-open::before { opacity:1; }
.site-header.is-menu-open { color:#1a2128; }
.site-header.is-menu-open .menu-toggle img { filter:brightness(0); }
@media(prefers-reduced-motion:reduce) {
  .site-header__inner,.site-header .brand img,.site-header .solid-button { transition:none; }
}

/* Keep the download action within short mobile viewports only. */
@media (max-width:900px) and (max-height:719px) {
  .hero { min-height:0; height:100svh; }
  .hero__downloads { bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
  .hero__scroll-cue { bottom:calc(96px + env(safe-area-inset-bottom,0px)); }
  .hero__copy { top:calc(88px + env(safe-area-inset-top,0px)); gap:16px; }
}
@media (max-width:900px) and (max-height:480px) {
  .hero h1 { font-size:32px; }
  .hero h1 span { display:inline; }
  .hero__copy { gap:8px; }
  .hero__copy p { font-size:15px; }
  .hero__downloads { bottom:calc(12px + env(safe-area-inset-bottom,0px)); }
  .hero__scroll-cue { bottom:calc(74px + env(safe-area-inset-bottom,0px)); }
}

/* Center the cue in the gap between the hero copy and download row. */
@media (min-width:901px) {
  .hero__scroll-cue { bottom:calc((25.031928% + 16px + var(--hero-bottom) + 54px) / 2 - 20px); }
}

/* Tablet hero media only; phone and layout rules stay unchanged. */
@media (max-width:900px) {
  .hero.is-tablet-video .hero__motion { display:block; }
}
