/* landing.css - 랭킹크루 프리미엄 랜딩 전용 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --navy-900: #07142B;
  --navy-700: #0D2347;
  --off-white: #FCF8FA;
  --pure-white: #FFFFFF;
  --neon-lime: #D7F205;
  --orange-gold: #F5A623;
  --warm-gray: #E9E5E7;
  
  --text-heading: #111111;
  --text-body: #4B4F58;
  --text-inverse: #FFFFFF;
  --text-muted-inverse: rgba(255, 255, 255, 0.72);
  
  /* Shadows */
  --shadow-card: 0 10px 30px rgba(7, 20, 43, 0.06);
  --shadow-elevated: 0 18px 40px rgba(7, 20, 43, 0.10);
  --shadow-glow: 0 0 24px rgba(215, 242, 5, 0.28);
  
  /* Radius */
  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-box: 24px;
  --radius-img: 20px;
  
  /* Fonts */
  --font-head: 'Lexend', 'Pretendard Variable', 'Pretendard', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Pretendard Variable', 'Pretendard', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-head);
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.text-inverse h1, .text-inverse h2, .text-inverse h3, .text-inverse h4, .text-inverse p {
  color: var(--text-inverse);
}
.text-muted-inverse {
  color: var(--text-muted-inverse) !important;
}
.text-body { color: var(--text-body) !important; }

/* Utilities */
.bg-navy-900 { background-color: var(--navy-900) !important; color: var(--text-inverse); }
.bg-navy-700 { background-color: var(--navy-700) !important; color: var(--text-inverse); }
.bg-off-white { background-color: var(--off-white) !important; }
.text-neon-lime { color: var(--neon-lime) !important; }
.text-orange-gold { color: var(--orange-gold) !important; }

/* Layout */
.container {
  max-width: 1280px;
  padding-left: 32px;
  padding-right: 32px;
}
.section-padding {
  padding: 140px 0;
}
@media (max-width: 768px) {
  .section-padding { padding: 80px 0; }
  .container { padding-left: 20px; padding-right: 20px; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 24px 0;
}
.site-header.scrolled,
.site-header.solid {
  background-color: rgba(7, 20, 43, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.site-header a {
  transition: color 0.2s ease;
}
.site-header a:hover {
  color: var(--neon-lime) !important;
}
/* 현재 페이지 메뉴 강조 */
.site-header nav a.active {
  color: var(--neon-lime) !important;
}

/* 모바일 오프캔버스 메뉴 */
#mobileMenu .offcanvas-body a:hover {
  background-color: rgba(255,255,255,0.06);
  color: var(--neon-lime) !important;
}

/* Buttons */
.btn-cta {
  background-color: var(--neon-lime);
  color: var(--navy-900);
  border-radius: var(--radius-pill);
  padding: 16px 40px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  display: inline-block;
  border: none;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(215, 242, 5, 0.5);
  color: var(--navy-900) !important;
}

.store-btn {
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.store-btn:hover {
  background-color: rgba(255,255,255,0.1) !important;
  transform: translateY(-2px);
  color: var(--pure-white) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  z-index: 1;
}
.hero-overlay {
  z-index: 2;
}
.hero-section .container {
  z-index: 3;
}

/* Brand Intro */
.intro-img-wrapper {
  position: relative;
  overflow: hidden;
}
.intro-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.intro-img-wrapper:hover img {
  transform: scale(1.05);
}
.intro-feature-icon {
  transition: all 0.3s ease;
}
.d-flex:hover .intro-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Stats Box */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}
.stat-box {
  background-color: var(--navy-700);
  padding: 30px;
  border-radius: var(--radius-box);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-card);
}

/* Mockup */
.mockup-container {
  position: relative;
}
.app-mockup {
  transition: transform 0.5s ease;
}
.app-mockup:hover {
  transform: translateY(-10px) !important;
}

/* 12 Features Card */
.feature-card {
  background-color: var(--pure-white);
  padding: 32px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--warm-gray);
}
.feature-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  opacity: 0.2;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(7, 20, 43, 0.04);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy-900);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
  background-color: var(--navy-900);
  color: var(--neon-lime);
}

