@charset "UTF-8";

/* =====================================================
   REDFLOW — layout.css
   기존 nero 테마 구조 기반 완전 재작성
===================================================== */

/* ── 기존 테마 필수 공통 유지 ── */
*, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.all_wrap { overflow-x: hidden; position: relative; background: #0a0a0a; }
.main_admin { display: none; }
@media all and (max-width: 1024px) {
  .main_admin { position: fixed; z-index: 11; top: 75px; right: 10px; display: block; }
  .main_admin a { font-size: 14px; background: #fff; border-radius: 5px; margin-bottom: 5px; width: 80px; height: 30px; display: inline-block; text-align: center; line-height: 30px; font-weight: 500; }
}

/* ── CSS 변수 ── */
:root {
  --rf-red:    #E60012;
  --rf-red-h:  #cc0010;
  --rf-bg:     #0a0a0a;
  --rf-darker: #050505;
  --rf-card:   #141414;
  --rf-border: #2a2a2a;
  --rf-white:  #ffffff;
  --rf-muted:  #d4d4d4;
  --rf-dim:    #a8a8a8;
  --rf-deep:   #888888;
  --rf-font-ko: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --rf-font-en: 'Montserrat', sans-serif;
  --ease-out:  cubic-bezier(0.23, 1, 0.32, 1);
  --ease-rf:   cubic-bezier(0.16, 1, 0.3, 1); /* 스크롤 등장용 — 부드럽게 감속 */
}

/* ── 전역 ── */
html { font-size: 11.5px; } /* PC 기본 (모든 rem 비례) — scroll-behavior:smooth 제거(모바일 스크롤 튕김 방지, 앵커는 JS animate로 처리) */
body { font-family: var(--rf-font-ko); background: var(--rf-bg); color: var(--rf-white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── 기존 .width 클래스 유지 ── */
.width { width: 92% !important; max-width: 1400px; margin: 0 auto; position: relative; }

/* ── 공통 버튼 ── */
.rf-btn-red {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--rf-red); color: #fff;
  font-family: var(--rf-font-ko); font-weight: 700; font-size: 1.6rem;
  padding: 1.2rem 2.4rem; border-radius: 3rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap; cursor: pointer; border: none;
}
.rf-btn-red:hover  { background: var(--rf-red-h); transform: translateY(-1px); color: #fff; }
.rf-btn-red:active { transform: scale(0.97); }
.rf-btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #fff;
  font-family: var(--rf-font-ko); font-weight: 600; font-size: 1.6rem;
  padding: 1.2rem 2.4rem; border-radius: 3rem;
  border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  white-space: nowrap; cursor: pointer;
}
.rf-btn-outline:hover  { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); transform: translateY(-1px); color: #fff; }
.rf-btn-outline:active { transform: scale(0.97); }
.rf-btn-lg { font-size: 1.8rem; padding: 1.6rem 4rem; }

/* ── 공통 라벨 ── */
.rf-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--rf-font-en); font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rf-red);
  margin-bottom: 1.5rem;
}
.rf-label::before { content: ''; display: inline-block; width: 2rem; height: 1px; background: var(--rf-red); flex-shrink: 0; }
.rf-label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rf-red); flex-shrink: 0; }
.rf-label-center { justify-content: center; }
.rf-label-center::before { display: none; }

/* ── 공통 헤딩 ── */
.rf-heading {
  font-family: var(--rf-font-ko); font-weight: 800;
  font-size: clamp(2.8rem, 4vw, 5rem);
  line-height: 1.2; letter-spacing: -0.03em; color: var(--rf-white); margin-bottom: 1.5rem; word-break: keep-all;
}
.rf-accent { color: var(--rf-red); }
.rf-subtext { font-size: 1.7rem; color: var(--rf-muted); line-height: 140%; word-break: keep-all; }
.rf-footnote { font-size: 1.3rem; color: var(--rf-deep); margin-top: 1.5rem; }

