/* ===================== 아신재단 (ASIN Foundation) ===================== */
:root {
  --navy: #24313d;
  --navy-deep: #16202a;
  --navy-soft: #34495e;
  --gold: #4dd9e8;
  --gold-light: #8aeaf2;
  --ivory: #f7fafb;
  --ivory-deep: #edf2f4;
  --ink: #263238;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'NanumSquareRound', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

.font-serif-kr {
  font-family: 'NanumSquareRound', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-weight: 800;
}

/* ---------- Utility ---------- */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.bg-navy { background-color: var(--navy); }
.bg-navy-deep { background-color: var(--navy-deep); }
.bg-ivory { background-color: var(--ivory); }
.bg-ivory-deep { background-color: var(--ivory-deep); }
.border-gold { border-color: var(--gold); }

.gold-gradient-text {
  background: linear-gradient(120deg, #8aeaf2 0%, #4dd9e8 50%, #22b8c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(120deg, #8aeaf2, #4dd9e8);
  color: #16202a;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(77, 217, 232, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(77, 217, 232, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ---------- Nav ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 1.15rem 0;
}
#site-header.scrolled {
  background: rgba(22, 32, 42, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 0.7rem 0;
}
.nav-link {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* mobile browser UI-aware viewport height */
  display: flex;
  align-items: center;
  background: #101a22;
  overflow: hidden;
}
#hero .hero-bg {
  position: absolute; inset: 0;
  background-image: url('/static/img/hero-hotel.png');
  background-image: image-set(
    url('/static/img/hero-hotel.webp') type('image/webp') 1x,
    url('/static/img/hero-hotel.png') type('image/png') 1x
  );
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
#hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,32,42,0.55) 0%, rgba(22,32,42,0.55) 35%, rgba(22,32,42,0.92) 100%);
}
#hero .hero-content { position: relative; z-index: 2; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(77,217,232,0.55);
  background: rgba(77,217,232,0.12);
  color: var(--gold-light);
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
@media (min-width: 480px) {
  .badge-pill { border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.02em; }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Fade-in on scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.18s; }
.stagger-3 { transition-delay: 0.28s; }
.stagger-4 { transition-delay: 0.38s; }

/* ---------- Section heading ---------- */
.section-eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

/* ---------- Value cards ---------- */
.value-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 6px 24px rgba(36,49,61,0.06);
  border: 1px solid rgba(36,49,61,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
@media (min-width: 640px) {
  .value-card { border-radius: 20px; padding: 2.2rem 1.8rem; }
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(36,49,61,0.12);
}
.value-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #34495e, #24313d);
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

/* ---------- Timeline (roadmap) ---------- */
.roadmap-track {
  position: relative;
}
.roadmap-line {
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(77,217,232,0.5) 0, rgba(77,217,232,0.5) 8px, transparent 8px, transparent 16px);
  display: none;
}
@media (min-width: 1024px) {
  .roadmap-line { display: block; }
}
.roadmap-node {
  position: relative;
  z-index: 2;
}
.roadmap-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin: 0 auto 0.9rem;
  box-shadow: 0 8px 18px rgba(36,49,61,0.18);
}
@media (min-width: 640px) {
  .roadmap-dot { width: 58px; height: 58px; font-size: 0.95rem; margin: 0 auto 1.1rem; }
}
.roadmap-dot.is-future {
  background: #fff;
  color: var(--navy);
  border-color: rgba(77,217,232,0.5);
}
.roadmap-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(36,49,61,0.07);
  min-height: auto;
}
@media (min-width: 768px) {
  .roadmap-card { padding: 1.4rem; min-height: 168px; }
}

