@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --primary: #4e9a35;
  --primary-dark: #3d8b2a;
  --primary-light: #6aad3d;
  --accent: #5ba4d9;
  --accent-dark: #0a3060;
  --grey-01: #fafafa; --grey-02: #f5f5f5; --grey-03: #eee;
  --grey-04: #e0e0e0; --grey-05: #bdbdbd; --grey-06: #9e9e9e;
  --grey-07: #757575; --grey-08: #616161; --grey-09: #424242;
  --grey-10: #2c2c2c; --grey-11: #212121; --grey-12: #1a1a1a;
  --grey-13: #141414; --grey-14: #0d0d0d; --grey-15: #080808;
  --white: #fff; --black: #000;
  --shadow-floating: 0 8px 40px rgba(0,0,0,.12);
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--grey-11); background: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font); border: none; outline: none; background: none; }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 50;
  width: 100%; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-bottom: 1px solid var(--grey-03);
}
.header__inner {
  position: relative; width: 100%; max-width: 1440px;
  display: flex; align-items: center; justify-content: center;
}
.header__logo {
  position: absolute; left: 80px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.header__logo img { height: 52px; }
.header__logo-text { display: flex; flex-direction: column; }
.header__logo-name { font-size: 18px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.header__logo-sub { font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: 1px; }

.header__nav {
  display: flex; gap: 4px;
}
.header__nav a {
  height: 40px; display: flex; align-items: center; justify-content: center;
  padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--grey-11);
  border-radius: 8px; transition: .2s;
}
.header__nav a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--grey-14); }

.header__phone {
  position: absolute; right: 80px;
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--primary);
}
.header__phone svg { width: 20px; height: 20px; fill: var(--primary); }

/* Mobile */
.header__hamburger { display: none; cursor: pointer; }
.header__hamburger svg { width: 24px; height: 24px; fill: var(--grey-07); }



/* ========== HERO ========== */
.hero {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero__bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('images/hero_banner.png') center/cover no-repeat;
  opacity: 1; z-index: -1;
}
.hero__fade-bottom {
  position: absolute; left: 0; bottom: -102px; width: 100%; height: 140px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 100%);
  z-index: 10; transform: rotate(180deg);
}
.hero__inner {
  width: 100%; max-width: 1440px;
  display: flex; justify-content: center; align-items: center;
  gap: 40px; padding: 0 80px; margin: 240px auto 96px;
}
.hero__text { max-width: 520px; flex-shrink: 0; margin-top: 48px; }
.hero__title {
  font-size: 80px; font-weight: 900; color: var(--primary);
  line-height: 1.1; letter-spacing: -3px;
}
.hero__subtitle {
  font-size: 22px; font-weight: 500; color: var(--primary);
  margin-top: 16px; line-height: 1.6;
}
.hero__visual {
  flex: 1; display: flex; justify-content: center;
  max-height: 384px;
}
.hero__visual img { height: 100%; max-height: 384px; border-radius: 16px; object-fit: cover; }

/* ========== SECTION: SOLUTION CASE ========== */
.section-cases {
  width: 100%; display: flex; justify-content: center;
  background: linear-gradient(180deg, #fff 0%, var(--grey-15) 100%);
  margin-top: 102px; z-index: 20;
}
.section-cases__inner {
  width: 100%; max-width: 1440px;
  display: flex; flex-direction: column; align-items: center;
  gap: 80px; padding: 160px 0 120px;
}
.section-cases__header { text-align: center; display: flex; flex-direction: column; gap: 28px; }
.section-cases__header span { font-size: 22px; font-weight: 600; color: var(--primary); }
.section-cases__header b { font-size: 48px; font-weight: 900; color: var(--grey-15); letter-spacing: -2px; }

.case-card {
  width: 846px; height: 275px;
  display: flex; border-radius: 8px;
  box-shadow: var(--shadow-floating); overflow: hidden;
  cursor: pointer; transition: .3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0,0,0,.18); }
