/* ============================================================
   MONEYTOOL.IO
   FINANCIAL CALCULATORS LANDING PAGE
   ============================================================ */

/* ============================================================
   BASE STYLES
   ============================================================ */

.calc-landing {
    --primary-color: #0f766e;
    --primary-hover: #0d5a54;
    --primary-light: #f0fdfa;
    --bg-canvas: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.10);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --link-color: #2563eb;
    --link-hover: #1d4ed8;
}

.calc-landing {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--bg-canvas);
}

/* ============================================================
   HERO SECTION - CLEAN LIGHT GREEN
   ============================================================ */

.hero-section {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    padding: 56px 60px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.10);
    box-shadow: var(--shadow);
}

/* Decorative elements */
.hero-section .hero-pattern {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section .hero-pattern-2 {
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Small decorative dots */
.hero-section .hero-dots {
    position: absolute;
    top: 20px;
    right: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-section .hero-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-text .hero-badge {
    display: inline-block;
    background: rgba(15, 118, 110, 0.12);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 14px;
    border: 1px solid rgba(15, 118, 110, 0.08);
}

.hero-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-dark);
}

.hero-text h1 span {
    color: var(--primary-color);
    position: relative;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(15, 118, 110, 0.15);
    border-radius: 2px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 580px;
    line-height: 1.8;
}

.hero-text .hero-cta {
    margin-top: 20px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-text .hero-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.hero-text .hero-cta .btn-primary-hero {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.hero-text .hero-cta .btn-primary-hero:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.3);
}

.hero-text .hero-cta .btn-secondary-hero {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.hero-text .hero-cta .btn-secondary-hero:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 24px 36px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-stat .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ============================================================
   CATEGORY SECTION
   ============================================================ */

.category-section {
    margin-bottom: 48px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.category-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-header h2 .icon {
    font-size: 1.5rem;
}

.category-header .count {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--bg-canvas);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}

/* ============================================================
   CALCULATORS GRID
   ============================================================ */

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.calc-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.calc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.calc-card .calc-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.calc-card .calc-info {
    flex: 1;
    min-width: 0;
}

.calc-card .calc-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--text-dark);
}

.calc-card .calc-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.calc-card .calc-arrow {
    color: var(--link-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.calc-card:hover .calc-arrow {
    transform: translateX(4px);
}

/* Blue links for calculators */
.calc-card .calc-name {
    color: var(--link-color);
}

/* ============================================================
   LEARNING CENTER SECTION
   ============================================================ */

.learning-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid var(--border-light);
}

.learning-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.learning-section .subtitle {
    color: var(--text-muted);
    margin: 0 0 24px 0;
    font-size: 1rem;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.learning-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px 26px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.learning-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.learning-card .topic-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.learning-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--link-color);
}

.learning-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   SEO CONTENT SECTION
   ============================================================ */

.seo-content {
    margin-top: 48px;
    padding: 40px 48px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.seo-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-dark);
}

.seo-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 12px 0;
    color: var(--text-dark);
}

.seo-content p {
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0 0 16px 0;
    font-size: 0.95rem;
}

.seo-content ul {
    color: var(--text-muted);
    line-height: 1.9;
    padding-left: 24px;
    margin: 0 0 16px 0;
}

.seo-content ul li {
    margin-bottom: 6px;
    padding-left: 4px;
}

.seo-content ul li strong {
    color: var(--text-dark);
}

.seo-content a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.seo-content a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-section {
    margin-top: 48px;
    padding: 40px 48px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.faq-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.faq-section .subtitle {
    color: var(--text-muted);
    margin: 0 0 28px 0;
    font-size: 1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 18px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-dark);
}

.faq-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

.faq-item a {
    color: var(--link-color);
    text-decoration: none;
}

.faq-item a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .calculators-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding: 40px 36px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        padding: 18px 28px;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 24px;
        border-radius: var(--radius);
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 24px;
        padding: 16px 24px;
        width: 100%;
        justify-content: space-around;
        backdrop-filter: blur(8px);
    }

    .hero-stat .number {
        font-size: 1.5rem;
    }

    .hero-stat .label {
        font-size: 0.65rem;
    }

    .hero-text .hero-cta a {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .learning-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .category-header h2 {
        font-size: 1.2rem;
    }

    .seo-content {
        padding: 24px 20px;
    }

    .seo-content h2 {
        font-size: 1.3rem;
    }

    .seo-content h3 {
        font-size: 1.05rem;
    }

    .faq-section {
        padding: 24px 20px;
    }

    .faq-section h2 {
        font-size: 1.3rem;
    }

    .hero-section .hero-dots {
        display: none;
    }
}

@media (max-width: 480px) {
    .calc-landing {
        padding: 0 12px 40px;
    }

    .hero-section {
        padding: 24px 16px;
        border-radius: 8px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text h1 span::after {
        height: 3px;
        bottom: 2px;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
        padding: 12px 16px;
        justify-content: center;
    }

    .hero-stat .number {
        font-size: 1.2rem;
    }

    .hero-stat .label {
        font-size: 0.6rem;
    }

    .hero-text .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-text .hero-cta a {
        justify-content: center;
        width: 100%;
        padding: 10px 20px;
    }

    .calc-card {
        padding: 12px 16px;
        gap: 10px;
    }

    .calc-card .calc-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .calc-card .calc-name {
        font-size: 0.8rem;
    }

    .calc-card .calc-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .learning-card {
        padding: 16px 18px;
    }

    .learning-card h4 {
        font-size: 0.9rem;
    }

    .learning-card p {
        font-size: 0.8rem;
    }

    .seo-content {
        padding: 16px 14px;
    }

    .seo-content h2 {
        font-size: 1.15rem;
    }

    .seo-content h3 {
        font-size: 0.95rem;
    }

    .seo-content p {
        font-size: 0.85rem;
    }

    .seo-content ul {
        padding-left: 16px;
    }

    .seo-content ul li {
        font-size: 0.85rem;
    }

    .faq-section {
        padding: 16px 14px;
    }

    .faq-section h2 {
        font-size: 1.15rem;
    }

    .faq-item h3 {
        font-size: 0.85rem;
    }

    .faq-item p {
        font-size: 0.82rem;
    }

    .category-header h2 {
        font-size: 1rem;
    }

    .category-header .count {
        font-size: 0.7rem;
        padding: 2px 10px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .calc-landing *,
    .calc-landing *::before,
    .calc-landing *::after {
        transition: none !important;
        animation: none !important;
    }

    .calc-card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }

    .learning-card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }

    .hero-text .hero-cta a:hover {
        transform: none !important;
    }
}