:root {
  --ink: #0b1320;
  --text: #344054;
  --muted: #667085;
  --line: #d9e7ee;
  --surface: #ffffff;
  --soft: #eef8fb;
  --teal: #1189a3;
  --teal-deep: #073649;
  --navy: #020814;
  --cyan: #58d6f2;
  --coral: #ff4f70;
  --coral-dark: #e43d5c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #e5e5e5;
  font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 18px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 28px 72px rgba(0, 0, 0, 0.24),
    0 8px 22px rgba(0, 0, 0, 0.14);
}

.site-header {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 48px;
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

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

.nav {
  display: flex;
  gap: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover {
  color: #ffffff;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease,
    background 160ms ease, border-color 160ms ease;
}

.header-cta,
.button.secondary {
  color: #ffffff;
  background: rgba(20, 29, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #d33a55, #d75b40);
  border: 1px solid rgba(255, 79, 112, 0.2);
  box-shadow: 0 16px 30px rgba(211, 58, 85, 0.24);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-5px) scale(1.04);
  filter: brightness(1.08);
}

.button:hover {
  box-shadow: 0 24px 42px rgba(211, 58, 85, 0.4);
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 118px 56px 88px;
  color: #ffffff;
  background: var(--navy);
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(229, 118, 40, 0.3) 0%, rgba(225, 126, 50, 0.1) 24%, transparent 48%),
    linear-gradient(0deg, rgba(8, 24, 62, 0.64) 0%, rgba(14, 45, 91, 0.36) 34%, transparent 64%),
    radial-gradient(circle at 50% 55%, rgba(55, 191, 230, 0.14), transparent 25%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.66) 0%, rgba(2, 8, 20, 0.18) 44%, rgba(2, 8, 20, 0.84) 100%),
    linear-gradient(90deg, rgba(2, 8, 20, 0.72), rgba(2, 8, 20, 0.16), rgba(2, 8, 20, 0.72));
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 1.05;
  letter-spacing: 0;
  word-break: keep-all;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
  word-break: keep-all;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.28;
}

.hero-copy {
  max-width: 620px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  font-weight: 600;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 170px;
}

.teal-band {
  padding: 10px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #128bb0 0%, #06445b 100%);
}

.band-copy {
  display: block;
  max-width: none;
  margin: 0 0 20px 72px;
}

.band-copy h2 {
  color: #ffffff;
  white-space: nowrap;
  text-align: left;
}

.band-copy p:last-child {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
}

.device-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(2, 18, 31, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.device-panel h3 {
  color: #ffffff;
  font-size: 28px;
}

.device-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.device-panel img {
  width: 100%;
  aspect-ratio: 1.9;
  object-fit: cover;
  border-radius: 8px;
}

.card-section {
  display: grid;
  gap: 30px;
  padding: 62px 48px 74px;
  background: #f4fbfd;
}

.image-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 68, 84, 0.1);
}

.image-card.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
}

.image-card.reverse img {
  order: 2;
}

.image-card img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
  border-radius: 8px;
}

.image-card > div {
  padding: 14px 14px 14px 0;
}

.image-card.reverse > div {
  padding: 14px 0 14px 14px;
}

.image-card p:not(.eyebrow) {
  color: var(--muted);
}

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

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.card-links .text-link {
  margin-top: 0;
}

.dark-section {
  padding: 80px 48px 90px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 0%, rgba(17, 137, 163, 0.24), transparent 28%),
    #02121c;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  color: #ffffff;
}

.section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.62);
}

.stack-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.stack-card {
  min-height: 170px;
  padding: 24px;
  background: rgba(8, 45, 62, 0.92);
  border: 1px solid rgba(88, 214, 242, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
  transition: transform 90ms ease, background 90ms ease, border-color 90ms ease, box-shadow 90ms ease;
}

.stack-card:hover {
  background: rgba(11, 66, 88, 0.98);
  border-color: rgba(88, 214, 242, 0.5);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.3);
  transform: scale(1.025);
}

