:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --navy: #17324d;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --blue-soft: #eff6ff;
  --blue-badge: #dbeafe;
  --font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Global Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-logo:hover,
.brand-logo:focus {
  color: var(--navy);
  text-decoration: none;
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--blue-badge);
  padding: 2px 8px;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--navy);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.15s;
}

.header-cta:hover {
  background: var(--primary-dark);
}

/* 2. Hero Section */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Phone Mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 320px;
  background: #ffffff;
  border: 8px solid #0f172a;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.phone-screen {
  background: #f8fafc;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.mock-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
}

.mock-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--blue-badge);
  padding: 1px 6px;
  border-radius: 4px;
}

.mock-search {
  height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mock-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-card-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
}

.mock-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
}

.mock-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mock-btn {
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

/* 3. Three Pillars Section */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--blue-badge);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s, box-shadow 0.15s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.pillar-header {
  margin-bottom: 16px;
}

.pillar-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.tag-participant { background: #e0e7ff; color: #3730a3; }
.tag-staff { background: #dbeafe; color: #1e40af; }
.tag-gov { background: #d1fae5; color: #065f46; }

.pillar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-list li {
  font-size: 0.92rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

.pillar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s;
}

.pillar-btn.primary {
  background: var(--primary);
  color: #fff;
}
.pillar-btn.primary:hover { background: var(--primary-dark); }

.pillar-btn.outline {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
}
.pillar-btn.outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* 4. Values Section */
.values-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-badge);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.value-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.value-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 5. UI Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.showcase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.showcase-header {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.showcase-body {
  padding: 20px;
}

.showcase-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.showcase-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.showcase-demo-view {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* 6. Service Flow */
.flow-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.flow-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.flow-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.flow-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 900;
}

/* 7. Institutional Adoption Section */
.adoption-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2);
}

.adoption-card h2 {
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.adoption-card p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 28px;
}

.adoption-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.adoption-actions .btn-white {
  background: #fff;
  color: #1e3a8a;
  font-weight: 800;
}
.adoption-actions .btn-white:hover {
  background: #f8fafc;
}

.adoption-actions .btn-trans {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.adoption-actions .btn-trans:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 8. Status Note */
.status-note-bar {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 40px auto 0;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #78350f;
}

.status-badge {
  background: #fde68a;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
}

/* 9. Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 32px;
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #334155;
  margin-bottom: 24px;
}

.footer-brand h3 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-links h4 {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive (1024px & 390px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-mockup {
    order: 2;
  }
  .pillars-grid,
  .values-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .flow-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 40px 0;
  }
  .hero-content h1 {
    font-size: 1.85rem;
  }
  .hero-desc {
    font-size: 0.98rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .adoption-card {
    padding: 28px 18px;
  }
  .adoption-actions .btn {
    width: 100%;
  }
}
