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

:root {
  --navy: #1a1f5e;
  --blue: #3a6fd8;
  --blue-mid: #2755c8;
  --blue-light: #5b9cf6;
  --blue-pale: #e8f0fe;
  --blue-pale2: #f0f5ff;
  --text: #0f1340;
  --text-mid: #323762;
  --text-muted: #4d557f;
  --border: #dde3f5;
  --bg: #f7f9ff;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 249, 255, 0.9);
  backdrop-filter: blur(12px);
}

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

.brand img {
  display: block;
  width: 132px;
  height: auto;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 400;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--navy);
  padding: 9px 22px;
  border-radius: 100px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 14px 20px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 249, 255, .98);
  box-shadow: 0 18px 40px rgba(26,31,94,.08);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.mobile-menu a:active {
  background: var(--blue-pale);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 82px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 52% at 50% 0%, rgba(58,111,216,.10), transparent 70%),
    radial-gradient(ellipse 42% 42% at 82% 82%, rgba(26,31,94,.06), transparent 64%);
  pointer-events: none;
}

.hero-logo-bg {
  position: absolute;
  right: -12vw;
  top: 70%;
  width: min(1040px, 72vw);
  height: auto;
  opacity: .1;
  transform: translateY(-50%);
  filter: blur(5px);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  animation: heroLogoFloat 24s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0% {
    transform: translate3d(-28px, -50%, 0) rotate(-0.4deg);
  }
  45% {
    transform: translate3d(44px, -53%, 0) rotate(0.35deg);
  }
  72% {
    transform: translate3d(76px, -48%, 0) rotate(0.1deg);
  }
  100% {
    transform: translate3d(-28px, -50%, 0) rotate(-0.4deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  background: var(--blue-pale);
  color: var(--blue);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.hero-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-title {
  margin-bottom: 24px;
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 42px;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: 100px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s, background .2s, border-color .2s;
}

.btn-primary {
  color: var(--white);
  background: var(--navy);
}

.btn-secondary {
  color: var(--navy);
  border: 1px solid var(--border);
  background: var(--white);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-white:hover,
.btn-outline-white:hover {
  transform: translateY(-1px);
}

.section {
  padding: 100px 24px;
}

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

.section-eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.section-title {
  margin-bottom: 16px;
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.section-desc {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

.aeo-intro {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-grid,
.custom-grid,
.care-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.intro-copy p {
  color: var(--text-mid);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.9;
}

.small-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted) !important;
  font-size: 13px !important;
}

.aeo-easy {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.aeo-easy article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.aeo-easy b {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.aeo-easy span {
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
}

.services-section {
  background: var(--bg);
}

.services-header,
.portfolio-header {
  text-align: center;
  margin-bottom: 58px;
}

.services-header .section-desc,
.portfolio-header .section-desc,
.pricing-cta-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  min-height: 282px;
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-light);
  box-shadow: 0 10px 34px rgba(58,111,216,.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 22px;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.service-name {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.service-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
}

.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.feat-item {
  padding: 28px 20px;
  text-align: center;
  background: var(--white);
}

.feat-num {
  margin-bottom: 6px;
  color: var(--blue);
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
}

.feat-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 300;
}

.custom-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.custom-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.custom-copy p {
  margin: 0;
  color: var(--text-mid);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.9;
}

.operations-section {
  background: var(--bg);
}

.operations-header {
  max-width: 720px;
  margin-bottom: 46px;
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.operation-card {
  min-height: 260px;
  padding: 30px 28px;
  background: var(--white);
}

.operation-card span {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.operation-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.operation-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
}

.care-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.care-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 28px 30px;
  background: var(--white);
}

.care-list b {
  grid-row: 1 / span 2;
  color: var(--blue);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.care-list h3 {
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.care-list p {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
}

.portfolio-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 24px;
}

.portfolio-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform .25s, box-shadow .25s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(26,31,94,.10);
}

.portfolio-thumb {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
  background: var(--blue-pale2);
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.03);
}

.portfolio-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}

.portfolio-name {
  margin-bottom: 4px;
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.portfolio-type {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 300;
}

.portfolio-info span {
  width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 100px;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 13px;
  font-weight: 500;
}

.pricing-cta-section {
  text-align: center;
  background: var(--navy);
  padding-top: 124px;
  padding-bottom: 132px;
}

.pricing-cta-section .section-eyebrow {
  color: var(--blue-light);
}

.pricing-cta-section .section-title {
  color: var(--white);
}

.pricing-cta-section .section-desc {
  color: rgba(255,255,255,.72);
  max-width: 660px;
  margin-bottom: 54px;
}

.btn-white {
  color: var(--navy);
  background: var(--white);
}

.btn-outline-white {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.32);
  background: transparent;
}

.pricing-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-logo {
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.footer p {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 300;
}

@media (max-width: 900px) {
  .site-nav {
    padding: 0 22px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .section {
    padding: 78px 20px;
  }

  .intro-grid,
  .custom-grid,
  .care-grid,
  .services-grid,
  .operation-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .intro-grid,
  .custom-grid,
  .care-grid {
    gap: 34px;
  }

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

@media (max-width: 560px) {
  .hero {
    min-height: 92vh;
    padding: 104px 20px 72px;
  }

  .brand img {
    width: 116px;
  }

  .hero-logo-bg {
    right: -102vw;
    width: 760px;
    opacity: .08;
    filter: blur(4px);
    animation-name: heroLogoFloatMobile;
  }

  @keyframes heroLogoFloatMobile {
    0% {
      transform: translate3d(-22px, -50%, 0) rotate(-0.3deg);
    }
    50% {
      transform: translate3d(54px, -52%, 0) rotate(0.25deg);
    }
    100% {
      transform: translate3d(-22px, -50%, 0) rotate(-0.3deg);
    }
  }

  .hero-title {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 32px;
    line-height: 1.28;
  }

  .hero-sub {
    font-size: 14.5px;
    line-height: 1.9;
    word-break: keep-all;
  }

  .aeo-easy article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-title {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 28px;
    line-height: 1.32;
    word-break: keep-all;
  }

  .custom-copy p {
    font-size: 14.5px;
  }

  .pricing-cta-actions {
    display: grid;
  }

  .pricing-cta-section .section-desc {
    max-width: 310px;
    line-height: 1.9;
  }

  .features-strip {
    grid-template-columns: 1fr 1fr;
  }

  .care-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px;
  }

  .care-list b,
  .care-list p {
    grid-column: auto;
    grid-row: auto;
  }

  .portfolio-info,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
