:root {
  color-scheme: light;
  --ink: #1f2028;
  --muted: #656779;
  --line: #dedfeb;
  --surface: #ffffff;
  --page: #f6f6fa;
  --brand: #7b51d0;
  --brand-dark: #5930ae;
  --teal: #00a99d;
  --amber: #f3b23f;
  --shadow: 0 22px 60px rgba(31, 32, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(123, 81, 208, 0.08) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 32, 40, 0.04) 0 1px, transparent 1px),
    var(--page);
  background-size: 48px 48px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  align-items: center;
}

.download-view {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  overflow: hidden;
  min-height: min(720px, calc(100vh - 96px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 44px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.25), transparent 28%),
    linear-gradient(145deg, var(--brand) 0%, #6842c2 58%, var(--brand-dark) 100%);
}

.brand-panel::before {
  position: absolute;
  inset: 28px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.phone-mockup {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18;
  padding: 12px;
  background: #191a22;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(18, 11, 42, 0.32);
}

.phone-top {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 74px;
  height: 6px;
  transform: translateX(-50%);
  background: #2e3039;
  border-radius: 999px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: 42px 24px;
  background:
    linear-gradient(180deg, rgba(123, 81, 208, 0.12), rgba(0, 169, 157, 0.1)),
    #ffffff;
  border-radius: 22px;
}

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

.screen-lines {
  display: grid;
  gap: 12px;
}

.screen-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #e8e8f0;
}

.screen-lines span:nth-child(2) {
  width: 76%;
}

.screen-lines span:nth-child(3) {
  width: 56%;
}

.screen-action {
  width: 68%;
  height: 44px;
  border-radius: 8px;
  background: var(--teal);
}

.content-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 78px);
}

.logo {
  width: min(100%, 420px);
  height: auto;
  margin-bottom: 56px;
}

.title-group {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.actions {
  width: min(100%, 540px);
  margin-top: 40px;
}

.primary-button,
.store-button {
  min-height: 56px;
  border-radius: 8px;
  text-decoration: none;
}

.primary-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(123, 81, 208, 0.26);
  font-size: 1.05rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  box-shadow: 0 18px 32px rgba(89, 48, 174, 0.28);
}

.primary-button:focus-visible,
.store-button:focus-visible {
  outline: 3px solid rgba(0, 169, 157, 0.48);
  outline-offset: 3px;
}

.button-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.button-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

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

.store-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
  color: #ffffff;
  background: #1f2028;
  border: 1px solid #2e3039;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.store-button:hover {
  transform: translateY(-1px);
  background: #2a2b35;
  border-color: var(--amber);
}

.store-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  opacity: 0.76;
}

.store-name {
  margin-top: 2px;
  font-size: 1.16rem;
  font-weight: 850;
  line-height: 1.18;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

  .download-view {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-panel {
    min-height: 38vh;
    padding: 32px 24px;
  }

  .brand-panel::before {
    inset: 20px;
  }

  .phone-mockup {
    width: min(210px, 52vw);
    border-radius: 24px;
  }

  .phone-screen {
    gap: 18px;
    padding: 34px 18px;
    border-radius: 18px;
  }

  .screen-action {
    height: 34px;
  }

  .content-panel {
    justify-content: flex-start;
    padding: 32px 24px 44px;
  }

  .logo {
    width: min(100%, 330px);
    margin-bottom: 34px;
  }
}

@media (max-width: 520px) {
  body {
    background: var(--surface);
  }

  .brand-panel {
    min-height: 34vh;
  }

  .phone-mockup {
    width: min(190px, 58vw);
  }

  .store-buttons {
    grid-template-columns: 1fr;
  }

  .primary-button {
    padding: 15px 16px;
    font-size: 1rem;
  }

  .store-name {
    font-size: 1.08rem;
  }
}
