@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/********** Smart Digital Library Proposal CSS **********/
:root {
    --primary: #1E3A8A; /* Deep Academic Blue */
    --primary-light: #EFF6FF;
    --primary-hover: #172554;
    --secondary: #0D9488; /* Tech Teal */
    --accent: #D97706; /* Warm Gold */
    --danger: #EF4444;
    --dark: #0F172A;
    --dark-card: #1E293B;
    --text-main: #334155;
    --text-muted: #64748B;
    --light: #F8FAFC;
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 25px rgba(30, 58, 138, 0.25);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main);
    background-color: #FAFAFA;
    letter-spacing: -0.02em;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/*** Typography ***/
h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700 !important;
    color: var(--dark);
    letter-spacing: -0.03em;
}

p {
    line-height: 1.8;
}

.text-primary-gradient {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #0D9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: #D97706;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Buttons ***/
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #172554 0%, #1E3A8A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
    color: #fff;
}

/*** Modern Fixed Sticky Navbar ***/
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    width: 100%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 14px 0;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 20px;
    padding: 10px 8px !important;
    color: #334155 !important;
    font-weight: 600;
    font-size: 1.02rem;
    transition: all 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #2563EB !important;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 2.5px;
    background: #2563EB;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-light .navbar-brand h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark) !important;
}

/*** Hero Section ***/
.hero-header {
    background: linear-gradient(135deg, #0B132B 0%, #1C2541 45%, #1E3A8A 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 90px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.hero-header::before {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    color: #93C5FD;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-mockup-wrapper {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-hero-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: floatAnim 4s ease-in-out infinite alternate;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

/*** Problem vs Solution Cards ***/
.problem-card {
    background: #FFF1F2;
    border: 1px solid #FFE4E6;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
}

.solution-card {
    background: #F0FDF4;
    border: 1px solid #DCFCE7;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
}

.card-icon-round {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

/*** Feature Grid ***/
.solution-feature-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 35px 28px;
    border: 1px solid #F1F5F9;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    height: 100%;
}

.solution-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #BFDBFE;
}

.solution-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #EFF6FF;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.solution-feature-card:hover .solution-icon-box {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #FFFFFF;
    transform: rotate(5deg) scale(1.05);
}

/*** Modern Digital Bookshelf Showcase ***/
.bookshelf-frame-wrapper {
    background: #0F172A;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    border: 1px solid #334155;
    position: relative;
}

.bookshelf-browser-header {
    background: #1E293B;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
    flex-wrap: wrap;
    gap: 12px;
}

.browser-dots {
    display: flex;
    gap: 8px;
}

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

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.browser-url-bar {
    background: #0F172A;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 6px 18px;
    color: #94A3B8;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
}

.browser-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bookshelf-iframe-container {
    width: 100%;
    height: 760px;
    background: #FFFFFF;
    position: relative;
}

.bookshelf-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 991px) {
    .bookshelf-iframe-container {
        height: 560px;
    }
}

/*** Process Steps ***/
.process-step-box {
    text-align: center;
    position: relative;
    padding: 20px;
}

.process-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563EB;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/*** Cost & Hosting Cards ***/
.pricing-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 36px 30px;
    border: 1.5px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.pricing-card.featured {
    border-color: #2563EB;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563EB;
    color: #FFFFFF;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

/*** Proposal Form Card ***/
.proposal-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 13px 16px;
    border: 1.5px solid #E2E8F0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/*** Floating Quick Bar ***/
.floating-quick-bar {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
    color: #FFFFFF;
}

.floating-kakao {
    background: #FEE500;
    color: #191919 !important;
}

.floating-call {
    background: #0D9488;
}

.floating-top {
    background: var(--dark);
    display: none;
}

/*** Toast Notification ***/
#customToast {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    min-width: 320px;
}

/*** Footer ***/
.footer-section {
    background: var(--dark);
    color: #94A3B8;
    padding-top: 70px;
    padding-bottom: 30px;
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
}

.footer-section h5 {
    color: #FFFFFF;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.footer-section a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-social-btn:hover {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}