/* ==========================================================
   GKMCN 리뉴얼 공통 스타일 (home / creator / agency / develop)
   ========================================================== */

:root {
    --bg: #09090b;
    --bg-2: #111114;
    --bg-3: #18181c;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --dim: #71717a;
    --accent: #6469ff;
    --accent-2: #9b8cff;
    --accent-soft: rgba(100, 105, 255, 0.14);
    --kakao: #fee500;
    --radius: 20px;
    --container: 1200px;
    --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --display: 'gilroy', 'Pretendard Variable', Pretendard, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.03em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- 버튼 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn i { font-size: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(100, 105, 255, .7); }
.btn-primary:hover { background: #7479ff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); }
.btn-kakao { background: var(--kakao); color: #191919; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------------- 헤더 ---------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(9, 9, 11, .72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--line);
}
.site-header .container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo img { height: 26px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a.nav-link {
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
    position: relative;
    transition: color .2s ease;
}
.site-nav a.nav-link:hover, .site-nav a.nav-link.is-active { color: var(--text); }
.site-nav a.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        background: rgba(9, 9, 11, .96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .site-nav a.nav-link { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
    .site-nav a.nav-link.is-active::after { display: none; }
    .site-nav a.nav-link.is-active { color: var(--accent-2); }
    .site-nav .btn { margin-top: 16px; }
}

/* ---------------- 공통 섹션 ---------------- */
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.eyebrow::before {
    content: '';
    width: 18px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.text-gradient {
    background: linear-gradient(100deg, #ffffff 10%, var(--accent-2) 55%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------- 메인 히어로 ---------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 100px;
}
.hero-bg {
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 80% 20%, rgba(100, 105, 255, .28), transparent 70%),
        radial-gradient(45% 40% at 10% 90%, rgba(155, 140, 255, .16), transparent 70%);
}
.hero-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: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
            mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
    opacity: .6;
}
.hero .container { position: relative; }
.hero h1 {
    font-size: clamp(40px, 7.2vw, 92px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin-top: 22px;
}
.hero-lead {
    margin-top: 28px;
    max-width: 560px;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--muted);
}
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-scroll {
    position: absolute;
    left: 50%; bottom: 32px;
    transform: translateX(-50%);
    color: var(--dim);
    font-size: 12px;
    letter-spacing: .2em;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll span {
    width: 1px; height: 40px;
    background: linear-gradient(var(--dim), transparent);
    animation: scroll-hint 2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scroll-hint {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ---------------- 사업 영역 카드 ---------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 36px 32px 32px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease;
}
.service-card::after {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    right: -90px; top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100,105,255,.35), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(100,105,255,.45); }
.service-card:hover::after { opacity: 1; }
.service-num { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--dim); }
.service-card h3 {
    font-family: var(--display);
    font-size: 34px;
    font-weight: 800;
    margin-top: 48px;
}
.service-card p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.service-more {
    margin-top: auto;
    padding-top: 32px;
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 14px;
    color: var(--text);
}
.service-more i { transition: transform .2s ease; }
.service-card:hover .service-more i { transform: translateX(4px); }

/* ---------------- 파트너 마키 ---------------- */
.partners { padding: 72px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners-label { text-align: center; color: var(--dim); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 36px; }
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
    height: 36px;
    width: auto;
    margin-right: 72px; /* gap 대신 margin: -50% 이동 시 끊김 없이 이어지도록 */
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .55;
    transition: opacity .2s ease;
}
.marquee-track img:hover { opacity: 1; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------------- 하이라이트 배너 ---------------- */
.highlight {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 56px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(100,105,255,.45), transparent 60%),
        linear-gradient(135deg, #16162a, #0d0d14);
    border: 1px solid rgba(100,105,255,.3);
}
.highlight-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffe32e;
    color: #191919;
    font-family: var(--display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
}
.highlight h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; margin-top: 18px; }
.highlight p { color: #c4c4d4; margin-top: 12px; font-size: 17px; }
.highlight-logo {
    position: absolute;
    right: -20px; bottom: -30px;
    width: 360px;
    opacity: .06;
    pointer-events: none;
}

/* ---------------- 멤버 ---------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.team-card {
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
    overflow: hidden;
}
.team-photo {
    aspect-ratio: 4 / 5;
    background: var(--bg-3);
    position: relative;
    overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-photo.is-portrait { aspect-ratio: 3 / 4; }
.team-photo.is-portrait img { object-position: center top; }
.team-group-title {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
    margin: 0 0 20px;
}
.team-grid + .team-group-title { margin-top: 64px; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo.is-mono {
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(70% 60% at 50% 30%, rgba(100,105,255,.25), transparent 70%),
        linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.team-photo.is-mono span { font-size: 88px; font-weight: 800; color: rgba(255,255,255,.14); letter-spacing: -0.04em; }
.team-info { padding: 22px 24px 24px; }
.team-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.team-roles span {
    font-family: var(--display);
    font-size: 12px; font-weight: 700; letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-2);
}
.team-name { font-size: 20px; font-weight: 700; margin-top: 12px; }

/* ---------------- 서브 페이지 히어로 ---------------- */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.page-hero .hero-bg {
    background: radial-gradient(55% 70% at 85% 0%, rgba(100,105,255,.3), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 {
    font-family: var(--display);
    font-size: clamp(44px, 8vw, 104px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-top: 18px;
}
.page-hero .lead {
    max-width: 760px;
    margin-top: 28px;
    color: var(--muted);
    font-size: clamp(16px, 1.7vw, 20px);
}

/* ---------------- 서브 페이지 본문 ---------------- */
.feature-list { display: grid; gap: 0; }
.feature {
    display: grid;
    grid-template-columns: 120px 280px 1fr;
    gap: 32px;
    padding: 48px 0;
    border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-num { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent-2); padding-top: 6px; }
.feature h3 { font-size: 24px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 16.5px; line-height: 1.85; }
.feature p strong { color: var(--text); font-weight: 700; }

/* ---------------- CTA ---------------- */
.cta {
    text-align: center;
    padding: 80px 32px;
    border-radius: 28px;
    background:
        radial-gradient(60% 90% at 50% 0%, rgba(100,105,255,.35), transparent 70%),
        var(--bg-2);
    border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.cta p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.cta .hero-actions { justify-content: center; margin-top: 36px; }

/* ---------------- 푸터 ---------------- */
.site-footer {
    background: #050506;
    border-top: 1px solid var(--line);
    padding: 72px 0 48px;
    font-size: 13px;
    color: var(--dim);
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-top img { height: 28px; width: auto; }
.footer-nav { display: flex; gap: 28px; margin-top: 28px; }
.footer-nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--muted);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.footer-social a:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.footer-info {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 6px 20px;
    line-height: 1.8;
}
.footer-info strong { color: var(--muted); font-weight: 700; }
.footer-copy { margin-top: 20px; }

/* ---------------- 스크롤 등장 애니메이션 ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track, .hero-scroll span { animation: none; }
}

/* ---------------- 반응형 ---------------- */
@media (max-width: 1024px) {
    .feature { grid-template-columns: 80px 1fr; }
    .feature p { grid-column: 2; }
}
@media (max-width: 900px) {
    .service-grid, .team-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 0; }
    .service-card h3 { margin-top: 28px; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .highlight { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .section { padding: 88px 0; }
    .hero { padding: 120px 0 90px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .team-grid { grid-template-columns: 1fr; }
    .feature { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
    .feature p { grid-column: auto; }
    .page-hero { padding: 140px 0 72px; }
    .marquee-track img { height: 28px; margin-right: 48px; }
    .cta { padding: 56px 22px; }
}
