/* Money Lab - Global Styles */
:root {
    --primary-color: #0052cc;
    --primary-light: #4c9aff;
    --primary-dark: #003d99;
    --secondary-color: #10b981;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --gradient-primary: linear-gradient(135deg, #0052cc 0%, #4c9aff 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-blue: 0 10px 40px -10px rgba(0, 82, 204, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --font-family: 'Noto Sans KR', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

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

.nav-link.active {
    color: var(--white);
    background: var(--primary-color);
}

.logo,
.mobile-menu-btn {
    position: relative;
    z-index: 2100;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Ad Space */
.ad-space {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ad-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.ad-top {
    margin-top: 90px;
}

/* Hero Section */
.hero {
    padding: 60px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

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

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    font-size: 1.5rem;
}

.card-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.card-growth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.growth-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.growth-badge.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.growth-text {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Features */
.features {
    padding: 80px 20px;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.938rem;
    line-height: 1.7;
}

.feature-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-arrow {
    opacity: 1;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.calculator-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.calculator-header {
    background: var(--gradient-primary);
    padding: 32px;
    text-align: center;
    color: var(--white);
}

@media (max-width: 480px) {
    .calculator-header {
        padding: 24px 16px;
    }
}

.calculator-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.calculator-header p {
    opacity: 0.9;
}

.calculator-body {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 500px;
}

.calculator-inputs {
    padding: 32px;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
}

@media (max-width: 480px) {
    .calculator-inputs {
        padding: 24px 16px;
    }
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 0.938rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 60px 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 1rem;
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

.input-suffix {
    position: absolute;
    right: 16px;
    color: var(--gray-500);
    font-weight: 500;
    pointer-events: none;
}

.select-wrapper select {
    padding-right: 16px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-blue);
}

.calculate-btn:hover {
    transform: translateY(-2px);
}

.calculator-results {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .calculator-results {
        padding: 24px 16px;
    }
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.result-item {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius-md);
}

.result-item.featured {
    background: var(--gradient-primary);
    color: var(--white);
}

.result-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.result-item.featured .result-label {
    color: rgba(255, 255, 255, 0.8);
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.result-value.highlight {
    color: var(--success);
}

.result-item.featured .result-value {
    color: var(--white);
}

.chart-container {
    flex: 1;
    min-height: 300px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 20px;
}

/* Article Section */
.article-section {
    padding: 80px 20px;
    background: var(--white);
}

@media (max-width: 768px) {
    .article-section {
        padding: 40px 16px;
    }
}

.article-header {
    text-align: center;
    margin-bottom: 48px;
}

.article-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.article-meta {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-block {
    margin-bottom: 48px;
}

.article-block h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.article-block p {
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 16px;
}

.formula-box {
    background: var(--gray-900);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.formula-box p {
    color: var(--primary-light);
    font-family: monospace;
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.formula-box ul {
    list-style: disc;
    padding-left: 20px;
}

.formula-box li {
    color: var(--gray-300);
    margin-bottom: 8px;
    font-size: 0.938rem;
}

.comparison-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.comparison-item {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-md);
}

.comparison-item.highlight {
    background: rgba(0, 82, 204, 0.05);
    border: 2px solid var(--primary-color);
}

.comparison-item h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.comparison-item ul {
    list-style: disc;
    padding-left: 20px;
}

.comparison-item li {
    color: var(--gray-600);
    margin-bottom: 6px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.tip-card {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-md);
    position: relative;
}

.tip-number {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-200);
}

.tip-card h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tip-card p {
    margin: 0;
    font-size: 0.938rem;
}

.faq-list {
    margin-top: 24px;
}

.faq-item {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.faq-item h4 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.faq-item p {
    margin: 0;
}

.cta-box {
    background: var(--gradient-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 32px;
}

.cta-box p {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    font-size: 1.5rem;
}

.footer-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.938rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-section h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 0.75rem !important;
    color: var(--gray-600) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .calculator-body {
        grid-template-columns: 1fr;
    }

    .calculator-inputs {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-shadow: none;
        transform: translateX(100%);
        transform-origin: right;
        opacity: 1;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        overflow-y: hidden;
        display: flex !important;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-link {
        display: block;
        width: fit-content;
        margin: 8px auto;
        text-align: center;
        padding: 12px 32px;
        font-size: 1.25rem;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .comparison-table,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 48px;
    }

    .calculator-section {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 16px 60px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* Legal Pages */
.legal-page {
    padding: 120px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.legal-page .update-date {
    color: var(--gray-500);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.375rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.legal-page p,
.legal-page li {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.legal-page li {
    list-style-type: disc;
}

/* Guide Page */
.guide-hero {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 40px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.guide-card h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.guide-card p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.guide-card .read-more {
    color: var(--primary-color);
    font-weight: 600;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}