/* =========================================================
   시안 A — AURORA
   다크 시네마틱 · 오로라 그라데이션 · 기울어진 스크린 + 떠 있는 라이브 위젯
   ========================================================= */
:root {
  --grad: linear-gradient(100deg, #7c6cff 0%, #b45cff 45%, #ff4d8d 100%);
  --d1: #7c6cff; --d2: #ff4d8d; --d3: #22d3ee; --d4: #f5b83d; --d5: #34d399; --d6: #a78bfa;
  --accent: #e0266c;
  --btn-bg: var(--grad);
  --btn-shadow: 0 16px 40px -10px rgba(180, 92, 255, .6);
  --console-shadow: 0 40px 100px -30px rgba(124, 108, 255, .55);
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-alt: #f6f7fb; --surface: #ffffff; --surface-2: #f2f3f8;
  --text: #0b0d17; --text-2: #626882; --line: #e7e8f0; --line-strong: #d6d8e3;
  --header-bg: rgba(255, 255, 255, .78); --kicker: #7c6cff;
  --shadow: 0 1px 2px rgba(11, 13, 23, .05), 0 8px 24px rgba(11, 13, 23, .06);
  --shadow-lg: 0 24px 60px -12px rgba(11, 13, 23, .18);
  --inv-bg: #07070c; --inv-bg-alt: #0e0e16; --inv-surface: #12121c; --inv-surface-2: #1a1a27;
  --inv-text: #f3f3f8; --inv-text-2: #a3a3b8; --inv-line: rgba(255, 255, 255, .09); --inv-line-strong: rgba(255, 255, 255, .16);
  --hero-bg: #fbfbff;
}
:root[data-theme="dark"] {
  --bg: #07070c; --bg-alt: #0b0b13; --surface: #11111b; --surface-2: #181826;
  --text: #f3f3f8; --text-2: #a3a3b8; --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --header-bg: rgba(7, 7, 12, .72); --kicker: #a99dff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
  --inv-bg: #0d0b1c; --inv-bg-alt: #120f26; --inv-surface: #17142c; --inv-surface-2: #201c3a;
  --inv-text: #f3f3f8; --inv-text-2: #aaa5c8; --inv-line: rgba(169, 157, 255, .14); --inv-line-strong: rgba(169, 157, 255, .26);
  --hero-bg: #07070c;
  --chart-grid: rgba(255, 255, 255, .08);
}

/* 헤더: 히어로 위 투명 → 스크롤 시 글래스 */
.gnb > ul { padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(12px); }
.gnb-link:hover, .gnb-item.is-open > .gnb-link, .gnb-link[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.head--center .kicker::before { display: none; }
.bg-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000, transparent 75%); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(56px, 7vw, 80px); }
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 640px; height: 640px; left: -160px; top: -200px; background: #4b3bff; opacity: .55; }
.aurora i:nth-child(2) { width: 560px; height: 560px; right: -140px; top: -120px; background: #c0267a; opacity: .4; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 520px; height: 520px; left: 40%; top: 38%; background: #1fa5c4; opacity: .22; animation-delay: -12s; }
[data-theme="light"] .aurora i { opacity: .22; }
[data-theme="light"] .aurora i:nth-child(3) { opacity: .14; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.hero-copy { position: relative; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(8px); font-size: var(--fs-xs); font-weight: 600; transition: border-color .2s; }
.pill:hover { border-color: #a99dff; }
.pill b { padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; letter-spacing: .04em; }
.hero h1 { margin-top: var(--s6); font-size: var(--fs-display); line-height: 1.08; letter-spacing: -.045em; }
.hero-lead { max-width: 720px; margin: var(--s6) auto 0; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--text-2); line-height: 1.7; }
.hero .actions { justify-content: center; margin-top: var(--s7); }
.hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); font-size: var(--fs-xs); color: var(--text-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(52, 211, 153, .18); color: #10b981; font-size: 10px; font-weight: 900; }

.stage { position: relative; max-width: 1360px; margin: clamp(56px, 8vw, 96px) auto 0; padding-inline: var(--gutter); perspective: 1600px; }
.screen { position: relative; border-radius: var(--r-lg); padding: 10px; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -20px rgba(124, 108, 255, .5), 0 20px 60px -20px rgba(0, 0, 0, .8); transform: rotateX(calc(var(--tilt, 1) * 16deg)) scale(calc(1 - var(--tilt, 1) * .04)); transform-origin: 50% 0; will-change: transform; }
[data-theme="light"] .screen { background: linear-gradient(180deg, #2a2a3a, #12121c); box-shadow: 0 50px 120px -30px rgba(76, 59, 255, .45), 0 20px 50px -20px rgba(11, 13, 23, .35); }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 12px; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.screen-bar span { margin-inline: auto; padding: 3px 14px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: 11px; color: #a3a3b8; font-family: var(--mono); }
.screen .video-box { border-radius: 14px; }
.float { position: absolute; z-index: 3; padding: 14px 16px; border-radius: var(--r-md); background: rgba(22, 22, 34, .74); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .55); color: #f3f3f8; font-size: 12px; animation: bob 6s ease-in-out infinite; --text: #f3f3f8; --text-2: #a3a3b8; --chart-grid: rgba(255, 255, 255, .1); }
.float-label { display: flex; align-items: center; gap: 6px; color: #a3a3b8; font-weight: 600; }
.float-label .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.float-value { margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.float-value small { margin-left: 6px; font-size: 12px; color: #34d399; }
.float--kpi { left: calc(var(--gutter) - 28px); top: -36px; width: 214px; }
.float--kpi .viz { height: 44px; margin-top: 8px; }
.float--donut { right: calc(var(--gutter) - 32px); bottom: 16%; width: 196px; display: flex; gap: 12px; align-items: center; animation-delay: -2s; }
.float--donut .viz { width: 72px; height: 54px; flex: none; }
.float--donut .viz text { display: none; }
.float--donut .float-value { font-size: 20px; }
.float--ai { right: 6%; top: -48px; max-width: 360px; display: flex; gap: 10px; align-items: center; animation-delay: -4s; }
.float--ai .ai-ico { width: 28px; height: 28px; border-radius: 8px; }
.float--ai .typed { font-size: 13px; color: #fff; min-width: 12ch; }
.float--ai .typed::after { content: "▍"; color: #a99dff; animation: blink 1s steps(1) infinite; }
.float--bars { left: 8%; bottom: -34px; width: 230px; animation-delay: -3s; }
.float--bars .bars { display: flex; align-items: flex-end; gap: 5px; height: 48px; margin-top: 8px; }
.float--bars .bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--grad); transform-origin: bottom; animation: eq 1.8s ease-in-out infinite alternate; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) {
  .float--donut, .float--bars { display: none; }
  .float--kpi { display: none; }
  .float--ai { right: var(--gutter); top: -40px; max-width: 280px; }
}
@media (max-width: 640px) {
  .screen { padding: 6px; border-radius: var(--r-md); }
  .screen-bar, .float--ai, .float--kpi { display: none; }
  .screen .video-box { aspect-ratio: 1920 / 500; border-radius: 10px; } /* 모바일도 원본 비율(1920:500) 그대로: 영상이 잘리지 않게 */
  .screen .video-box video { object-fit: contain; object-position: center; }
  .float--kpi { width: 160px; bottom: -40px; padding: 10px 12px; }
  .float--kpi .float-value { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .screen { transform: none; } }

/* ---------- 로고 / 수치 ---------- */
.logos { position: relative; padding-block: clamp(96px, 12vw, 140px) var(--s8); background: var(--hero-bg); color: var(--text-2); }
.logos-title { text-align: center; font-size: var(--fs-sm); margin-bottom: var(--s6); }
.logos-title b { color: var(--text); }
.stats-sec { padding-block: var(--s8); }
.stats { border-block: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b sup { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 860px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- 섹션 스킨 ---------- */
.ai-sec { overflow: hidden; }
.ai-sec::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 108, 255, .32), transparent); pointer-events: none; }


.ai-more { margin-top: var(--s5); color: #a99dff; }
.t-editor { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; --text: var(--inv-text); --text-2: var(--inv-text-2); --surface: var(--inv-surface); --surface-2: var(--inv-surface-2); --line: var(--inv-line); --line-strong: var(--inv-line-strong); --chart-grid: rgba(255, 255, 255, .08); }
.t-html5 { background: linear-gradient(135deg, rgba(124, 108, 255, .14), rgba(255, 77, 141, .1)), var(--surface); }

.ind:hover { background: rgba(124, 108, 255, .1); border-color: rgba(169, 157, 255, .4); }
.ind .ico { color: #b7abff; }
.cta { background: #07070c; color: #fff; --text: #fff; --text-2: rgba(255, 255, 255, .72); --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .28); --surface: rgba(255, 255, 255, .06); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 20% 0%, rgba(124, 108, 255, .6), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(255, 77, 141, .5), transparent 60%); }
.cta .btn--secondary { backdrop-filter: blur(8px); }

/* ---------- AI 페이지 ---------- */
.ai-hero { background: var(--hero-bg); }
.hero-deco i { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-deco i:nth-child(1) { width: 600px; height: 600px; left: -200px; top: -200px; background: #4b3bff; opacity: .45; }
.hero-deco i:nth-child(2) { width: 500px; height: 500px; right: -150px; bottom: -200px; background: #c0267a; opacity: .35; }
[data-theme="light"] .hero-deco i { opacity: .18; }
.frame { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); box-shadow: 0 0 0 1px var(--line), 0 40px 100px -30px rgba(124, 108, 255, .55); border: 0; }
.fit--hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 80% 10%, rgba(124, 108, 255, .55), transparent 70%); }
.fit--hero > * { position: relative; }
.fit--hero .n { color: #a99dff; }

/* ---------- 실제 브라우저 높이 맞춤(주소창·탭 제외 약 650~950px: 1366×650, 1536×730, 1920×950) ---------- */
/* 문구는 높이에 따라 줄고, 영상 화면(.stage = .vfit)은 남은 높이에 맞춰 원본 비율로 커지거나 줄어든다 */
.hero.hero-fit { padding-top: calc(var(--header-h) + clamp(16px, 4.5vh, 64px)); padding-bottom: clamp(20px, 4.5vh, 56px); }
.hero h1 { margin-top: clamp(12px, 2.4vh, 28px); font-size: clamp(2.3rem, min(5.6vw, 8.6vh), 5.6rem); }
.hero-lead { margin-top: clamp(10px, 2.2vh, 24px); font-size: clamp(.95rem, .45rem + 1.4vh, 1.2rem); }
.hero .actions { margin-top: clamp(14px, 3vh, 32px); }
.hero-trust { margin-top: clamp(10px, 2vh, 24px); }
.stage { width: 100%; max-width: none; margin-top: clamp(28px, 5.5vh, 72px); perspective: none; --ar: 3.3; }
.stage-in { position: relative; max-width: 1360px; perspective: 1600px; }
.float--kpi { left: -28px; }
.float--donut { right: -32px; }
@media (min-width: 961px) { .hero h1 br { display: none; } .hero h1 { font-size: clamp(2.3rem, min(4.4vw, 8vh), 5rem); } }
/* 낮은 화면에서는 영상을 가리지 않도록 떠 있는 카드를 줄이고 일부는 숨김 */
@media (min-width: 961px) and (max-height: 820px) {
  .hero-trust, .float--ai, .float--bars { display: none; }
  .float--kpi, .float--donut { scale: .82; }
  .float--kpi { top: -28px; left: -60px; transform-origin: 0 0; }
  .float--donut { bottom: 10%; right: -60px; }
}
@media (max-width: 960px) { .float--kpi { left: 0; } .float--ai { right: 0; } }
/* 영상 일시정지 버튼: 영상 아래쪽 글자를 가리지 않도록 오른쪽 위에 둔다 */
.screen .video-toggle { top: 12px; bottom: auto; }
/* 검증된 레퍼런스: 기본 전체 보기, 한 줄 6개, 원래 색 그대로 */
.refs .ref-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s3); }
.refs .ref-grid .ref-logo { width: auto; height: 76px; padding: 10px 14px; }
.refs .ref-logo img { max-height: 52px; max-width: 100%; filter: none; opacity: 1; }
.refs .ref-logo { transition: transform .25s var(--ease), box-shadow .25s; }
.refs .ref-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@media (max-width: 960px) { .refs .ref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .refs .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .refs .ref-grid .ref-logo { height: 60px; padding: 6px 8px; } .refs .ref-logo img { max-height: 40px; } }
/* 모바일: 영상 높이가 낮아지므로 일시정지 버튼은 작은 아이콘형으로(글자는 화면 낭독기용으로만 유지) */
@media (max-width: 640px) {
  .screen .video-toggle { top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; justify-content: center; }
  .screen .video-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* 고객사 로고: 메인 상단 로고 띠·검증된 레퍼런스 모두 기본 원색(흑백 필터 없음) */
.ref-logo img, .ref-logo:hover img { filter: none; opacity: 1; }
.ex-bar-t .ex-count { margin-left: 6px; font-size: .75em; font-weight: 600; color: var(--text-2); }
