@charset "utf-8";

/* ===========================
   공통 변수
   - 1rem = 16px (reset.css의 html { font-size:16px } 기준)
   - 폰트/간격은 rem, 굵기·색은 그대로
=========================== */
:root {
    --color-primary: #0FADFF;
    --color-primary-dark: #0a2a6b;
    --color-dark: #0b1640;
    --color-text: #1a1a1a;
    --color-text-sub: #6b7280;
    --color-line: #e5e7eb;
    --color-bg: #ffffff;
    --color-bg-soft: #F9FAFD;

    --max-width: 1400px;
    --header-height: 5rem; /* 80px */
}

/* ===========================
   레이아웃
=========================== */
.inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px */
}

/* ===========================
   HEADER
=========================== */
.header {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.25);
    z-index: 100;
}
.header .inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 */
.logo a {
    display: block;
    width: 9.375rem;  /* 150px */
    height: 2.75rem;  /* 44px */
    background: url('../images/logo.png') no-repeat center / contain;
    text-indent: -9999px;
    overflow: hidden;
}

/* GNB */
.gnb {
    display: flex;
    gap: 3.75rem; /* 60px */
}
.gnb a {
    display: inline-flex;
    justify-content: center;
    min-width: 5rem;       /* 80px */
    font-size: 1.125rem;   /* 18px */
    font-weight: 600;
    color: rgba(255,255,255,.85);
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color .2s;
}
.gnb a:hover,
.gnb a.active {
    color: var(--color-primary);
}
.gnb a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.1875rem; /* 보더 라인 위에 겹치도록 */
    height: 3px;
    border-radius: 2px;
    background: var(--color-primary);
    z-index: 1;
}

/* 헤더 우측 버튼 */
.header-util {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}
.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.875rem;            /* 46px */
    padding: 0 1.5rem;           /* 24px */
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 0.375rem;     /* 6px - 시안의 살짝 둥근 직사각형 */
    font-size: 1.0625rem;        /* 17px */
    font-weight: 500;
    color: #fff;
    background: transparent;
    transition: all .2s;
}
.btn-line:hover {
    border-color: #fff;
    background: rgba(255,255,255,.08);
}
.btn-white {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.875rem;            /* 46px */
    padding: 0 1.5rem;
    border: 1px solid #fff;
    border-radius: 0.375rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    background: transparent;
    overflow: hidden;
    isolation: isolate;
    transition: color .35s ease;
}
/* 기본: 흰 배경이 꽉 차 있음, 호버 시 우측으로 빠지며 사라짐 */
.btn-white::before {
    content: '';
    position: absolute;
    inset: -1px;             /* 보더 라인까지 덮어서 모서리 비침 방지 */
    background: #fff;
    border-radius: inherit;
    transform: scaleX(1);
    transform-origin: right center;
    transition: transform .45s cubic-bezier(.65,.05,.2,1);
    z-index: -1;
}
.btn-white:hover {
    color: #fff;
}
.btn-white:hover::before {
    transform: scaleX(0);
}
.btn-white .arrow::after { content: '→'; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.75rem;          /* 44px */
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;          /* 16px */
    font-weight: 600;
    transition: background .2s;
}
.btn-primary:hover { background: #0c8ed1; }
.btn-primary .arrow::after,
.btn-line .arrow::after { content: '→'; }

/* 모바일 메뉴 토글 */
.btn-menu {
    display: none;
    width: 2rem;
    height: 2rem;
    position: relative;
}
.btn-menu span {
    position: absolute;
    left: 4px; right: 4px;
    height: 2px;
    background: #fff;
    transition: all .25s;
}
.btn-menu span:nth-child(1) { top: 8px; }
.btn-menu span:nth-child(2) { top: 15px; }
.btn-menu span:nth-child(3) { top: 22px; }
.btn-menu.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.btn-menu.active span:nth-child(2) { opacity: 0; }
.btn-menu.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ===========================
   FOOTER
=========================== */
.footer {
    background: #fff;
    padding: 4.5rem 0 2.5rem;
    border-top: 1px solid #EEEEEE;
    color: var(--color-text-sub);
    font-size: 1rem;
}
.footer-logo {
    display: block;
    width: 9.375rem;
    height: 2.75rem;
    background: url('../images/logo_c.png') no-repeat left center / contain;
    text-indent: -9999px;
    overflow: hidden;
    margin-bottom: 1.75rem;
}
.company-info {
    line-height: 1.8;
    font-weight: 300;
    color: #555;
}
.company-info span + span::before {
    content: '|';
    margin: 0 0.625rem;
    color: #ccc;
}
.footer-policy {
    margin-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-line);
}
.footer-policy a {
    color: var(--color-text-sub);
    font-weight: 400;
}
.footer-policy a.strong {
    color: var(--color-text);
    font-weight: 700;
}
.footer-policy a + a::before {
    content: '|';
    margin: 0 0.625rem;
    color: #ccc;
    font-weight: 400;
}
.copyright {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: #9ca3af;
}

