/* ================================================================
   RideLink WebGen2 — 공통 디자인 시스템
   기존 index.css에서 추출한 공통 토큰 + 컴포넌트
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00E5FF;
    --primary-glow: rgba(0, 229, 255, 0.35);
    --accent: #00E676;
    --accent-glow: rgba(0, 230, 118, 0.3);
    --gradient-brand: linear-gradient(90deg, #00E676, #00E5FF);
    --bg-void: #000000;
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-elevated: #1a1a24;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --section-padding: 120px;
    --container-max: 1200px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-normal: 0.6s;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Pretendard', 'Outfit', -apple-system, sans-serif;
    background: var(--bg-void); color: var(--text-primary);
    line-height: 1.6; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section { position: relative; padding: var(--section-padding) 0; overflow: hidden; }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.section-label {
    display: inline-block; font-family: 'Outfit', sans-serif;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--primary);
    margin-bottom: 1.25rem; padding-left: 2rem; position: relative;
}
.section-label::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 1.2rem; height: 2px; background: var(--gradient-brand); transform: translateY(-50%);
}
.section-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.section-desc { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-secondary); max-width: 640px; line-height: 1.75; }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }
.text-center .section-label { padding-left: 0; }
.text-center .section-label::before { display: none; }

/* ================================================================ Navigation */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 1000;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border); box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}
.nav-inner {
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    height: 100%; display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; border: 1.5px solid rgba(255,255,255,0.15); flex-shrink: 0; }
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.25rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
    background: var(--gradient-brand); color: #000; transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px var(--primary-glow); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 0.5rem; }

/* Mobile Menu */
.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
    z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--primary); }

/* ================================================================ Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 2rem; border-radius: 100px; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: all 0.3s var(--ease-out-expo); }
.btn-primary { background: var(--text-primary); color: var(--bg-void); }
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 8px 30px rgba(255,255,255,0.15); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-gradient { background: var(--gradient-brand); color: #000; font-weight: 700; }
.btn-gradient:hover { transform: scale(1.04); box-shadow: 0 8px 30px var(--primary-glow); }

/* ================================================================ Cards */
.glass-card {
    padding: 2.5rem 2rem; border-radius: 24px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-out-expo); overflow: hidden; position: relative;
}
.glass-card::before { content: ''; position: absolute; inset: 0; border-radius: 24px; background: radial-gradient(ellipse at top left, rgba(0, 242, 255, 0.05), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.glass-card:hover { border-color: rgba(0, 242, 255, 0.15); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.glass-card:hover::before { opacity: 1; }

/* ================================================================ Scroll Reveal */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity var(--duration-normal) var(--ease-out-expo), transform var(--duration-normal) var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ================================================================ Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-muted); }

/* ================================================================ Page Header */
.page-header {
    padding: 120px 0 60px; background: var(--bg-dark);
    position: relative; overflow: hidden;
}
.page-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
.page-header .page-emoji { font-size: 3rem; margin-bottom: 1rem; display: block; }
.page-header .page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.page-header .page-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7; }

/* ================================================================ Footer */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--glass-border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--text-primary); }
.footer span { font-size: 0.8rem; color: var(--text-muted); }
.footer-contact { font-size: 0.8rem; color: var(--text-muted); }
.footer-contact a { color: var(--primary); text-decoration: none; transition: opacity 0.3s; }
.footer-contact a:hover { opacity: 0.8; }

/* ================================================================ Responsive */
@media (max-width: 768px) {
    :root { --section-padding: 80px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .page-header { padding: 100px 0 40px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .nav-cta span { display: none; }
}
@media (max-width: 480px) {
    :root { --section-padding: 60px; }
    .page-header { padding: 90px 0 30px; }
}
