:root {
  --bg-top: #f8fbff;
  --bg-middle: #eef5fc;
  --bg-bottom: #e7f0f9;

  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;

  --accent: #1f5c99;

  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --line: rgba(15, 23, 42, 0.08);

  --shadow:
    0 34px 90px rgba(15, 23, 42, 0.08),
    0 12px 40px rgba(31, 92, 153, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    Inter,
    Pretendard,
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    Arial,
    sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.98), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(197, 226, 255, 0.55), transparent 32%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-middle) 48%, var(--bg-bottom) 100%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(52px);
  opacity: 0.78;
}

.ambient-left {
  width: 520px;
  height: 520px;
  top: -170px;
  left: -130px;
  background: rgba(187, 224, 255, 0.58);
  animation: drift-left 16s ease-in-out infinite;
}

.ambient-right {
  width: 480px;
  height: 480px;
  top: 8%;
  right: -150px;
  background: rgba(214, 235, 255, 0.82);
  animation: drift-right 18s ease-in-out infinite;
}

.ambient-bottom {
  width: 420px;
  height: 420px;
  bottom: -210px;
  left: 38%;
  background: rgba(255, 255, 255, 0.9);
  animation: drift-bottom 20s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 24px 34px;
}

.hero-card {
  width: min(1160px, 100%);
  min-height: min(820px, calc(100vh - 110px));
  padding: clamp(34px, 5vw, 76px);
  border-radius: 44px;
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    var(--glass-strong) 0%,
    var(--glass) 100%
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 28px;
  padding: 10px 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(31, 92, 153, 0.08);
}

/* =========================
   Brand Animation
========================= */

.brand-stage {
  position: relative;
  width: 100%;
  height: 230px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.brand-line {
  position: relative;
  width: min(100%, 1040px);
  height: 210px;
  margin: 0 auto;
  overflow: hidden;
}

.brand-unit {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  transform:
    translateY(-50%)
    translateX(var(--closed-x));
  animation: unit-spread 9s cubic-bezier(0.22, 0.8, 0.2, 1) infinite;
}

.safety {
  --closed-x: -238px;
  --open-x: -448px;
  --tail-width: 88px;
}

.environment {
  --closed-x: -88px;
  --open-x: -238px;
  --tail-width: 218px;
}

.health {
  --closed-x: 62px;
  --open-x: 72px;
  --tail-width: 104px;
}

.ai {
  --closed-x: 212px;
  --open-x: 292px;
  --tail-width: 40px;
}

.initial {
  display: inline-block;
  color: #0b1728;
  font-size: clamp(84px, 11vw, 142px);
  font-weight: 860;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: left;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 48px rgba(31, 92, 153, 0.12);
}

.tail {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: 0.035em;
  color: rgba(15, 23, 42, 0.82);
  font-size: clamp(18px, 1.85vw, 27px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.035em;
  transform: translateX(-8px);
  animation: tail-reveal 9s cubic-bezier(0.22, 0.8, 0.2, 1) infinite;
}

.ai .tail {
  margin-left: 0.34em;
  letter-spacing: 0.04em;
  font-weight: 820;
}

@keyframes unit-spread {
  0%,
  18%,
  86%,
  100% {
    transform:
      translateY(-50%)
      translateX(var(--closed-x));
  }

  36%,
  76% {
    transform:
      translateY(-50%)
      translateX(var(--open-x));
  }
}

@keyframes tail-reveal {
  0%,
  42%,
  78%,
  100% {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
  }

  54%,
  68% {
    max-width: var(--tail-width);
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   Text Area
========================= */

.headline {
  margin: 0;
  text-align: center;
  color: var(--text-main);
  font-size: clamp(32px, 4.15vw, 58px);
  font-weight: 840;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--text-sub);
  text-align: center;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 540;
  line-height: 1.72;
  letter-spacing: -0.02em;
}

.status {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--text-muted);
  text-align: center;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.76;
  letter-spacing: -0.015em;
}

.contact-box {
  margin-top: 42px;
  padding: 14px 19px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.contact-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-link {
  color: var(--accent);
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.72;
  transform: translateY(-1px);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgba(71, 85, 105, 0.92);
  font-size: 14px;
  font-weight: 620;
}

.divider {
  opacity: 0.55;
}

/* =========================
   Background Motions
========================= */

@keyframes drift-left {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(42px, 28px, 0) scale(1.07);
  }
}

@keyframes drift-right {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-38px, 34px, 0) scale(1.08);
  }
}

