/* 메타플랫폼 — corporate homepage */
:root {
  --bg: #07070d;
  --bg-2: #0b0d16;
  --elevated: #10121c;
  --surface: rgba(16, 18, 30, 0.72);
  --surface-2: rgba(22, 25, 40, 0.85);
  --line: rgba(180, 196, 255, 0.12);
  --line-strong: rgba(180, 196, 255, 0.22);
  --text: #f3f4fb;
  --text-soft: #d5d8e8;
  --muted: #9aa1b8;
  --faint: #6e748c;
  --cyan: #5eead4;
  --sky: #7dd3fc;
  --violet: #8b7cff;
  --magenta: #e879f9;
  --grad: linear-gradient(120deg, #5eead4 0%, #67e8f9 32%, #818cf8 68%, #e879f9 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header-h: 76px;
  --max: 1160px;
  --font: "Pretendard", "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.skip {
  position: absolute;
  left: 16px; top: -80px;
  background: #fff; color: #111;
  padding: 10px 14px; border-radius: 10px; z-index: 100;
}
.skip:focus { top: 16px; }

/* Background atmosphere */
.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(94, 234, 212, 0.16), transparent 55%),
    radial-gradient(800px 520px at 90% 8%, rgba(139, 124, 255, 0.22), transparent 50%),
    radial-gradient(700px 480px at 50% 100%, rgba(232, 121, 249, 0.12), transparent 55%),
    var(--bg);
}
.atmosphere::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: overlay;
}
.grid-floor {
  position: fixed; left: 50%; bottom: -20%;
  width: 180vw; height: 70vh;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to top, rgba(0,0,0,.55), transparent 75%);
  z-index: -1; pointer-events: none;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 7, 13, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 7, 13, 0.86);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; width: min(var(--max), calc(100% - 40px));
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.03em; font-size: 1.05rem;
}
.brand img, .brand svg { width: 36px; height: 36px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small {
  font-weight: 500; font-size: 0.68rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--text-soft); font-size: 0.92rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,0.06); color: #fff; }
.nav .cta {
  margin-left: 8px;
  background: var(--grad);
  color: #0b0b12 !important;
  font-weight: 700;
  padding: 9px 16px;
}
.nav .cta:hover { filter: brightness(1.08); }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 16px; height: 1.5px; background: #fff; position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 100px;
  min-height: min(calc(100vh - var(--header-h)), 860px);
  display: flex; align-items: center;
}
.hero-inner { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cyan);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--grad);
}
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.2; margin: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800;
  max-width: 14ch;
  color: #f7f8ff;
}
.hero h1 .grad {
  display: inline;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7dd3fc;
}
.lead {
  margin: 22px 0 0;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 400;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 36px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .15s ease, filter .15s ease, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: #0b0b12;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 44px;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Sections */
section { padding: 100px 0; position: relative; }
.section-head { margin-bottom: 40px; max-width: 40rem; }
.kicker {
  color: var(--sky);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); margin: 14px 0 0; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.about-copy p { color: var(--text-soft); margin: 0 0 16px; }
.note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(139, 124, 255, 0.08);
  border: 1px dashed rgba(139, 124, 255, 0.35);
  color: var(--text-soft);
  font-size: 0.92rem;
}
.note strong { color: var(--cyan); font-weight: 700; }
.facts {
  display: grid; gap: 14px;
}
.fact {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.fact dt {
  font-size: 0.78rem; color: var(--faint);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.fact dd { margin: 0; color: var(--text-soft); font-weight: 600; }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,25,42,0.9), rgba(12,13,22,0.9));
  overflow: hidden;
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card::before {
  content: "";
  position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: var(--grad);
  opacity: 0.85;
}
.icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li {
  color: var(--text-soft);
  font-size: 0.92rem;
  padding: 6px 0 6px 16px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.card li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding: 24px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 190px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stack-block {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.stack-block h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-soft);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* Portfolio */
.portfolio-note { margin-bottom: 22px; }
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--elevated);
  display: flex; flex-direction: column;
}
.work-visual {
  height: 168px;
  position: relative;
  display: grid; place-items: center;
  isolation: isolate;
}
.work:nth-child(1) .work-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(94,234,212,.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(129,140,248,.35), transparent 50%),
    #12141f;
}
.work:nth-child(2) .work-visual {
  background:
    radial-gradient(circle at 70% 25%, rgba(232,121,249,.35), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(125,211,252,.3), transparent 50%),
    #12141f;
}
.work:nth-child(3) .work-visual {
  background:
    radial-gradient(circle at 50% 40%, rgba(129,140,248,.4), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(94,234,212,.25), transparent 50%),
    #12141f;
}
.badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(7,7,13,0.8);
  border: 1px solid rgba(94,234,212,0.45);
  color: var(--cyan);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 999px;
  text-transform: uppercase;
}
.work-body { padding: 18px 18px 20px; }
.work-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.work-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}
.contact-meta p { color: var(--muted); margin-top: 12px; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.contact-list span {
  display: block;
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.placeholder-value { color: var(--cyan); font-weight: 600; }

form {
  display: grid; gap: 14px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.field { display: grid; gap: 6px; }
label { font-size: 0.86rem; font-weight: 600; color: var(--text-soft); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7,7,13,0.5);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: rgba(94,234,212,0.55);
  box-shadow: 0 0 0 3px rgba(94,234,212,0.12);
}
textarea { min-height: 140px; resize: vertical; }
.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--sky);
}
.form-hint { margin: 0; color: var(--muted); font-size: 0.85rem; }

.fact-en {
  display: inline-block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.legal p { margin: 0 0 2px; }
.legal .copy { margin-top: 12px; color: var(--faint); }


/* Reveal */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid-floor { display: none; }
}

@media (max-width: 960px) {
  .about-grid, .cards, .steps, .stack-grid, .works, .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column;
    padding: 16px 20px 22px;
    background: rgba(8, 8, 14, 0.96);
    border-bottom: 1px solid var(--line);
    gap: 6px;
  }
  .nav.open { display: flex; }
  .nav .cta { margin-left: 0; width: fit-content; }
  .about-grid, .cards, .steps, .stack-grid, .works, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 56px 0 72px; min-height: auto; }
  section { padding: 72px 0; }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7,7,13,0.5);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa1b8 50%), linear-gradient(135deg, #9aa1b8 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select:focus {
  border-color: rgba(94,234,212,0.55);
  box-shadow: 0 0 0 3px rgba(94,234,212,0.12);
}
