:root {
  --ink: #101318;
  --ink-soft: #2f3745;
  --muted: #697386;
  --line: #e7ebef;
  --paper: #ffffff;
  --panel: #f3f7f8;
  --teal: #12bfa5;
  --teal-dark: #0a806f;
  --coral: #ef6f4f;
  --gold: #d9a441;
  --charcoal: #15191f;
  --shadow: 0 24px 70px rgba(16, 19, 24, 0.16);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  word-break: keep-all;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(16, 19, 24, 0.08);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(16, 19, 24, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(132px, 16vw, 190px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a {
  opacity: 0.78;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover {
  color: var(--teal-dark);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 18, 0.92) 0%, rgba(9, 12, 18, 0.72) 44%, rgba(9, 12, 18, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.26) 0%, rgba(9, 12, 18, 0.72) 100%);
  z-index: -1;
}

.hero-content {
  display: grid;
  min-height: 94vh;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 142px 0 94px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(36px, 7vw, 92px);
  align-items: end;
}

.hero-copy-block {
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.portfolio-cta .eyebrow {
  color: #77ead9;
}

.hero h1,
.section-heading h2,
.split-section h2,
.brand-code h2,
.portfolio-cta h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 6.6vw, 5.7rem);
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #07100e;
  background: var(--teal);
}

.button-primary:hover {
  background: #31d6bd;
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  color: var(--ink);
  background: #fff;
}

.hero-panel {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.hero-panel span {
  padding: 8px 10px 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.hero-panel a::after {
  content: "VIEW";
  color: #77ead9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.metrics {
  display: grid;
  width: min(1220px, calc(100% - 40px));
  margin: -48px auto 0;
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric {
  padding: 30px;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric strong {
  display: block;
  color: var(--teal-dark);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
}

.section,
.split-section,
.contact-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 128px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.wide-heading {
  max-width: 980px;
}

.section-heading h2,
.split-section h2,
.brand-code h2,
.portfolio-cta h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-heading p:not(.eyebrow),
.intro-copy p,
.portfolio-cta p,
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
  padding-top: 32px;
}

.service-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(16, 19, 24, 0.11);
}

.service-card.featured {
  grid-column: span 3;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 191, 165, 0.92), rgba(239, 111, 79, 0.82)),
    var(--teal-dark);
}

.service-card.dark {
  grid-column: span 3;
  color: #fff;
  background: var(--charcoal);
}

.service-card:not(.featured):not(.dark) {
  grid-column: span 2;
}

.service-card.featured p,
.service-card.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.card-number,
.service-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-number {
  color: var(--coral);
}

.featured .card-number,
.dark .card-number {
  color: #fff;
}

.service-label {
  margin-top: 52px;
  color: var(--teal-dark);
}

.featured .service-label,
.dark .service-label {
  color: #77ead9;
}

.service-card h3,
.focus-list h3 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.service-card p,
.focus-list p,
.timeline-item p,
.form-note {
  margin: 0;
  color: var(--muted);
}

.brand-code {
  color: #fff;
  background: var(--charcoal);
}

.brand-code-inner {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 124px) 0;
}

.brand-code h2 {
  max-width: 820px;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.code-grid > div {
  min-height: 220px;
  padding: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.code-grid > div:first-child {
  border-left: 0;
}

.code-grid strong {
  display: block;
  color: var(--teal);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.9;
}

.code-grid span {
  display: block;
  margin-top: 28px;
  font-weight: 900;
}

.code-grid p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 34px;
  border-bottom: 1px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(217, 164, 65, 0.16);
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.portfolio-cta {
  display: flex;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto clamp(76px, 10vw, 124px);
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(34px, 6vw, 58px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 19, 24, 0.98), rgba(10, 128, 111, 0.88)),
    var(--charcoal);
}

.portfolio-cta h2 {
  max-width: 760px;
}

.portfolio-cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
}

.muted {
  width: 100%;
  max-width: none;
  background: var(--panel);
}

.muted .section-heading,
.focus-list {
  width: min(1220px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.focus-list > div {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.focus-list h3 {
  margin-top: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: start;
}

.contact-email {
  display: inline-flex;
  margin-top: 26px;
  color: var(--teal-dark);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 19, 24, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(18, 191, 165, 0.14);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
  font-size: 0.94rem;
}

.footer-logo {
  width: 118px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
}

.site-footer a {
  color: #8ddbd0;
}

@media (max-width: 1080px) {
  .hero-content,
  .intro-section,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

  .service-card.featured,
  .service-card.dark,
  .service-card:not(.featured):not(.dark) {
    grid-column: span 3;
  }

  .code-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .code-grid > div:nth-child(4) {
    border-left: 0;
  }

  .focus-list {
    grid-template-columns: 1fr 1fr;
  }

  .focus-list > div:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-logo {
    width: 136px;
    height: 42px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
  }

  .hero,
  .hero-content {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 116px 0 72px;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(2.18rem, 12.5vw, 3.6rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    width: 100%;
  }

  .metrics {
    width: calc(100% - 32px);
    margin-top: -30px;
    grid-template-columns: 1fr;
  }

  .metric + .metric {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section,
  .split-section,
  .contact-section,
  .brand-code-inner,
  .muted .section-heading,
  .focus-list,
  .portfolio-cta {
    width: calc(100% - 32px);
  }

  .service-showcase,
  .focus-list {
    grid-template-columns: 1fr;
  }

  .service-card.featured,
  .service-card.dark,
  .service-card:not(.featured):not(.dark),
  .focus-list > div:nth-child(3) {
    grid-column: auto;
  }

  .service-card {
    min-height: auto;
  }

  .service-label {
    margin-top: 38px;
  }

  .code-grid {
    grid-template-columns: 1fr 1fr;
  }

  .code-grid > div,
  .code-grid > div:nth-child(4) {
    min-height: 190px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .code-grid > div:nth-child(1),
  .code-grid > div:nth-child(2) {
    border-top: 0;
  }

  .code-grid > div:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .portfolio-cta {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 76px;
  }

  .contact-form {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .code-grid {
    grid-template-columns: 1fr;
  }

  .code-grid > div:nth-child(even),
  .code-grid > div:nth-child(2) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .code-grid > div:first-child {
    border-top: 0;
  }
}