/* ── 스크롤 등장: WOW.js + animate.css ── */
/* .rf-fade 를 WOW 박스로 재사용 — JS가 wow/fadeInUp 클래스를 부여하고 WOW가 뷰포트 진입 시 등장시킴 */
.rf-fade { visibility: hidden; }
.rf-fade.animated { visibility: visible; }
/* animate.css fadeInUp 이동량을 100% → 80px 고정 (사라륵 더 길게 미끄러져 올라옴) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 80px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
/* 부드러운 감속 이징(--ease-rf)으로 천천히 미끄러지듯 올라오게 */
.animated { animation-duration: 1.7s; animation-timing-function: var(--ease-rf); }
/* 모션 최소화 선호 사용자: 애니메이션 없이 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
  .rf-fade { visibility: visible; }
  .animated { animation: none !important; }
}

/* ── 섹션 공통 ── */
.rf-section { padding: 10rem 0; border-top: 1px solid #1a1a1a; }
.rf-bg-dark   { background: var(--rf-bg); }
.rf-bg-darker { background: var(--rf-darker); }
.rf-section-header { margin-bottom: 5rem; }
.rf-section-center { text-align: center; }
.rf-section-center .rf-label { justify-content: center; }
.rf-section-center .rf-label::before { display: none; }

/* =====================================================
   HEADER
===================================================== */
#header {
  width: 100%; position: fixed; top: 0; z-index: 999;
  transition: 0.3s all;
  background: rgba(0,0,0,0); /* 초기 투명 */
}
#header.rf-scrolled {
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
#header .header_width { width: 96%; margin: 0 auto; }
#header .head_menu { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; height: 90px; }
#header .head_menu .logo {}
#header .head_menu .logo img { height: 28px; width: auto; }

/* 로고 텍스트 폴백 */
.rf-logo-text em { display: block; font-family: var(--rf-font-en); font-weight: 900; font-style: italic; font-size: 2.4rem; color: var(--rf-red); letter-spacing: -0.02em; line-height: 1; }
.rf-logo-text small { display: block; font-family: var(--rf-font-en); font-weight: 500; font-size: 0.9rem; color: var(--rf-dim); letter-spacing: 0.18em; text-transform: uppercase; }
.rf-logo-text-sm em { font-family: var(--rf-font-en); font-weight: 900; font-style: italic; font-size: 2rem; color: var(--rf-red); }

/* GNB */
.rf-gnb-list { display: none; width: 60%; justify-content: center; align-items: center; height: 100%; gap: 0; }
.rf-gnb-list .dept1 { padding: 0 2rem; }
.rf-gnb-list .dept1 > a { font-family: var(--rf-font-en); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.12em; color: var(--rf-muted); transition: color 0.2s; }
.rf-gnb-list .dept1 > a:hover { color: var(--rf-white); }
#header .head_login_wrap { display: flex; align-items: center; }
.rf-gnb-cta { font-size: 1.4rem !important; padding: 0.5rem 0 !important; border: none !important; background: transparent !important; }
.rf-gnb-cta:hover { border: none !important; background: transparent !important; color: var(--rf-red) !important; }
#header .menu_bg { display: none; }

