:root{
  --bg:#ffffff;
  --ink:#141414;
  --muted:#5a5a5a;
  --lav:#f2eaff;
  --lav2:#eadfff;
  --card:#ffffff;
  --line:rgba(0,0,0,.08);
  --shadow: 0 12px 34px rgba(0,0,0,.10);
  --r:18px;
  --heroMainH:420px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.container{width:min(1100px,92vw);margin:0 auto}
.center{text-align:center}
.mt{margin-top:22px}

/* TOP BAR */
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.88);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand__mark{width:34px;height:34px}
.brand__text{font-weight:900;letter-spacing:.6px;font-size:16px}
.nav{display:flex;gap:18px;flex-wrap:wrap}
.nav__link{font-size:14px;color:#333;padding:8px 10px;border-radius:999px}
.nav__link:hover{background:rgba(0,0,0,.04)}

/* HERO */
.hero{background:linear-gradient(180deg,#f3e9ff 0%,#eaf2ff 100%)}
.hero__grid{display:grid;grid-template-columns:1.15fr .85fr;gap:26px;padding:72px 0 86px}
.eyebrow{font-size:15px;letter-spacing:.18em;color:#b24cff;text-transform:uppercase;margin-bottom:18px;font-weight:700}
.hero__title{font-size:52px;line-height:1.02;margin:0 0 18px;font-weight:900;letter-spacing:-.02em;max-width:16ch}
.hero__desc{margin:0 0 22px;color:var(--muted);max-width:58ch;font-size:16px}
.hero__cta{display:flex;gap:12px;flex-wrap:wrap}
.btn{border:1px solid var(--line);background:#fff;color:#111;padding:12px 18px;border-radius:999px;font-weight:800;cursor:pointer}
.btn--primary{background:linear-gradient(90deg,#7db2ff,#ff74df);border:none;color:#fff}
.btn--ghost{background:#fff}
.btn--gradient{width:100%;border:none;color:#fff;background:linear-gradient(90deg,#7db2ff,#ff74df);padding:14px 18px}
.hero__media{display:flex;justify-content:flex-end;gap:14px}
.hero__img{border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}
.hero__img--small{width:190px;height:140px}
.hero__img--main{width:360px;height:var(--heroMainH)}
.hero__img img{width:100%;height:100%;object-fit:cover}

/* SECTIONS */
.section{padding:84px 0}
.section__title{font-size:34px;margin:0 0 12px;font-weight:900}
.section__lead{margin:0;color:var(--muted);max-width:70ch}
.section__lead--center{margin-left:auto;margin-right:auto}

/* ABOUT */
.aboutGrid{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}
.aboutCopy{font-size:18px;line-height:1.55}
.mediaCard{border-radius:22px;overflow:hidden;background:#fff;box-shadow:var(--shadow);border:1px solid rgba(0,0,0,.06)}
.mediaCard img{width:100%}

/* AI SECTION */
.section--ai{background:linear-gradient(180deg,var(--lav) 0%,var(--lav2) 100%)}
.ai__head{text-align:center;margin-bottom:28px}
.ai__kicker{font-size:16px;letter-spacing:.2em;font-weight:900;color:#b24cff}
.ai__titleRow{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:14px}
.ai__hand{width:52px;height:52px;background:none}
.ai__title{font-size:44px;font-weight:900}
.ai__hook{margin-top:14px;font-size:16px;color:#2a2a2a}

.ai__panel{
  max-width:680px;
  margin:28px auto;
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.85);
  box-shadow:var(--shadow);
}

.ai__input{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.15);
  margin-bottom:12px;
}

.aiGrid{
  display:flex;
  justify-content:center;
  align-items:center;
  max-width:680px;
  margin:-4px auto 0;
  padding:0;
}

.aiCard{
  width:100%;
  aspect-ratio:1/1;
  border-radius:22px;
  border:1px solid rgba(0,0,0,.1);
  background:rgba(255,255,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  cursor:pointer;
  transition:opacity 0.2s ease;
}

.aiCard:hover{
  opacity:0.9;
}

.aiCard__img{
  cursor:pointer;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:20px;
}

.aiCard__ph{
  width:56px;
  height:56px;
  opacity:.25;
  background:none;
}

.aiCard__label{
  position:absolute;
  bottom:20%;
  font-size:13px;
  color:#6a53a6;
  cursor:pointer;
}

/* PRODUCTS / PROCESS */
.productRow{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:34px;
  align-items:start;
  padding:36px 0;
  border-top:1px solid rgba(0,0,0,.06);
}
.productRow:first-of-type{border-top:none}
.productRow__copy h3{margin:0 0 10px;font-size:22px}
.productRow__copy p{margin:0 0 10px;color:var(--muted)}
.codes{font-size:13px;color:#666}

.processGrid{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:34px;
  align-items:start;
}
.steps li,.bullets li{margin:8px 0}

/* =========================
   ✅ GALLERY – FINAL FIX
========================= */
.section--gallery{padding:110px 0 120px}
.section--gallery .section__lead{margin-bottom:36px}

.galleryGrid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:20px;
}

.galleryGrid img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:18px;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
}

/* CONTACT / FOOTER */
.section--contact{
  background:linear-gradient(180deg,#b8a8ff 0%,#9c8bff 35%,#7f6dff 100%);
  padding:120px 0;
}

.contactHeader{text-align:center}

.contactBrand{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:64px;
  height:64px;
  border-radius:50%;
  background:rgba(255,255,255,.35);
  margin-bottom:18px;
}

.contactBrand img{
  width:36px;
  height:36px;
  background:none;
}

.contactTitle{font-size:44px;font-weight:900;color:#1b0f3a}
.contactLead{
  max-width:72ch;
  margin:0 auto;
  font-size:16px;
  font-weight:600;
  line-height:1.65;
  color:#1b0f3a;
}

.contactNotice{font-size:13px;color:rgba(27,15,58,.75)}

.contactCard{
  margin:28px auto 0;
  background:rgba(255,255,255,.85);
  border-radius:26px;
  padding:22px;
  max-width:680px;
  text-align:center;
}

.contactCard__value{
  font-size:22px;
  font-weight:900;
  margin-top:8px;
}

.contactCard__actions{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.contactFoot{text-align:center;margin-top:26px;color:rgba(255,255,255,.85);font-size:13px}

/* =====================================================
   MODAL - 기존 유지 + 안내문구만 추가
===================================================== */
.modal{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:1000;
  background:rgba(0,0,0,.8);
  align-items:center;
  justify-content:center;
  padding:20px;
}

.modal[aria-hidden="false"]{
  display:flex;
}

.modal__backdrop{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  cursor:pointer;
  z-index:0;
}

.modal__panel{
  position:relative;
  z-index:1001;
  background:white;
  border-radius:16px;
  padding:30px;
  max-width:95vw;
  max-height:95vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  overflow:auto;
}

.modal__img{
  max-width:100%;
  max-height:70vh;
  width:auto;
  height:auto;
  border-radius:12px;
  object-fit:contain;
}

.modal__close{
  position:absolute;
  top:15px;
  right:15px;
  width:40px;
  height:40px;
  border:none;
  background:rgba(0,0,0,.1);
  border-radius:50%;
  font-size:24px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.2s ease;
  z-index:1002;
}

.modal__close:hover{
  background:rgba(0,0,0,.2);
}

.modal__actions{
  display:flex;
  gap:12px;
  justify-content:center;
  width:100%;
}

/* ✅ 추가: 우클릭 저장 안내 문구 */
.modal__hint{
  font-size:14px;
  color:#444;
  font-weight:700;
  text-align:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(0,0,0,.06);
}

.modal__actions .btn{
  padding:12px 24px;
  font-size:14px;
}

/* RESPONSIVE */
@media(max-width:980px){
  .hero__grid,
  .aboutGrid,
  .productRow,
  .processGrid{grid-template-columns:1fr}
  .galleryGrid{grid-template-columns:repeat(2,1fr)}
}

/* =========================
   📱 MOBILE OPTIMIZATION
   (TOP + HERO ONLY)
========================= */
@media (max-width: 768px){

  /* TOP BAR */
  .topbar__inner{
    flex-direction:column;
    gap:10px;
    padding:12px 0;
  }

  .brand{
    justify-content:center;
  }

  .nav{
    justify-content:center;
    gap:10px;
  }

  .nav__link{
    font-size:13px;
    padding:6px 10px;
  }

  /* HERO */
  .hero__grid{
    grid-template-columns:1fr;
    padding:48px 0 56px;
    text-align:center;
  }

  .eyebrow{
    font-size:13px;
    margin-bottom:14px;
  }

  .hero__title{
    font-size:36px;
    line-height:1.15;
    max-width:none;
  }

  .hero__desc{
    font-size:15px;
    margin:0 auto 20px;
  }

  .hero__cta{
    justify-content:center;
  }

  .hero__media{
    justify-content:center;
    margin-top:28px;
  }

  .hero__img--small{
    display:none; /* 모바일에서 보조 이미지 제거 */
  }

  .hero__img--main{
    width:92vw;
    height:auto;
    max-width:360px;
  }

  .hero__img--main img{
    height:auto;
  }

  /* MODAL MOBILE */
  .modal__panel{
    max-width:95vw;
    max-height:90vh;
    padding:20px;
  }

  .modal__img{
    max-height:60vh;
  }
}
