/* ==========================================================
   파랑새 평생도메인 페이지
   Figma: 파랑새 오라이 / **평생도메인 페이지 (478:49171 모바일, 478:49579 PC)
   ========================================================== */

/* 재민고딕 3.0 — assets/fonts/ 에 폰트 파일을 넣을 것 (woff2 > otf > ttf 순으로 시도) */
@font-face {
  font-family: "Jaemin3.0";
  src: url("assets/fonts/Jaemin3-Regular.woff2") format("woff2"),
       url("assets/fonts/Jaemin3-Regular.otf") format("opentype"),
       url("assets/fonts/Jaemin3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f4f6;
  --text: #111111;
  --light-blue: #3d6cc4;   /* 라이트블루 */
  --blue: #3159a3;         /* 블루 */
  --navy: #183262;
  --font-sans: "SUIT Variable", "SUIT", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-brush: "Jaemin3.0", "JaeminGothic", "Nanum Brush Script", var(--font-sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 페이지 래퍼: PC에서 420px 카드를 중앙 배치 ---------- */
.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(61, 108, 196, 0) 50%, rgba(61, 108, 196, 0.05) 100%),
    var(--bg);
}

.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 30px 30px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(61, 108, 196, 0) 50%, rgba(61, 108, 196, 0.05) 100%),
    var(--bg);
}

/* ---------- 마스코트 ---------- */
.mascot {
  position: absolute;
  left: 95px;
  top: 181px;
  width: 428px;
  height: 240px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* ---------- 로고 ---------- */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.logo__feather {
  width: 48px;
  height: 50.23px;
  transform: rotate(-90deg) scaleY(-1);
  object-fit: cover;
}

.logo__text {
  font-family: var(--font-brush);
  font-size: 36.6px;
  letter-spacing: 1.83px;
  line-height: 1;
  color: var(--text);
}

/* ---------- 본문 ---------- */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 140px;
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__tags {
  display: flex;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--light-blue);
  white-space: nowrap;
}

.hero__title {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4;
  color: var(--text);
}

.hero__title strong {
  font-weight: 800;
}

/* ---------- 주소 영역 ---------- */
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

/* 최신 주소 카드 */
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 102px;
  padding: 0 15px 0 20px;
  border: 1px solid var(--light-blue);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}

.link-card:hover { box-shadow: 0 4px 16px rgba(61, 108, 196, 0.15); }
.link-card:active { transform: scale(0.99); }

.link-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--bg);
  flex-shrink: 0;
}

.link-card__icon img { display: block; }

.link-card__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.link-card__label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.link-card__url {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.72px;
  background: linear-gradient(90deg, #3d6cc4 0%, #38519a 50%, #183262 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.link-card__chevron { flex-shrink: 0; }

/* 다음 주소 */
.next-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  padding: 20px 15px;
  border-radius: 12px;
  background: rgba(61, 108, 196, 0.1);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--blue);
  white-space: nowrap;
}

/* 평생주소 배너 */
.banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 360 / 79.41;
  padding-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(270deg, var(--navy) 0%, var(--light-blue) 100%);
  text-decoration: none;
}

.banner__bg {
  position: absolute;
  top: 0;
  left: 17.12%;
  width: 65.75%;
  height: 99.36%;
  object-fit: cover;
}

.banner__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 20%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 75%, #000 80%);
}

.banner__title {
  position: absolute;
  top: -29.5%;
  left: 14.45%;
  width: 71.09%;
  height: 181.28%;
  object-fit: contain;
  pointer-events: none;
}

.banner__caption {
  position: relative;
  font-family: var(--font-brush);
  font-size: 14.8px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}

/* ---------- PC: 카드를 중앙에 띄우고 위쪽 여백 ---------- */
@media (min-width: 768px) {
  .card {
    min-height: 859px;
    padding: 50px 30px;
    background: transparent; /* 페이지 배경 그라데이션만 사용 */
  }
  .mascot { top: 201px; }
}

/* ---------- 초소형 화면 보정 ---------- */
@media (max-width: 360px) {
  .hero__tags { flex-wrap: wrap; }
  .hero__title { font-size: 28px; }
  .link-card__url { font-size: 20px; }
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(24, 50, 98, 0.92);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
a.next-box { text-decoration: none; }