:root {
  --bg: #ffffff;
  --ink: #111722;
  --muted: #536071;
  --faint: #8792a1;
  --line: #dfe4ea;
  --soft: #f5f7f8;
  --soft-2: #eef3f2;
  --dark: #062332;
  --accent: #0b5660;
  --accent-2: #f05f48;
  --ok: #0f8f63;
  --shadow: 0 22px 70px rgba(10, 21, 35, 0.12);
  --radius: 8px;
  --max: 1180px;
  --header: 72px;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: #d7eeec;
  color: #071821;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(18, 27, 38, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #303a46;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.link-call {
  color: #142232;
  font-size: 14px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.nav-toggle svg,
.btn svg,
.service-card svg,
.process-line svg,
.contact-direct svg,
.floating-contact svg,
.package-card li svg,
.hero-points svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(10, 22, 35, 0.12);
}

.btn.dark {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.btn.line {
  background: #fff;
  color: var(--ink);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

main {
  overflow: clip;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 88px);
  min-height: min(760px, calc(100svh - var(--header)));
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) clamp(20px, 5vw, 64px) clamp(52px, 9vh, 88px);
}

.hero-copy,
.hero-board {
  min-width: 0;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 720px;
  color: #101620;
  font-size: 50px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-copy p,
.page-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
}

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

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  color: #354252;
  font-size: 14px;
  font-weight: 700;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  color: var(--accent);
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.browser-card {
  min-width: 0;
  overflow: hidden;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 46px rgba(8, 20, 33, 0.08);
}

.browser-card.wide {
  grid-column: span 2;
}

.browser-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #e8edf1;
  border-radius: 5px;
  background: var(--soft);
}

.browser-card strong {
  display: block;
  margin-top: 10px;
  color: #111722;
  font-size: 13px;
  font-weight: 900;
}

.section,
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 124px) clamp(20px, 5vw, 32px);
}

.section-soft {
  max-width: none;
  padding-left: max(clamp(20px, 5vw, 32px), calc((100vw - var(--max)) / 2 + 32px));
  padding-right: max(clamp(20px, 5vw, 32px), calc((100vw - var(--max)) / 2 + 32px));
  background: linear-gradient(180deg, #f8fafb 0%, #f2f5f6 100%);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: 46px;
}

.section-head span,
.contact-copy span {
  color: #1f2b38;
  font-size: 14px;
  font-weight: 900;
}

.section-head h2,
.contact-copy h2 {
  margin: 0;
  max-width: 620px;
  color: #101620;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 900;
}

.section-head p,
.contact-copy p {
  grid-column: 2;
  max-width: 650px;
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
}

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

.service-card,
.package-card,
.project-card,
.scope-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}

.service-card h3,
.package-card h3,
.project-card h3,
.scope-grid h3,
.faq-list summary {
  margin: 0;
  color: #111722;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 900;
}

.service-card p,
.package-card p,
.project-card p,
.scope-grid p,
.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.service-card dl {
  margin: 22px 0 0;
}

.service-card dt {
  color: #111722;
  font-size: 12px;
  font-weight: 900;
}

.service-card dd {
  margin: 6px 0 0;
  color: #4c5969;
  font-size: 14px;
  line-height: 1.6;
}

.service-card ul,
.package-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #283444;
  font-size: 14px;
  font-weight: 700;
}

.service-card li,
.package-card li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card li svg,
.package-card li svg {
  color: var(--accent);
}

.portfolio-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 20px;
  scrollbar-width: thin;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.project-card div {
  padding: 18px;
}

.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.portfolio-note {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.portfolio-note h3 {
  margin: 0;
  font-size: 18px;
}

.portfolio-note p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-line li {
  position: relative;
  padding-top: 64px;
}

.process-line li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 56px;
  right: -20px;
  border-top: 1px dashed #c8d0d8;
}

.process-line li:last-child::before {
  display: none;
}

.process-line span {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-weight: 900;
}

.process-line h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 900;
}

.process-line p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.package-card {
  padding: 26px;
}

.package-card .price {
  margin-top: 22px;
  color: var(--dark);
  font-size: 25px;
  font-weight: 900;
}

.package-card .period {
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.scope-grid article {
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 24px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-list p {
  margin: 0;
  padding: 20px 24px 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-section.standalone {
  padding-top: 40px;
}

.contact-copy h2 {
  margin-top: 12px;
}

.contact-copy p {
  grid-column: auto;
  margin-top: 18px;
}

.contact-direct {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #182535;
  font-weight: 800;
}

.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 48px rgba(8, 20, 33, 0.08);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: #1d2b3a;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ced6de;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
}

.contact-form textarea {
  resize: vertical;
  min-height: 138px;
}

.contact-form > label {
  margin-top: 18px;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.submit {
  width: 100%;
  margin-top: 20px;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.form-status.error {
  color: #b43425;
}

.section-link {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.section-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  border-bottom: 1px solid var(--dark);
  padding-bottom: 4px;
  font-weight: 900;
}

.section-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-content: center;
  border-bottom: 1px solid rgba(18, 27, 38, 0.08);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px clamp(20px, 5vw, 32px);
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 42px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 8px 0 0;
  color: #4b5868;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}

.footer-intro p {
  max-width: 300px;
  margin-top: 18px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 32px) 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #667181;
  font-size: 12px;
  font-weight: 700;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .header-actions .link-call {
    display: none;
  }

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

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

  .service-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-line li {
    padding: 0 0 28px 72px;
  }

  .process-line li::before {
    top: 54px;
    left: 24px;
    right: auto;
    bottom: 4px;
    height: auto;
    border-top: 0;
    border-left: 1px dashed #c8d0d8;
  }

  .process-line span {
    top: 0;
  }

  .footer-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  :root {
    --header: 64px;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    gap: 10px;
  }

  .brand span {
    font-size: 15px;
  }

  .header-actions .btn {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero {
    display: block;
    padding: 46px 18px 64px;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-copy {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: 10.8em;
    font-size: 30px;
    line-height: 1.25;
    text-wrap: balance;
  }

  .hero-copy p,
  .page-hero p {
    width: 100%;
    max-width: calc(100vw - 36px);
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-points,
  .hero-board,
  .service-grid,
  .package-grid,
  .scope-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-board {
    width: 100%;
    margin-top: 42px;
  }

  .browser-card img {
    aspect-ratio: 16 / 10;
  }

  .browser-card.wide {
    grid-column: auto;
  }

  .section,
  .section-soft,
  .page-hero {
    padding: 64px 18px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }

  .section-head h2,
  .contact-copy h2 {
    font-size: 26px;
  }

  .section-head p {
    grid-column: auto;
    margin: 0;
  }

  .portfolio-rail {
    grid-auto-columns: minmax(250px, 84vw);
  }

  .contact-form {
    padding: 22px;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
