/* 역할: 메인 브랜드 배너.
 * 화면 표현용 스타일입니다. 권한·요금제 판단은 서버에서 수행합니다.
 * 전체 구조: docs/CODE_GUIDE.md
 */
.ai-home .ai-hero {
  width: calc(100% - 40px);
  max-width: 1480px;
  min-height: 660px;
  padding-top: 94px !important;
  padding-bottom: 80px !important;
  overflow: clip;
}
.ai-hero > h1,
.ai-hero > .ai-hero-eyebrow,
.ai-hero > p,
.ai-hero > .hero-prompt,
.ai-hero > .hero-quick,
.ai-hero > .ai-hero-note {
  position: relative;
  z-index: 2;
}
.ai-hero h1 {
  font-size: clamp(44px, 4.5vw, 68px);
}
.ai-hero > p {
  margin-top: 20px;
}
.hero-prompt {
  border-radius: 18px !important;
  box-shadow: 0 12px 48px #6250df1f;
  border: 1px solid #c8c1f5;
  max-width: 650px;
}
.hero-prompt:focus-within {
  box-shadow:
    0 0 0 5px #6855ed10,
    0 16px 58px #6250df29;
  border-color: #8676f1;
}
.hero-prompt button {
  border-radius: 11px !important;
}
.hero-prompt input {
  background: transparent;
}
.hero-sites {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-site {
  position: absolute;
  width: 235px;
  pointer-events: auto;
  transform: translate3d(
    calc(var(--pointer-x, 0px) * var(--depth)),
    calc(var(--pointer-y, 0px) * var(--depth)),
    0
  );
  transition: transform 0.4s ease;
  outline-offset: 8px;
}
.hero-site-shell {
  border-radius: 11px;
  overflow: hidden;
  background: white;
  border: 1px solid #dddfe8;
  box-shadow: 0 18px 40px #30365f16;
  transform: rotate(var(--angle));
  animation: hero-site-float 8s ease-in-out infinite;
  animation-delay: var(--delay);
}
.hero-site:hover .hero-site-shell,
.hero-site:focus-visible .hero-site-shell {
  animation-play-state: paused;
  box-shadow: 0 22px 50px #4e40a32b;
  border-color: #8576df;
}
.hero-site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding: 0 10px;
  font-size: 7px;
  color: #a9adba;
  background: #f9f9fc;
}
.hero-site-bar b {
  font-size: 7px;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: #737587;
}
.hero-site-bar i {
  font-size: 11px;
  font-style: normal;
}
.hero-site img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 864/600;
  object-fit: contain;
}
.hero-site-foot {
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 8px;
  color: #777a8a;
}
.hero-site-foot b {
  color: #7865bd;
  font-weight: 500;
}
.hero-site-1 {
  left: 1.5%;
  top: 145px;
  --angle: -9deg;
  --depth: 1;
  --delay: -2s;
}
.hero-site-2 {
  left: 5%;
  top: 400px;
  --angle: 7deg;
  --depth: 0.65;
  --delay: -5s;
  width: 205px;
}
.hero-site-3 {
  right: 1.5%;
  top: 140px;
  --angle: 9deg;
  --depth: -0.8;
  --delay: -4s;
}
.hero-site-4 {
  right: 5%;
  top: 395px;
  --angle: -7deg;
  --depth: -0.5;
  --delay: -1s;
  width: 215px;
}
#hero-motion-toggle {
  position: relative;
  z-index: 3;
  margin-top: 16px;
  font-size: 10px;
  color: #9a94ad;
  padding: 5px 9px;
  border-radius: 8px;
}
.hero-motion-paused .hero-site-shell,
.hero-motion-paused .hero-motion-graphic *,
.hero-motion-paused h1 > span {
  animation-play-state: paused !important;
}
@keyframes hero-site-float {
  50% {
    transform: translateY(-15px) rotate(calc(var(--angle) + 2deg));
  }
}
@media (max-width: 1240px) {
  .ai-home .ai-hero {
    min-height: 710px;
    padding-top: 65px !important;
    padding-bottom: 245px !important;
  }
  .hero-site {
    width: 180px;
    top: auto !important;
    bottom: 35px;
    --angle: -5deg;
  }
  .hero-site-1 {
    left: calc(50% - 400px);
  }
  .hero-site-2 {
    left: calc(50% - 195px);
    --angle: 4deg;
  }
  .hero-site-3 {
    right: calc(50% - 195px);
    --angle: -4deg;
  }
  .hero-site-4 {
    right: calc(50% - 400px);
    --angle: 5deg;
  }
}
@media (max-width: 850px) {
  .ai-home .ai-hero {
    min-height: 690px;
  }
  .hero-site {
    width: 155px;
  }
  .hero-site-1 {
    left: calc(50% - 330px);
  }
  .hero-site-2 {
    left: calc(50% - 162px);
  }
  .hero-site-3 {
    right: calc(50% - 162px);
  }
  .hero-site-4 {
    right: calc(50% - 330px);
  }
}
@media (max-width: 700px) {
  .ai-home .ai-hero {
    width: 100%;
    padding: 46px 18px 195px !important;
    min-height: 665px;
  }
  .ai-hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
    margin-top: 22px;
  }
  .ai-hero > p {
    font-size: 12px;
    line-height: 1.9;
  }
  .hero-prompt {
    margin-top: 25px;
    border-radius: 14px !important;
  }
  .hero-prompt input {
    font-size: 11px;
  }
  .hero-prompt button {
    padding: 13px 10px;
    font-size: 10px;
  }
  .hero-site {
    width: 142px;
    bottom: 27px;
  }
  .hero-site-1 {
    left: calc(50% - 232px);
  }
  .hero-site-2 {
    left: calc(50% - 71px);
  }
  .hero-site-3 {
    right: calc(50% - 232px);
  }
  .hero-site-4 {
    display: none;
  }
  .hero-site-bar {
    height: 23px;
  }
  .hero-site-foot {
    font-size: 7px;
    padding: 7px;
  }
  .hero-site-foot b {
    display: none;
  }
  .ai-hero-note {
    font-size: 9px;
  }
  #hero-motion-toggle {
    font-size: 9px;
    margin-top: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-site-shell {
    animation: none !important;
  }
  .hero-site {
    transform: none !important;
    transition: none !important;
  }
}
/* Keep the text's hit area clear of the portfolio links. */
.ai-hero > h1,
.ai-hero > .ai-hero-eyebrow,
.ai-hero > p,
.ai-hero > .hero-quick,
.ai-hero > .ai-hero-note {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
html[lang="en"] .ai-hero h1 {
  font-size: clamp(38px, 4vw, 61px);
  letter-spacing: -2.4px;
  max-width: 680px;
}
html[lang="en"] .ai-hero > p {
  max-width: 580px;
}
@media (max-width: 700px) {
  html[lang="en"] .ai-hero h1 {
    font-size: 38px;
    letter-spacing: -1.9px;
  }
  html[lang="en"] .ai-hero > p {
    max-width: 310px;
  }
}

/* Tiny, local first-paint previews; full documents load only after selection. */
.hero-instant-preview{display:block;position:relative;aspect-ratio:3/2;overflow:hidden;background:#fff;text-align:left;color:#17201e}
.hero-instant-preview img{display:block;width:100%;height:100%;object-fit:contain}
