/* Heetec ERP 홍보 사이트 — Netlify 정적 배포 */

:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --accent: #f59e0b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --header-h: 72px;
  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover { color: var(--primary); }

.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(2, 132, 199, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(245, 158, 11, 0.08), transparent),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  z-index: -1;
}

.hero-inner { max-width: 720px; }

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(2, 132, 199, 0.1);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-block { width: 100%; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.hero-stats li { display: flex; flex-direction: column; gap: 0.15rem; }

.hero-stats strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* Trust bar */
.trust-bar {
  background: var(--bg-dark);
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 0.85rem 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.trust-bar .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #e2e8f0; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-dark .eyebrow { color: #38bdf8; }

.section-title.center { text-align: center; max-width: 560px; margin: 0 auto 3rem; }
.section-title.light h2 { color: #fff; }
.section-title.light p { color: #94a3b8; }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.about-cards {
  display: grid;
  gap: 1rem;
}

.glass-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.glass-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.glass-card.accent {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border: none;
  color: #fff;
}

.glass-card.accent p { color: rgba(255,255,255,0.9); }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(2, 132, 199, 0.1);
  border-radius: 10px;
}

.service-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.module-item {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.module-item span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.module-item small { color: var(--text-muted); font-size: 0.85rem; }

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-dark);
  background: #38bdf8;
  border-radius: 50%;
}

.process-steps h3 { margin: 0 0 0.35rem; font-size: 1rem; color: #fff; }
.process-steps p { margin: 0; font-size: 0.85rem; color: #94a3b8; }

/* Tech & Why */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tech-tags li {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
  border-radius: 999px;
}

.why-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }

.why-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.why-list li:last-child { border-bottom: none; }

.why-list strong { display: block; margin-bottom: 0.25rem; }
.why-list p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-dl { margin: 2rem 0 0; }
.contact-dl div { margin-bottom: 1rem; }
.contact-dl dt { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.contact-dl dd { margin: 0; font-weight: 500; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form span { font-size: 0.85rem; font-weight: 500; }

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Thanks page */
.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.thanks-main {
  width: 100%;
  padding: 2rem 0;
}

.thanks-card {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.thanks-card h1 {
  margin: 0.5rem 0 1rem;
  font-size: 1.75rem;
}

.thanks-lead {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: #0c1222;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.footer-brand .logo-text { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-brand p { margin: 0.35rem 0 0; }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }

.copyright {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
}

.hide-mobile { display: inline; }

/* Responsive */
@media (max-width: 900px) {
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps li:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child { border-bottom: none; margin-top: 0.5rem; }

  .hide-mobile { display: none; }

  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li:last-child { max-width: none; }
  .hero-stats { gap: 1.25rem; }
}
