:root {
  --primary: #03C75A;
  --primary-hover: #02b351;
  --primary-light: #e8f9f0;
  --secondary: #2563eb;
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-dim: #475569;
  --ink-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-bottom: 0 -4px 12px rgba(0,0,0,0.05);
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', 'Pretendard', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; word-break: keep-all; overflow-wrap: break-word; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Add padding at bottom for the floating bar */
  padding-bottom: 90px; 
}

.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 1120px;
    padding: 0 24px;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
}

.logo-group {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 18px; letter-spacing: -0.5px;
}
.logo-icon { font-size: 22px; }

.nav-links { display: none; }
.header .btn-large { display: none; }

@media (min-width: 768px) {
  .header { height: 72px; padding-top: 0; }
  .logo-group { font-size: 20px; gap: 8px; }
  .logo-icon { font-size: 24px; }
  .nav-links { display: flex; gap: 32px; }
  .nav-link {
    text-decoration: none; color: var(--ink-dim);
    font-weight: 600; font-size: 15px; transition: color 0.2s;
  }
  .nav-link:hover { color: var(--primary); }
  .header .btn-large { display: inline-flex; }
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #f0fdf4 0%, var(--bg-color) 100%);
  position: relative;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--primary-light);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 32px; font-weight: 800; line-height: 1.35;
  letter-spacing: -1px; margin-bottom: 16px;
}
.hero-title em { font-style: normal; color: var(--primary); }
.hero-title .hero-sub { color: var(--ink); }
.glow { position: relative; z-index: 1; }
.glow::after {
  content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 8px;
  background: var(--primary-light); z-index: -1; border-radius: 4px;
}

.hero-desc {
  font-size: 15px; color: var(--ink-dim);
  margin: 0 auto 32px; line-height: 1.6; word-break: keep-all;
}

.btn-large {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; border-radius: var(--radius-md);
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 0.1s, background 0.2s, filter 0.2s;
  width: 100%;
}
.btn-large:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(3, 199, 90, 0.25);
}
.btn-primary:active { background: var(--primary-hover); }

.btn-secondary {
  background: #fff; color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(3, 199, 90, 0.12);
}
.btn-secondary:active { background: var(--primary-light); }

.hero-actions { display: none; } /* Hidden on mobile in favor of bottom bar */

/* Illustration placeholder */
.hero-illus {
  margin-top: 40px; width: 100%; height: 260px;
  background: #fff; border-radius: 20px; margin-inline: auto;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-illus-circle1 { position: absolute; top: -30px; left: -30px; width: 150px; height: 150px; background: var(--primary-light); border-radius: 50%; opacity: 0.5; }
.hero-illus-circle2 { position: absolute; bottom: -50px; right: -50px; width: 200px; height: 200px; background: #e0f2fe; border-radius: 50%; opacity: 0.5; }
.hero-illus-content { text-align: center; z-index: 1; padding: 0 20px; }
.hero-illus-icon { font-size: 56px; margin-bottom: 12px; }
.hero-illus-text { font-size: 18px; font-weight: 800; color: var(--ink); word-break: keep-all; line-height: 1.4; }

@media (min-width: 768px) {
  .hero { padding: 160px 0 100px; }
  .hero-badge { font-size: 14px; padding: 6px 16px; margin-bottom: 24px; }
  .hero-title { font-size: 56px; letter-spacing: -1.5px; margin-bottom: 24px; }
  .glow::after { bottom: 4px; height: 12px; }
  .hero-desc { font-size: 20px; max-width: 600px; margin-bottom: 40px; }
  .btn-large { width: auto; padding: 18px 36px; border-radius: var(--radius-full); font-size: 18px; }
  .btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(3, 199, 90, 0.4); }
  .hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
  .hero-illus { max-width: 800px; height: 350px; margin-top: 60px; border-radius: 24px; }
  .hero-illus-circle1 { width: 200px; height: 200px; top: -50px; left: -50px; }
  .hero-illus-circle2 { width: 300px; height: 300px; bottom: -80px; right: -80px; }
  .hero-illus-icon { font-size: 80px; margin-bottom: 20px; }
  .hero-illus-text { font-size: 24px; }
  body { padding-bottom: 0; }
}

/* Feature/Level Cards Section */
.levels-section { padding: 60px 0; }
.section-title { text-align: left; margin-bottom: 32px; }
.section-title h2 { font-size: 24px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; line-height: 1.3; }
.section-title p { font-size: 15px; color: var(--ink-dim); word-break: keep-all; }

.grid-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.level-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s;
  display: flex; flex-direction: column;
}
.level-card:active { transform: scale(0.98); background: #f8fafc; }

.level-card.featured {
  border: 1.5px solid var(--primary);
}

.card-meta { display: flex; justify-content: space-between; margin-bottom: 12px; }
.card-level-num { font-size: 13px; font-weight: 800; color: var(--ink-light); letter-spacing: 1px; }
.card-badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 20px; }
.badge-hot { background: var(--primary-light); color: var(--primary); }