.stack-card span {
  display: block;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.stack-card h3 {
  color: #ffffff;
}

.stack-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
}

.bottom-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 22px;
  align-items: center;
  padding: 58px 48px;
  background: #eef8fb;
}

.mini-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 90ms ease, background 90ms ease, border-color 90ms ease, box-shadow 90ms ease;
}

.mini-card:hover {
  background: #ffffff;
  border-color: rgba(17, 137, 163, 0.28);
  box-shadow: 0 16px 34px rgba(20, 68, 84, 0.12);
  transform: scale(1.025);
}

.mini-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.mini-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.mini-icon {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--teal);
  border: 2px solid currentColor;
  border-radius: 8px;
}

.automation-icon::before,
.automation-icon::after,
.railway-icon::before,
.railway-icon::after,
.ev-icon::before,
.ev-icon::after {
  position: absolute;
  content: "";
}

.automation-icon::before {
  top: 9px;
  right: 8px;
  left: 8px;
  height: 3px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.automation-icon::after {
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.railway-icon {
  border-radius: 50%;
}

.railway-icon::before {
  inset: 9px 12px 10px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.railway-icon::after {
  right: 9px;
  bottom: 8px;
  left: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -12px 0 currentColor;
}

.ev-icon::before {
  inset: 10px 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.ev-icon::after {
  top: 14px;
  left: 16px;
  width: 8px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skew(-16deg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 48px;
  color: #d6dee7;
  background: #020814;
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.footer-brand img {
  flex: 0 0 auto;
  width: 148px;
  height: auto;
}

.reveal-layer {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 340ms ease, transform 340ms cubic-bezier(0.2, 0.72, 0.2, 1);
  transition-delay: var(--layer-delay, 0ms);
}

.layers-ready .reveal-layer {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
}

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

.layer-rise {
  transform: translateY(0) scale(1);
}

.layers-ready .layer-rise {
  transform: translateY(58px) scale(0.96);
}

.stack-card:nth-child(2) {
  --layer-delay: 110ms;
}

.stack-card:nth-child(3) {
  --layer-delay: 220ms;
}

.layers-ready .stack-card:nth-child(2) {
  transform: translateY(76px) scale(0.94);
}

.layers-ready .stack-card:nth-child(3) {
  transform: translateY(104px) scale(0.92);
}

.layers-ready .stack-card.is-visible {
  transform: translateY(0) scale(1);
}

.layers-ready .stack-card.reveal-layer.is-visible:hover,
.layers-ready .mini-card.reveal-layer.is-visible:hover {
  transform: translateY(0) scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-layer,
  .stack-card:nth-child(2),
  .stack-card:nth-child(3) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 860px) {
  body {
    background: #020814;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .site-header {
    min-height: 64px;
    padding: 0 20px;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 660px;
    padding: 104px 20px 72px;
  }

  .hero-content {
    width: 100%;
    max-width: 350px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: 34px;
    word-break: break-all;
  }

  h2 {
    font-size: 28px;
    word-break: break-all;
  }

  h3 {
    word-break: break-all;
  }

  .hero-copy,
  .band-copy p,
  .device-panel p,
  .image-card p,
  .section-heading p,
  .stack-card p {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .device-panel img,
  .image-card img {
    min-width: 0;
  }

  .teal-band,
  .card-section,
  .dark-section,
  .bottom-summary {
    padding-right: 20px;
    padding-left: 20px;
  }

  .band-copy,
  .device-panel,
  .image-card,
  .image-card.reverse,
  .stack-flow,
  .bottom-summary {
    grid-template-columns: 1fr;
  }

  .band-copy h2 {
    white-space: normal;
  }

  .image-card.reverse img {
    order: 0;
  }

  .image-card,
  .device-panel {
    gap: 20px;
  }

  .image-card > div,
  .image-card.reverse > div {
    padding: 4px;
  }

  .stack-flow {
    gap: 12px;
  }

  .bottom-summary {
    align-items: start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-brand img {
    width: 132px;
  }
}
