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

:root {
  --primary: #5B21B6;
  --primary-dark: #4C1D95;
  --primary-light: #7C3AED;
  --primary-soft: #EDE9FE;
  --accent: #A78BFA;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFC;
  --surface: #F8F7FC;
  --border: #E5E3ED;
  --border-strong: #D4D0E0;
  --text: #0F0A24;
  --text-secondary: #3F3A52;
  --text-muted: #8C8A99;
  --success: #10B981;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img {
  width: 36px; height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.2);
}
.logo-text {
  font-size: 20px; font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a:not(.btn) {
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
}
.nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 50%, #A78BFA 100%);
  color: #fff;
  padding: 120px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  max-width: 820px; margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-logo {
  width: 96px; height: 96px;
  border-radius: 24px;
  margin: 0 auto 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  border: 3px solid rgba(255,255,255,0.15);
  animation: floatY 3s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: 52px; font-weight: 900;
  line-height: 1.15; margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 19px; opacity: 0.92;
  margin-bottom: 40px; line-height: 1.6;
  font-weight: 400;
}
.hero-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.btn-primary {
  background: #fff;
  color: var(--primary);
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.btn-solid {
  background: var(--primary);
  color: #fff;
}
.btn-solid:hover { background: var(--primary-dark); color: #fff; }

/* Sections */
.section {
  padding: 100px 24px;
}
.section-alt { background: var(--bg-soft); }
.section-inner {
  max-width: 1140px; margin: 0 auto;
}
.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.section-title {
  font-size: 36px; font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}
.section-desc {
  text-align: center; color: var(--text-secondary);
  font-size: 17px; margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  line-height: 1.65;
}
.section-centered {
  text-align: center;
  margin-bottom: 56px;
}

/* Feature cards */
.features {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(91, 33, 182, 0.08);
  border-color: var(--accent);
}
.feature-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--primary);
}
.feature-icon-wrap svg {
  width: 28px; height: 28px;
  stroke-width: 2;
}

/* 숫자 단계 아이콘 */
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(91, 33, 182, 0.25);
}
.feature-title {
  font-size: 19px; font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 14.5px; color: var(--text-secondary);
  line-height: 1.7;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
  padding: 60px 40px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  margin-top: 40px;
}
.stat-item {
  padding: 20px 10px;
}
.stat-value {
  font-size: 44px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* 앱 미리보기 */
.app-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.phone-mockup {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 19;
  background: #0F0A24;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(91, 33, 182, 0.2), 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.phone-mockup:hover { transform: translateY(-6px); }
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #0F0A24;
  border-radius: 20px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #EDE9FE 0%, #FFFFFF 40%);
  display: flex; flex-direction: column;
  align-items: center;
  padding: 48px 20px 24px;
  text-align: center;
}
.phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone-screen-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.phone-screen-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.phone-screen-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.phone-mock-content {
  width: 100%;
  margin-top: 8px;
}
.phone-mock-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 6px;
  font-size: 9.5px;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.4;
}
.phone-mock-row strong { color: var(--text); font-weight: 700; }
.phone-mock-row.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.phone-mock-row.active strong { color: #fff; }
.phone-mock-seats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 10px;
}
.phone-mock-seat {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--border);
  font-size: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
}
.phone-mock-seat.selected { background: var(--primary); color: #fff; }
.phone-mock-seat.taken { background: var(--border); opacity: 0.4; }

.preview-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.preview-caption-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .app-preview { grid-template-columns: 1fr; gap: 40px; }
  .phone-mockup { max-width: 220px; }
}

/* App Store / Google Play 공식 배지 */
.store-badges {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 8px;
}
.store-badge {
  display: inline-flex; align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 180px;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  color: #fff; text-decoration: none;
}
.store-badge-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.store-badge-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.store-badge-small {
  font-size: 11px; font-weight: 400;
  opacity: 0.9;
}
.store-badge-large {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 100%);
  color: #fff;
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 {
  font-size: 36px; font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta p {
  font-size: 17px;
  opacity: 0.92;
  margin-bottom: 36px;
}

/* Doc page */
.doc-page {
  max-width: 820px; margin: 0 auto;
  padding: 80px 24px 100px;
}
.doc-page h1 {
  font-size: 38px; font-weight: 800;
  margin-bottom: 12px; letter-spacing: -0.02em;
  color: var(--text);
}
.doc-meta {
  color: var(--text-muted); font-size: 13px;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--primary-soft);
}
.doc-page h2 {
  font-size: 22px; font-weight: 800;
  margin: 48px 0 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.doc-page h3 {
  font-size: 17px; font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text);
}
.doc-page p {
  font-size: 15px; color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}
.doc-page ul, .doc-page ol {
  margin: 0 0 20px 24px; color: var(--text-secondary);
}
.doc-page li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.75;
}
.doc-page table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.doc-page th, .doc-page td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.doc-page th {
  background: var(--primary-soft);
  font-weight: 700;
  color: var(--primary);
}
.doc-page tr:last-child td { border-bottom: none; }
.doc-page tr:hover td { background: var(--bg-soft); }

/* Company info table */
.company-table {
  background: #fff;
  border-radius: 16px; padding: 8px 28px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.04);
}
.company-row {
  display: flex; padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.company-row:last-child { border-bottom: none; }
.company-label {
  flex: 0 0 160px; font-weight: 700;
  color: var(--text); font-size: 14px;
}
.company-value {
  flex: 1; color: var(--text-secondary); font-size: 14.5px;
}

/* Footer */
.site-footer {
  background: #0F0A24;
  color: #A8A5B8;
  padding: 64px 24px 40px;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 40px; margin-bottom: 48px;
}
.footer-brand-section { max-width: 360px; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 20px; font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.footer-brand img {
  width: 36px; height: 36px; border-radius: 10px;
}
.footer-tagline {
  font-size: 13px;
  color: #8C8A99;
  line-height: 1.7;
}
.footer-links-section {
  display: flex; gap: 60px;
}
.footer-links-group { display: flex; flex-direction: column; gap: 10px; }
.footer-links-title {
  color: #fff; font-size: 13px; font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.footer-links-group a {
  color: #A8A5B8; font-size: 13.5px;
  transition: color 0.2s;
}
.footer-links-group a:hover {
  color: #fff; text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid #1F1A3D;
  padding-top: 28px;
  font-size: 12px;
  line-height: 1.9;
  color: #8C8A99;
}
.footer-bottom strong { color: #D4D0E0; font-weight: 600; }
.footer-copyright {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #1F1A3D;
  font-size: 12px;
  color: #6C6A75;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 70px; }
  .hero-logo { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 24px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .section { padding: 70px 20px; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; margin-bottom: 48px; }
  .cta { padding: 70px 20px; }
  .cta h2 { font-size: 26px; }
  .doc-page { padding: 48px 20px 70px; }
  .doc-page h1 { font-size: 28px; }
  .nav { display: none; }
  .company-row { flex-direction: column; gap: 6px; padding: 16px 0; }
  .company-label { flex: none; font-size: 13px; color: var(--text-muted); }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links-section { gap: 40px; flex-wrap: wrap; }
  .stats { padding: 40px 20px; gap: 20px; }
  .stat-value { font-size: 36px; }
  .btn { width: 100%; justify-content: center; }
  .hero-buttons { flex-direction: column; }
}
