:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --text: #12131a;
  --muted: #606575;
  --primary: #1e4bd8;
  --primary-dark: #15339c;
  --border: #eef1f6;
  --shadow: 0 8px 18px rgba(14, 23, 55, 0.08);
}

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

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand img {
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.nav a {
  padding: 8px 0;
}

.nav a.is-active {
  color: var(--primary);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.button--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.button--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  padding: 72px 0 84px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
}

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

.hero--center .hero__inner {
  justify-items: center;
}

.hero--center .hero__content {
  text-align: center;
  max-width: 720px;
}

.hero--glow::before,
.hero--glow::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.6;
  transform: translateZ(0);
  pointer-events: none;
}

.hero--glow::before {
  top: -180px;
  left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(79, 170, 255, 0.45), rgba(79, 170, 255, 0) 65%),
    radial-gradient(circle at 70% 70%, rgba(120, 94, 255, 0.4), rgba(120, 94, 255, 0) 65%);
  box-shadow: 0 40px 80px rgba(79, 170, 255, 0.18);
}

.hero--glow::after {
  bottom: -200px;
  right: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 140, 90, 0.45), rgba(255, 140, 90, 0) 65%),
    radial-gradient(circle at 70% 70%, rgba(90, 210, 170, 0.4), rgba(90, 210, 170, 0) 65%);
  box-shadow: 0 36px 76px rgba(255, 140, 90, 0.16);
}

.hero--glow .hero__inner {
  position: relative;
  z-index: 1;
}

.hero--motion3d {
  perspective: 1200px;
  background: radial-gradient(120% 120% at 10% 10%, rgba(79, 170, 255, 0.18), rgba(255, 255, 255, 0) 55%),
    radial-gradient(120% 120% at 90% 20%, rgba(120, 94, 255, 0.16), rgba(255, 255, 255, 0) 60%),
    radial-gradient(140% 140% at 70% 90%, rgba(255, 140, 90, 0.18), rgba(255, 255, 255, 0) 60%);
  background-size: 180% 180%;
  animation: heroBackgroundMove 18s ease-in-out infinite;
}

.hero--motion3d::before,
.hero--motion3d::after {
  animation: heroFloat 16s ease-in-out infinite;
  transform-style: preserve-3d;
}

.hero--motion3d::after {
  animation-delay: -6s;
}

@keyframes heroFloat {
  0% {
    transform: translate3d(0, 0, 0) rotateX(4deg) rotateY(-6deg);
  }
  35% {
    transform: translate3d(40px, 20px, 30px) rotateX(-2deg) rotateY(10deg);
  }
  70% {
    transform: translate3d(-30px, 30px, -20px) rotateX(6deg) rotateY(2deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotateX(4deg) rotateY(-6deg);
  }
}

@keyframes heroBackgroundMove {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 60%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--motion3d {
    animation: none;
  }
  .hero--motion3d::before,
  .hero--motion3d::after {
    animation: none;
  }
}

.hero__content h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  margin: 12px 0 16px;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--primary);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero__stats strong {
  display: block;
  font-size: 18px;
}

.hero__stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero__media img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 100%;
  min-height: 360px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: #ffffff;
}

.section__header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section__header h2 {
  margin: 12px 0 12px;
  font-size: clamp(26px, 3vw, 36px);
}

.section__header p {
  color: var(--muted);
}

.section__footer {
  margin-top: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 12px rgba(20, 30, 60, 0.06);
  display: flex;
  flex-direction: column;
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 20px;
}

.card__body h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
}

.card__body p,
.card__body li {
  color: var(--muted);
  font-size: 14px;
}

.card__body ul {
  margin: 0;
  padding-left: 18px;
}

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

.card--horizontal {
  flex-direction: row;
  align-items: stretch;
}

.card--horizontal img {
  width: 40%;
  height: 100%;
  object-fit: cover;
}

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

.gallery img {
  border-radius: 16px;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 8px 14px rgba(20, 30, 60, 0.08);
}

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

.stats-grid div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(16, 26, 55, 0.06);
}

.stats-grid strong {
  display: block;
  font-size: 26px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 64px 0;
  background: #ffffff;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.page-hero__media img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  min-height: 320px;
  object-fit: cover;
}

.company-logo img {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.hero__media--text {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero__panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.hero__panel p {
  margin: 0 0 16px;
  color: var(--muted);
}

.portfolio {
  position: relative;
}

.portfolio__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.slider-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.portfolio-slider {
  overflow: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.portfolio-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28%);
  gap: 16px;
}

.portfolio-track img {
  border-radius: 16px;
  width: 100%;
  height: 220px;
  object-fit: cover;
  scroll-snap-align: start;
  box-shadow: 0 8px 14px rgba(16, 26, 55, 0.08);
}

.portfolio-track--marquee {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: portfolioMarquee 80s linear infinite;
  will-change: transform;
}

.portfolio-track--marquee.is-paused {
  animation-play-state: paused;
}

.portfolio-track--marquee img {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 280px);
}

@keyframes portfolioMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

.media-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 14px rgba(16, 26, 55, 0.08);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

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

.flow__step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(16, 26, 55, 0.06);
}

.flow__step strong {
  display: block;
  margin-bottom: 6px;
}

.flow__step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.flow--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.chart__bars {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  height: 160px;
}

.chart__bars div {
  background: linear-gradient(180deg, #3a6bff 0%, #1e4bd8 100%);
  border-radius: 10px 10px 6px 6px;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.12);
}

.timeline {
  display: grid;
  gap: 18px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 6px 12px rgba(16, 26, 55, 0.06);
}

.timeline strong {
  display: block;
  margin-bottom: 6px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.split-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.icon-list li::before {
  content: "•";
  color: var(--primary);
  margin-right: 8px;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.callout__logo img {
  max-width: 180px;
  height: auto;
}

.highlight {
  border: none;
  background: #0f1c3f;
  color: #fff;
}

.highlight .badge-list span {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
  color: #fff;
}

.section--contact {
  background: linear-gradient(120deg, #0f1c3f, #1e4bd8);
  color: #fff;
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.contact__form {
  background: #ffffff;
  color: var(--text);
  padding: 24px;
  border-radius: 20px;
  display: grid;
  gap: 14px;
}

.contact__form--large {
  padding: 32px;
}

.contact__form label {
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.contact__form input,
.contact__form textarea,
.contact__form select {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.contact__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

.info-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.info-box p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer {
  background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 55%, #fef3f0 100%);
  color: #0f1c3f;
  padding: 28px 0 40px;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #3d4b6b;
}

@media (max-width: 960px) {
  .hero__inner,
  .contact,
  .split,
  .page-hero__inner,
  .split-info,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__media img {
    min-height: 320px;
  }

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

  .card--horizontal {
    flex-direction: column;
  }

  .card--horizontal img {
    width: 100%;
  }

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

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

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

  .portfolio-track {
    grid-auto-columns: minmax(220px, 60%);
  }

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

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 56px 0 64px;
  }

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

  .cards,
  .gallery {
    grid-template-columns: 1fr;
  }

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

  .portfolio-track {
    grid-auto-columns: 85%;
  }

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

  .page-hero {
    padding: 48px 0;
  }
}
