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

:root {
    --primary: hsl(221, 83%, 53%);
    --primary-foreground: hsl(210, 40%, 98%);
    --secondary: hsl(210, 40%, 96%);
    --secondary-foreground: hsl(222, 47%, 11%);
    --background: hsl(210, 40%, 98%);
    --foreground: hsl(222, 47%, 11%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222, 47%, 11%);
    --muted: hsl(210, 40%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --border: hsl(214, 32%, 91%);
    --input: hsl(214, 32%, 91%);
    --accent: hsl(210, 40%, 96%);
    --accent-foreground: hsl(222, 47%, 11%);
    --destructive: hsl(0, 100%, 50%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --radius: 8px;
}

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.calculator-container, .faq-container {
    max-width: 1024px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 2rem;
}

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

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background-color: hsl(221, 83%, 48%);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--card);
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background-color: var(--secondary);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-foreground);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu-desktop {
    display: none;
    margin-left: 2.5rem;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background-color: var(--card);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.mobile-menu-link:hover {
    background-color: var(--muted);
}

.mobile-menu-cta {
    margin-top: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .nav-menu-desktop {
        display: flex;
    }
    
    .nav-cta {
        display: inline-block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    /*background: linear-gradient(135deg, var(--primary) 0%, hsl(221, 83%, 63%) 50%, var(--background) 100%);*/
	background-color:#efefef;
    padding: 5rem 0 8rem;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-badge span {
    display: inline-block;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 2rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-image {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
}

/* Info Banner */
.info-banner {
    background-color: rgba(var(--primary), 0.05);
    padding: 2rem 0;
}

.info-banner-content {
    text-align: center;
}

.info-text {
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.info-question {
    font-weight: 600;
    color: var(--primary);
}

.info-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: hsl(221, 83%, 48%);
}

/* Service Cases */
.service-cases {
    padding: 5rem 0;
    background-color: var(--background);
}

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

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.case-card {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.case-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background-color: rgba(var(--primary), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.case-title {
    font-weight: 600;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .cases-grid {
        gap: 2rem;
    }
}

/* Professional Team */
.professional-team {
    padding: 5rem 0;
    background-color: rgba(var(--muted), 0.3);
}

.team-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.team-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--primary), 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.team-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.team-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.team-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
}

.feature-check {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .team-title {
        font-size: 2.5rem;
    }
}

/* Debt Calculator */
.debt-calculator {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(var(--primary), 0.05) 0%, rgba(var(--secondary), 0.1) 100%);
}

.calculator-card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 2rem;
}

.calculator-content {
    display: grid;
    gap: 2rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background-color: var(--background);
    color: var(--foreground);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

.calculator-results {
    background-color: rgba(var(--muted), 0.3);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.calculator-results h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.result-item span:first-child {
    color: var(--muted-foreground);
}

.result-value {
    font-weight: 700;
    color: var(--primary);
}

.result-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(var(--primary), 0.1);
    border-radius: var(--radius);
}

.result-notice p {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.calculator-action {
    margin-top: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .calculator-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: var(--background);
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    background-color: rgba(var(--primary), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: var(--foreground);
}

.testimonial-details {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.testimonial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: rgba(var(--primary), 0.1);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.testimonial-title {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.testimonial-content {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

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

.more-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: hsl(221, 83%, 48%);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: rgba(var(--muted), 0.3);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--foreground);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(var(--muted), 0.5);
}

.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    color: var(--muted-foreground);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-info img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.contact-details h3 {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--muted-foreground);
    margin: 0;
}

.contact-value {
    color: var(--primary) !important;
    font-weight: 500;
}

.contact-form-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin: 0;
}

.checkbox-group label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--destructive);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Success Story Banner */
.success-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(221, 83%, 63%) 100%);
}

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

.success-content img {
    width: 100%;
    max-width: 1024px;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.success-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.success-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .success-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .success-title {
        font-size: 2.5rem;
    }
}

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

.footer-content {
    display: grid;
    gap: 2rem;
}

.footer-main {
    grid-column: 1 / -1;
}

.footer-brand .logo {
    color: var(--primary);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin: 1rem 0;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0;
}

.footer-links {
    display: grid;
    gap: 2rem;
}

.footer-section h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-foreground);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-links {
        grid-column: 2 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--foreground);
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}