/* EonVPN Mirror Site — style.css
   Design tokens from EonVPN DESIGN.md (SeoulNamsan + LibreBaskerville palette)
*/
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital@1&display=swap');

:root {
  /* EonVPN brand tokens from DESIGN.md */
  --brand-blue: #2656ff;
  --deep-navy: #07222d;
  --pure-black: #000000;
  --surface-white: #ffffff;
  --blue-tint: #e9eeff;
  --pale-blue: #f9faff;
  --border-gray: #e5e7eb;
  --soft-blue-border: #afc0ff;

  /* Semantic mappings */
  --primary: var(--brand-blue);
  --primary-dark: #1a3fd9;
  --dark: var(--deep-navy);
  --header-bg: var(--surface-white);
  --bg: var(--surface-white);
  --surface: var(--pale-blue);
  --surface-2: var(--blue-tint);
  --text: var(--deep-navy);
  --text-body: var(--pure-black);
  --text-muted: #4a5568;
  --border: var(--border-gray);
  --green: #16a34a;

  /* Radius tokens from DESIGN.md */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Spacing tokens */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  --shadow-card: 0 1px 4px rgba(7,34,45,.08);
  --shadow-lg: 0 8px 32px rgba(7,34,45,.12);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: SeoulNamsan, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px; line-height: 1.6; color: var(--text-body); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.2; color: var(--deep-navy); font-weight: 400; }

.serif-em {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  color: var(--brand-blue);
}

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 64px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: var(--pure-black); font-size: 16px; font-weight: 400;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--brand-blue); background: var(--blue-tint); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0; margin-left: auto;
}

/* mobile-only language row inside the menu; hidden on desktop */
.mobile-lang { display: none; }

/* ─── DROPDOWN / LANGUAGE SWITCHER ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel-inner {
  background: var(--surface-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; }

.lang-btn {
  background: none; border: 1px solid var(--border);
  color: var(--pure-black); padding: 6px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; display: flex; align-items: center; gap: 6px;
  transition: border-color var(--transition);
  font-family: inherit;
}
.lang-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.lang-btn i { font-size: 11px; }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: var(--deep-navy); color: var(--surface-white);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 400; font-family: inherit;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-cta:hover { background: var(--brand-blue); text-decoration: none; transform: translateY(-1px); }
.btn-cta.btn-lg {
  padding: 14px 32px; font-size: 18px;
}

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--deep-navy); font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── BADGE PILL ─── */
.badge-pill {
  display: inline-block;
  background: var(--blue-tint); color: var(--brand-blue);
  border-radius: var(--radius-md); padding: 8px 16px;
  font-size: 16px; font-family: inherit;
  margin-bottom: 24px;
}