@keyframes drift-bottom {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(30px, -26px, 0) scale(1.05);
  }
}

/* =========================
   Responsive
========================= */

@media (max-width: 980px) {
  .hero-card {
    min-height: auto;
    padding-top: 50px;
    padding-bottom: 52px;
  }

  .brand-stage {
    height: 200px;
  }

  .brand-line {
    width: min(100%, 860px);
    height: 180px;
  }

  .initial {
    font-size: clamp(72px, 10vw, 112px);
  }

  .tail {
    font-size: clamp(15px, 1.75vw, 23px);
  }

  .safety {
    --closed-x: -194px;
    --open-x: -346px;
    --tail-width: 74px;
  }

  .environment {
    --closed-x: -72px;
    --open-x: -180px;
    --tail-width: 188px;
  }

  .health {
    --closed-x: 50px;
    --open-x: 62px;
    --tail-width: 88px;
  }

  .ai {
    --closed-x: 172px;
    --open-x: 222px;
    --tail-width: 32px;
  }

  .ai .tail {
    margin-left: 0.3em;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 20px 14px 24px;
  }

  .hero-card {
    border-radius: 30px;
    padding: 34px 18px 42px;
  }

  .eyebrow {
    margin-bottom: 22px;
    padding: 9px 14px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .brand-stage {
    height: 150px;
    margin-bottom: 8px;
  }

  .brand-line {
    width: 100%;
    height: 135px;
  }

  .initial {
    font-size: clamp(52px, 13vw, 78px);
    letter-spacing: -0.04em;
  }

  .tail {
    font-size: clamp(10px, 2.15vw, 14px);
    margin-left: 0.02em;
  }

  .safety {
    --closed-x: -132px;
    --open-x: -224px;
    --tail-width: 46px;
  }

  .environment {
    --closed-x: -48px;
    --open-x: -118px;
    --tail-width: 116px;
  }

  .health {
    --closed-x: 36px;
    --open-x: 42px;
    --tail-width: 56px;
  }

  .ai {
    --closed-x: 120px;
    --open-x: 138px;
    --tail-width: 22px;
  }

  .ai .tail {
    margin-left: 0.28em;
    letter-spacing: 0.04em;
  }

  .headline {
    font-size: clamp(28px, 7.8vw, 40px);
    line-height: 1.25;
  }

  .intro {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.72;
  }

  .status {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.72;
  }

  .contact-box {
    margin-top: 30px;
    padding: 14px 18px;
    flex-direction: column;
    gap: 6px;
    border-radius: 22px;
  }

  .contact-link {
    font-size: 16px;
  }

  .footer {
    padding-bottom: 22px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .brand-stage {
    height: 122px;
  }

  .brand-line {
    height: 112px;
  }

  .initial {
    font-size: 54px;
  }

  .tail {
    font-size: 9.5px;
  }

  .safety {
    --closed-x: -92px;
    --open-x: -150px;
    --tail-width: 36px;
  }

  .environment {
    --closed-x: -34px;
    --open-x: -78px;
    --tail-width: 84px;
  }

  .health {
    --closed-x: 24px;
    --open-x: 28px;
    --tail-width: 42px;
  }

  .ai {
    --closed-x: 82px;
    --open-x: 90px;
    --tail-width: 18px;
  }

  .ai .tail {
    margin-left: 0.26em;
  }
}

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .ambient-left,
  .ambient-right,
  .ambient-bottom,
  .brand-unit,
  .tail {
    animation: none !important;
  }

  .brand-unit {
    transform:
      translateY(-50%)
      translateX(var(--open-x));
  }

  .tail {
    max-width: var(--tail-width);
    opacity: 1;
    transform: none;
  }
}
