:root {
  color-scheme: dark;
  --navy-950: #050b14;
  --navy-900: #07111e;
  --navy-850: #0a1625;
  --navy-800: #0e1b2d;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --text: #f7f9fc;
  --muted: #aeb8c8;
  --gold: #f3d596;
  --gold-deep: #d8ad59;
  --aqua: #41d9cd;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  font-family:
    Pretendard,
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(30, 84, 143, 0.27), transparent 31rem),
    radial-gradient(circle at 92% 14%, rgba(37, 129, 131, 0.12), transparent 28rem),
    linear-gradient(145deg, var(--navy-900), var(--navy-950) 74%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #08111d;
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 1440px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 58px);
  overflow: hidden;
}

.site-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
  content: "";
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1260px);
  min-height: 78px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
.floating-logo {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(51, 93, 145, 0.55), rgba(15, 28, 45, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 28px rgba(0, 0, 0, 0.2);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.brand-mark img,
.floating-logo img {
  width: 85% !important;
  height: 85% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: #8996a8;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.top-label {
  padding: 9px 15px;
  color: var(--gold);
  border: 1px solid rgba(243, 213, 150, 0.2);
  border-radius: 999px;
  background: rgba(243, 213, 150, 0.055);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(470px, 1.04fr);
  align-items: center;
  width: min(100%, 1260px);
  min-height: min(750px, calc(100svh - 114px));
  margin: 4px auto 0;
  padding: clamp(42px, 5.2vw, 76px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.014)),
    rgba(12, 22, 37, 0.8);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 7px 13px;
  color: var(--gold);
  border: 1px solid rgba(243, 213, 150, 0.18);
  border-radius: 999px;
  background: rgba(243, 213, 150, 0.065);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(243, 213, 150, 0.9);
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(48px, 5.15vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.07em;
  word-break: keep-all;
}

h1 span {
  color: var(--gold);
  background: linear-gradient(105deg, #fff0c5, #e7bd6d 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.download-actions {
  width: min(100%, 454px);
  margin-top: 28px;
}

.smart-download {
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.smart-download {
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  color: #07111e;
  border: 0;
  border-radius: 19px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.smart-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-right: 12px;
  border-radius: 14px;
  background: #eef1f5;
  font-size: 20px;
  font-weight: 900;
}

.smart-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.smart-copy small {
  color: #6d7480;
  font-size: 10px;
  letter-spacing: -0.01em;
}

.smart-copy strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.platform-chip {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 9px;
  color: #586170;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  background: #f7f8fa;
  font-size: 9px;
  font-weight: 750;
}

.store-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.store-button {
  display: flex;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.store-badge {
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.store-badge-apple {
  width: min(100%, 202px);
}

.store-badge-google {
  width: min(100%, 210px);
}

.download-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 2px 0;
  color: #8793a4;
  font-size: 11px;
  letter-spacing: -0.01em;
}

.download-note > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48d7a0;
  box-shadow: 0 0 10px rgba(72, 215, 160, 0.65);
}

.config-message {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: #fff4d6;
  border: 1px solid rgba(243, 213, 150, 0.22);
  border-radius: 12px;
  background: rgba(243, 213, 150, 0.08);
  font-size: 11px;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 610px;
}

.visual-grid {
  position: absolute;
  inset: 8% -14% 0 3%;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(83, 158, 173, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 158, 173, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 54% 46%, #000 0, transparent 68%);
  transform: perspective(440px) rotateX(58deg) translateY(32%);
  transform-origin: center bottom;
}

.visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.visual-glow-one {
  top: 14%;
  right: 8%;
  width: 300px;
  height: 300px;
  background: rgba(35, 124, 166, 0.19);
}

.visual-glow-two {
  right: 31%;
  bottom: 10%;
  width: 220px;
  height: 220px;
  background: rgba(48, 180, 148, 0.14);
}

.phone-stage {
  position: absolute;
  inset: 0;
}

.phone {
  position: absolute;
  z-index: 2;
  margin: 0;
  filter: drop-shadow(0 34px 30px rgba(0, 0, 0, 0.42));
  will-change: transform;
}

.phone img {
  width: 100%;
  height: auto;
}

.phone-galaxy {
  top: 2%;
  right: -2%;
  width: min(61%, 352px);
  transform: rotate(2.5deg);
}

.phone-iphone {
  z-index: 3;
  top: 14%;
  left: 2%;
  width: min(55%, 316px);
  transform: rotate(-3.2deg);
}

.floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 222px;
  padding: 13px 15px;
  color: #000000 !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.floating-card strong,
.floating-card small {
  display: block;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

.floating-card strong {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.floating-card small {
  margin-top: 4px;
  font-size: 9px;
  opacity: 0.58;
}

.floating-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(145deg, #62ccff, #315ff4 78%);
  box-shadow: 0 9px 20px rgba(49, 95, 244, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 19px;
  font-weight: 900;
}

.floating-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #13243a;
}

.search-card {
  top: 24%;
  right: -3%;
}

.app-card {
  bottom: 9%;
  left: 5%;
}

.footer {
  display: grid;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 10px 0 8px;
  color: #667284;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.footer-brand {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.trademark-credit {
  max-width: 720px;
  margin: 0;
  text-align: center;
  line-height: 1.45;
}

.smart-download:hover {
  transform: translateY(-2px);
}

.smart-download:hover {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
}

.smart-download:active {
  transform: translateY(0) scale(0.99);
}

.smart-download:focus-visible,
.store-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

.store-buttons.is-prompted .store-button {
  border-color: rgba(243, 213, 150, 0.56);
  background: rgba(243, 213, 150, 0.045);
  box-shadow: 0 0 0 4px rgba(243, 213, 150, 0.07);
}

@media (max-width: 1040px) {
  .hero-panel {
    grid-template-columns: minmax(0, 0.96fr) minmax(390px, 1.04fr);
    padding: 44px;
  }

  h1 {
    font-size: clamp(46px, 6vw, 62px);
  }

  .hero-visual {
    min-height: 560px;
  }

  .floating-card {
    min-width: 198px;
    padding: 11px 12px;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: 100%;
    padding: 0 14px;
  }

  .topbar {
    min-height: 62px;
    padding: 0 4px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .top-label {
    display: none;
  }

  .hero-panel {
    display: flex;
    min-height: auto;
    margin-top: 0;
    padding: 24px 16px 0;
    border-radius: 26px;
    flex-direction: column;
  }

  .hero-copy {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .eyebrow {
    min-height: 28px;
    padding: 6px 11px;
    font-size: 11px;
  }

  h1 {
    margin-top: 14px;
    font-size: clamp(36px, 10.5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.065em;
  }

  .hero-description {
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.62;
  }

  .download-actions {
    width: 100%;
    margin-top: 19px;
  }

  .smart-download {
    min-height: 62px;
    border-radius: 17px;
  }

  .smart-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 12px;
  }

  .smart-copy strong {
    font-size: 15px;
  }

  .store-buttons {
    grid-template-columns: minmax(0, 0.97fr) minmax(0, 1.03fr);
    gap: 12px;
  }

  .store-button {
    min-height: 70px;
    padding: 0;
    border-radius: 12px;
  }

  .store-badge-apple,
  .store-badge-google {
    width: 100%;
  }

  .download-note {
    margin-top: 10px;
  }

  .hero-visual {
    width: min(100%, 540px);
    min-height: 430px;
    margin: 18px auto 0;
  }

  .phone-galaxy {
    top: 3%;
    right: 3%;
    width: min(54%, 245px);
  }

  .phone-iphone {
    top: 11%;
    left: 8%;
    width: min(49%, 225px);
  }

  .floating-card {
    min-width: 178px;
    padding: 10px 11px;
    border-radius: 14px;
  }

  .floating-icon,
  .floating-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .search-card {
    top: 27%;
    right: 0;
  }

  .app-card {
    bottom: 9%;
    left: 2%;
  }

  .footer {
    min-height: 34px;
  }
}

@media (max-width: 380px) {
  .hero-panel {
    padding-inline: 16px;
  }

  .smart-download {
    padding-inline: 11px;
  }

  .platform-chip {
    display: none;
  }

  .store-button {
    min-height: 66px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .floating-card {
    transform: scale(0.9);
  }

  .search-card {
    right: -12px;
  }
}

@media (max-width: 820px) and (max-height: 720px) {
  .topbar {
    min-height: 56px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-panel {
    padding-top: 18px;
  }

  h1 {
    margin-top: 11px;
    font-size: clamp(33px, 9.6vw, 42px);
  }

  .hero-description {
    margin-top: 9px;
    line-height: 1.48;
  }

  .download-actions {
    margin-top: 14px;
  }

  .smart-download {
    min-height: 58px;
  }

  .store-button {
    min-height: 64px;
  }

  .store-badge-apple,
  .store-badge-google {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* 다운로드를 주 동작으로 강조하고 PC 링크는 보조 동작으로 표시 */
.smart-download {
  min-height: 86px;
  padding: 16px 18px;
  color: #172238;
  border: 1px solid #f3d881;
  background: linear-gradient(135deg, #f7df91 0%, #e4bc50 55%, #c99b35 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 12px 28px rgba(228, 188, 80, 0.18);
}

.smart-icon {
  background: rgba(255, 255, 255, 0.28);
  font-size: 26px;
}

.smart-copy {
  flex: 1 1 auto;
  gap: 5px;
}

.smart-copy small {
  color: #35405a;
  font-size: 11px;
}

.smart-copy strong {
  overflow: visible;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 850;
  line-height: 1.3;
  white-space: normal;
  word-break: keep-all;
}

.platform-chip {
  margin-left: 12px;
  color: #35405a;
  border-color: rgba(23, 34, 56, 0.16);
  background: rgba(255, 255, 255, 0.3);
}

.smart-download:hover {
  background: linear-gradient(135deg, #ffe8a4 0%, #edc65e 55%, #d4a641 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 16px 32px rgba(228, 188, 80, 0.25);
}

.jmap-pc-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  padding: 12px 16px;
  color: #aeb8c8;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.jmap-pc-button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.jmap-pc-button:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .platform-chip {
    display: none;
  }
}

@media (max-width: 820px) {
  .smart-download {
    min-height: 78px;
    padding: 14px;
  }

  .smart-copy strong {
    font-size: clamp(18px, 5vw, 23px);
  }

  .smart-icon {
    margin-right: 10px;
  }

  .jmap-pc-button {
    min-height: 44px;
    margin-top: 16px;
    font-size: 13px;
  }

/* PC 버튼을 골드 다운로드 버튼과 같은 폭으로 */
.jmap-pc-button {
  width: min(100%, 454px);
}

@media (max-width: 820px) {
  .jmap-pc-button {
    width: 100%;
  }
}
}