/* 모바일 헤더 */
.mobile_head { width: 100%; height: 60px; display: none; justify-content: space-between; align-items: center; padding: 0 15px; position: fixed; top: 0; background: transparent; z-index: 99; }
.rf-mob-headcta { display: inline-flex; align-items: center; font-size: 1.4rem; font-weight: 600; color: #fff; line-height: 1; padding: 0.7rem 1.6rem; }
.mobile_head .mobile_logo { width: 120px; }
.mobile_head .mobile_logo img { width: 100%; }
.mobile_open { font-size: 2.4rem; color: var(--rf-white); }

/* 모바일 드로어 */
#mobile_menu { display: none; position: fixed; top: 0; right: -100%; width: 100%; background: rgba(10,10,10,0.97); z-index: 1000; height: 100vh; overflow-y: auto; }
#mobile_menu .mob_logo { width: 100%; padding: 0 20px; height: 60px; background: #111; display: flex; justify-content: space-between; align-items: center; }
#mobile_menu .mob_logo a { width: 100px; }
#mobile_menu .mob_logo a img { width: 100%; }
#mobile_menu .mobile_close { font-size: 3rem; cursor: pointer; color: var(--rf-white); }
#mobile_menu .mob_menu { padding: 1rem 0; }
#mobile_menu .mob_menu .top_menu { display: flex; justify-content: space-between; align-items: center; padding: 2rem 2.5rem; font-size: 1.8rem; border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--rf-muted); font-family: var(--rf-font-en); font-weight: 600; letter-spacing: 0.1em; }
#mobile_menu .mob_menu .top_menu:hover { color: var(--rf-white); }
.rf-mob-cta { background: var(--rf-red) !important; color: #fff !important; margin: 2rem 2rem 0; border-radius: 0.5rem; justify-content: center; }
.mob_bg { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.6); z-index: 99; }

@media screen and (max-width: 1024px) {
  #header { display: none; }
  .mobile_head { display: flex; }
}

/* =====================================================
   FOOTER
===================================================== */
/* 관리자 로그인 시 노출되는 관리자/로그아웃 링크 숨김 */
.main_admin { display: none; }

#ft { background: #050505; padding: 3.5rem 0 2.5rem; width: 100%; border-top: 1px solid #1a1a1a; }
.footer { text-align: left; }
.foot_logo { display: inline-block; text-align: left; margin-bottom: 0.8rem; }
.foot_logo img { height: 26px; width: auto; }
.rf-footer-logo-text { font-family: var(--rf-font-en); font-weight: 900; font-style: normal; font-size: 2.1rem; color: var(--rf-red); letter-spacing: -0.02em; display: block; margin-bottom: 0.4rem; }
.rf-footer-tagline { font-family: var(--rf-font-en); font-size: 0.95rem; font-weight: 500; color: var(--rf-deep); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.rf-footer-platforms { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.rf-footer-platforms span { font-family: var(--rf-font-en); font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; color: var(--rf-deep); padding: 0.3rem 0.8rem; border: 1px solid #1e1e1e; border-radius: 0.2rem; }
.foot_info { text-align: left; }
.foot_info span { font-size: 1.25rem; color: #aaa; margin: 0 1.5rem 0 0; line-height: 180%; display: inline-block; }
.copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #1a1a1a; color: #555; text-align: left; }
.copyright span { font-size: 1.25rem; }
.copyright .rf-copy-links { margin-left: 2rem; }
.copyright span a { color: #9e9e9e; font-size: 1.25rem; }
.copyright span a:hover { color: var(--rf-red); }
@media all and (max-width: 768px) {
  .foot_info { display: flex; flex-direction: column; }
  .foot_info span { margin: 0; line-height: 160%; }
}

/* =====================================================
   FLOATING BUTTONS
===================================================== */
.rf-float-kakao, .rf-float-top {
  position: fixed; right: 2rem;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  z-index: 900;
}
.rf-float-kakao { bottom: 8rem; background: #fee500; }
.rf-float-kakao:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
.rf-float-top { bottom: 2rem; background: #1a1a1a; border: 1px solid var(--rf-border); color: var(--rf-muted); font-size: 1.8rem; opacity: 0; pointer-events: none; }
.rf-float-top.visible { opacity: 1; pointer-events: auto; }
.rf-float-top:hover { background: var(--rf-red); color: #fff; transform: scale(1.08); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media all and (max-width: 1024px) {
  html { font-size: 11px; }
}
@media all and (max-width: 768px) {
  html { font-size: 10.5px; }
  .rf-section { padding: 7rem 0; }
  .rf-heading { font-size: 3.6rem; }
  .rf-subtext { font-size: 1.7rem; }
  .rf-btn-red, .rf-btn-outline { font-size: 1.5rem; padding: 1rem 2rem; }
}
@media all and (max-width: 480px) {
  html { font-size: 10px; }
  .rf-heading { font-size: 3.2rem; }
}

/* ── 노트북 최적화 (가로는 넓지만 세로가 짧은 화면) ──
   한 섹션이 100vh 안에 들어오도록 폰트·여백을 비례 축소.
   세로가 짧을수록 더 작게. min-width로 태블릿/모바일과 분리. */
@media (min-width: 1025px) and (max-height: 880px) {
  html { font-size: 10px; }
  .rf-section { padding: 6.5rem 0; }
  .rf-final-cta { padding: 8rem 0; }
}
@media (min-width: 1025px) and (max-height: 760px) {
  html { font-size: 9.1px; }
  .rf-section { padding: 5rem 0; }
  .rf-final-cta { padding: 6.5rem 0; }
}
