@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Thin.woff2") format("woff2");
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --blue: #3068f2;
  --black: #0a0a0a;
  --dark: #111214;
  --gray-text: #6b7280;
  --gray-bg: #ececec;
  --border: #e5e7eb;
  --max-width: 1200px;
}

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

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  background: #fff;
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

section {
  padding: 4rem 1.25rem;
}

section h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.asterisk {
  color: var(--blue);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.logo-mark .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--black);
  display: inline-block;
}

.logo-mark .bar {
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--black);
  display: inline-block;
}

.logo-mark--large {
  gap: 16px;
}

.logo-mark--large .dot {
  width: 90px;
  height: 90px;
  background: #fff;
}

.logo-mark--large .bar {
  width: 34px;
  height: 100px;
  background: #fff;
}

.main-nav {
  display: none;
  gap: 2rem;
  margin-left: 1rem;
}

.main-nav a {
  color: #374151;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--black);
}

.header-cta {
  display: none;
  margin-left: auto;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  white-space: nowrap;
}

.nav-toggle {
  margin-left: auto;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 3rem;
  position: relative;
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--gray-text);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.scroll-hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--gray-text);
  text-align: right;
  margin-bottom: 0.75rem;
}

.hero-visual {
  background: var(--black);
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Services */
.service-list li {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.service-list h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.service-list p {
  color: var(--gray-text);
  font-size: 0.95rem;
}

.service-list p strong {
  color: var(--black);
}

.services h2,
.services > .service-list {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Projects (dark section) */
.projects {
  background: var(--dark);
  color: #fff;
}

.projects h2 {
  margin-bottom: 0;
}

.projects-heading-row {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.projects-more-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
}

.projects-more-link:hover {
  color: #fff;
}

.project-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-thumb {
  background: var(--gray-bg);
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.view-btn {
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.project-card {
  display: block;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.project-card p {
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Why us */
.why-us-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.why-us-heading h2 {
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.why-us-heading p {
  color: var(--gray-text);
  margin-top: 0.5rem;
}

.why-us-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.why-us-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--gray-bg);
  color: #374151;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.why-us-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.why-us-text p {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.8rem;
}

.why-us-img {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.why-us-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Process */
.process {
  background: #f8fafc;
}

.process-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.process-heading h2 {
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.process-heading p {
  color: var(--gray-text);
  margin-top: 0.5rem;
}

.process-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.process-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
}

.process-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
}

.process-icon--yellow { background: #fef08a; }
.process-icon--green { background: #bbf7d0; }
.process-icon--purple { background: #ddd6fe; }
.process-icon--blue { background: #bfdbfe; }
.process-icon--gray { background: #e5e7eb; }
.process-icon--orange { background: #fed7aa; }

.process-card .badge {
  margin-top: 3.5rem;
}

.process-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}

.process-card p {
  color: var(--gray-text);
  font-size: 0.9rem;
}

.process-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.75rem;
  color: var(--gray-text);
}

/* Blog */
.blog-page {
  max-width: 800px;
  margin: 0 auto;
}

.blog-page h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.blog-list-item {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.blog-list-item:last-child {
  border-bottom: 1px solid var(--border);
}

.blog-list-date {
  color: var(--gray-text);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.blog-list-item h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.blog-list-item p:not(.blog-list-date) {
  color: var(--gray-text);
  font-size: 0.9rem;
}

.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

@media (min-width: 768px) {
  .blog-post {
    padding: 4rem 2rem;
  }
}

.blog-post-date {
  color: var(--gray-text);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.blog-post h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.blog-post-body {
  font-size: 1rem;
  line-height: 1.8;
}

.blog-post-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.blog-post-body p {
  margin-bottom: 1rem;
}

.blog-post-body ul {
  margin: 0 0 1rem 1.25rem;
  list-style: disc;
}

.blog-post-body li {
  margin-bottom: 0.4rem;
}

.blog-post > p a {
  color: var(--blue);
  font-weight: 600;
  display: inline-block;
  margin-top: 1.5rem;
}

/* Project detail */
.projects-page {
  padding-top: 4rem;
}

.project-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

@media (min-width: 768px) {
  .project-detail {
    padding: 4rem 2rem;
  }
}

.project-detail-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.project-detail-meta {
  color: var(--gray-text);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.project-detail h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.project-detail-body {
  font-size: 1rem;
  line-height: 1.8;
}

.project-detail-body p {
  margin-bottom: 1rem;
}

.project-detail > p a {
  color: var(--blue);
  font-weight: 600;
  display: inline-block;
  margin-top: 1.5rem;
}

/* Contact */
.contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--gray-text);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Tablet and up */
@media (min-width: 768px) {
  section {
    padding: 6rem 2rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .main-nav {
    display: flex;
  }

  .header-cta {
    display: inline-block;
  }

  .nav-toggle {
    display: none;
  }

  .service-list li,
  .why-us-item {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .service-list h3 {
    flex: 0 0 300px;
  }

  .service-list p {
    flex: 1;
    max-width: 560px;
  }

  .project-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-item {
    gap: 3rem;
  }

  .why-us-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .why-us-text {
    flex: 1;
  }

  .why-us-img {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}
