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

:root {
    /* Color Variables */
    --primary: 210 100% 50%; /* #0066FF */
    --primary-dark: 210 100% 40%; /* #0052CC */
    --secondary: 150 60% 50%; /* #33CC66 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --surface-secondary: 210 11% 96%; /* #F0F3F7 */
    --text-primary: 210 11% 15%; /* #202632 */
    --text-secondary: 210 11% 40%; /* #5A6C7D */
    --text-muted: 210 11% 60%; /* #8B9BAE */
    --border: 210 11% 90%; /* #E1E7ED */
    --shadow: 210 15% 8%; /* #0F1419 */
    --success: 140 70% 45%; /* #22C55E */
    --warning: 45 100% 55%; /* #F59E0B */
    --error: 0 75% 55%; /* #EF4444 */
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: hsl(var(--text-primary));
}

h2 {
    font-size: 2rem;
    color: hsl(var(--text-primary));
}

h3 {
    font-size: 1.5rem;
    color: hsl(var(--text-primary));
}

h4 {
    font-size: 1.25rem;
    color: hsl(var(--text-primary));
}

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-secondary));
}

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: hsl(var(--primary-dark));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: white;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--primary) / 0.3);
}

.btn-secondary {
    background-color: hsl(var(--surface));
    color: hsl(var(--text-primary));
    border: 2px solid hsl(var(--border));
}

.btn-secondary:hover {
    background-color: hsl(var(--surface-secondary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
}

.btn-outline:hover {
    background-color: hsl(var(--primary));
    color: white;
}

/* Header */
.header {
    background-color: hsl(var(--surface));
    box-shadow: 0 2px 10px hsla(var(--shadow) / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: hsl(var(--text-secondary));
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: hsl(var(--primary));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--surface-secondary)) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-cta {
    font-size: 1.125rem;
    padding: 16px 32px;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

/* Services Section */
.services {
    background-color: hsl(var(--surface));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px hsla(var(--shadow) / 0.15);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background-color: hsl(var(--background));
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.stat-label {
    color: hsl(var(--text-secondary));
    font-weight: 500;
}

/* Testimonials Section */
.testimonials {
    background-color: hsl(var(--surface));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border-left: 4px solid hsl(var(--primary));
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.testimonial-card h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.25rem;
}

.testimonial-card span {
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
}

/* Blog Section */
.blog {
    background-color: hsl(var(--background));
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: hsl(var(--surface));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px hsla(var(--shadow) / 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h3 a {
    color: hsl(var(--text-primary));
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: hsl(var(--primary));
}

.blog-date {
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
}

/* Subscription Section */
.subscription {
    background-color: hsl(var(--surface));
    text-align: center;
}

.subscription-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid hsl(var(--border));
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary) / 0.1);
}

/* Contact Section */
.contact {
    background-color: hsl(var(--background));
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-item h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.social-media {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    padding: 12px 24px;
    background-color: hsl(var(--surface));
    border-radius: 8px;
    color: hsl(var(--text-secondary));
    transition: all 0.3s ease;
    border: 2px solid hsl(var(--border));
}

.social-links a:hover {
    background-color: hsl(var(--primary));
    color: white;
    border-color: hsl(var(--primary));
}

/* Footer */
.footer {
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: hsl(var(--text-muted));
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: hsl(var(--text-muted));
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--text-secondary));
    color: hsl(var(--text-muted));
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    box-shadow: 0 -4px 20px hsla(var(--shadow) / 0.15);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner:not(.hidden) {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(var(--shadow) / 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-top: 2px;
}

.cookie-option p {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Thank You Page */
.thank-you {
    padding: 80px 0;
    text-align: center;
    background-color: hsl(var(--background));
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-content h1 {
    color: hsl(var(--success));
    margin-bottom: 1rem;
}

.thank-you-info {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    text-align: left;
}

.thank-you-info h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.thank-you-info ul {
    list-style-position: inside;
    color: hsl(var(--text-secondary));
}

.thank-you-info li {
    margin-bottom: 0.5rem;
}

.thank-you-actions {
    margin-top: 2rem;
}

.contact-info-quick {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: hsl(var(--surface-secondary));
    border-radius: 8px;
}

.contact-info-quick p {
    margin-bottom: 0.5rem;
}

/* Legal Content */
.legal-content {
    padding: 80px 0;
    background-color: hsl(var(--background));
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h1 {
    margin-bottom: 0.5rem;
}

.last-updated {
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.legal-section h3 {
    color: hsl(var(--text-primary));
    margin: 1.5rem 0 0.75rem;
}

.legal-section ul, .legal-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
}

.contact-section {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
}

.contact-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

/* Article Content */
.article-content {
    padding: 80px 0;
    background-color: hsl(var(--background));
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header h1 {
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
}

.article-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    background-color: hsl(var(--surface));
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.08);
}

.article-intro {
    font-size: 1.125rem;
    color: hsl(var(--text-primary));
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: hsl(var(--surface-secondary));
    border-radius: 8px;
    border-left: 4px solid hsl(var(--primary));
}

.article-body h2 {
    color: hsl(var(--primary));
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(var(--border));
}

.article-body h3 {
    color: hsl(var(--text-primary));
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body h4 {
    color: hsl(var(--text-primary));
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-body ul, .article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    color: hsl(var(--text-secondary));
}

.article-body li strong {
    color: hsl(var(--text-primary));
}

.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background-color: hsl(var(--surface));
    border-radius: 16px;
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background-color: hsl(var(--surface-secondary));
    color: hsl(var(--primary));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-body {
        padding: 2rem 1.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .article-body {
        padding: 1.5rem 1rem;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .modal {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
