:root {
  --c-bg: #ffffff;
  --c-text: #1c1b1b;
  --c-muted: #4a4d4f;
  --c-light-muted: #858585;
  --c-page-soft: #efeeea;
  --c-ai-card: #F8F8FA;
  --c-navy: #1a1d3c;
  --c-navy-2: #0e1230;
  --c-border: #e6e6e6;
  --font-kr: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: var(--font-kr);
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

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

button {
  font-family: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

.page {
  position: relative;
  width: 100%;
  min-width: 1280px;
  overflow-x: hidden;
  cursor: pointer;
  background: #fff;
}

/* ===== HEADER (floating white pill) ===== */
.header {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
}

.header__pill {
  width: 1240px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 10px 10px 10px 32px;
  display: flex;
  align-items: center;
  gap: 36px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.brand img {
  height: 22px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav__item {
  font-size: 14px;
  font-weight: 600;
  color: #a1a1a4;
}
.nav__item--active {
  color: #1c1b1b;
  font-weight: 700;
}

.header__login {
  margin-left: auto;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1c1b1b;
  border-radius: 999px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 920px;
  overflow: hidden;
  background: #0a0e2c;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding-top: 270px;
}

.hero__title {
  font-size: 74px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero__search {
  margin-top: 52px;
  width: 560px;
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.hero__search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__placeholder {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  color: #9aa0a6;
  text-align: left;
}

.hero__send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1c1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__upload {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eceef0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #9aa0a6;
}

/* ===== shared section styles ===== */
.section {
  position: relative;
  padding: 130px 0;
}

.section__head {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  text-align: center;
}

.section__head--light {
  color: #fff;
}

.section__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.section__subtitle {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.5;
}

.section__head--light .section__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== SECTION 1: 무엇이든 만들 수 있어요 ===== */
.section--cards {
  background: #fff;
  margin-top: -52px;
  border-radius: 52px 52px 0 0;
  padding-top: 130px;
  padding-bottom: 130px;
  z-index: 5;
}

.cards {
  width: 1010px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  aspect-ratio: 237 / 409;
  border-radius: 22px;
  overflow: hidden;
  background: #d6d6d6;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 56px auto 0;
  padding: 16px 26px;
  background: #1c1b1b;
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
}

.section--cards {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section--cards .section__head,
.section--cards .cards {
  margin-left: auto;
  margin-right: auto;
}

/* ===== SECTION 2: AI 자동 맞춤 서비스 ===== */
.section--ai {
  background: #fff;
  padding: 60px 0;
  height: 1060px;
  contain: strict;
}

.ai-card {
  width: 1200px;
  margin: 0 auto;
  background: var(--c-ai-card);
  border-radius: 70px;
  padding: 90px 80px;
}

.ai-card .section__head {
  margin-bottom: 60px;
}

.ai-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ai-list {
  list-style: none;
  height: 540px;
  contain: layout;
}

.ai-list__item {
  padding: 16px 6px;
  color: #b9b6af;
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.35s ease, color 0.25s ease;
  will-change: grid-template-rows;
}

.ai-list__item h3 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ai-list__item--active {
  color: var(--c-text);
  grid-template-rows: auto 1fr;
}

.ai-list__item--active h3 {
  color: var(--c-text);
}

.ai-list__item p {
  font-size: 18px;
  font-weight: 500;
  color: #6a6c6e;
  line-height: 26px;
  max-width: 391px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  min-height: 0;
  contain: paint; /* Optimization */
}

.ai-list__item--active p {
  opacity: 1;
  padding-top: 12px;
}

.ai-visuals {
  position: relative;
  height: 540px;
  contain: layout;
}

.ai-variant {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ai-variant--active {
  opacity: 1;
  pointer-events: auto;
}

.ai-variant__row {
  display: flex;
  gap: 14px;
}

.ai-tile {
  position: relative;
  flex: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #ccc;
  aspect-ratio: 231 / 219;
}

.ai-tile--wide {
  width: 100%;
  flex: 1;
  aspect-ratio: 485 / 219;
}

.ai-tile--big {
  width: 100%;
  flex: 1;
  aspect-ratio: 485 / 449;
}

.ai-tile--avatar {
  background: #ffffff;
  aspect-ratio: 1 / 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.ai-tile img,
.ai-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-tile--avatar img {
  object-fit: contain;
  padding: 12px;
}

/* ===== SECTION 3: 전문가 제작 대행 서비스 ===== */
.section--pro {
  background: #fff;
  padding: 60px 0 100px;
}

.pro-card {
  width: 1280px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  border-radius: 40px;
  padding: 90px 80px;
  color: #fff;
  text-align: center;
}

.pro-card .section__head {
  margin-bottom: 60px;
}

.pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  text-align: left;
}

.pro-grid__left,
.pro-grid__right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pro-tile {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 290px;
  background: #2a2d52;
}

.pro-tile--tall {
  height: 602px;
}

.pro-tile img,
.pro-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 10px 22px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.pro-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  padding: 20px 38px;
  background: #fff;
  color: #1c1b1b;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
}

/* ===== SECTION 4: Testimonials ===== */
.section--stories {
  background: #f8f8fa;
  padding: 140px 0 130px;
  overflow: hidden;
}

.watermark {
  position: absolute;
  top: 90px;
  right: -30px;
  font-family: "Inter", var(--font-kr);
  font-size: 145px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.06);
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.stories-head {
  width: 1130px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.stories-title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.testimonials {
  width: 1130px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial {
  background: #fff;
  border-radius: 24px;
  padding: 38px 32px 40px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.04);
}

.testimonial__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
}

.testimonial__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #1c1b1b;
}

.testimonial__who {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  color: #b5b5b5;
}

.testimonial__body {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 400;
  color: #6f7174;
  line-height: 1.7;
}

/* ===== SECTION 5: CTA ===== */
.section--cta {
  background: #ffffff;
  padding: 80px 0 140px;
}

.cta {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 450px 683px;
  align-items: center;
  gap: 67px;
}

.cta__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.cta__sub {
  margin-top: 28px;
  font-size: 18px;
  color: #858585;
  line-height: 1.5;
}

/* Figma: collage area exact match (1149 width scaled to 683, 621 height kept). */
.cta__collage {
  position: relative;
  width: 683px;
  height: 621px;
}

/* Figma: 486x486 main at relative (197, 0) of 683x621 collage */
.cta__main {
  position: absolute;
  top: 0;
  left: 197px;
  width: 486px;
  height: 486px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

/* Figma: 270x270 rect (cornerRadius 30) at relative (68, 351) */
.cta__rect {
  position: absolute;
  top: 351px;
  left: 68px;
  width: 270px;
  height: 270px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
  z-index: 2;
}

/* Figma: 135x135 rounded square (cornerRadius 30) at relative (0, 54) */
.cta__circle {
  position: absolute;
  top: 54px;
  left: 0;
  width: 135px;
  height: 135px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  z-index: 3;
}

/* ===== FOOTER ===== */
.footer {
  background: #fff;
  padding: 60px 0 70px;
}

.footer__top {
  width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 0;
}

.footer__brand {
  height: 28px;
  width: auto;
  margin-right: 240px;
}

.footer__links {
  display: flex;
  gap: 56px;
}

.footer__links a {
  font-size: 15px;
  color: #4a5566;
}

.footer__copy {
  margin-left: auto;
  font-size: 14px;
  color: #6a7280;
}

.footer__company {
  width: 1280px;
  margin: 8px auto 0;
  color: #bcbcbc;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 6px;
  font-size: 14px;
  color: #bcbcbc;
}

.footer__row--name {
  margin-top: 12px;
}

.footer__row strong {
  font-weight: 700;
  color: #b5b5b5;
}

.footer__row--bottom {
  margin-top: 14px;
  color: #bcbcbc;
  font-weight: 500;
}

.footer__sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #d8d8d8;
}