/* ===========================
   반응형
   - html { font-size }를 줄여서 전체 비율 한번에 다운
=========================== */

/* 와이드 (1400 이하) */
@media (max-width: 1400px) {
    html { font-size: 15.5px; }
    :root { --max-width: 1200px; }
    .gnb { gap: 3rem; }
}

/* 데스크탑 (1200 이하) */
@media (max-width: 1200px) {
    html { font-size: 15px; }
    :root { --max-width: 100%; }
    .inner { padding: 0 2rem; }
    .gnb { gap: 2.5rem; }
    .gnb a { font-size: 1rem; min-width: 4.5rem; }
}

/* 태블릿 (1024 이하) */
@media (max-width: 1024px) {
    html { font-size: 14.5px; }
    :root { --header-height: 4.5rem; }
    .inner { padding: 0 1.5rem; }
    .header-util { gap: 0.5rem; }
    .btn-line { height: 2.5rem; padding: 0 1rem; font-size: 0.9375rem; }
}

/* 모바일 (768 이하) */
@media (max-width: 768px) {
    html { font-size: 14px; }
    :root { --header-height: 4rem; }
    .inner { padding: 0 1rem; }

    .gnb,
    .header-util .btn-line,
    .header-util .btn-white,
    .header-util .btn-primary {
        display: none;
    }
    .btn-menu { display: block; }

    /* 모바일 GNB 드로어 */
    .gnb.is-open {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: #fff;
        border-top: 1px solid var(--color-line);
        padding: 0.5rem 1rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
    }
    .gnb.is-open a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-line);
        font-size: 1rem;
        color: var(--color-text);
        min-width: auto;
        justify-content: flex-start;
    }
    .gnb.is-open a::after { display: none; }
    .gnb.is-open a:last-child { border-bottom: 0; }

    .footer { padding: 2.5rem 0 2rem; }
    .footer-logo { width: 9rem; height: 2.75rem; margin-bottom: 1.25rem; }
    .company-info { font-size: 0.875rem; }
    .company-info span + span::before { margin: 0 0.4rem; }
    .footer-policy { margin-top: 1.5rem; padding-bottom: 1.5rem; }
    .copyright { font-size: 0.8125rem; }
}

/* 소형 모바일 (480 이하) */
@media (max-width: 480px) {
    html { font-size: 13.5px; }
    .inner { padding: 0 1rem; }

    /* 회사정보 한 줄 너무 길어서 줄바꿈 잘 되도록 */
    .company-info span + span::before { margin: 0 0.35rem; }
    .footer-policy a + a::before { margin: 0 0.5rem; }
}

/* ===========================
   글로벌 인터랙션 (2026 미니멀 트렌드)
=========================== */
html { scroll-behavior: smooth; }

/* 스크롤 진입 (fade + slide up) */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.22,.61,.36,1),
                transform .9s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* 헤더 스크롤 시 살짝 어둡게(다크 글래스) */
.header {
    transition: background-color .35s ease, backdrop-filter .35s ease, border-color .35s ease, transform .35s ease;
}
.header.is-scrolled {
    background-color: rgba(7, 14, 38, 0.75);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(255,255,255,.12);
}
/* 히어로 벗어나면 상단 고정 (흰 배경 + 다크 글자) */
.header.is-fixed {
    position: fixed;
    background-color: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    animation: headerDrop .35s ease both;
}
@keyframes headerDrop {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
.header.is-fixed .gnb a { color: var(--color-text); }
.header.is-fixed .gnb a:hover,
.header.is-fixed .gnb a.active { color: var(--color-primary); }
.header.is-fixed .gnb a.active::after { background: var(--color-primary); }
.header.is-fixed .btn-line { color: var(--color-text); border-color: var(--color-line); }
.header.is-fixed .btn-line:hover { border-color: var(--color-text); background: rgba(0,0,0,.04); }
/* PoC 문의 - fixed 상태에서는 검은 배경 다크 버튼 */
.header.is-fixed .btn-white {
    color: #fff;
    border-color: #1a1a1a;
}
.header.is-fixed .btn-white::before {
    background: #1a1a1a;
}
.header.is-fixed .btn-white:hover {
    color: var(--color-text);
}
.header.is-fixed .logo a {
    background-image: url('../images/logo_c.png');
}
.header.is-fixed .btn-menu span { background: var(--color-text); }

/* 모든 a/button 기본 트랜지션 */
a, button { transition: color .2s ease, opacity .2s ease; }

/* ===========================
   TOP 버튼 (우측 하단)
=========================== */
.btn-top {
    position: fixed;
    right: 1.75rem;
    bottom: 1.75rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, background .25s ease;
    z-index: 80;
}
.btn-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.btn-top:hover {
    background: #0078EA;
}
.btn-top .arrow-up {
    width: 0.75rem;
    height: 0.75rem;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: 4px;
}
@media (max-width: 768px) {
    .btn-top {
        right: 1rem;
        bottom: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* 접근성: 모션 줄이기 선호 사용자 */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
