:root {
    --primary: #1e40af; /* Deep Blue */
    --primary-hover: #1e3a8a;
    --secondary: #64748b; /* Slate Gray */
    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --bg-body: #f8fafc; /* Slate 50 */
    --bg-white: #ffffff;
    --border: #e2e8f0; /* Slate 200 */
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Smooth Scroll Offset */
section[id],
.card[id] {
    scroll-margin-top: 80px;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.08);
}

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

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

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

.btn-white:hover {
    background-color: #f1f5f9;
}

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

/* Header */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    /* font-weight: 700; font-size: 1.25rem; color: var(--primary); Removed text styles */
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

/* 
.logo-icon {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
} 
*/

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.dropdown {
    position: relative;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 3rem 0 1rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-body));
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* =========================================
   Tool Cards
   ========================================= */
.section {
    padding: 4rem 0;
}

.tools-section {
    padding-top: 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden; /* Ensure badge doesn't spill out if needed, but usually absolute is fine. Added just in case. */
}

.badge-popular {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #fef3c7; /* Amber 100 */
    color: #d97706; /* Amber 600 */
    font-size: 0.875rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #fcd34d; /* Amber 300 */
}

@keyframes pulse-badge {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.badge-blink {
    animation: pulse-badge 2s infinite ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.card-icon {
    background-color: #eff6ff; /* Light blue bg */
    color: var(--primary);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-card .btn {
    width: 100%;
}

/* =========================================
   Form Elements
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* =========================================
   Result Box
   ========================================= */
.result-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.score-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.result-item {
    background-color: var(--bg-body);
    padding: 1rem;
    border-radius: var(--radius);
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.result-value {
    font-weight: 600;
    color: var(--text-main);
}

/* Affiliate Section */
.affiliate-section {
    background-color: var(--primary);
    color: white;
}

.affiliate-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.affiliate-title {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.affiliate-text {
    color: #e2e8f0;
    font-size: 1.1rem;
}

/* Blog Section */
.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
    padding: 0;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background-color: #cbd5e1; /* Slate 300 */
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    gap: 4px;
}

.link-arrow:hover {
    gap: 8px;
}

.icon-sm {
    width: 16px;
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: contents; /* Allows columns to participate in the grid */
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

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

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Tailwind Utilities for Logo */
.h-10 {
    height: 2.5rem; /* 40px */
}
.w-auto {
    width: auto;
}