.case-card__img {
  position: relative; width: 50%;
  display: flex; align-items: center; justify-content: center;
}
.case-card__img img { width: 100%; height: 100%; object-fit: cover; }
.case-card__img-gradient {
  position: absolute; bottom: 0; width: 100%; height: 110px;
  background: linear-gradient(to top, var(--grey-15) 5%, transparent);
}
.case-card__img-label {
  position: absolute; bottom: 12px; right: 16px;
  font-size: 22px; font-weight: 800; color: var(--white); z-index: 2;
}
.case-card__body {
  width: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
  background: var(--white);
}
.case-card__body b { color: var(--primary); font-size: 14px; }
.case-card__body span {
  font-size: 26px; font-weight: 900; text-align: center;
  margin-top: 6px; line-height: 1.35; color: var(--grey-11);
}
/* expanded after content */
.case-card__after {
  overflow: hidden; height: 0; opacity: 0;
  transition: height .4s ease, opacity .3s ease;
}
.case-card__after-inner {
  padding: 20px; background: var(--grey-15); border-radius: 0 0 8px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.case-card__after-inner h4 { color: var(--white); font-size: 18px; font-weight: 700; }
.case-card__after-inner p { color: var(--grey-05); font-size: 13px; text-align: center; line-height: 1.7; }

.case-wrapper { display: flex; flex-direction: column; gap: 40px; }

/* ========== SECTION: SERVICES ========== */
.section-services {
  width: 100%; display: flex; justify-content: center;
  background: var(--white); padding: 120px 80px;
}
.section-services__inner {
  width: 100%; max-width: 1440px;
  display: flex; flex-direction: column; align-items: center; gap: 60px;
}
.section-services .section-header__sub { color: var(--primary); }
.section-services .section-header__title { color: var(--grey-11); }
.section-services .section-header__title span { color: var(--primary); }
.section-services .section-header__desc { color: var(--grey-07); }
.section-header { text-align: center; }
.section-header__sub { font-size: 20px; font-weight: 600; color: var(--primary-light); margin-bottom: 16px; }
.section-header__title { font-size: 44px; font-weight: 900; color: var(--white); letter-spacing: -2px; }
.section-header__title span { color: var(--primary-light); }
.section-header__desc { font-size: 16px; color: var(--grey-06); margin-top: 12px; }

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%;
}
.svc-card {
  background: var(--white); border: 1px solid var(--grey-03);
  border-radius: 16px; overflow: hidden; transition: .3s; cursor: pointer;
  position: relative; box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0); transition: .3s;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover { background: var(--white); transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.svc-card__img { width: 100%; height: 180px; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.svc-card:hover .svc-card__img img { transform: scale(1.06); }
.svc-card__body { padding: 24px; }
.svc-card__body h3 { font-size: 18px; font-weight: 800; color: var(--grey-11); margin-bottom: 8px; }
.svc-card__body p { font-size: 13px; color: var(--grey-07); line-height: 1.6; }

/* ========== SECTION: STATS ========== */
.section-stats {
  width: 100%; display: flex; justify-content: center;
  background: var(--white); padding: 0 80px 120px;
}
.section-stats__inner {
  width: 100%; max-width: 1440px;
  display: flex; flex-direction: column; align-items: center; gap: 60px;
}
.section-stats .section-header__title { color: var(--grey-11); }
.section-stats .section-header__title span { color: var(--primary); }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%;
}
.stat-card {
  text-align: center; padding: 40px 20px;
  background: var(--white); border: 1px solid var(--grey-03);
  border-radius: 16px; transition: .3s; box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.stat-card__icon { font-size: 32px; margin-bottom: 16px; }
.stat-card__number {
  font-size: 52px; font-weight: 900;
  background: linear-gradient(135deg, #8bc34a, #b1d98a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stat-card__label { font-size: 16px; font-weight: 700; color: var(--grey-11); margin-top: 8px; }
.stat-card__detail { font-size: 13px; color: var(--grey-07); margin-top: 6px; line-height: 1.5; }

/* ========== SECTION: PROCESS ========== */
.section-process {
  width: 100%; display: flex; justify-content: center;
  background: var(--white); padding: 120px 80px;
}
.section-process__inner {
  width: 100%; max-width: 1440px;
  display: flex; flex-direction: column; align-items: center; gap: 60px;
}
.section-process .section-header__title { color: var(--grey-11); }
.section-process .section-header__title span { color: var(--primary); }
.section-process .section-header__desc { color: var(--grey-07); }

.process-timeline {
  display: flex; width: 100%; position: relative;
}
.process-timeline::before {
  content: ''; position: absolute; top: 36px; left: 60px; right: 60px;
  height: 3px; background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 3px;
}
.process-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 16px; position: relative;
}
.process-step__num {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: var(--white); font-size: 22px; font-weight: 900;
  border-radius: 50%; position: relative; z-index: 1;
  box-shadow: 0 4px 20px rgba(78,154,53,.3); margin-bottom: 20px;
  transition: .3s;
}
.process-step:hover .process-step__num { transform: scale(1.12); box-shadow: 0 8px 32px rgba(78,154,53,.4); }
.process-step__title { font-size: 18px; font-weight: 800; color: var(--grey-11); margin-bottom: 6px; }
.process-step__desc { font-size: 13px; color: var(--grey-07); line-height: 1.5; }

/* ========== SECTION: PARTNERS ========== */
.section-partners {
  width: 100%; display: flex; justify-content: center;
  background: linear-gradient(180deg, var(--grey-01), var(--white)); padding: 120px 80px;
}
.section-partners__inner {
  width: 100%; max-width: 1440px;
  display: flex; flex-direction: column; align-items: center; gap: 60px;
}
.section-partners .section-header__title { color: var(--grey-11); }
.section-partners .section-header__title span { color: var(--primary); }

.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%;
}
.partner-card {
  height: 120px; background: var(--white); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.04); border: 1px solid var(--grey-03);
  transition: all .3s ease; cursor: pointer; padding: 20px;
}
.partner-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-floating);
  border-color: var(--primary-light);
}
.partner-card__logo {
  font-size: 18px; font-weight: 850; color: var(--grey-07); transition: color .3s;
  letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px;
}
.partner-card:hover .partner-card__logo {
  color: var(--primary);
}
.partner-card__logo svg {
  transition: transform .3s ease, color .3s ease;
  color: var(--grey-05) !important;
}
.partner-card:hover .partner-card__logo svg {
  transform: scale(1.1);
  color: var(--primary) !important;
}

