/* ===== PrototyP.AI Global Styles ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gold-gradient: linear-gradient(135deg, #D4A843 0%, #f5d485 50%, #D4A843 100%);
  --dark-glass: rgba(15, 15, 30, 0.85);
  --border-glass: rgba(255,255,255,0.08);
  --text-muted: rgba(255,255,255,0.55);
}

html { scroll-behavior: smooth; }

body {
  background: #030712;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(99,102,241,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f1e; }
::-webkit-scrollbar-thumb { background: #4f46e5; border-radius: 3px; }

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.glass-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(99,102,241,0.15);
}

/* ─── Brand Button ─── */
.btn-brand {
  background: var(--brand-gradient);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-brand::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-brand:hover::before { left: 100%; }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(99,102,241,0.5); }
.btn-brand:active { transform: translateY(0); }

/* ─── Outline Button ─── */
.btn-outline {
  background: transparent;
  border: 1px solid rgba(99,102,241,0.5);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(99,102,241,0.15);
  border-color: #6366f1;
}

/* ─── GNB ─── */
.gnb {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3,7,18,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.gnb.scrolled { background: rgba(3,7,18,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.gnb-logo {
  font-size: 1.25rem;
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.gnb-menu { display: flex; gap: 0.2rem; align-items: center; }
.gnb-item {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.gnb-item:hover, .gnb-item.active {
  color: white;
  background: rgba(99,102,241,0.15);
}
.gnb-cta {
  padding: 0.5rem 1.3rem;
  font-size: 0.88rem;
}
.gnb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.gnb-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(3,7,18,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.3rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .gnb-item { padding: 0.85rem 1.2rem; font-size: 0.95rem; }

@media (max-width: 900px) {
  .gnb-menu { display: none; }
  .gnb-hamburger { display: flex; }
}

/* ─── Hero Section ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -100px; left: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: -100px; right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
}
.hero-content {
  text-align: center;
  max-width: 860px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 1.8rem;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 1rem 2.2rem; font-size: 1rem; border-radius: 14px; }
.btn-hero-outline { padding: 1rem 2.2rem; font-size: 1rem; border-radius: 14px; }

/* ─── Section ─── */
.section { padding: 100px 2rem; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  font-size: 0.75rem;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.section-desc { color: rgba(255,255,255,0.55); font-size: 1rem; margin-top: 1rem; line-height: 1.7; }

/* ─── Feature Cards ─── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.feature-card { padding: 2rem; cursor: default; }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ─── Pricing Tabs ─── */
.pricing-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.pricing-tab {
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  background: transparent;
  transition: all 0.3s ease;
}
.pricing-tab.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.pricing-tab:hover:not(.active) {
  border-color: rgba(99,102,241,0.4);
  color: white;
  background: rgba(99,102,241,0.1);
}
.pricing-panel { display: none; }
.pricing-panel.active { display: block; animation: fadeIn 0.4s ease-out; }

/* ─── Template Grid ─── */
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; max-width: 1200px; margin: 0 auto; }
.template-card {
  padding: 1.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.template-card:hover, .template-card.selected {
  border-color: #6366f1;
  background: rgba(99,102,241,0.1);
}
.template-card.selected { box-shadow: 0 0 0 2px rgba(99,102,241,0.5); }
.template-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.template-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem; }
.template-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1rem; }
.team-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.team-tag {
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
}

/* ─── Estimate Result ─── */
.estimate-result {
  max-width: 680px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.05));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 20px;
  animation: slideUp 0.5s ease-out;
}
.estimate-total { text-align: center; margin-bottom: 1.5rem; }
.estimate-amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
}
.estimate-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.compare-box {
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}
.compare-box.ours { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3); }
.compare-box.korean { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); }
.compare-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; }
.compare-value { font-size: 1.3rem; font-weight: 800; }

/* ─── Custom Estimate (Type C) ─── */
.custom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 1200px; margin: 0 auto; }
.job-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}
.job-card:hover { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.05); }
.job-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.job-info { flex: 1; }
.job-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.job-price { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.job-counter { display: flex; align-items: center; gap: 0.7rem; }
.counter-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.1);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.counter-btn:hover { background: rgba(99,102,241,0.3); }
.counter-num { font-size: 1.1rem; font-weight: 700; min-width: 20px; text-align: center; }

