/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --surface-base: #ffffff;
  --surface-gray: #f5f5f7;
  --blue: #2768ff;
  --blue-link: #0066cc;
  --near-black: #171717;
  --text-primary: #111827;
  --subtext: #4b5563;
  --border: #e5e7eb;
  --radius-pill: 999px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-2xs: 6px;
  --radius-min: 4px;
  --font: 'Pretendard', 'Noto Sans SC', Arial, Helvetica, sans-serif;
  --nav-h: 64px;
  --container: 1200px;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-base);
}

a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-container {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 19px; font-weight: 700; color: var(--text-primary);
}
.nav-logo:hover { text-decoration: none; }
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  color: var(--text-primary); font-size: 15px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-xs);
  text-decoration: none;
}
.nav-links a:not(.btn-nav-cta):hover { background: var(--surface-gray); text-decoration: none; }
.lang-switcher { display: flex; align-items: center; gap: 4px; margin: 0 8px; }
.lang-switcher a { font-size: 13px; font-weight: 600; padding: 4px 6px; color: var(--subtext); }
.lang-switcher a.active { color: var(--blue); }
.lang-switcher .lang-sep { color: var(--border); font-size: 13px; }
.btn-nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: opacity .15s;
}
.btn-nav-cta:hover { opacity: .88; text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 0;
  font-size: 26px; cursor: pointer; padding: 4px 8px;
  color: var(--text-primary);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 700; text-decoration: none;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; text-decoration: none; }
