:root {
  --ink: #102945;
  --ink-soft: #516173;
  --line: #d9e2ea;
  --paper: #ffffff;
  --surface: #f3f7fa;
  --accent: #19b9cd;
  --accent-dark: #0e88b2;
  --shadow: 0 20px 60px rgba(16, 41, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 234, 0.72);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 168px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
}

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

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent-dark);
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section-band,
.section {
  padding: clamp(74px, 9vw, 128px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  min-height: calc(100vh - 74px);
  background:
    linear-gradient(120deg, rgba(25, 185, 205, 0.12), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #fff 0%, #f7fbfd 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 41, 69, 0.18);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: clamp(28px, 5vw, 64px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-logo {
  width: min(100%, 720px);
  height: auto;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
}

.muted {
  max-width: none;
  background: var(--surface);
}

.muted > * {
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(150px, 0.7fr));
  gap: 18px;
}

.about-lead,
.metric,
.service-card,
.tech-panel > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-lead {
  padding: 30px;
  color: var(--ink-soft);
  font-size: 20px;
}

.about-lead p {
  margin: 0;
}

.metric {
  padding: 26px;
}

.metric strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 24px;
}

.metric span {
  color: var(--ink-soft);
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 240px;
  padding: 28px;
}

.service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
}

.service-number {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

.service-card p,
.tech-panel p,
.contact p {
  margin: 0;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.tech-panel {
  display: grid;
  gap: 16px;
}

.tech-panel > div {
  padding: 28px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  color: #fff;
  background: var(--ink);
}

.contact .eyebrow {
  color: var(--accent);
}

.contact h2 {
  margin-bottom: 12px;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact .button.primary {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.history-list,
.project-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 28px 28px 28px 50px;
  color: var(--ink-soft);
  font-weight: 700;
}

.history-list li::marker {
  color: var(--accent-dark);
  font-weight: 900;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-list article {
  padding: 24px;
}

.project-list strong,
.project-list span {
  display: block;
}

.project-list strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.project-list span {
  color: var(--ink-soft);
}

.contact-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer img {
  width: 28px;
  height: auto;
}

@media (max-width: 1020px) {
  .hero,
  .split,
  .about-grid,
  .service-grid,
  .history-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
  }

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

  .contact-actions {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 12px 18px;
  }

  .brand img {
    width: 136px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    right: 18px;
    top: 64px;
    display: none;
    width: min(260px, calc(100vw - 36px));
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 10px;
  }

  .site-nav a {
    padding: 10px;
  }

  .section-band,
  .section {
    padding: 58px 20px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .about-lead,
  .metric,
  .service-card,
  .tech-panel > div {
    padding: 24px;
  }

  .hero-visual {
    min-height: 250px;
    padding: 28px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact .button {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .section-band,
  .section {
    padding: 46px 16px;
  }

  .brand img {
    width: 124px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.14;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 210px;
    padding: 20px;
  }

  .hero-logo {
    width: min(100%, 520px);
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .about-lead {
    font-size: 17px;
  }

  .metric strong {
    font-size: 22px;
  }

  .service-number {
    margin-bottom: 14px;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
  }

  .history-list {
    padding: 24px 24px 24px 42px;
  }

  .project-list article {
    padding: 22px;
  }

  .site-footer {
    font-size: 13px;
  }
}
