/* ==========================================================================
   UriUs Web — 공유 스타일시트
   앱(urius-rn) Figma 디자인 토큰 기반: 다크 + 골든앰버 + 글래스모피즘
   source of truth: urius-rn/constants/colors.ts
   ========================================================================== */

:root {
  /* 배경 */
  --bg: #1d1c1c;
  --bg-deep: #0e0e0e;
  --surface: #272727;

  /* 액센트 */
  --gold: #ffcf6f;
  --gold-purple: #d4a8ff;
  --alert: #ff7049;

  /* 텍스트 */
  --text: #f2f2f7;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.4);

  /* 글래스 / 라인 */
  --card-fill: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* 골드 틴트 */
  --gold-subtle: rgba(255, 207, 111, 0.1);
  --gold-halo: rgba(255, 207, 111, 0.2);
  --gold-icon: rgba(255, 207, 111, 0.08);

  /* 형태 */
  --r-card: 16px;
  --r-btn: 12px;
  --r-pill: 100px;
  --shadow-float: 0 4px 20px rgba(0, 0, 0, 0.14);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.5);

  --maxw: 760px;
  --font: 'Pretendard', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  /* 은은한 골드 radial 글로우 — 상단/좌우로 퍼지는 시네마틱 분위기 */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 207, 111, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 8%, rgba(212, 168, 255, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 30%, rgba(255, 207, 111, 0.04), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   상단바 / 언어 토글 / 브랜드
   -------------------------------------------------------------------------- */
.topbar {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.brand img { width: 22px; height: 22px; display: block; }

.back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.back-link:hover { color: var(--gold); }

.header-left { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--card-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-faint);
  cursor: pointer;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.lang-btn:hover { color: var(--text-muted); }
.lang-btn.active { color: var(--bg-deep); background: var(--gold); font-weight: 600; }

/* --------------------------------------------------------------------------
   버튼 (골드 필)
   -------------------------------------------------------------------------- */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  padding: 14px 30px;
  border-radius: var(--r-btn);
  box-shadow: var(--shadow-float), 0 0 0 0 var(--gold-halo);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
.btn-store svg { width: 17px; height: 17px; }
.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float), 0 10px 34px rgba(255, 207, 111, 0.28);
}
.btn-store:active { transform: translateY(0); }

/* --------------------------------------------------------------------------
   랜딩 — 히어로
   -------------------------------------------------------------------------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 앱 로그인 화면처럼 — 격자 히어로 이미지 위에 텍스트를 얹는 컴포짓 히어로 */
.hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  margin-top: 22px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 60px 28px 52px;
  background: var(--bg-deep) url('hero.png') center center / cover no-repeat;
  box-shadow: var(--shadow-deep), inset 0 0 0 1px var(--hairline);
}
/* 텍스트 가독성용 스크림 + 하단 페이드(페이지 배경과 이음새 제거) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.15) 0%,
    rgba(14, 14, 14, 0) 26%,
    rgba(14, 14, 14, 0.55) 66%,
    var(--bg-deep) 100%
  );
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.logo {
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #ffffff 0%, #ffe9c0 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.5));
}

.hero-appicon {
  width: 106px;
  height: 106px;
  border-radius: 24px;
  margin: 0 0 20px;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(255, 207, 111, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-name {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}

.tagline {
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 30px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------------------
   랜딩 — 섹션 라벨 / 기능 카드 그리드
   -------------------------------------------------------------------------- */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 76px 0 26px;
  text-align: center;
}

.feature-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-card {
  background: var(--card-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-halo);
  background: var(--gold-subtle);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--gold-icon);
  border: 1px solid var(--gold-halo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--gold);
}
.feature-icon svg { width: 21px; height: 21px; display: block; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 7px;
  color: var(--text);
}

.feature-card p {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   랜딩 — 하단 CTA 밴드
   -------------------------------------------------------------------------- */
.cta-band {
  width: 100%;
  margin-top: 76px;
  padding: 44px 32px;
  border-radius: var(--r-card);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-halo);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta-band h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.35;
}
.cta-band p { font-size: 14px; color: var(--text-muted); margin-top: -8px; }

/* --------------------------------------------------------------------------
   푸터
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 24px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
footer p { font-size: 12px; color: var(--text-faint); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-faint); transition: color 0.15s; }
.footer-links a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   법적 문서 페이지 (privacy / terms / termsoflocation)
   -------------------------------------------------------------------------- */
.page-header {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
}

.content {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 90px;
}

.content h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.content .meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 34px;
}
.content h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--gold);
  margin: 38px 0 12px;
}
.content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}
.content p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 12px; }
.content ul { margin: 8px 0 14px; padding-left: 20px; }
.content li { font-size: 14.5px; color: var(--text-muted); margin-bottom: 7px; }
.content a { color: var(--gold); text-underline-offset: 3px; }
.content a:hover { text-decoration: underline; }
.content strong { color: var(--text); font-weight: 600; }

.info-box {
  background: var(--card-fill);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-btn);
  padding: 16px 20px;
  margin: 16px 0 22px;
}
.info-box p { margin-bottom: 6px; }
.info-box p:last-child { margin-bottom: 0; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14px;
  background: var(--card-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  overflow: hidden;
}
.content th,
.content td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  line-height: 1.55;
}
.content th {
  font-weight: 600;
  color: var(--text);
  background: var(--glass);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}
.content td { color: var(--text-muted); }
.content tr:last-child td { border-bottom: none; }
.content thead th:not(:last-child),
.content td:not(:last-child) { border-right: 1px solid var(--hairline); }

/* --------------------------------------------------------------------------
   언어 표시 토글 (body.ko / body.en)
   -------------------------------------------------------------------------- */
[lang-ko], [lang-en] { display: none; }
body.ko [lang-ko] { display: block; }
body.en [lang-en] { display: block; }
body.ko span[lang-ko], body.en span[lang-en] { display: inline; }

/* --------------------------------------------------------------------------
   등장 애니메이션
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   반응형
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .logo { font-size: 40px; letter-spacing: -1.5px; }
  .hero { padding: 32px 0 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-label { margin-top: 60px; }
  .cta-band { padding: 34px 22px; margin-top: 60px; }
  .cta-band h2 { font-size: 21px; }
  main { padding-bottom: 72px; }
  footer { flex-direction: column; align-items: flex-start; }
  .content h1 { font-size: 25px; }
  .topbar { padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual::before { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn-store, .feature-card { transition: none; }
}
