:root {
  --bg: #ffffff;
  --ink: #1b1b1b;
  --accent: #3050a0;
  --accent-dark: #090946;
  --panel: #ffffff;
  --soft: #eef0fa;
  --muted: #5a6a9a;
  --line: #d0d8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 10px;
}

.logo img {
  display: block;
  width: auto;
  height: 36px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

nav a {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
}

nav a:hover,
nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--soft);
}

.eyebrow {
  margin: 34px 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.1;
}

.lede {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.project-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 16px 34px #00000009;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: #9cacd9;
  box-shadow: 0 18px 36px #09094618;
  transform: translateY(-3px);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.app-icon {
  display: block;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 18px #09094618;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.project-card h2 {
  margin: 18px 0 5px;
  color: var(--accent-dark);
  font-size: 24px;
}

.project-card p { margin: 0; color: var(--muted); }

.arrow {
  margin-top: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  margin-top: 30px;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.detail-hero .eyebrow { margin-top: 0; }

.detail-icon {
  display: block;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 12px 24px #09094620;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.panel h2 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 22px;
}

.panel p { margin: 0; color: var(--muted); }

.panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.panel + .panel { margin-top: 18px; }

.link-list {
  display: grid;
  gap: 10px;
}

.button {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.button:hover { background: var(--soft); }

.back {
  display: inline-block;
  margin-top: 28px;
  color: var(--accent);
  font-weight: 700;
}

footer {
  margin-top: 60px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  header { align-items: flex-start; flex-direction: column; }
  .detail { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .detail-icon { width: 88px; height: 88px; border-radius: 20px; }
}