/* ========== FOOTER ========== */
.footer {
  width: 100%; display: flex; justify-content: center;
  background: var(--grey-14); padding: 60px 80px 40px;
}
.footer__inner { width: 100%; max-width: 1440px; }
.footer__top {
  display: flex; justify-content: space-between; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__brand { max-width: 340px; }
.footer__brand-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer__brand-logo img { height: 36px; }
.footer__brand-logo span { font-size: 16px; font-weight: 800; color: var(--primary-light); }
.footer__brand p { font-size: 13px; color: var(--grey-06); line-height: 1.7; }
.footer__links { display: flex; gap: 56px; }
.footer__col h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer__col a { display: block; font-size: 13px; color: var(--grey-06); padding: 3px 0; transition: .2s; }
.footer__col a:hover { color: var(--primary-light); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; gap: 20px;
}
.footer__info { font-size: 12px; color: var(--grey-07); line-height: 1.8; }
.footer__copy { font-size: 12px; color: var(--grey-08); }



/* Scroll top */
.scroll-top {
  position: fixed; right: 60px; bottom: 130px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--grey-04);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); cursor: pointer;
  transition: .3s; opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.scroll-top svg { width: 20px; height: 20px; fill: var(--grey-09); }

/* ========== SCROLL ANIMATIONS ========== */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .1s; }
.stagger > *:nth-child(3) { transition-delay: .15s; }
.stagger > *:nth-child(4) { transition-delay: .2s; }

