:root {
  color-scheme: light;
  --ink: #0d1625;
  --muted: #606b7d;
  --red: #d20a17;
  --navy: #071321;
  --line: #e2e5ea;
  --surface: #f4f6f8;
  font-family: Pretendard, "Noto Sans KR", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.public-header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand-link { flex: 0 0 auto; display: flex; align-items: center; }
.brand-link img { display: block; width: 164px; height: auto; }
.portfolio-nav { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.top-tab {
  display: block;
  padding: 10px 13px;
  border-radius: 8px;
  color: #3e4858;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.top-tab:hover, .top-tab.active { color: var(--red); background: #fff2f3; }
.construction-menu { position: relative; }
.construction-menu::after { position: absolute; top: 100%; left: 0; width: 100%; height: 10px; content: ""; }
.construction-links {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 172px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 18, 33, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}
.construction-menu:hover .construction-links,
.construction-menu:focus-within .construction-links { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.construction-links a { display: block; padding: 10px 12px; border-radius: 7px; font-size: 14px; font-weight: 650; }
.construction-links a:hover { background: var(--surface); color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.header-cta { padding: 11px 17px; color: #fff; background: #101a2d; border-radius: 999px; }

.final-hero { overflow: hidden; color: var(--ink); background: #f5f8fc; }
.final-hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
  padding-top: 92px;
  padding-bottom: 78px;
}
.final-hero-copy { text-align: center; }
.final-hero-copy .hero-eyebrow { display: none; }
.hero-eyebrow, .section-eyebrow { margin: 0 0 20px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.final-hero h1 { margin: 0; font-size: clamp(50px, 5.7vw, 82px); line-height: 1.05; letter-spacing: -0.055em; }
.hero-subtitle { margin: 26px 0 34px; color: #526077; font-size: 19px; font-weight: 650; }
.hero-actions { display: flex; justify-content: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 7px; font-weight: 800; }
.btn.primary { color: #fff; background: #101a2d; }
.btn.ghost-on-dark { color: #172236; border: 1px solid #c9d0da; background: #fff; }
.hero-video-panel { overflow: hidden; width: min(1120px, 100%); aspect-ratio: 16 / 9; border: 8px solid #101a2d; border-radius: 14px; background: #101a2d; box-shadow: 0 28px 70px rgba(17, 28, 45, 0.18); }
.hero-video-panel video { width: 100%; height: 100%; object-fit: cover; }

.solution-band { padding: 56px 0; scroll-margin-top: 76px; }
.solution-band:nth-child(odd) { background: var(--surface); }
.solution-band-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 84px; }
.solution-band.reversed .solution-detail-media { order: 2; }
.solution-detail-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 6px; background: #101a2d; box-shadow: 0 20px 52px rgba(19, 30, 45, 0.13); }
.solution-detail-media video, .solution-detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.solution-detail-media.show-full-video video { object-fit: contain; }
.solution-band-copy h2 { margin: 0 0 24px; font-size: clamp(37px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.04em; }
.solution-band-copy h2 em, .public-footer em { color: var(--red); font-style: normal; }
.solution-band-copy > p { margin: 0 0 28px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.solution-band-copy ul { margin: 0; padding: 0; list-style: none; }
.solution-band-copy li { position: relative; padding: 8px 0 8px 20px; color: #394455; font-size: 16px; }
.solution-band-copy li::before { position: absolute; left: 0; color: #236cf2; content: "•"; }

.public-footer { padding: 46px 0; color: #d8dee7; background: var(--navy); }
.public-footer strong { font-size: 15px; }
.public-footer p { margin: 10px 0 0; color: #8490a0; font-size: 12px; }

.gateway-page { min-height: 100vh; display: flex; flex-direction: column; }
.gateway-main { flex: 1; background: #f3f6fa; }
.gateway-stage { width: min(1360px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 56px; }
.gateway-video {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 8px solid #101a2d;
  border-radius: 16px;
  background: #101a2d;
  box-shadow: 0 30px 80px rgba(15, 28, 48, 0.2);
}
.gateway-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gateway-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(1040px, 100%);
  margin: 28px auto 0;
}
.gateway-button {
  --card-accent: #182a45;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  padding: 24px 26px;
  border: 1px solid #dce1e8;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(12, 25, 44, 0.08);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.gateway-button::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--card-accent);
  content: "";
  transform: scaleX(0.16);
  transform-origin: left;
  transition: transform 220ms ease;
}
.gateway-card-copy { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.gateway-card-copy small { color: var(--card-accent); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.gateway-card-copy strong { font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -0.035em; }
.gateway-card-copy > span { overflow: hidden; color: var(--muted); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.gateway-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin-left: 18px;
  place-items: center;
  border: 1px solid #d9dee6;
  border-radius: 50%;
  color: var(--card-accent);
  background: #f7f9fb;
  font-size: 22px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.gateway-button:hover,
.gateway-button:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--card-accent) 48%, white); box-shadow: 0 22px 48px rgba(12, 25, 44, 0.14); }
.gateway-button:hover::before,
.gateway-button:focus-visible::before { transform: scaleX(1); }
.gateway-button:hover .gateway-arrow,
.gateway-button:focus-visible .gateway-arrow { color: #fff; background: var(--card-accent); transform: rotate(6deg); }
.gateway-button:focus-visible { outline: 3px solid #66a3ff; outline-offset: 3px; }
.gateway-button.moving { --card-accent: var(--red); }
@media (max-width: 980px) {
  .public-header-inner { flex-wrap: wrap; padding: 12px 0; gap: 10px 18px; }
  .portfolio-nav { order: 3; width: 100%; overflow: visible; }
  .header-actions { margin-left: auto; }
  .solution-band-grid { grid-template-columns: 1fr; }
  .final-hero-grid { padding-top: 70px; padding-bottom: 60px; gap: 48px; }
  .solution-band { padding: 48px 0; }
  .solution-band-grid { gap: 42px; }
  .solution-band.reversed .solution-detail-media { order: initial; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand-link img { width: 132px; }
  .header-actions > a:first-child { display: none; }
  .top-tab { padding: 8px 10px; white-space: nowrap; }
  .final-hero h1 { font-size: 42px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .solution-band { padding: 36px 0; }
  .gateway-stage { width: min(100% - 28px, 1360px); padding: 24px 0 34px; }
  .gateway-video { border-width: 4px; border-radius: 10px; }
  .gateway-actions { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .gateway-button { min-height: 108px; padding: 19px 20px; border-radius: 14px; }
  .gateway-card-copy > span { font-size: 12px; }
  .gateway-arrow { width: 40px; height: 40px; margin-left: 12px; }
}