.btn-secondary {
  display: inline-block; border: 2px solid var(--blue); color: var(--blue);
  padding: 12px 30px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 700; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-secondary:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ── Hero ── */
.hero {
  background: var(--surface-gray);
  background-image:
    linear-gradient(rgba(39,104,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,104,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 96px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block; background: rgba(39,104,255,.1);
  color: var(--blue); font-size: 13px; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); font-weight: 800;
  line-height: 1.15; color: var(--near-black);
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero h1 span { color: var(--blue); }
.hero p {
  font-size: 17px; color: var(--subtext); max-width: 560px;
  margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 32px; display: flex; gap: 32px; justify-content: center;
  flex-wrap: wrap; font-size: 13px; color: var(--subtext);
}
.hero-meta strong { color: var(--text-primary); }
.hero-img {
  margin: 56px auto 0; max-width: 860px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.hero-img img { width: 100%; }

/* ── Section ── */
section { padding: 80px 0; }
.section-gray { background: var(--surface-gray); }
.section-label {
  display: inline-block; background: rgba(39,104,255,.1);
  color: var(--blue); font-size: 13px; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  color: var(--near-black); margin-bottom: 16px; letter-spacing: -0.3px;
}
.section-sub { font-size: 17px; color: var(--subtext); max-width: 560px; margin-bottom: 52px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .section-sub { margin: 0 auto 0; }

/* ── Feature Grid ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--surface-base); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px 24px;
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.feature-icon {
  width: 44px; height: 44px; background: rgba(39,104,255,.1);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 14px;
}
.feature-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--subtext); line-height: 1.6; }

/* ── Stats ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.stat-card {
  padding: 32px 24px; background: var(--surface-base);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.stat-num { font-size: 40px; font-weight: 900; color: var(--blue); margin-bottom: 6px; }
.stat-label { font-size: 15px; color: var(--subtext); }

/* ── Format List ── */
.format-section { padding: 80px 0; }
.format-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.format-box h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.format-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.format-tag {
  background: var(--surface-gray); border: 1px solid var(--border);
  border-radius: var(--radius-2xs); padding: 4px 12px;
  font-size: 13px; font-weight: 600; color: var(--subtext);
}
.format-tag.highlight { background: rgba(39,104,255,.08); border-color: rgba(39,104,255,.2); color: var(--blue); }

/* ── Image Panel ── */
.img-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.img-panel.reverse { direction: rtl; }
.img-panel.reverse > * { direction: ltr; }
.img-panel img { border-radius: var(--radius-lg); width: 100%; }
.img-panel-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.img-panel-text p { font-size: 17px; color: var(--subtext); margin-bottom: 24px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { font-size: 15px; color: var(--subtext); display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.pricing-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; background: var(--surface-base); text-align: center;
}
.pricing-card.featured {
  border-color: var(--blue); background: rgba(39,104,255,.03);
  position: relative;
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
  padding: 4px 18px; border-radius: var(--radius-pill);
}
.pricing-name { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 900; color: var(--blue); margin-bottom: 4px; }
.pricing-price span { font-size: 19px; font-weight: 400; color: var(--subtext); }
.pricing-desc { font-size: 15px; color: var(--subtext); margin-bottom: 28px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.pricing-features li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ── History ── */
.history-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.history-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.history-table th {
  background: var(--surface-gray); padding: 12px 16px;
  text-align: left; font-weight: 700; border-bottom: 2px solid var(--border);
}
.history-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.history-table tr:last-child td { border-bottom: 0; }
.ver-badge {
  display: inline-block; background: rgba(39,104,255,.1); color: var(--blue);
  font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-2xs);
}

/* ── Download Page ── */
.dl-hero { background: var(--surface-gray); padding: 80px 0 64px; text-align: center; }
.dl-btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.dl-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 24px; text-align: center;
}
.dl-card-icon { font-size: 40px; margin-bottom: 14px; }
.dl-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.dl-card p { font-size: 15px; color: var(--subtext); margin-bottom: 20px; }
.sys-req { background: var(--surface-gray); border-radius: var(--radius-md); padding: 28px; }
.sys-req h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.sys-req ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sys-req ul li { font-size: 15px; color: var(--subtext); display: flex; gap: 8px; }
.sys-req ul li::before { content: "•"; color: var(--blue); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.contact-info p { font-size: 17px; color: var(--subtext); margin-bottom: 24px; }
.contact-detail { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon { font-size: 22px; }
.contact-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.contact-item p { font-size: 15px; color: var(--subtext); margin: 0; }

/* ── Privacy / Terms ── */
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.prose .updated { font-size: 13px; color: var(--subtext); margin-bottom: 40px; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 36px 0 12px; }
.prose p, .prose li { font-size: 17px; color: var(--subtext); line-height: 1.75; margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose ul li { margin-bottom: 6px; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--blue); color: #fff;
  padding: 72px 24px; text-align: center;
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-banner p { font-size: 17px; opacity: .88; max-width: 520px; margin: 0 auto 32px; }
.btn-white {
  display: inline-block; background: #fff; color: var(--blue);
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 700; text-decoration: none;
  transition: opacity .15s;
}
.btn-white:hover { opacity: .9; text-decoration: none; }

/* ── Footer ── */
.footer {
  background: var(--near-black); color: rgba(255,255,255,.75);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 15px; color: rgba(255,255,255,.5); margin-top: 12px; max-width: 260px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; }
.footer-logo-wrap span { font-size: 17px; font-weight: 700; color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: 8px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.4);
}
.footer-langs { display: flex; gap: 10px; }
.footer-langs a { color: rgba(255,255,255,.5); font-size: 13px; font-weight: 600; }
.footer-langs a:hover { color: #fff; }
.footer-langs span { color: rgba(255,255,255,.2); }

/* ── Responsive ── */
body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    width: 100%; height: auto;
    flex-direction: column; align-items: center; gap: 4px;
    background: var(--surface-base); padding: 24px 16px;
    overflow-y: auto; z-index: 999;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%; text-align: center; padding: 14px 0; font-size: 18px;
    border-bottom: 1px solid var(--border);
  }
  .lang-switcher { margin: 12px 0; }
  .btn-nav-cta { margin-top: 8px; text-align: center; width: 80%; }
  .nav-toggle { display: block; }

  .hero { padding: 60px 0 52px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-meta { gap: 16px; }

  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .format-cols { grid-template-columns: 1fr; }
  .img-panel { grid-template-columns: 1fr; }
  .img-panel.reverse { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .dl-card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
