/* MacroPulse — Static Site Styles */
:root {
  --green-600: #16a34a;
  --green-500: #22c55e;
  --amber-500: #f59e0b;
  --red-500: #ef4444;
  --red-700: #991b1b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
}
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; background: #fff; z-index: 100;
}
.site-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.site-header h1 span { color: var(--green-600); }
.site-header nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a { font-weight: 500; font-size: 0.95rem; color: var(--gray-700); }
.btn-login {
  background: var(--green-600); color: #fff; padding: 0.5rem 1.25rem;
  border-radius: 0.5rem; font-weight: 600; border: none; cursor: pointer;
}
.btn-login:hover { background: var(--green-500); text-decoration: none; color: #fff; }

/* Rotating banner */
.banner {
  position: relative; width: 100%; max-width: var(--max-width);
  height: 400px; margin: 0 auto; overflow: hidden; border-radius: 0;
}
.banner__slide {
  position: absolute; inset: 0; opacity: 0;
  animation: bannerfade 12s infinite;
}
.banner__slide:nth-child(1) { animation-delay: 0s; }
.banner__slide:nth-child(2) { animation-delay: 4s; }
.banner__slide:nth-child(3) { animation-delay: 8s; }
.banner__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes bannerfade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .banner__slide { animation: none; opacity: 1; }
  .banner__slide:not(:first-child) { display: none; }
}

/* Hero section */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding: 2rem 0; align-items: start;
}
.hero h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero h3 { font-size: 1.25rem; font-weight: 600; color: var(--gray-600); margin-bottom: 0.75rem; }
.hero p.tagline { font-size: 1.05rem; color: var(--gray-700); margin-bottom: 1.5rem; }

/* MEI Gauges (static SVG placeholders) */
.gauge-container { display: flex; gap: 2rem; flex-wrap: wrap; }
.gauge-card {
  background: var(--gray-50); border-radius: 0.75rem; padding: 1.5rem;
  text-align: center; min-width: 200px; flex: 1;
}
.gauge-card .label { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.gauge-card .score { font-size: 2.5rem; font-weight: 800; }
.gauge-card .status { font-size: 0.9rem; font-weight: 600; margin-top: 0.25rem; }
.gauge-note { font-size: 0.8rem; color: var(--gray-600); margin-top: 0.5rem; font-style: italic; }

/* CTA button */
.btn-cta {
  display: inline-block; background: var(--green-600); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 700;
  font-size: 1.05rem; border: none; cursor: pointer; margin-top: 1rem;
  text-align: center;
}
.btn-cta:hover { background: var(--green-500); text-decoration: none; color: #fff; }

/* Features */
.features { padding: 1rem 0; }
.features h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card ul { list-style: none; padding-left: 0; }
.feature-card li { padding: 0.2rem 0; font-size: 0.95rem; color: var(--gray-700); }

/* How it works */
.how-it-works { padding: 1rem 0; }
.how-it-works h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.how-steps { list-style: none; padding: 0; }
.how-steps li { padding: 0.4rem 0; font-size: 0.95rem; }
.how-steps li strong { color: var(--gray-900); }

/* Pricing */
.pricing { padding: 1rem 0; }
.pricing h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.pricing-card {
  border: 1px solid var(--gray-200); border-radius: 0.75rem; padding: 1.5rem;
  background: #fff;
}
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-card .price { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1rem; }
.pricing-card ul { list-style: none; padding: 0; }
.pricing-card li { padding: 0.3rem 0; font-size: 0.9rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.pricing-card li:last-child { border-bottom: none; }
.pricing-card .btn-cta { width: 100%; margin-top: 1.5rem; }

/* Testimonials */
.testimonials { padding: 1rem 0; }
.testimonials h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.testimonial-card { background: var(--gray-50); border-radius: 0.75rem; padding: 1.5rem; }
.testimonial-card .name { font-weight: 700; margin-bottom: 0.5rem; }
.testimonial-card .story { font-size: 0.92rem; color: var(--gray-700); }

/* FAQ */
.faq { padding: 1rem 0; }
.faq h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 1rem 0; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 1rem; }
.faq-item p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--gray-700); }

/* Contact form */
.contact { padding: 1rem 0; }
.contact h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact .info { background: var(--gray-50); border-radius: 0.5rem; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact form .full { grid-column: 1 / -1; }
.contact label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.25rem; }
.contact input, .contact select, .contact textarea {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--gray-200);
  border-radius: 0.5rem; font-size: 0.95rem; font-family: inherit;
}
.contact textarea { min-height: 120px; resize: vertical; }
.contact .btn-submit {
  grid-column: 1 / -1; background: var(--green-600); color: #fff; border: none;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 700; font-size: 1rem;
  cursor: pointer; margin-top: 0.5rem;
}
.contact .btn-submit:hover { background: var(--green-500); }
.contact .form-msg { grid-column: 1 / -1; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.9rem; display: none; }
.contact .form-msg.success { background: #dcfce7; color: #166534; display: block; }
.contact .form-msg.error { background: #fee2e2; color: #991b1b; display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--gray-200); padding: 1.5rem 0; margin-top: 2rem;
  text-align: center; font-size: 0.85rem; color: var(--gray-600);
}
.site-footer nav { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.5rem; }

/* Divider */
hr.divider { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

/* Page content (for sub-pages) */
.page-content { padding: 2rem 0; }
.page-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.page-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.page-content p { margin-bottom: 0.75rem; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.page-content li { margin-bottom: 0.25rem; }
.page-content .warning {
  background: #fffbeb; border-left: 4px solid var(--amber-500); padding: 0.75rem 1rem;
  border-radius: 0.25rem; margin: 1rem 0; font-weight: 600;
}

/* Language switcher */
.lang-switcher { display: inline-flex; gap: 0.25rem; font-size: 0.85rem; }
.lang-switcher a { padding: 0.15rem 0.4rem; border-radius: 0.25rem; color: var(--gray-600); text-decoration: none; }
.lang-switcher a.active { background: var(--green-600); color: #fff; }
.lang-switcher a:not(.active):hover { background: var(--gray-100); text-decoration: none; }

/* Videos section */
.videos { padding: 1rem 0; }
.videos h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.video-card { }
.video-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.video-card p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.5rem; }
.video-embed { position: relative; width: 100%; padding-bottom: 56.25%; overflow: hidden; border-radius: 0.75rem; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Responsive */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact form { grid-template-columns: 1fr; }
  .banner { height: 200px; }
  .site-header nav { gap: 0.75rem; }
  .site-header nav a:not(.btn-login):not(.lang-switcher a) { display: none; }
  .video-grid { grid-template-columns: 1fr; }
}