:root {
  color-scheme: light;
  --interojo-blue: #07588f;
  --interojo-blue-deep: #06446e;
  --interojo-orange: #f58200;
  --ink: #15283a;
  --muted: #687a89;
  --line: #d8e5ee;
  --surface: rgba(255, 255, 255, 0.96);
  --page: #eef5f9;
  --shadow: 0 24px 70px rgba(29, 70, 98, 0.13);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(7, 88, 143, 0.10), transparent 31rem),
    radial-gradient(circle at 92% 96%, rgba(245, 130, 0, 0.09), transparent 28rem),
    var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-viewport {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.home-panel {
  position: relative;
  width: min(100%, 700px);
  min-height: min(940px, calc(100svh - 36px));
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 5.4vw, 58px) clamp(20px, 6vw, 56px) clamp(22px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(190, 211, 225, 0.86);
  border-radius: clamp(24px, 4vw, 36px);
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.home-panel::before,
.home-panel::after {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  opacity: 0.72;
}

.home-panel::before {
  top: -150px;
  right: -110px;
  background: rgba(7, 88, 143, 0.08);
}

.home-panel::after {
  bottom: -170px;
  left: -120px;
  background: rgba(245, 130, 0, 0.08);
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  display: block;
  width: min(72%, 360px);
  height: auto;
  object-fit: contain;
}

.brand-label {
  margin: 15px 0 0;
  color: var(--interojo-blue);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.intro {
  margin: clamp(38px, 6vh, 70px) auto clamp(28px, 4.8vh, 46px);
  text-align: center;
}

.intro h1 {
  margin: 0;
  color: #11283b;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  line-height: 1.36;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.intro p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.mode-list {
  display: grid;
  gap: 16px;
}

.mode-card {
  position: relative;
  width: 100%;
  min-height: 154px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(28, 74, 104, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 88, 143, 0.52);
  background: #fbfdff;
  box-shadow: 0 16px 34px rgba(28, 74, 104, 0.12);
}

.mode-card:active {
  transform: translateY(0) scale(0.992);
}

.mode-card:focus-visible {
  outline: 4px solid rgba(7, 88, 143, 0.18);
  outline-offset: 3px;
  border-color: var(--interojo-blue);
}

.mode-card.is-selected {
  border-color: var(--interojo-blue);
  box-shadow: 0 0 0 3px rgba(7, 88, 143, 0.10), 0 14px 34px rgba(28, 74, 104, 0.12);
}

.mode-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
}

.mode-icon-design {
  background: #eaf4fa;
}

.lens-ring {
  position: relative;
  width: 38px;
  height: 38px;
  border: 4px solid var(--interojo-blue);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px #fff;
}

.lens-ring::after {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--interojo-orange);
  content: "";
}

.mode-icon-ar {
  border: 1px solid #ffd8ad;
  background: #fff4e7;
  color: #c76500;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.mode-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: center;
}

.mode-copy strong {
  color: #102638;
  font-size: clamp(1.02rem, 2.7vw, 1.25rem);
  line-height: 1.38;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.mode-title-en {
  margin-top: 3px;
  color: var(--interojo-blue);
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 750;
  line-height: 1.35;
}

.mode-card-ar .mode-title-en {
  color: #b85e00;
}

.mode-description,
.mode-description-en {
  color: var(--muted);
  line-height: 1.5;
  word-break: keep-all;
}

.mode-description {
  margin-top: 12px;
  font-size: clamp(0.78rem, 2vw, 0.9rem);
}

.mode-description-en {
  margin-top: 2px;
  font-size: clamp(0.67rem, 1.7vw, 0.77rem);
}

.mode-arrow {
  color: #7890a2;
  font-size: 1.45rem;
  font-weight: 400;
  transition: transform 180ms ease, color 180ms ease;
}

.mode-card:hover .mode-arrow,
.mode-card:focus-visible .mode-arrow {
  transform: translateX(3px);
  color: var(--interojo-blue);
}

.copyright {
  margin-top: auto;
  padding: clamp(28px, 5vh, 48px) 6px 0;
  color: #7a8994;
  font-size: clamp(0.67rem, 1.7vw, 0.77rem);
  line-height: 1.65;
  text-align: center;
  word-break: keep-all;
}

.selection-status {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 40, 59, 0.93);
  color: #fff;
  font-size: 0.78rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.selection-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 520px) {
  .app-viewport {
    padding: 0;
  }

  .home-panel {
    width: 100%;
    height: 100svh;
    min-height: 0;
    padding: max(34px, calc(env(safe-area-inset-top) + 18px)) 16px max(14px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-logo {
    width: min(62%, 224px);
  }

  .brand-label {
    margin-top: 6px;
    font-size: 0.65rem;
  }

  .intro {
    margin: 34px auto 32px;
  }

  .intro h1 {
    font-size: clamp(1.38rem, 6.7vw, 1.72rem);
    line-height: 1.3;
  }

  .intro p {
    margin-top: 7px;
  }

  .mode-list {
    gap: 10px;
  }

  .mode-card {
    min-height: 126px;
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    gap: 13px;
    padding: 15px 14px;
    border-radius: 18px;
  }

  .mode-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .lens-ring {
    width: 32px;
    height: 32px;
    border-width: 3px;
    box-shadow: inset 0 0 0 6px #fff;
  }

  .lens-ring::after {
    inset: 9px;
  }

  .mode-description {
    margin-top: 7px;
  }

  .copyright {
    padding-top: 16px;
    font-size: 0.64rem;
  }
}

@media (max-width: 520px) and (max-height: 720px) {
  .home-panel {
    padding-top: max(24px, calc(env(safe-area-inset-top) + 10px));
  }

  .brand-logo {
    width: min(56%, 198px);
  }

  .intro {
    margin: 28px auto 26px;
  }

  .mode-card {
    min-height: 116px;
    padding-block: 12px;
  }

  .mode-description {
    margin-top: 5px;
  }

  .copyright {
    padding-top: 10px;
  }
}

@media (min-width: 700px) and (min-height: 900px) {
  .mode-card {
    min-height: 166px;
    padding: 28px 26px;
  }
}

@media (max-height: 760px) and (min-width: 521px) {
  .home-panel {
    min-height: auto;
  }

  .intro {
    margin: 28px auto 24px;
  }

  .mode-card {
    min-height: 132px;
    padding-block: 18px;
  }

  .copyright {
    padding-top: 24px;
  }
}

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