:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --teal: #0d9488;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background-color: #f8fafc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 8px 0;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.btn-nav {
  padding: 7px 16px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  font-size: 0.85rem !important;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-nav:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Language Selector Dropdown */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
}

.lang-selector select {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  outline: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0369a1 100%);
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/bg_hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: #38bdf8;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--dark);
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-playstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  color: var(--primary);
}

.btn-playstore svg {
  width: 28px;
  height: 28px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-app-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
}

.hero-app-card img.main-icon {
  width: 130px;
  height: 130px;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.hero-app-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-app-pkg {
  font-size: 0.85rem;
  color: #94a3b8;
  font-family: monospace;
  margin-bottom: 14px;
}

.hero-meta-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
}

/* Feature Section */
.features-section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 56px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.25s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-box img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Characters Section */
.characters-section {
  background: #f1f5f9;
  padding: 90px 0;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.char-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  border: 1px solid var(--slate-200);
  transition: all 0.2s ease;
}

.char-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.char-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  image-rendering: pixelated;
  object-fit: contain;
}

.char-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.char-role {
  font-size: 0.8rem;
  color: var(--slate-400);
}

/* Play Console Compliance Box */
.compliance-section {
  padding: 80px 0;
  background: var(--white);
}

.compliance-box {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.compliance-content h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.compliance-content p {
  color: var(--slate-600);
  margin-bottom: 24px;
  font-size: 1rem;
}

.compliance-list {
  list-style: none;
}

.compliance-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.compliance-list svg {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 3px;
}

.compliance-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.policy-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  color: var(--dark);
  font-weight: 600;
  transition: all 0.2s ease;
}

.policy-card-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}

/* Policy Content Pages (Privacy, Terms, Data Deletion) */
.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 40px;
}

.page-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-meta {
  color: var(--slate-400);
  font-size: 0.9rem;
}

.policy-body {
  background: var(--white);
  padding: 60px 0 100px;
}

.policy-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.policy-wrapper h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-200);
}

.policy-wrapper h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 20px 0 10px;
}

.policy-wrapper p,
.policy-wrapper li {
  font-size: 1rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 12px;
}

.policy-wrapper ul,
.policy-wrapper ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.info-alert {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 0.95rem;
  color: #1e40af;
}

.alert-warning {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  color: #92400e;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1050px) {
  .nav-wrap {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
  .nav-links {
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .char-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compliance-box {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
