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

:root {
  --primary: #24389C;
  --primary-light: #3F51B5;
  --secondary: #1B6D24;
  --surface: #F7F9FC;
  --on-surface: #191C1E;
  --on-surface-muted: #44474A;
  --accent-warm: #FFB865;
  --white: #FFFFFF;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Manrope', 'Noto Sans JP', 'Noto Sans KR', sans-serif; line-height: 1.25; }

a { color: var(--primary); }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--primary);
}
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-brand span { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.2rem; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--on-surface-muted);
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.lang-switch {
  display: flex; gap: 2px; background: rgba(0,0,0,0.04);
  border-radius: 999px; padding: 3px;
}
.lang-switch button {
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  color: var(--on-surface-muted);
  transition: background 0.2s, color 0.2s;
}
.lang-switch button.active {
  background: var(--primary); color: var(--white);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, var(--surface) 0%, #E8ECFA 50%, var(--surface) 100%);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-text h1 { font-size: 3rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.hero-text h1 span { color: var(--secondary); }
.hero-text p { font-size: 1.15rem; color: var(--on-surface-muted); margin-bottom: 32px; max-width: 480px; }
.hero-cta {
  display: inline-block; padding: 14px 32px;
  background: var(--primary); color: var(--white);
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem;
  border-radius: 12px; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: var(--primary-light); transform: translateY(-2px); }
.hero-image { display: flex; justify-content: center; }
.hero-image img {
  max-width: 420px; width: 100%; height: auto;
  filter: drop-shadow(0 20px 40px rgba(36, 56, 156, 0.18));
}

/* Generic section */
.section {
  padding: 100px 24px;
  max-width: 1100px; margin: 0 auto;
}
.section-tinted {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--surface) 0%, #E8ECFA 100%);
}
.section-tinted .section-inner { max-width: 1100px; margin: 0 auto; }
.section h2, .section-tinted h2 {
  text-align: center; font-size: 2rem; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
}
.section .subtitle, .section-tinted .subtitle {
  text-align: center; font-size: 1.05rem; color: var(--on-surface-muted);
  margin: 0 auto 60px; max-width: 640px;
}

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius); padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(36, 56, 156, 0.08);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-icon.blue { background: #E8ECFA; }
.feature-icon.green { background: #E4F3E6; }
.feature-icon.warm { background: #FFF0DB; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--on-surface-muted); }

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.step { text-align: center; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step img { max-width: 160px; margin: 16px auto; display: block; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1)); }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--on-surface-muted); max-width: 280px; margin: 0 auto; }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 24px;
}
.price-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(36, 56, 156, 0.12);
}
.price-card .badge {
  background: var(--primary); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px; text-transform: uppercase;
}
.price-card .credits {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 2.2rem; color: var(--primary); line-height: 1;
}
.price-card .credits-label { font-size: 0.95rem; color: var(--on-surface-muted); margin-top: 6px; }
.price-card .price {
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 1.8rem; color: var(--on-surface); margin-top: 18px;
}
.price-card .price-note { font-size: 0.85rem; color: var(--on-surface-muted); margin-top: 4px; }
.price-card .per-credit { font-size: 0.8rem; color: var(--on-surface-muted); margin-top: 10px; }

.pricing-note {
  text-align: center; font-size: 0.95rem; color: var(--on-surface-muted);
  max-width: 640px; margin: 0 auto;
}
.purchase-note {
  margin-top: 40px; padding: 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid rgba(0,0,0,0.06);
  text-align: center; max-width: 720px; margin-left: auto; margin-right: auto;
}
.purchase-note strong { color: var(--primary); }

/* Audience */
.audience-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.audience-card {
  background: var(--white); border-radius: var(--radius); padding: 36px;
  border: 1px solid rgba(0,0,0,0.06);
}
.audience-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.audience-card ul { list-style: none; }
.audience-card li {
  padding: 8px 0; font-size: 0.95rem; color: var(--on-surface-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.audience-card li::before { content: "\2713"; color: var(--secondary); font-weight: 700; flex-shrink: 0; }

/* Footer */
footer {
  padding: 48px 24px; text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--white);
}
footer .brand { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
footer p { font-size: 0.85rem; color: var(--on-surface-muted); margin-bottom: 4px; }
footer .footer-links {
  margin-top: 16px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
footer .footer-links a { font-size: 0.85rem; text-decoration: none; color: var(--primary); }
footer .footer-links a:hover { text-decoration: underline; }
footer .legal {
  margin-top: 18px; font-size: 0.8rem; color: var(--on-surface-muted);
  max-width: 640px; margin-left: auto; margin-right: auto;
}

/* Policy pages */
.policy {
  max-width: 800px; margin: 0 auto; padding: 140px 24px 80px;
}
.policy h1 {
  font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 8px;
}
.policy .meta { color: var(--on-surface-muted); font-size: 0.9rem; margin-bottom: 40px; }
.policy h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--primary);
  margin-top: 36px; margin-bottom: 12px;
}
.policy h3 { font-size: 1.05rem; font-weight: 700; margin-top: 20px; margin-bottom: 8px; }
.policy p, .policy li { font-size: 1rem; color: var(--on-surface); margin-bottom: 12px; }
.policy ul { padding-left: 22px; margin-bottom: 12px; }
.policy hr { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 32px 0; }
.policy .back-home {
  display: inline-block; margin-top: 40px; color: var(--primary);
  text-decoration: none; font-weight: 600;
}
.policy .back-home:hover { text-decoration: underline; }
.commerce-table {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0;
  margin: 24px 0 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.commerce-table dt,
.commerce-table dd {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.98rem;
  margin: 0;
}
.commerce-table dt {
  font-weight: 600;
  color: var(--on-surface);
  background: rgba(0,0,0,0.02);
}
.commerce-table dd { color: var(--on-surface); }
@media (max-width: 640px) {
  .commerce-table { grid-template-columns: 1fr; }
  .commerce-table dt { padding-bottom: 4px; border-bottom: none; }
  .commerce-table dd { padding-top: 4px; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 280px; }
  .hero-text h1 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .audience-grid { grid-template-columns: 1fr; }
}