.card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 14px; color: var(--ink-dim); margin-bottom: 16px; }

.card-feature-title { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.card-features { list-style: none; margin-bottom: 0; flex: 1; }
.card-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; margin-bottom: 8px; color: var(--ink-dim); line-height: 1.4; }
.card-features li::before { content: '✓'; color: var(--primary); font-weight: 800; }

.levels-section .btn-large { display: none; } /* Hidden on mobile */

@media (min-width: 768px) {
  .levels-section { padding: 100px 0; }
  .section-title { text-align: center; margin-bottom: 50px; }
  .section-title h2 { font-size: 32px; margin-bottom: 12px; }
  .section-title p { font-size: 18px; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); display: grid; gap: 24px; margin-bottom: 80px; }
  .level-card { border-radius: var(--radius-lg); padding: 32px; }
  .level-card:active { transform: none; background: var(--surface); }
  .level-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .level-card.featured { border: 2px solid var(--primary); transform: scale(1.02); box-shadow: var(--shadow-md); }
  .level-card.featured:hover { transform: scale(1.02) translateY(-5px); }
  .card-meta { margin-bottom: 16px; }
  .card-level-num { font-size: 14px; }
  .card-badge { font-size: 12px; padding: 4px 10px; }
  .card-title { font-size: 24px; margin-bottom: 12px; }
  .card-desc { font-size: 15px; margin-bottom: 24px; min-height: 66px; }
  .card-feature-title { font-size: 13px; margin-bottom: 16px; padding-bottom: 8px; }
  .card-features { margin-bottom: 32px; }
  .card-features li { font-size: 14.5px; margin-bottom: 12px; }
  .levels-section .btn-large { display: inline-flex; padding: 16px 40px; }
}

/* Trust Section */
.trust-section { background: #fff; padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: flex; flex-direction: column; gap: 32px; }
.trust-item { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
.trust-icon-box { font-size: 32px; flex-shrink: 0; }
.trust-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.trust-item p { font-size: 14px; color: var(--ink-dim); word-break: keep-all; line-height: 1.5; }

@media (min-width: 768px) {
  .trust-section { padding: 80px 0; }
  .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .trust-item { text-align: center; display: block; }
  .trust-icon-box { font-size: 40px; margin-bottom: 20px; }
  .trust-item h3 { font-size: 20px; margin-bottom: 12px; }
  .trust-item p { font-size: 15px; }
}

/* FAQ */
.faq-section { padding: 60px 0; background: var(--bg-color); }
.faq-list { width: 100%; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px; font-size: 15px; font-weight: 700; cursor: pointer; user-select: none; }
.faq-question:active { background: #f8fafc; }
.faq-icon { font-size: 20px; font-weight: 400; transition: transform 0.3s; color: var(--ink-light); }
.faq-answer { padding: 0 16px; max-height: 0; opacity: 0; transition: all 0.3s ease; color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
.faq-item.active .faq-answer { padding: 0 16px 16px; max-height: 500px; opacity: 1; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--primary); }

@media (min-width: 768px) {
  .faq-section { padding: 80px 0; }
  .faq-list { max-width: 800px; margin: 0 auto; }
  .faq-item { margin-bottom: 16px; }
  .faq-question { padding: 20px 24px; font-size: 16px; }
  .faq-question:active { background: transparent; }
  .faq-answer { padding: 0 24px; font-size: 15px; }
  .faq-item.active .faq-answer { padding: 0 24px 20px; }
}

/* Footer */
.footer { background: #fff; padding: 40px 0; border-top: 1px solid var(--border); margin-bottom: env(safe-area-inset-bottom); }
.footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.footer-logo { font-size: 16px; font-weight: 800; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; color: var(--ink-dim); font-size: 13px; font-weight: 500; }
.footer-info { font-size: 13px; color: var(--ink-light); margin-bottom: 16px; line-height: 1.5; }
.footer-disclaimer { font-size: 11px; color: var(--ink-light); background: #f8fafc; padding: 12px; border-radius: 8px; line-height: 1.5; }

@media (min-width: 768px) {
  .footer { padding: 60px 0; margin-bottom: 0; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 30px; }
  .footer-logo { font-size: 18px; }
  .footer-links { gap: 24px; }
  .footer-links a { font-size: 14px; }
  .footer-info { font-size: 14px; }
  .footer-disclaimer { font-size: 12px; padding: 16px; }
}

/* Mobile Bottom Bar (Fixed) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  z-index: 999;
  box-shadow: var(--shadow-bottom);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-bottom-btn {
  margin: 0;
}

@media (min-width: 768px) {
  .mobile-bottom-bar { display: none; }
}