/* ─── Package Cards ─── */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.package-card {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.package-card.featured {
  border-color: rgba(212,168,67,0.5);
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(212,168,67,0.03));
  transform: scale(1.03);
}
.package-card:hover { transform: translateY(-5px); box-shadow: 0 25px 60px rgba(0,0,0,0.4); }
.package-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.package-badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.badge-popular { background: var(--gold-gradient); color: #1a1200; }
.badge-best { background: linear-gradient(135deg, #9BA4B5, #c8d0dc); color: #1a1a2e; }
.package-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.package-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }
.package-price { margin-bottom: 1.5rem; }
.package-amount { font-size: 2.2rem; font-weight: 900; }
.package-period { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.package-original { font-size: 0.85rem; color: rgba(255,255,255,0.4); text-decoration: line-through; margin-bottom: 0.3rem; }
.package-discount { font-size: 0.8rem; color: #4ade80; font-weight: 600; margin-bottom: 0.5rem; }
.package-members { margin-bottom: 1.5rem; }
.package-member { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.88rem; }
.package-member:last-child { border-bottom: none; }
.member-role { color: rgba(255,255,255,0.7); }
.member-count { font-weight: 600; color: #a5b4fc; }

/* ─── Process Timeline ─── */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #6366f1, #06b6d4);
  opacity: 0.3;
}
.timeline-item { display: flex; gap: 2rem; margin-bottom: 2.5rem; position: relative; }
.timeline-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(99,102,241,0.4);
}
.timeline-content { flex: 1; padding-top: 0.8rem; }
.timeline-step { font-size: 0.75rem; font-weight: 700; color: #818cf8; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.3rem; }
.timeline-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.timeline-duration { display: inline-block; padding: 0.2rem 0.8rem; border-radius: 20px; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25); font-size: 0.75rem; font-weight: 600; color: #a5b4fc; margin-top: 0.5rem; }

/* ─── Pilot Banner ─── */
.pilot-banner {
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.08));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.pilot-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(34,197,94,0.2);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

/* ─── Mypage ─── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 800; }
.stat-sub { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.3rem; }

.member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.member-card {
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}
.member-card:hover { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.06); }
.member-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  flex-shrink: 0;
}
.member-info { flex: 1; }
.member-name { font-weight: 600; font-size: 0.95rem; }
.member-role-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.3rem;
}
.member-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}

/* ─── Admin ─── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table td {
  padding: 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-pending { background: rgba(234,179,8,0.15); color: #facc15; }
.status-consulting { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-contracted { background: rgba(34,197,94,0.15); color: #4ade80; }
.price-input {
  width: 140px;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.price-input:focus { outline: none; border-color: #6366f1; }

/* ─── Chat Bot ─── */
.chatbot-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand-gradient);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  z-index: 9000;
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
  animation: glow 2s ease-in-out infinite alternate, float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.chatbot-fab:hover { transform: scale(1.1) !important; }

.chatbot-window {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  width: 380px;
  max-height: 550px;
  border-radius: 20px;
  background: rgba(15,15,30,0.97);
  border: 1px solid rgba(99,102,241,0.25);
  backdrop-filter: blur(20px);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  animation: slideUp 0.3s ease-out;
}
.chatbot-header {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.1));
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 0.8rem;
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.chat-title { font-weight: 700; font-size: 0.95rem; }
.chat-subtitle { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.chat-msg { max-width: 85%; animation: fadeIn 0.3s ease-out; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.chat-msg.bot .chat-bubble { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.2); }
.chat-msg.user .chat-bubble { background: var(--brand-gradient); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.quick-btn {
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.quick-btn:hover { background: rgba(99,102,241,0.25); color: white; }
.chatbot-input {
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; gap: 0.5rem;
}
.chat-text-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 0.85rem;
  font-family: inherit;
}
.chat-text-input:focus { outline: none; border-color: rgba(99,102,241,0.5); }
.chat-send {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-gradient);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.chat-send:hover { transform: scale(1.05); }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}
.modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0f0f1e;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 24px;
  padding: 2.5rem;
  animation: slideUp 0.3s ease-out;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.modal-close:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); }

/* ─── Form ─── */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.08);
}
.form-select option { background: #0f0f1e; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.3); }

/* ─── Toast ─── */
.toast {
  position: fixed;
  top: 5rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(15,15,30,0.95);
  border: 1px solid rgba(99,102,241,0.3);
  backdrop-filter: blur(20px);
  z-index: 9999;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 0.7rem;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }

/* ─── Tab Content ─── */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease-out; }
.tabs-nav {
  display: flex;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.tab-btn.active { color: #818cf8; border-bottom-color: #6366f1; }
.tab-btn:hover:not(.active) { color: rgba(255,255,255,0.8); }

/* ─── Misc Utility ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 0.5rem 0;
}
.shimmer-text {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.savings-bar {
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
  margin-top: 0.5rem;
}
.savings-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  transition: width 1s ease-out;
}

/* ─── Footer ─── */
.footer {
  padding: 5rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.3);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { font-size: 1.3rem; font-weight: 900; margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer-title { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; margin-bottom: 1rem; text-transform: uppercase; }
.footer-link { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-bottom: 0.7rem; cursor: pointer; transition: color 0.2s; }
.footer-link:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-social { display: flex; gap: 0.7rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.social-btn:hover { border-color: rgba(99,102,241,0.4); color: #a5b4fc; background: rgba(99,102,241,0.1); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .section { padding: 70px 1.2rem; }
  .hero { padding: 100px 1.2rem 60px; }
  .hero-stats { gap: 1.5rem; }
  .estimate-compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pilot-banner { text-align: center; justify-content: center; }
  .chatbot-window { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; }
  .modal-box { padding: 1.5rem; }
  .package-card.featured { transform: scale(1); }
  .package-card.featured:hover { transform: translateY(-5px); }
  .timeline::before { left: 22px; }
  .timeline-dot { width: 44px; height: 44px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .gnb { padding: 0 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-hero, .btn-hero-outline { width: 100%; max-width: 320px; text-align: center; }
  .package-grid { grid-template-columns: 1fr; }
  .chatbot-fab { bottom: 1.5rem; right: 1.5rem; width: 54px; height: 54px; font-size: 1.3rem; }
}

/* ─── Page sections hidden by default ─── */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.4s ease-out; }

/* ─── Chart container ─── */
.chart-container { position: relative; height: 260px; margin-top: 1.5rem; }

/* ─── Comparison Bar ─── */
.comparison-section {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .comparison-section { grid-template-columns: 1fr; } }
.bar-item { margin-bottom: 1.2rem; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.88rem; }
.bar-track { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; transition: width 1.5s ease-out; }
.bar-ours { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.bar-korea { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ─── Notification dot ─── */
.notif-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6366f1;
  vertical-align: middle;
  margin-left: 4px;
}

/* ─── Loading spinner ─── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glow {
  0% { box-shadow: 0 0 20px rgba(99,102,241,0.4), 0 8px 30px rgba(99,102,241,0.3); }
  100% { box-shadow: 0 0 40px rgba(99,102,241,0.7), 0 8px 40px rgba(99,102,241,0.5); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position: 200% center; } }
