/* Google Fonts 눈누 Pretendard Import */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    /* Color Palette */
    --bg-dark: #0f172a;               /* 딥 옵시디언 배경 */
    --bg-card: rgba(30, 41, 59, 0.6); /* 글래스 배경색 */
    --border-glass: rgba(255, 255, 255, 0.1); 
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Accent Colors */
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);
    --purple: #9333ea;
    --purple-glow: rgba(147, 51, 234, 0.3);
    
    /* Typography */
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------------------------------
   Background Glow Effects
-------------------------------------- */
.background-effects {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
}

.glow.cyan {
    top: -150px; left: -150px;
    background: var(--cyan);
}

.glow.purple {
    bottom: -150px; right: -150px;
    background: var(--purple);
}

/* -------------------------------------
   Glassmorphism Utilities
-------------------------------------- */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
}

.highlight {
    color: var(--cyan);
    font-weight: 700;
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Only standard property at the end */
}

/* -------------------------------------
   Navbar
-------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    transition: backdrop-filter 0.3s;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

/* -------------------------------------
   Buttons
-------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.primary-btn {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--cyan-glow), 0 10px 25px var(--purple-glow);
}

.primary-btn:hover::after {
    opacity: 1;
}

.secondary-btn {
    color: var(--text-primary);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.icon {
    width: 22px;
    height: 22px;
}

.version-label {
    background: rgba(0,0,0,0.4);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* -------------------------------------
   Hero Section
-------------------------------------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 5% 5rem;
    min-height: 85vh;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

/* -------------------------------------
   Mockup Window
-------------------------------------- */
.hero-mockup {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

.mockup-window {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px var(--cyan-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.mockup-window:hover {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6), 0 0 60px var(--purple-glow);
}

.window-header {
    background: rgba(15, 23, 42, 0.9);
    padding: 14px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* -------------------------------------
   CSS Mockup UI
-------------------------------------- */
.css-mockup {
    display: flex;
    height: 500px;
    background: #0f172a;
}

.mockup-sidebar {
    width: 220px;
    background: rgba(30, 41, 59, 0.4);
    border-right: 1px solid var(--border-glass);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
    cursor: default;
}

.menu-item svg {
    width: 20px;
    height: 20px;
}

.menu-item.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
}

.menu-item:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.menu-item.setting {
    margin-top: auto;
}

.mockup-main {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5), #0f172a);
}

.preview-box {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px dashed rgba(6, 182, 212, 0.3);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.preview-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 2px solid var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.coord {
    background: var(--cyan);
    color: #000;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: monospace;
}

/* -------------------------------------
   Features Section
-------------------------------------- */
.features-section {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
}

.cyan-bg { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.purple-bg { background: rgba(147, 51, 234, 0.15); color: var(--purple); }
.blue-bg { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.pink-bg { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--cyan);
}

/* -------------------------------------
   Bottom CTA Section
-------------------------------------- */
.bottom-cta-section {
    padding: 4rem 5% 8rem;
    text-align: center;
}

.cta-banner {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* -------------------------------------
   Footer
-------------------------------------- */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* -------------------------------------
   Animations (Intersection Observer)
-------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* -------------------------------------
   Responsive
-------------------------------------- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero { padding-top: 5rem; }
    .cta-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 3rem; }
    .btn { width: 100%; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-links a { margin: 0 1rem; }
}

/* -------------------------------------
   Modals
-------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px var(--cyan-glow);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--cyan);
}

.modal-body p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.modal-body strong {
    color: var(--purple);
    font-weight: 700;
}
