/* ==========================================================
   ZEROWAVE homepage — clean tech theme
   ========================================================== */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1424;
  --surface: #141a2e;
  --border: #232b45;
  --text: #e6e9f2;
  --muted: #8b93ad;
  --accent-1: #38bdf8;
  --accent-2: #818cf8;
  --grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 영문 병기 공통 스타일 */
.en { display: block; color: var(--muted); font-weight: 400; }
h1 .en, h2 .en, h3 .en { font-size: 0.5em; margin-top: 0.5em; letter-spacing: 0; }
h3 .en { font-size: 0.72em; margin-top: 0.2em; }
p.en { font-size: 0.92em; margin-top: 4px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; }
.logo-text {
  font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-text.small { font-size: 0.9rem; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 0.95rem; color: var(--text); opacity: 0.85; transition: opacity .2s; }
.nav a span { color: var(--muted); font-size: 0.8em; margin-left: 4px; }
.nav a:hover { opacity: 1; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 140px 0 160px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  opacity: 0.5;
}
.waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 55%; }
.waves path { fill: none; stroke-width: 2; }
.waves .w1 { stroke: rgba(56, 189, 248, .55); animation: drift 14s linear infinite; }
.waves .w2 { stroke: rgba(129, 140, 248, .40); animation: drift 20s linear infinite reverse; }
.waves .w3 { stroke: rgba(56, 189, 248, .22); animation: drift 26s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-inner { position: relative; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.hero .lead { max-width: 640px; margin: 28px 0 40px; font-size: 1.1rem; color: #c8cde0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--grad); color: #0a0e1a; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.btn span { font-weight: 500; opacity: .75; font-size: .9em; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(56, 189, 248, .25); }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.3; font-weight: 800; letter-spacing: -0.015em; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.about .section-head { margin-bottom: 0; }
.about-body > p { font-size: 1.05rem; color: #c8cde0; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stats li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stats strong {
  display: block; font-size: 1.35rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font-size: 0.85rem; color: var(--muted); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .5); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .25);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-1); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.card p { font-size: 0.95rem; color: #c8cde0; }
.card p.en { color: var(--muted); }

/* Approach */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-top: 2px solid var(--border); }
.steps li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--grad);
}
.num { font-size: 0.85rem; font-weight: 700; color: var(--accent-1); letter-spacing: .1em; }
.steps h3 { font-size: 1.2rem; margin: 10px 0 10px; }
.steps p { font-size: 0.95rem; color: #c8cde0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner p { color: var(--muted); font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a span { display: none; }
  .hero { padding: 96px 0 120px; }
  .section { padding: 80px 0; }
  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .waves path { animation: none; }
  html { scroll-behavior: auto; }
}