/* Reviews */
.review-card {
  transition: transform 0.3s ease;
}
.review-card:hover {
  transform: translateY(-5px);
}

/* Footer Hover */
.hover-white {
  transition: color 0.2s ease;
}
.hover-white:hover {
  color: var(--pure-white) !important;
}

@media (max-width: 991px) {
  .hero-section .display-3 { font-size: 3rem; }
}
@media (max-width: 576px) {
  .hero-section .display-3 { font-size: 2.5rem; }
  .mockup-container { flex-direction: column; align-items: center; gap: 20px !important; }
  .app-mockup { transform: none !important; }
}

/* ===== Auth Pages (로그인 / 회원가입) ===== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 80px;
  background: radial-gradient(circle at 50% 0%, var(--navy-700) 0%, var(--navy-900) 60%);
}
.auth-card {
  background: var(--pure-white);
  border-radius: var(--radius-box);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-elevated);
}
.auth-card h2 {
  font-weight: 700;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-heading);
  letter-spacing: -0.03em;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.auth-card a {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
}
.auth-card a:hover { text-decoration: underline; }

.form-label-custom {
  display: block;
  color: var(--text-heading);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-control-custom {
  width: 100%;
  background: #fff;
  border: 1.5px solid #E3E0E5;
  color: var(--text-heading);
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.97rem;
  transition: all 0.2s ease;
}
.form-control-custom:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(7, 20, 43, 0.08);
}
.form-control-custom::placeholder { color: #B5B1B8; }

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--navy-900);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 20, 43, 0.25);
  color: #fff;
}
.btn-submit:disabled { opacity: 0.65; transform: none; box-shadow: none; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #9B97A0;
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E3E0E5;
}

.social-login-group { display: flex; flex-direction: column; gap: 10px; }
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-social:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-kakao { background: #FEE500; color: #191919; }
.btn-naver { background: #03C75A; color: #fff; }
.btn-google { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-apple { background: #000; color: #fff; }

/* 로딩 오버레이 / 스피너 */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 43, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.loading-overlay.active { display: flex; }
.spinner-custom { width: 3rem; height: 3rem; color: var(--neon-lime); }

@media (max-width: 576px) {
  .auth-wrapper { padding: 120px 16px 60px; }
  .auth-card { padding: 32px 24px; }
}

/* =========================================================
   앱(로그인 후) 페이지 공통 — 구 style.css 변수 호환 별칭
   mypage / profile_edit / point / terms 등이 참조
   ========================================================= */
:root {
  --bg-card: var(--pure-white);
  --bg-card-hover: #F4F1F3;
  --bg-input: #ffffff;
  --border-color: #E7E1E4;
  --text-primary: var(--text-heading);
  --text-secondary: var(--text-body);
  --text-muted: #9B97A0;
  --accent-red: #E0492F;
  --accent-orange: var(--orange-gold);
  --accent-green: #1F9D57;
  --radius-lg: 16px;
  --radius-sm: 12px;
  --radius-xl: 20px;
  --transition: all 0.2s ease;
  --shadow-lg: var(--shadow-elevated);
  --shadow-sm: var(--shadow-card);
}

/* ===== 마이페이지 레이아웃 ===== */
.page-wrapper { padding: 120px 0 60px; min-height: 100vh; }
.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--text-heading); }

.mypage-layout { display: flex; gap: 30px; width: 100%; margin: 0 auto; }
.mypage-sidebar { width: 240px; flex-shrink: 0; }
.mypage-content { flex: 1; min-width: 0; }

/* 사이드바 */
.sidebar-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 12px;
}
.sidebar-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(7, 20, 43, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; overflow: hidden;
}
.sidebar-avatar img { width: 64px; height: 64px; object-fit: cover; }
.sidebar-avatar i { font-size: 1.4rem; color: var(--navy-900); }
.sidebar-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; color: var(--text-heading); }
.sidebar-email { color: var(--text-muted); font-size: 0.8rem; }

.sidebar-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { background: rgba(7, 20, 43, 0.04); color: var(--text-primary); }
.sidebar-link.active {
  background: rgba(7, 20, 43, 0.06);
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--neon-lime);
}
.sidebar-link i { width: 20px; text-align: center; font-size: 0.85rem; }