/* ─── HERO ─── */
.hero-eon {
  background: var(--pale-blue);
  color: var(--deep-navy); text-align: center;
  padding: var(--space-xl) var(--space-sm) 0;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-eon h1 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.13; font-weight: 400;
  color: var(--deep-navy);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 18px); color: var(--pure-black);
  margin-bottom: 32px; max-width: 640px;
  margin-left: auto; margin-right: auto; line-height: 1.5;
}
.hero-cta { margin-bottom: 16px; display: flex; justify-content: center; }
.hero-note { font-size: 14px; color: var(--text-muted); margin-bottom: 48px; }
.hero-img { margin-top: 48px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.hero-img img { width: 100%; height: 380px; object-fit: cover; }

/* ─── STATS ROW ─── */
.stats-row { background: var(--deep-navy); padding: 40px var(--space-sm); }
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 700; color: var(--brand-blue); line-height: 1; }
.stat-label { display: block; font-size: 14px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* ─── FEATURES ─── */
.features { padding: var(--space-xl) var(--space-sm); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.feature-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.feature-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .feature-grid--2col { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--pale-blue); border: 1px solid var(--soft-blue-border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-card i { font-size: 28px; color: var(--brand-blue); margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 20px; font-weight: 400; margin-bottom: 10px; color: var(--deep-navy); }
.feature-card p { font-size: 16px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── SPLIT ROW ─── */
.split-row { padding: var(--space-xl) var(--space-sm); }
.split-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.split-img { border-radius: var(--radius-lg); overflow: hidden; }
.split-img img { width: 100%; height: 360px; object-fit: cover; }
.split-text h2 { font-size: clamp(24px, 3.5vw, 40px); margin-bottom: 20px; }
.split-text p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

/* ─── IMAGE STRIP ─── */
.image-strip { padding: 0 var(--space-sm) var(--space-xl); }
.strip-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
}
.strip-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.strip-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── STEPS ─── */
.steps { padding: var(--space-xl) var(--space-sm); background: var(--pale-blue); }
.steps .section-head { margin-bottom: 48px; }
.steps-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md);
}
.step-card {
  background: var(--surface-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  text-align: center;
}
.step-num {
  width: 48px; height: 48px; background: var(--brand-blue); color: var(--surface-white);
  border-radius: var(--radius-pill); font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step-card h3 { font-size: 20px; margin-bottom: 12px; }
.step-card p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* ─── DOWNLOAD PAGE ─── */
.download-section { padding: var(--space-xl) var(--space-sm); }
.download-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.dl-hero-img { border-radius: var(--radius-lg); overflow: hidden; }
.dl-hero-img img { width: 100%; height: 360px; object-fit: cover; }
.dl-content h2 { font-size: clamp(22px, 3vw, 36px); margin-bottom: 16px; }
.dl-content p { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.dl-list { margin-bottom: 32px; }
.dl-list li { padding: 8px 0; font-size: 16px; display: flex; align-items: flex-start; gap: 10px; }
.dl-list li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }

/* ─── PRICING ─── */
.pricing-section { padding: var(--space-xl) var(--space-sm); }
.pricing-grid {
  max-width: 600px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: var(--space-md);
}
.pricing-card {
  background: var(--surface-white); border: 2px solid var(--brand-blue);
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center;
}
.pricing-featured { box-shadow: 0 0 0 4px rgba(38,86,255,.08); }
.plan-badge {
  display: inline-block; background: var(--brand-blue); color: var(--surface-white);
  padding: 4px 16px; border-radius: var(--radius-pill); font-size: 14px;
  margin-bottom: 16px;
}
.pricing-card h3 { font-size: 26px; margin-bottom: 16px; color: var(--deep-navy); }
.plan-price { margin-bottom: 16px; }
.price-amount { font-size: 56px; font-weight: 700; color: var(--deep-navy); }
.price-period { font-size: 16px; color: var(--text-muted); margin-left: 4px; }
.plan-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.plan-features { margin-bottom: 32px; text-align: left; }
.plan-features li { padding: 8px 0; font-size: 16px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }

/* ─── FAQ ─── */
.faq { padding: var(--space-xl) var(--space-sm); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 18px; font-weight: 400;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--deep-navy); font-family: inherit;
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--brand-blue); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--deep-navy);
  color: var(--surface-white); text-align: center;
  padding: 72px var(--space-sm) var(--space-xl);
}
.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 400; margin-bottom: 16px; color: var(--surface-white); }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.8); margin: 0; }

/* ─── PROSE ─── */
.prose { padding: var(--space-xl) var(--space-sm); }
.prose-inner { max-width: 780px; margin: 0 auto; font-size: 16px; line-height: 1.8; }
.prose-inner h2 { font-size: 24px; margin-top: 40px; margin-bottom: 12px; }
.prose-inner p { margin-bottom: 16px; color: var(--text-muted); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--deep-navy); color: rgba(255,255,255,.7);
  padding: var(--space-xl) var(--space-sm) var(--space-md);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-logo-row { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-sm); }
.footer-logo-clip { width: 36px; height: 36px; overflow: hidden; flex-shrink: 0; }
.footer-logo-clip .logo-footer { height: 36px; width: auto; max-width: none; display: block; }
.footer-brand-name { color: #ffffff; font-size: 20px; font-weight: 400; line-height: 1; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--surface-white); font-size: 14px; font-weight: 600; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--surface-white); text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-sm);
}
.footer-bottom p { font-size: 13px; margin: 0; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 8px; }
  .nav-links {
    display: none;
    position: fixed; top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface-white);
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
    padding: 12px 0;
    z-index: 999;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 17px; color: var(--deep-navy); }

  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }

  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid var(--border);
    width: 100%;
  }
  .nav-links li.mobile-lang a {
    display: inline-block; width: auto;
    padding: 4px 10px; font-size: 15px; line-height: 1.4;
    white-space: nowrap; color: var(--text-muted);
  }
  .nav-links li.mobile-lang a.active { color: var(--brand-blue); font-weight: 600; }

  .split-inner { grid-template-columns: 1fr; gap: 32px; }
  .strip-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 16px; }
  .hero-img img { height: 220px; }

  .btn-cta, .hero-cta a {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: max-content;
    max-width: 90%;
  }
  .hero-cta { flex-direction: column; align-items: center; }
}

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