/* ==========================================================
   Echobit - 에코빗 스타일시트
   ========================================================== */

:root {
  --green-900: #0B3D2E;
  --green-800: #0B5E42;
  --green-700: #0F8A5F;
  --green-600: #15A271;
  --green-100: #E6F4EE;
  --green-50:  #F3FAF6;

  --ink-900: #0B1F17;
  --ink-700: #243530;
  --ink-500: #5B6B64;
  --ink-300: #9AA8A1;
  --line:    #DCE7E1;
  --bg:      #FFFFFF;
  --bg-alt:  #F6F9F7;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 23, .05), 0 2px 8px rgba(11, 31, 23, .04);
  --shadow-md: 0 8px 24px rgba(11, 31, 23, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 23, .12);

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
  letter-spacing: -0.01em;
  word-break: keep-all;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--green-700);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--green-600); }
.text-accent { color: var(--green-700); }

.section__title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}
.section__desc {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-500);
  max-width: 620px;
}
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__desc { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 138, 95, .22);
}
.btn--primary:hover { background: var(--green-800); }
.btn--outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--ink-900); background: #fff; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 8px; box-shadow: none; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(11,31,23,.04);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo__text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.logo__en {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-300);
  letter-spacing: .02em;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--ink-900); background: var(--green-50); }
.nav__cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #FBFDFC 0%, #FFFFFF 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(15,138,95,.10), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(15,138,95,.06), transparent 70%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,31,23,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,23,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero__desc {
  margin-top: 24px;
  font-size: 18px;
  color: var(--ink-500);
  max-width: 540px;
}
.hero__actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__badges li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
}
.hero__badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-700);
  transform: translateY(-50%);
}

/* Dashboard card */
.dash {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.dash__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dash__title { font-weight: 700; font-size: 15px; }
.dash__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  padding: 4px 10px;
  border-radius: 999px;
}
.dash__status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-700);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.dash__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.dash__stat {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash__label { font-size: 12px; color: var(--ink-500); font-weight: 500; }
.dash__value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-900);
}
.dash__value small { font-size: 16px; font-weight: 700; margin-left: 2px; color: var(--green-700); }
.dash__sub { font-size: 12px; color: var(--ink-300); }

.dash__chart { margin-top: 16px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 12px; }
.dash__chart-head { font-size: 12px; color: var(--ink-500); font-weight: 500; margin-bottom: 8px; }
.dash__chart svg { width: 100%; height: 100px; }
.dash__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-300); margin-top: 6px; }

.dash__list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.dash__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.dash__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dash__list span { color: var(--ink-500); }
.dash__list strong { font-weight: 600; color: var(--ink-900); }

/* ---------- Trust bar ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 24px;
}
.trust__text { font-size: 15px; color: var(--ink-500); max-width: 520px; }
.trust__text strong { color: var(--ink-900); font-weight: 600; }
.trust__items { display: flex; gap: 36px; flex: none; }
.trust__items li { display: flex; flex-direction: column; gap: 2px; }
.trust__k { font-size: 12px; color: var(--ink-300); font-weight: 500; }
.trust__v { font-size: 15px; font-weight: 600; color: var(--ink-900); letter-spacing: 0; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(21,162,113,.18), transparent 70%),
    var(--green-900);
  color: #fff;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CFE0D7; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.card__desc { margin-top: 10px; font-size: 15px; color: var(--ink-500); }
.card__list { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-700);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--green-600);
}

.card--dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.card--dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); box-shadow: none; }
.card--dark .card__title { color: #fff; }
.card--dark .card__desc { color: rgba(255,255,255,.68); }
.card__icon--dark { background: rgba(21,162,113,.18); color: #5BD8A6; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--reverse .split__content { order: 1; }
.split--reverse .split__visual { order: 2; }
.split__content .btn { margin-top: 32px; }

.feature-list { margin-top: 32px; display: grid; gap: 20px; }
.feature-list li {
  position: relative;
  padding-left: 30px;
  display: grid;
  gap: 4px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-100);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg);
  transform-origin: center;
  top: 7px;
}
.feature-list strong { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.feature-list span { font-size: 15px; color: var(--ink-500); }

.infra-graphic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.infra-graphic svg { width: 100%; height: auto; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 36px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
  letter-spacing: .06em;
  padding: 4px 10px;
  background: var(--green-100);
  border-radius: 6px;
}
.step__title { margin-top: 20px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.step__desc { margin-top: 10px; font-size: 15px; color: var(--ink-500); }

/* ---------- Report card ---------- */
.report-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.report-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.report-card__title { font-weight: 700; font-size: 16px; }
.report-card__tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
}
.report-card__rows { margin-top: 8px; }
.report-card__rows li {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.report-card__rows li:last-child { border-bottom: 0; }
.report-card__rows li > span:first-child { color: var(--ink-500); }
.report-card__v { text-align: right; font-weight: 600; color: var(--ink-900); }
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink-300);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.bar--accent i { background: var(--green-700); }
.report-card__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-300);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  color: var(--ink-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-500);
  border-bottom: 2px solid var(--ink-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item[open] summary { border-bottom: 1px solid var(--line); }
.faq__body { padding: 18px 24px 22px; font-size: 15px; color: var(--ink-500); }

/* ---------- Company ---------- */
.company {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(15,138,95,.08), transparent 70%),
    #fff;
  box-shadow: var(--shadow-sm);
}
.company__text .hero__actions { margin-top: 32px; }
.company__meta {
  display: grid;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 24px;
}
.company__meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.company__meta li:last-child { border-bottom: 0; }
.company__meta span { color: var(--ink-500); flex: none; }
.company__meta strong { font-weight: 600; text-align: right; }

/* ---------- Footer ---------- */
.footer {
  background: #0B1F17;
  color: rgba(255,255,255,.72);
  padding: 72px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo--footer .logo__text { color: #fff; }
.logo--footer .logo__en { color: rgba(255,255,255,.45); }
.footer__tagline { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.6); }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,.62); transition: color .15s; }
.footer__col a:hover { color: #fff; }

.footer__biz { padding: 32px 0 24px; border-bottom: 1px solid rgba(255,255,255,.08); display: grid; gap: 14px; }
.footer__biz p { font-size: 14px; color: rgba(255,255,255,.72); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.footer__biz .sep { color: rgba(255,255,255,.2); }
.footer__notice { font-size: 13px !important; color: rgba(255,255,255,.45) !important; line-height: 1.7; max-width: 880px; display: block !important; }
.footer__bottom { padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.4); }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 120px; }
.legal__title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.legal__meta { margin-top: 10px; font-size: 14px; color: var(--ink-500); }
.legal__body { margin-top: 48px; display: grid; gap: 36px; }
.legal__body h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.legal__body p, .legal__body li { font-size: 15px; color: var(--ink-700); }
.legal__body ol { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; }
.legal__body ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal__body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal__body th, .legal__body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal__body th { background: var(--bg-alt); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 560px; }
  .split { gap: 48px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 8px; font-size: 16px; }
  .nav__cta { margin: 10px 0 0; width: 100%; }
  .nav-toggle { display: flex; }

  .hero { padding: 64px 0 72px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .cards--3 { grid-template-columns: 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__content { order: 1; }
  .split--reverse .split__visual { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; gap: 36px; padding: 32px 24px; }
  .trust__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .trust__items { flex-wrap: wrap; gap: 20px 32px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .cards--4 { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .dash { padding: 18px; }
  .dash__grid { grid-template-columns: 1fr; }
  .report-card__rows li { grid-template-columns: 1fr; gap: 8px; }
  .report-card__v { text-align: left; }
  .logo__en { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
}
