/* ===== Design Tokens ===== */
:root {
  --bg: #0a0b0f;
  --bg-alt: #101219;
  --surface: #161923;
  --surface-2: #1c202d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0f6;
  --text-dim: #9aa1b2;
  --text-mute: #6b7183;
  --accent: #6d5efc;
  --accent-2: #22d3ee;
  --grad: linear-gradient(120deg, #6d5efc 0%, #22d3ee 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans KR", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn--primary {
  background: var(--grad);
  color: #08090d;
  box-shadow: 0 10px 30px -8px rgba(109, 94, 252, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(109, 94, 252, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 11, 15, 0.75);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px; font-family: "Inter", sans-serif; }
.nav__logo-mark {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__logo-dot { color: var(--accent-2); }
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__menu a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav__menu a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.nav__cta:hover { border-color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle at center, rgba(109, 94, 252, 0.28), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(34, 211, 238, 0.2), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero__desc { color: var(--text-dim); font-size: 1.12rem; max-width: 620px; margin: 0 auto 38px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num { font-size: 2.6rem; font-weight: 800; font-family: "Inter", sans-serif; }
.stat__num::after { content: "+"; color: var(--accent-2); }
.stat__label { color: var(--text-mute); font-size: 0.9rem; margin-top: 2px; }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section__tag {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -1px; }
.section__sub { color: var(--text-dim); font-size: 1.05rem; margin-top: 14px; }

/* ===== Grids ===== */
.grid { display: grid; gap: 22px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--work { grid-template-columns: repeat(2, 1fr); }

/* ===== Service Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(109, 94, 252, 0.5); background: var(--surface-2); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: rgba(109, 94, 252, 0.12);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* ===== Work Cards ===== */
.work {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.work:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.45); }
.work__thumb {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.work__thumb--1 { background: linear-gradient(135deg, #6d5efc, #b06bff); }
.work__thumb--2 { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.work__thumb--3 { background: linear-gradient(135deg, #f472b6, #a855f7); }
.work__thumb--4 { background: linear-gradient(135deg, #34d399, #06b6d4); }
.work__cat {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.work__body { padding: 24px 26px 28px; }
.work__body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.work__body p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work__tags span {
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ===== Tech Stack ===== */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
.stack span {
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.stack span:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); }

/* ===== Process Steps ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.step__no {
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__text { text-align: left; }
.contact__text .section__title, .contact__text .section__sub { text-align: left; }
.contact__list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { color: var(--text-dim); font-size: 1rem; }
.contact__list strong {
  display: inline-block;
  width: 70px;
  color: var(--text);
  font-weight: 600;
}
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.88rem; color: var(--text-dim); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; }
.contact__note { font-size: 0.9rem; color: var(--accent-2); text-align: center; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 56px 0 30px; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 340px; }
.footer__brand p { color: var(--text-mute); font-size: 0.92rem; margin-top: 12px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* ===== Reveal Animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav__menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    background: rgba(10, 11, 15, 0.97);
    backdrop-filter: blur(14px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }
  .grid--services, .grid--work { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 36px; }
  .hero { padding: 130px 0 80px; }
  .section { padding: 80px 0; }
}
