:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --bg-softer: #101425;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-strong: #6366f1;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.55);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --nav-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  background: radial-gradient(circle at top left, #1d2440, #050816 50%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section--alt {
  background: radial-gradient(circle at top, #151a30, #050816);
}

.section__header {
  margin-bottom: 32px;
}

.section__inner {
  display: grid;
  gap: 40px;
}

.section__inner--two-column {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: flex-start;
}

.section__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.section__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.section__content {
  font-size: 15px;
  color: #e5e7eb;
  display: grid;
  gap: 12px;
}

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.96),
    rgba(5, 8, 22, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 18px;
}

.logo span {
  background: linear-gradient(120deg, #4f46e5, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.18s ease;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4f46e5, #e879f9);
  transition: width 0.18s ease;
}

.nav__list a:hover {
  color: #e5e7eb;
}

.nav__list a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav__toggle span + span {
  margin-top: 4px;
}

.nav__toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav__toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

/* Hero */
.hero {
  padding: 72px 0 72px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.6), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.55), transparent 55%);
  opacity: 0.35;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.hero__title {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero__title span {
  background: linear-gradient(120deg, #4f46e5, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__card {
  background: radial-gradient(circle at top, #1f2937, #030712);
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(79, 70, 229, 0.28),
    transparent 65%
  );
  opacity: 0.9;
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(22, 163, 74, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.35);
  position: relative;
  z-index: 1;
}

.hero__profile {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.hero__avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: radial-gradient(circle at top, #4f46e5, #0f172a);
  border: 1px solid rgba(248, 250, 252, 0.25);
}

.hero__name {
  margin: 0 0 2px;
  font-weight: 600;
}

.hero__role {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hero__stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero__stat {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero__stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero__stat-value {
  font-size: 15px;
  font-weight: 600;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.hero__scroll::before {
  content: "";
  width: 12px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-right: 8px;
  position: relative;
}

.hero__scroll::after {
  content: "";
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  position: relative;
  right: 29px;
  animation: scrollDot 1.4s infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: translateY(4px);
    opacity: 0;
  }
}

/* Cards / Projects */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

.card__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.card__body {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project {
  position: relative;
  background: linear-gradient(155deg, #020617, #020617);
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(79, 70, 229, 0.25),
    transparent 65%
  );
  opacity: 0.9;
  pointer-events: none;
}

.project__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 10px;
}

.project__title {
  position: relative;
  margin: 0 0 6px;
  font-size: 16px;
}

.project__body {
  position: relative;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-list__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-list__value {
  font-size: 14px;
}

.contact-form {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 18px 18px 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.8);
  display: grid;
  gap: 12px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  font-size: 13px;
}

.field input,
.field textarea {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-strong);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.7);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}

.btn--primary {
  background: linear-gradient(120deg, #4f46e5, #6366f1);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 16px 35px rgba(79, 70, 229, 0.55);
}

.btn--primary:hover {
  background: linear-gradient(120deg, #4338ca, #4f46e5);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-muted);
}

.btn--ghost:hover {
  border-color: rgba(148, 163, 184, 1);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.95);
}

.btn--full {
  width: 100%;
}

/* Footer */
.footer {
  padding: 22px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top, #111827, #020617);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__top {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__top:hover {
  color: #e5e7eb;
}

/* Utilities */
.shadow-nav {
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.85);
  border-bottom-color: rgba(148, 163, 184, 0.35);
  background: rgba(5, 8, 22, 0.96);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__card {
    order: -1;
  }

  .section__inner--two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header__inner {
    height: 60px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    position: absolute;
    top: 60px;
    right: 16px;
    width: 190px;
    padding: 10px 10px 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav__list.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__list a {
    padding: 6px 8px;
    border-radius: 999px;
  }

  .nav__list a:hover {
    background: rgba(17, 24, 39, 0.95);
  }

  .hero {
    padding-top: 56px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__card {
    padding: 18px 16px 16px;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards,
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 24px;
  }
}

