/* 365GD 소개 페이지 */
:root {
  --bg: #0A0C10;
  --bg-2: #0E1116;
  --text: #F2F3F5;
  --muted: #A3AAB5;
  --faint: #8A929E;
  --line: rgba(255, 255, 255, .1);
  --orange: #FF6913;
  --red: #D92324;
  --accent: linear-gradient(135deg, var(--orange), var(--red));
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg text { font-family: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg);
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px -40px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.text-link {
  color: var(--text); font-weight: 600; text-decoration: none;
  background: var(--accent) left bottom / 100% 1.5px no-repeat; padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 3px; }

/* 첫 화면 */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 700px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 var(--gutter) clamp(40px, 7vh, 80px);
  background:
    radial-gradient(42% 38% at 50% 34%, rgba(255, 105, 19, .13), transparent 70%),
    radial-gradient(34% 30% at 50% 74%, rgba(160, 175, 205, .16), transparent 72%),
    radial-gradient(70% 60% at 50% 40%, rgba(130, 150, 185, .14), transparent 72%),
    linear-gradient(180deg, #0D1015 0%, var(--bg) 100%);
}
.hero::after { /* 글자 아래를 어둡게 해서 대비를 지킨다 */
  content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 16, .6) 55%, var(--bg));
}
.hero-word {
  position: absolute; z-index: -1; top: 9%; left: 50%; transform: translateX(-50%);
  font-size: clamp(140px, 31vw, 560px); font-weight: 800; line-height: .85; letter-spacing: -.06em;
  white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .015) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-3d {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  opacity: 0; transition: opacity .4s ease;
}
.robot {
  position: absolute; top: -7%; left: 50%;
  height: 118%; width: auto; transform: translateX(-50%);
  transition: opacity .8s ease;
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) backwards; /* both면 끝난 뒤에도 opacity를 붙잡아 3D 교체 때 안 사라진다 */
}
.hero.is-3d .hero-3d { opacity: 1; }
.hero.is-3d .robot { opacity: 0; }
.hero.has-scene .robot { display: none; }
.hero.has-scene .hero-3d { inset: 48px 0 auto; height: calc(100% - 230px); } /* 장면(Auto Zoom)이 상자에 맞춰 줄어 제목 위에 앉는다 */

/* 시선: --gx, --gy 는 js가 -1~1 로 넣는다 */
.r-head {
  transform-box: fill-box; transform-origin: 50% 90%;
  transform: translate(calc(var(--gx, 0) * 9px), calc(var(--gy, 0) * 5px)) rotate(calc(var(--gx, 0) * 3.5deg));
}
.r-eyes { transform: translate(calc(var(--gx, 0) * 30px), calc(var(--gy, 0) * 16px)); }
.r-eyes-in {
  transform-box: fill-box; transform-origin: center;
  animation: power-on 1.4s .7s steps(1, end) both, blink 7s 3s infinite;
}

.hero-copy { position: relative; z-index: 2; max-width: 880px; text-align: center; animation: fade-up 1s .5s ease both; }
.hero h1 {
  font-size: clamp(36px, 6.4vw, 96px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .5);
}
.hero-lede {
  max-width: 34em; margin: 22px auto 0;
  color: #C5CAD2; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65;
}
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