/* ---------- Architecture Plan (Building stack) ---------- */
.building-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.zone-block {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(36,49,61,0.08);
  box-shadow: 0 6px 24px rgba(36,49,61,0.05);
  overflow: hidden;
}
.zone-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: #fff;
}
@media (min-width: 640px) {
  .zone-header { gap: 0.8rem; padding: 1.1rem 1.6rem; }
}
.zone-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(77,217,232,0.18);
  color: var(--gold-light);
  font-size: 0.88rem;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .zone-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
}
.zone-name {
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 0.92rem;
}
@media (min-width: 640px) {
  .zone-name { font-size: 1.02rem; }
}
.zone-floors {
  padding: 0.2rem 1.15rem 0.3rem;
}
@media (min-width: 640px) {
  .zone-floors { padding: 0.4rem 1.6rem 0.6rem; }
}
.floor-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(36,49,61,0.06);
}
.floor-row:last-child { border-bottom: none; }
.floor-badge {
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: var(--ivory-deep);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.74rem;
  border: 1px solid rgba(36,49,61,0.08);
}
@media (min-width: 640px) {
  .floor-badge { min-width: 62px; padding: 0.35rem 0.6rem; font-size: 0.82rem; }
}
.floor-info { flex: 1; min-width: 0; }
.floor-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: keep-all;
}
@media (min-width: 640px) {
  .floor-title { font-size: 0.98rem; }
}
.floor-desc {
  color: #6b7680;
  font-size: 0.78rem;
  margin-top: 0.15rem;
  line-height: 1.5;
  word-break: keep-all;
}
@media (min-width: 640px) {
  .floor-desc { font-size: 0.86rem; }
}
.floor-teams {
  color: #8b96a1;
  font-size: 0.72rem;
  margin-top: 0.35rem;
  line-height: 1.6;
  word-break: keep-all;
}
.floor-teams strong {
  color: #6b7680;
  font-weight: 700;
}
@media (min-width: 640px) {
  .floor-teams { font-size: 0.78rem; }
}

/* Highlighted zones */
.zone-executive .zone-header { background: linear-gradient(120deg, #16202a, #24313d); }
.zone-executive .floor-badge { background: linear-gradient(120deg, #8aeaf2, #4dd9e8); color: #16202a; border-color: transparent; }
.zone-hotel .zone-header { background: linear-gradient(120deg, #22b8c4, #4dd9e8); color: #16202a; }
.zone-hotel .zone-icon { background: rgba(22,32,42,0.12); color: #16202a; }
.zone-foundation .floor-badge { background: rgba(77,217,232,0.16); border-color: rgba(77,217,232,0.4); }

@media (min-width: 768px) {
  .floor-row { padding: 1rem 0; }
}
@media (max-width: 380px) {
  .floor-row { flex-direction: column; gap: 0.35rem; }
  .floor-badge { align-self: flex-start; }
}

/* ---------- Split image sections ---------- */
.img-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(36,49,61,0.18);
}
@media (min-width: 640px) {
  .img-frame { border-radius: 24px; box-shadow: 0 20px 50px rgba(36,49,61,0.18); }
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

/* ---------- Stats ---------- */
.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
}

/* ---------- Invest section ---------- */
#invest {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  position: relative;
  overflow: hidden;
}
#invest::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,217,232,0.18), transparent 70%);
}
.invest-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.3rem;
  backdrop-filter: blur(6px);
}
@media (min-width: 640px) {
  .invest-card { border-radius: 20px; padding: 1.8rem; }
}

/* ---------- Form ---------- */
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.45rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  font-size: 16px; /* prevent iOS Safari auto-zoom on focus */
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.13);
}
.form-field select option { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 1rem 1.1rem;
  gap: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .faq-item summary { padding: 1.2rem 1.4rem; font-size: 1rem; }
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chevron { transition: transform 0.25s ease; color: var(--gold); }
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(36,49,61,0.08);
  overflow: hidden;
}
.faq-item .faq-body { padding: 0 1.1rem 1.1rem; color: #4a4a4a; line-height: 1.7; font-size: 0.92rem; }
@media (min-width: 640px) {
  .faq-item .faq-body { padding: 0 1.4rem 1.3rem; font-size: 1rem; }
}
.faq-item summary .faq-chevron { flex-shrink: 0; }

/* ---------- Footer ---------- */
footer a { color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
footer a:hover { color: var(--gold-light); }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 200;
  padding: 1rem 1.3rem;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}
@media (min-width: 640px) {
  #toast { left: auto; bottom: 24px; right: 24px; min-width: 280px; max-width: 360px; }
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { background: #1e6b3f; }
#toast.error { background: #a3312c; }

/* ---------- Mobile nav ---------- */
#mobile-menu {
  position: fixed; inset: 0;
  background: rgba(22,32,42,0.98);
  z-index: 150;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.4rem;
  overflow-y: auto;
  padding: 5rem 1.5rem 3rem;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
#mobile-menu.open { transform: translateY(0); }
#mobile-menu a { color: #fff; font-size: 1.2rem; font-weight: 700; }
@media (min-width: 480px) {
  #mobile-menu { gap: 2rem; }
  #mobile-menu a { font-size: 1.4rem; }
}

/* ---------- Admin ---------- */
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
  font-size: 0.92rem;
}
.admin-table th { background: var(--ivory-deep); color: var(--navy); font-weight: 700; }
.status-pill {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-new { background: #fdecea; color: #b3261e; }
.status-contacted { background: #fff4e0; color: #a86b00; }
.status-closed { background: #e7f6ec; color: #1e6b3f; }
