@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
    /* Hakyungsoft Brand Colors - 다크 모드 세련되고 현대적인 색상 (접근성 개선) */
    --brand-primary: #0A1525;
    --brand-accent: #1E40AF;
    --brand-accent-dark: #1E3A8A;
    --brand-success: #10B981;
    --brand-error: #EF4444;
    --brand-bg: #0B111E;
    --brand-surface: #141D2E;
    --brand-surface-alt: #1A253A;
    --brand-border: #2D3C52;
    --brand-text-primary: #F1F5F9;
    --brand-text-secondary: #94A3B8;
    --brand-text-on-primary: #FFFFFF;
    --brand-text-on-accent: #FFFFFF;
    --brand-text-on-bg: #F1F5F9;
    --brand-text-on-surface: #F1F5F9;
    --brand-card-bg: #1A253A;
    --brand-card-text: #F1F5F9;
    --brand-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* 배경/텍스트 유틸리티 */
.bg-brand-primary { background: var(--brand-primary) !important; }
.bg-brand-accent { background: var(--brand-accent) !important; }
.bg-brand-bg { background: var(--brand-bg) !important; }
.bg-brand-surface { background: var(--brand-surface) !important; }
.bg-brand-surface-alt { background: var(--brand-surface-alt) !important; }
.bg-brand-success { background: var(--brand-success) !important; }
.bg-brand-error { background: var(--brand-error) !important; }

.text-brand-primary { color: var(--brand-text-primary) !important; }
.text-brand-secondary { color: var(--brand-text-secondary) !important; }
.text-on-brand-primary { color: var(--brand-text-on-primary) !important; }
.text-on-brand-accent { color: var(--brand-text-on-accent) !important; }
.text-on-brand-bg { color: var(--brand-text-on-bg) !important; }
.text-on-brand-surface { color: var(--brand-text-on-surface) !important; }

.card-bg { background: var(--brand-card-bg) !important; color: var(--brand-card-text) !important; box-shadow: var(--brand-shadow); }

.border-brand { border-color: var(--brand-border) !important; }

/* 버튼/링크/카드/섹션 스타일 */
.btn-primary {
    background: var(--brand-accent);
    color: var(--brand-text-on-accent);
    border: 1px solid var(--brand-accent);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: var(--brand-text-on-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: var(--brand-accent);
    color: var(--brand-text-on-accent);
    border-color: var(--brand-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

a, .link {
    color: var(--brand-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}
a:hover, a:focus, .link:hover, .link:focus {
    color: var(--brand-accent-dark);
    text-decoration: none;
}

/* 흰색 텍스트 링크 호버 시 색상 변경 방지 */
.text-white a:hover, .text-white a:focus, 
a.text-white:hover, a.text-white:focus,
.text-white .link:hover, .text-white .link:focus {
    color: #FFFFFF;
}

a.underline-effect:after, .link.underline-effect:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    margin-top: 3px;
    right: 0;
    background: var(--brand-accent);
    transition: width 0.3s ease;
}
a.underline-effect:hover:after, .link.underline-effect:hover:after {
    width: 100%;
    left: 0;
    right: auto;
}

.feature-card, .testimonial-card, .pricing-card {
    background: var(--brand-card-bg);
    color: var(--brand-card-text);
    box-shadow: var(--brand-shadow);
    border: 1px solid var(--brand-border);
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 0.75rem;
}

.feature-card:hover, .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3), 0 10px 20px -10px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.bg-brand-primary .hakyung-h1, .bg-brand-primary .hakyung-h2, .bg-brand-primary h1, .bg-brand-primary h2 {
    color: var(--brand-text-on-primary) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--brand-text-primary);
    background: var(--brand-bg);
    font-size: 1rem;
    line-height: 1.75;
    transition: background 0.3s, color 0.3s;
}

@media (max-width: 768px) {
    body {
        font-size: 0.9375rem; /* 15px */
        line-height: 1.65;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-text-primary);
    font-weight: 600; 
}

.container {
    max-width: 1280px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; 
    padding-right: 1.5rem; 
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--brand-surface); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--brand-border); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-accent); 
}

*:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 4px; /* Slightly larger radius for focus */
}

.hakyung-h1 {
    font-size: 2.5rem; /* 40px */
    font-weight: 700; /* Bold */
    line-height: 1.2;
    letter-spacing: -0.03em;
}
@media (min-width: 768px) {
    .hakyung-h1 {
        font-size: 3.5rem; /* 56px, slightly reduced from 60px for modern feel */
    }
}

.hakyung-h2 {
    font-size: 2rem; /* 32px */
    font-weight: 700; /* Bold, increased from SemiBold */
    line-height: 1.25;
    letter-spacing: -0.025em;
}
@media (min-width: 768px) {
    .hakyung-h2 {
        font-size: 2.75rem; /* 44px, increased from 40px for more impact */
    }
}

.hakyung-h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600; /* SemiBold, increased from Medium */
    line-height: 1.35;
    letter-spacing: -0.015em;
}
@media (min-width: 768px) {
    .hakyung-h3 {
        font-size: 1.75rem; /* 28px, slightly reduced from 30px */
    }
}

.hakyung-body { 
    font-size: 1rem; /* 16px */
    line-height: 1.8; 
}
@media (max-width: 768px) {
    .hakyung-body {
        font-size: 0.9375rem; /* 15px */
    }
}

.hakyung-subtext {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
    color: var(--brand-text-secondary);
}
@media (max-width: 768px) {
    .hakyung-subtext {
        font-size: 0.8125rem; /* 13px, slightly smaller for better hierarchy on mobile */
    }
}

.hakyung-button-cta { /* For main call to action buttons if specific text styling is needed */
    font-size: 1rem; /* 16px */
    font-weight: 600; /* SemiBold */
    line-height: 1.25; 
}
@media (max-width: 768px) {
    .hakyung-button-cta {
        font-size: 0.9375rem; /* 15px */
    }
}

/* 배경-텍스트 조합 유틸리티 */
.bg-hakyung-light { background-color: var(--brand-surface-alt) !important; }
.bg-hakyung-dark { background-color: var(--brand-surface) !important; }
.text-hakyung-on-light { color: var(--brand-text-on-surface) !important; }
.text-hakyung-on-dark { color: var(--brand-text-on-primary) !important; }

.card-bg { background-color: var(--brand-card-bg) !important; color: var(--brand-card-text) !important; }
.card-bg-dark { background-color: var(--brand-card-bg) !important; color: var(--brand-card-text) !important; }

/* 호버 이펙트 관련 클래스들 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--brand-shadow);
}

.glow-on-hover {
    position: relative;
    transition: all 0.3s ease;
}
.glow-on-hover:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    transition: box-shadow 0.3s ease;
}
.glow-on-hover:hover:after {
    box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.3);
}

/* 텍스트 가독성 개선 */
p, .prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

@media (max-width: 768px) {
    p, .prose p {
        margin-bottom: 1rem;
        line-height: 1.65;
    }
}

/* 리스트 간격 개선 */
ul, ol {
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

/* 버튼 접근성 개선 */
.btn {
    min-height: 44px; /* 터치 친화적 최소 크기 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.btn:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
}
