:root {
  --surface: #f8f9ff;
  --surface-strong: #ffffff;
  --surface-blue: #eff6ff;
  --surface-deep: #d9edff;
  --text: #141c27;
  --muted: #4b5663;
  --muted-soft: #6b7682;
  --primary: #2e6385;
  --primary-dark: #164864;
  --secondary: #255ea9;
  --sky: #a5d8ff;
  --sky-bright: #d7efff;
  --accent: #f7941d;
  --line: #c6d8e7;
  --shadow: 0 24px 70px rgba(35, 94, 148, 0.14);
  --font-main: "Be Vietnam Pro", "Noto Sans KR", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-main);
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--text);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--text);
  background: rgba(248, 249, 255, 0.88);
  box-shadow: 0 12px 30px rgba(20, 44, 72, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(27, 87, 148, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 126px clamp(18px, 6vw, 84px) 64px;
  color: var(--text);
  background: #dff4ff;
}

#river-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(248, 252, 255, 0.88), rgba(231, 247, 255, 0.58) 46%, rgba(210, 239, 255, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(220, 244, 255, 0.08) 58%, rgba(248, 249, 255, 0.98));
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px);
  background-size: 44px 44px, 70px 70px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--secondary);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: min(100%, 720px);
  margin: 0;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.title-line {
  white-space: nowrap;
}

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

h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.25;
}

.hero-lede {
  width: min(680px, 100%);
  margin: 28px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.34;
  font-weight: 700;
}

.hero-copy {
  width: min(640px, 100%);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 16px 36px rgba(37, 94, 169, 0.32);
}

.button-secondary {
  color: #102d3f;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(46, 99, 133, 0.13);
}

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

.button-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.button-secondary .button-icon,
.button-light .button-icon {
  background: var(--sky-bright);
}

.hero-metrics {
  display: grid;
  width: min(660px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 58px 0 0;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(46, 99, 133, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 42px rgba(46, 99, 133, 0.1);
  backdrop-filter: blur(16px);
}

.hero-metrics dt {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(86px, 10vw, 138px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(860px, 100%);
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  width: min(680px, 100%);
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.problem-card {
  min-height: 320px;
  padding: 28px;
  border: 1px solid rgba(46, 99, 133, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f2f8ff);
  box-shadow: 0 18px 60px rgba(46, 99, 133, 0.08);
}

.card-index {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--secondary);
  font-weight: 800;
}

.problem-card p,
.service-copy p,
.flow-step p,
.cta-content p {
  color: var(--muted);
}

.services-section {
  background: linear-gradient(180deg, #eaf5ff 0%, #f8f9ff 100%);
}

.service-list {
  display: grid;
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(46, 99, 133, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.service-panel:nth-child(even) .service-visual {
  order: 2;
}

.service-visual {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(145deg, #c9e6ff, #73b9ec 52%, #2e6385);
}

.service-visual::before,
.service-visual::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.service-visual::before {
  inset: 34px 24px auto;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.service-visual::after {
  left: -10%;
  right: -10%;
  bottom: 48px;
  height: 74px;
  background: rgba(255, 255, 255, 0.22);
  transform: skewY(-7deg);
}

.model-visual span {
  position: absolute;
  bottom: 72px;
  width: 10px;
  border-radius: 999px;
  background: #fff;
  animation: pulse-bar 1.9s ease-in-out infinite;
}

.model-visual span:nth-child(1) {
  left: 22%;
  height: 56px;
}

.model-visual span:nth-child(2) {
  left: 39%;
  height: 98px;
  animation-delay: 160ms;
}

.model-visual span:nth-child(3) {
  left: 56%;
  height: 78px;
  animation-delay: 320ms;
}

.model-visual span:nth-child(4) {
  left: 73%;
  height: 128px;
  animation-delay: 480ms;
}

.platform-visual span,
.ops-visual span {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
  animation: float-node 4.8s ease-in-out infinite;
}

.platform-visual span:nth-child(1) { left: 16%; top: 26%; }
.platform-visual span:nth-child(2) { left: 45%; top: 18%; animation-delay: 200ms; }
.platform-visual span:nth-child(3) { right: 14%; top: 36%; animation-delay: 420ms; }
.platform-visual span:nth-child(4) { left: 28%; bottom: 18%; animation-delay: 640ms; }
.platform-visual span:nth-child(5) { right: 27%; bottom: 16%; animation-delay: 860ms; }

.ops-visual span {
  width: 74%;
  left: 13%;
  height: 54px;
  border-radius: 14px;
}

.ops-visual span:nth-child(1) { top: 27%; }
.ops-visual span:nth-child(2) { top: 47%; animation-delay: 220ms; }
.ops-visual span:nth-child(3) { top: 67%; animation-delay: 440ms; }

.service-kicker {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.service-copy li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 600;
}

.service-copy li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(247, 148, 29, 0.12);
}

.flow-section {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 10vw, 138px) clamp(18px, 5vw, 72px);
  background: #f8f9ff;
}

.flow-section::before {
  position: absolute;
  inset: 10% -20% auto;
  height: 280px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(165, 216, 255, 0.42), transparent);
  transform: rotate(-6deg);
}

.flow-board {
  position: relative;
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.flow-track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 8px;
}

.flow-line {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #d2e5f5;
}

.flow-line::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--secondary), var(--sky), transparent);
  animation: river-progress 3.4s linear infinite;
}

.flow-dot {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--secondary);
  box-shadow: 0 10px 24px rgba(37, 94, 169, 0.32);
  transform: translate(-50%, -50%);
}

.dot-one { left: 25%; }
.dot-two { left: 50%; }
.dot-three { left: 75%; }

.flow-step {
  position: relative;
  min-height: 230px;
  padding: 90px 22px 24px;
  border: 1px solid rgba(46, 99, 133, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(46, 99, 133, 0.08);
  backdrop-filter: blur(10px);
}

.flow-step span {
  color: var(--secondary);
  font-weight: 800;
}

.faq-section {
  background: linear-gradient(180deg, #f8f9ff, #edf6ff);
}

.faq-list {
  display: grid;
  width: min(960px, 100%);
  gap: 14px;
  margin: 0 auto;
}

.faq-item {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(46, 99, 133, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(46, 99, 133, 0.07);
}

.faq-item h3 {
  font-size: clamp(19px, 2vw, 24px);
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.cta-section {
  padding: clamp(90px, 10vw, 150px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 59, 82, 0.92), rgba(37, 94, 169, 0.88)),
    radial-gradient(circle at 82% 20%, rgba(165, 216, 255, 0.55), transparent 30%),
    #123b52;
}

.cta-content {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.cta-content .eyebrow,
.cta-content p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-content p:not(.eyebrow) {
  width: min(700px, 100%);
  margin: 22px auto 0;
  font-size: 18px;
}

.cta-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--text);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes river-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes pulse-bar {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleY(0.72);
    transform-origin: bottom;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes float-node {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 920px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

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

  .flow-track {
    display: none;
  }

  .flow-step {
    padding-top: 26px;
  }

  .service-panel,
  .service-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-panel:nth-child(even) .service-visual {
    order: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .site-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    width: min(260px, 62vw);
    gap: 8px 12px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: 940px;
    align-items: flex-start;
    padding-top: 116px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

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

  .button {
    width: 100%;
  }

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

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

  .card-index {
    margin-bottom: 32px;
  }

  .service-visual {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
