:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --text: #111827;
  --text-strong: #030712;
  --muted: #6b7280;

  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-soft: #ecf6ef;
  --accent: #f0b429;
  --accent-dark: #8a6a0a;
  --accent-soft: #fef9e7;

  --gradient: linear-gradient(135deg, #2d6a4f 0%, #52b788 50%, #f0b429 100%);
  --gradient-soft: linear-gradient(135deg, #ecf6ef 0%, #f4fbf0 50%, #fef9e7 100%);

  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow: 0 6px 24px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 12px 32px rgba(17, 24, 39, 0.07);

  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 84px 0; position: relative; }

/* === Badge === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

/* === Header & Nav === */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-strong);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--gradient);
}
.brand-mark::before {
  width: 20px; height: 20px;
  left: 4px; top: 8px;
}
.brand-mark::after {
  width: 14px; height: 14px;
  right: 5px; top: 11px;
  opacity: .9;
}
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .08em;
  font-size: 10.5px;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text);
  opacity: .75;
  transition: color .15s, opacity .15s;
}
.nav-links a:hover { opacity: 1; color: var(--primary); }
.nav-links a.active { color: var(--primary); opacity: 1; font-weight: 800; }

/* === Hamburger toggle === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 51;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.15;
  letter-spacing: -.04em;
  color: var(--text-strong);
  font-weight: 700;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 600px;
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 28px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
}
.btn.primary {
  background: var(--gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.22);
}
.btn.primary:hover {
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(45, 106, 79, 0.30);
}

/* === Hero panel === */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dashboard-grid .mini-card:first-child {
  grid-column: 1 / -1;
}
.mini-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-height: 120px;
  transition: border-color .2s, transform .2s;
}
.mini-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.mini-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.mini-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* === Signal strip === */
.signal-strip {
  margin-top: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--gradient-soft);
}
.signal-strip h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -.01em;
}
.signal-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  height: 80px;
}
.signal-bars div {
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  animation: pulse 3.5s ease-in-out infinite;
}
.signal-bars div:nth-child(1){ height: 30%; animation-delay: .1s; }
.signal-bars div:nth-child(2){ height: 50%; animation-delay: .35s; }
.signal-bars div:nth-child(3){ height: 75%; animation-delay: .2s; }
.signal-bars div:nth-child(4){ height: 58%; animation-delay: .55s; }
.signal-bars div:nth-child(5){ height: 90%; animation-delay: .4s; }
@keyframes pulse {
  0%,100% { transform: translateY(0); opacity: .9; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* === Section head === */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -.035em;
  color: var(--text-strong);
  font-weight: 700;
}
.section-head p {
  max-width: 580px;
  color: var(--muted);
  margin: 0;
  font-size: 15.5px;
}

/* === Service cards === */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  min-height: 200px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: var(--gradient-soft);
  margin-bottom: 18px;
  font-size: 22px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -.02em;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* === Logo wall (clients) === */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.logo-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.logo-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.logo-img-wrap {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: white;
  flex: 0 0 44px;
}
.logo-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -.01em;
}
.logo-card span {
  color: var(--muted);
  font-size: 12.5px;
  display: block;
  margin-top: 2px;
}

/* === Network section === */
.network-wrap {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}
.network-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}
.network-stage {
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}
.network-stage svg {
  display: block;
  width: 100%;
}

.network-copy { display: grid; gap: 14px; }
.network-copy .feature {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.network-copy .feature h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -.01em;
}
.network-copy .feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* === Value grid (capability) === */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.value-card {
  min-height: 170px;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s;
}
.value-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.value-card strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.value-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* === Commerce & About panels === */
.commerce-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -.025em;
}
.panel p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 15px;
}
.list { display: grid; gap: 10px; margin-top: 18px; }
.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--gradient);
  flex: 0 0 8px;
}
.list-item strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--text-strong);
  font-size: 14.5px;
}
.list-item span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* === Contact section === */
.contact-section {
  background: var(--gradient-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner .badge { margin-bottom: 20px; }
.contact-inner h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--text-strong);
  margin: 0 0 16px;
}
.contact-inner p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 32px;
}
.contact-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: opacity .2s;
}
.contact-email:hover { opacity: .7; }

/* === Footer === */
.footer {
  padding: 32px 0 0px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.footer-brand .brand-mark::before { width: 16px; height: 16px; left: 3px; top: 7px; }
.footer-brand .brand-mark::after { width: 12px; height: 12px; right: 4px; top: 9px; }
.footer-brand strong { color: var(--text-strong); font-size: 15px; font-weight: 700; }
.footer-info { display: grid; gap: 4px; line-height: 1.6; text-align: right; }
.footer-info p { margin: 0; }
.footer-copy { text-align: center; padding: 4px 0; }

/* === Scroll reveal === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.22,.68,0,1.1), transform .55s cubic-bezier(.22,.68,0,1.1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-grid,
  .network-grid,
  .commerce-grid,
  .about-grid { grid-template-columns: 1fr; }
  .logo-wall,
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 32px; }

  .cards,
  .logo-wall,
  .value-grid,
  .dashboard-grid { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    opacity: 1;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-info { text-align: left; }
  .contact-email { font-size: 16px; }
}