/* ========== TOAST ========== */
.toast {
  position: fixed; top: 100px; left: 50%; transform: translateX(-50%) translateY(-16px);
  padding: 14px 32px; border-radius: 12px; font-size: 15px; font-weight: 600;
  color: var(--white); z-index: 9999; opacity: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.18); transition: all .35s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.toast--warning { background: linear-gradient(135deg, #ff9800, #f57c00); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .header__logo { left: 24px; }
  .header__phone { right: 24px; }
  .hero__inner { padding: 0 24px; margin: 160px auto 60px; flex-direction: column; text-align: center; }
  .hero__title { font-size: 48px; }
  .hero__visual img { max-height: 280px; }
  .section-cases__inner { padding: 100px 24px 80px; }
  .case-card { width: 100%; max-width: 700px; }
  .section-services, .section-stats { padding-left: 24px; padding-right: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .section-process, .section-partners { padding-left: 24px; padding-right: 24px; }
  .footer { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 768px) {
  .header { height: 56px; }
  .header__nav { display: none; }
  .header__phone { display: none; }
  .header__hamburger { display: flex; position: absolute; right: 16px; }
  .header__logo { left: 16px; }
  .header__logo img { height: 40px; }

  .hero__inner { margin: 80px auto 40px; gap: 24px; }
  .hero__title { font-size: 38px; letter-spacing: -2px; }
  .hero__subtitle { font-size: 16px; }
  .hero__visual img { max-height: 200px; border-radius: 12px; }

  .section-cases__inner { padding: 60px 16px; gap: 48px; }
  .section-cases__header b { font-size: 28px; }
  .case-card { flex-direction: column; height: auto; }
  .case-card__img { width: 100%; height: 160px; }
  .case-card__body { width: 100%; padding: 24px; }
  .case-card__body span { font-size: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-card__number { font-size: 40px; }

  .process-timeline { flex-direction: column; gap: 24px; }
  .process-timeline::before { display: none; }
  .process-step { flex-direction: row; text-align: left; gap: 16px; }
  .process-step__num { margin-bottom: 0; flex-shrink: 0; width: 56px; height: 56px; font-size: 18px; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .partner-card { height: 100px; padding: 12px; }
  .partner-card__logo { font-size: 15px; gap: 6px; }

  .footer__top { flex-direction: column; }
  .footer__links { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .scroll-top { right: 16px; bottom: 16px; }
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed; top: 56px; left: 0; width: 100%; height: calc(100vh - 56px);
  background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
  z-index: 45; display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: .3s;
}
.mobile-nav-overlay.active { transform: translateX(0); }
.mobile-nav-overlay a {
  padding: 16px 8px; font-size: 18px; font-weight: 600; color: var(--grey-11);
  border-bottom: 1px solid var(--grey-03);
}
.mobile-nav-overlay__phone {
  margin-top: auto; padding: 20px; text-align: center;
  background: rgba(78,154,53,.08); border-radius: 12px;
}
.mobile-nav-overlay__phone a {
  font-size: 22px; font-weight: 900; color: var(--primary);
  border: none; padding: 0;
}

/* ===== CTA (FLOATING & MOBILE) ===== */
.floating-cta {
  position: fixed; right: 40px; bottom: 100px; z-index: 99;
  display: flex; align-items: center; gap: 16px;
  background: var(--primary); border-radius: 50px; padding: 12px 24px;
  box-shadow: 0 10px 24px rgba(78,154,53,.3);
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-cta:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(78,154,53,.4); }
.floating-cta__text {
  display: flex; flex-direction: column; text-align: right; color: var(--white);
}
.floating-cta__text span:nth-child(1) { font-size: 13px; opacity: 0.9; }
.floating-cta__text span:nth-child(2) { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
.floating-cta__icon {
  width: 44px; height: 44px; background: rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.floating-cta__icon svg { width: 24px; height: 24px; }

.mobile-bottom { display: none; }

@media (max-width: 768px) {
  .floating-cta { display: none; }
  .mobile-bottom {
    display: block; position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--white); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    z-index: 100; padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-bottom__quick {
    width: 100%; background: var(--primary); color: var(--white);
    border: none; border-radius: 8px; padding: 16px;
    font-size: 18px; font-weight: 800; cursor: pointer;
    box-shadow: 0 4px 12px rgba(78,154,53,.2);
  }
  body { padding-bottom: 80px; }
}
