@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #151517;
  --bg-2: #1c1c1f;
  --fg: #ededef;
  --fg-2: #9c9ca3;
  --fg-3: #6d6d75;
  --sep: rgba(255, 255, 255, 0.13);
  --sep-soft: rgba(255, 255, 255, 0.07);
  --control: rgba(255, 255, 255, 0.10);
  --accent: #0a84ff;
  --glow: rgba(224, 163, 58, 0.18);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Apple SD Gothic Neo", "Malgun Gothic",
          "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo",
          sans-serif;
  --wide: 1080px;
  --ctl-h: 30px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff;
    --bg-2: #f5f5f7;
    --fg: #1d1d1f;
    --fg-2: #6e6e73;
    --fg-3: #8e8e93;
    --sep: rgba(0, 0, 0, 0.13);
    --sep-soft: rgba(0, 0, 0, 0.07);
    --control: rgba(0, 0, 0, 0.07);
    --accent: #007aff;
    --glow: rgba(224, 163, 58, 0.14);
  }
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: #8e8e93;
  --sep: rgba(0, 0, 0, 0.13);
  --sep-soft: rgba(0, 0, 0, 0.07);
  --control: rgba(0, 0, 0, 0.07);
  --accent: #007aff;
  --glow: rgba(224, 163, 58, 0.14);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-sun { display: none; }
  :root:not([data-theme]) .theme-moon { display: block; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--nav-h) + 10px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
:lang(ko) h1, :lang(ko) h2, :lang(ja) h1, :lang(ja) h2 { letter-spacing: -0.01em; word-break: keep-all; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--sep-soft);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav-h);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 28px;
  font-size: 14px;
}

.ghstar, .bmc, .lang, .theme { height: var(--ctl-h); flex: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.brand img { border-radius: 6px; }

.bmc, .ghstar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}

.bmc {
  margin-left: auto;
  border: 1px solid #ffdd00;
  background: #ffdd00;
  color: #1d1d1f;
  font-weight: 600;
}
.bmc:hover { background: #ffe74d; border-color: #ffe74d; }

.ghstar { border: 1px solid var(--sep); color: var(--fg-2); font-weight: 500; }
.ghstar:hover { color: var(--fg); border-color: var(--fg-3); }
.ghstar b {
  padding-left: 8px;
  border-left: 1px solid var(--sep);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.lang {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--sep);
}
.lang button {
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-2);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--control); color: var(--fg); }

.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ctl-h);
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--sep);
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
}
.theme:hover { color: var(--fg); border-color: var(--fg-3); }
.theme-sun { display: block; }
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }

@media (max-width: 720px) {
  .nav { height: auto; flex-wrap: wrap; padding: 14px 16px; }
}
@media (max-width: 620px) {
  .ghstar > span, .bmc > span { display: none; }
  .ghstar, .bmc { padding: 0 10px; }
}

.hero {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 88px 28px 36px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background: radial-gradient(60% 70% at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
  transition: background 0.8s ease;
}

.headline {
  margin: 0 auto 20px;
  max-width: 20em;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.12;
}

.headline .before, .headline .after { white-space: pre-line; }
.rotating [data-i18n] { white-space: pre; }

.rotator {
  position: relative;
  display: inline-block;
  height: 1.2em;
  height: 1lh;
  vertical-align: top;
  overflow: hidden;
  text-align: left;
  transition: width 0.55s var(--ease);
}

.word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--tint, var(--accent));
  line-height: inherit;
  opacity: 0;
  transform: translateY(0.9em);
  transition: transform 0.55s var(--ease), opacity 0.45s ease;
}
.word.in { opacity: 1; transform: translateY(0); }
.word.out { opacity: 0; transform: translateY(-0.9em); }

.sub {
  margin: 0 auto 30px;
  max-width: 34em;
  color: var(--fg-2);
  font-size: clamp(17px, 1.8vw, 19px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.req { font-size: 13px; color: var(--fg-3); }

.shot-stage {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 40px;
}

.shot-stage .shot { animation: rise 0.9s var(--ease) 0.15s both; }
.hero .headline, .hero .sub, .hero .cta { animation: rise 0.8s var(--ease) both; }
.hero .sub { animation-delay: 0.06s; }
.hero .cta { animation-delay: 0.12s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.shot {
  display: block;
  width: 100%;
  height: auto;
}

.extra {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 72px 28px;
}

.extra h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 36px);
  text-align: center;
}

.badge {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
.badge span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--sep);
  color: var(--fg-2);
  font-size: 12.5px;
  font-weight: 500;
}
.badge span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9774b;
}

.lede { margin: 0 auto; text-align: center; color: var(--fg-2); font-size: 17px; }

.carousel {
  overflow: hidden;
  margin: 36px -20px 0;
}
.track {
  display: flex;
  transition: transform 0.95s var(--ease);
  will-change: transform;
}
.track .shot { flex: 0 0 100%; min-width: 0; }

.credit { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--fg-3); }
.credit a { color: var(--fg-2); }

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 26px 28px 56px;
  font-size: 13px;
  color: var(--fg-3);
  border-top: 1px solid var(--sep-soft);
}
.fineprint { font-size: 11.5px; color: var(--fg-3); opacity: 0.75; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.8s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .hero { padding: 64px 18px 28px; }
  .extra { padding: 56px 18px; }
  .carousel { margin: 28px -8px 0; }
  .shot-stage { padding: 0 8px 24px; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-stage .shot, .hero .headline, .hero .sub, .hero .cta { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .word { transition: opacity 0.3s ease; transform: none; }
  .word.out { transform: none; }
  .headline .before, .headline .after { white-space: pre-line; }
.rotating [data-i18n] { white-space: pre; }

.rotator { transition: none; }
  .track { transition: transform 0.35s ease; }
}
