/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #0d0d0d;
  --color-surface: #161616;
  --color-surface-2: #1e1e1e;
  --color-border: #2a2a2a;
  --color-text: #e8e8e8;
  --color-text-muted: #888;
  --color-accent: #a7a9ac;
  --color-accent-light: #c8cacc;
  --color-link: #b0b2b5;
  --font-sans: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-light);
}

/* ===== Layout ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ===== Header / Hero ===== */
header {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.brand-name span {
  color: var(--color-accent);
}

nav {
  display: flex;
  gap: 28px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

nav a {
  color: var(--color-text-muted);
}

nav a:hover {
  color: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  opacity: 0.95;
  filter: drop-shadow(0 0 24px rgba(167, 169, 172, 0.25));
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.hero-cta:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  background: var(--color-surface-2);
}

/* ===== Section Title ===== */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 40px;
  color: var(--color-text);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-block p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.about-block strong {
  color: var(--color-text);
}

/* ===== Services ===== */
.services {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: block;
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: var(--color-text);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.service-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.service-url {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  font-family: monospace;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ===== Links ===== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: var(--color-text);
}

.link-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: var(--color-text);
}

.link-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.link-info-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.link-info-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.link-info-url {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-family: monospace;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}

.contact .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.2s, background 0.2s;
}

.contact-email:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-2);
  color: var(--color-accent-light);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--color-border);
  padding: 36px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.footer-logo {
  width: 22px;
  height: 22px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 80px 0 70px;
  }

  nav {
    display: none;
  }

  .about-grid,
  .services-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }
}