.sidebar-toggle {
  display: none; width: 100%; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; margin-bottom: 16px; transition: var(--transition);
}
.sidebar-toggle:hover, .sidebar-toggle.active { background: var(--bg-card-hover); color: var(--text-primary); }

/* 포인트 요약 카드 */
.point-summary-card {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 30px; color: #fff;
  position: relative; overflow: hidden;
}
.point-summary-card::after {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 200px; height: 200px;
  background: rgba(215, 242, 5, 0.10); border-radius: 50%; pointer-events: none;
}
.point-total-label { font-size: 0.9rem; opacity: 0.85; margin-bottom: 4px; position: relative; }
.point-total-value { font-size: 2.2rem; font-weight: 800; position: relative; }
.point-detail { display: flex; gap: 24px; margin-top: 16px; position: relative; }
.point-detail-item { font-size: 0.85rem; opacity: 0.9; }
.point-detail-item span { display: block; font-weight: 700; font-size: 1.1rem; opacity: 1; }

/* 정보 카드 / 거래 내역 */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.info-card h5 {
  font-weight: 700; font-size: 1rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; color: var(--text-heading);
}
.text-accent { color: var(--navy-900) !important; }

.history-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border-color);
}
.history-item:last-child { border-bottom: none; }
.history-info .history-reason { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; color: var(--text-heading); }
.history-info .history-date { font-size: 0.8rem; color: var(--text-muted); }
.history-amount { font-weight: 700; font-size: 1rem; }
.history-amount.plus { color: var(--accent-green); }
.history-amount.minus { color: var(--accent-red); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state p { font-size: 0.95rem; }

/* 내 크루 카드 */
.crew-alert {
  background: rgba(224, 73, 47, 0.10);
  border: 1px solid rgba(224, 73, 47, 0.25);
  color: #b53a25;
  border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px;
}
.crew-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.crew-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); background: var(--bg-card);
  text-decoration: none; color: var(--text-heading);
  transition: var(--transition);
}
.crew-card:hover {
  border-color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.crew-card-logo {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--neon-lime); font-size: 1.2rem; overflow: hidden;
}
.crew-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.crew-card-body { flex: 1; min-width: 0; }
.crew-card-name {
  font-weight: 700; font-size: 0.98rem; display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap;
}
.crew-role-badge {
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  background: rgba(7, 20, 43, 0.07); color: var(--text-body);
}
.crew-role-badge.leader { background: rgba(143, 196, 0, 0.18); color: #557400; }
.crew-card-meta {
  display: flex; gap: 12px; margin-top: 5px;
  font-size: 0.78rem; color: var(--text-muted);
}
.crew-card-meta i { margin-right: 3px; }
.crew-card-arrow { color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 600px) { .crew-card-grid { grid-template-columns: 1fr; } }

/* 프로필 수정 이미지 */
.profile-image-edit { display: flex; align-items: center; gap: 20px; }
.profile-image-preview {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(7, 20, 43, 0.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.profile-image-preview img { width: 80px; height: 80px; object-fit: cover; }
.profile-image-preview i { font-size: 2rem; color: var(--navy-900); }

@media (max-width: 991px) {
  .mypage-layout { flex-direction: column; gap: 0; }
  .mypage-sidebar { width: 100%; display: none; margin-bottom: 20px; }
  .mypage-sidebar.open { display: block; }
  .sidebar-toggle { display: flex; align-items: center; gap: 8px; justify-content: center; }
  .sidebar-profile { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 20px; }
  .sidebar-avatar { width: 44px; height: 44px; margin: 0; }
  .sidebar-avatar img { width: 44px; height: 44px; }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 0; }
  .sidebar-link {
    flex: 1; min-width: calc(50% - 1px); justify-content: center;
    padding: 12px 16px; border-bottom: none;
    border-right: 1px solid var(--border-color); font-size: 0.85rem;
  }
  .sidebar-link.active { box-shadow: inset 0 3px 0 var(--neon-lime); }
  .sidebar-link:nth-child(2n) { border-right: none; }
  .sidebar-link:nth-child(n+3) { border-top: 1px solid var(--border-color); }
}