@keyframes rise { from { opacity: 0; transform: translate(-50%, 50px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes power-on { 0% { opacity: 0; } 20% { opacity: .9; } 28% { opacity: .15; } 40% { opacity: 1; } 100% { opacity: 1; } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* 공통 구간 */
.section { padding: clamp(96px, 13vw, 180px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section h2 {
  font-size: clamp(34px, 4.6vw, 66px); font-weight: 800; line-height: 1.14; letter-spacing: -.042em;
}
.lede { margin-top: 22px; max-width: 36em; color: var(--muted); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.7; }

/* 하는 일 */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: 1.12fr 1fr;
  grid-template-rows: repeat(3, auto);
}
.tile {
  position: relative; overflow: hidden;
  display: flex; gap: 20px; align-items: flex-start;
  padding: 30px 32px; border-radius: 26px;
}
.tile h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.glyph {
  flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  fill: none; stroke: #E8EAEE; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.tile-main {
  grid-row: 1 / 4; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 40px; border-radius: 34px; min-height: 480px;
}
.tile-main h3 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.tile-sub { display: block; margin-top: 10px; color: var(--muted); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tile-main p { max-width: 26em; margin: 18px 0 26px; font-size: 17px; }
.gdent-icon { position: relative; width: 76px; height: 76px; border-radius: 15%; /* 원본 로고(자료실 GDENT 로고) 모서리에 맞춤 */ box-shadow: 0 18px 50px -12px rgba(255, 105, 19, .55); }
.tile-body { position: relative; }
.tile-dots { /* 로봇 눈과 같은 점 표시창 무늬 */
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 140, 80, .55) 1.3px, transparent 1.8px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(60% 55% at 92% 8%, #000, transparent 70%);
  mask-image: radial-gradient(60% 55% at 92% 8%, #000, transparent 70%);
}
.tile-main::before {
  content: ""; position: absolute; inset: -30% -30% auto auto; width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(255, 105, 19, .22), transparent 65%); pointer-events: none;
}

/* GDENT */
.showcase { margin: 0; }
.showcase-scene {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 36px;
  border: 1px solid var(--line);
  background:
    radial-gradient(45% 60% at 80% 85%, rgba(255, 105, 19, .32), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, rgba(110, 140, 190, .28), transparent 70%),
    linear-gradient(160deg, #141922, #0B0D12 60%);
}
.showcase-scene::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.mock-browser {
  position: absolute; left: 6%; top: 10%; width: 70%;
  border-radius: 22px; overflow: hidden;
}
.mock-browser svg, .mock-phone svg { display: block; width: 100%; height: auto; }
.mock-phone {
  position: absolute; right: 7%; top: 14%; width: 22%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6));
}
.showcase figcaption { margin-top: 14px; color: var(--faint); font-size: 14px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(56px, 7vw, 88px); }
.feature-col h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  font-size: 24px; font-weight: 800; letter-spacing: -.03em;
}
.feature-col h3 .text-link { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.feature-col dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-col dt { font-weight: 700; }
.feature-col dd { color: var(--muted); }

/* 일하는 방식 */
.way { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.way-head { position: sticky; top: 120px; }
.principles li { padding: 30px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 700; letter-spacing: -.03em; line-height: 1.35; }
.principles p { margin-top: 10px; color: var(--muted); max-width: 32em; }

/* 문의 */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 120%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 105, 19, .14), transparent); pointer-events: none;
}
.contact .wrap { position: relative; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(36px, 5vw, 56px); }
.mail {
  font-size: clamp(30px, 5.4vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1;
  text-decoration: none; overflow-wrap: anywhere;
  background: var(--accent) left bottom / 100% 3px no-repeat; padding-bottom: 6px;
}
.mail:hover { background-size: 100% 6px; }
.copy-status { color: var(--muted); font-size: 15px; }

/* 회사 정보 */
.footer { padding: 72px 0 56px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 15px; }
.footer-brand { color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.company { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; margin-top: 28px; }
.company .wide { grid-column: span 2; }
.company dt { color: var(--faint); font-size: 13.5px; }
.company dd { color: #C5CAD2; margin-top: 2px; }
.company a { text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px;
}
.footer-bottom > a { color: var(--text); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.credit { flex: 1 1 360px; }
.credit a { color: #C5CAD2; }

/* 휴대폰·태블릿 */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .tile-main { grid-row: auto; min-height: 0; }
  .features, .way { grid-template-columns: 1fr; }
  .way-head { position: static; }
  .company { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { min-height: max(100svh, 640px); }
  .robot { top: 58px; bottom: auto; height: 68svh; max-height: 640px; }
  .hero.has-scene .hero-3d { height: calc(100% - 340px); } /* Spline 로고가 소개 글 위에 겹치지 않게 */
  .hero-word { top: 12%; font-size: 36vw; }
  .hero-lede { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 0; padding: 0 16px; }
  .tile { flex-direction: column; gap: 16px; padding: 24px; border-radius: 22px; }
  .tile-main { padding: 28px 24px; border-radius: 26px; gap: 36px; }
  .showcase-scene { aspect-ratio: 4 / 5; border-radius: 26px; }
  .mock-browser { left: -18%; top: 9%; width: 120%; border-radius: 16px; }
  .mock-phone { right: 9%; top: auto; bottom: -14%; width: 52%; }
  .feature-col dl > div { grid-template-columns: 1fr; gap: 4px; }
  .company { grid-template-columns: 1fr; }
  .company .wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
