:root {
    /* Mapped to new tools.css Palette */
    --bg-primary: #0f172a; /* Deep Navy */
    --bg-secondary: #1e293b; /* Lighter Navy */
    --card-bg: #1e293b; /* Matching tools.css card bg */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1; /* Indigo to match tools */
    --accent-hover: #4f46e5;

    --btn-primary-bg: #6366f1; /* Indigo */
    --btn-primary-text: #ffffff;

    --link-color: #38bdf8;
    --header-bg: #0f172a;
    --border-color: #334155;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --header-bg: #ffffff;
    --border-color: #e2e8f0;

    /* Hero remains dark usually, but if global toggle: */
    --text-on-dark: #f8fafc;
}

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

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

nav ul {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    nav ul {
        display: flex;
        gap: 2rem;
        font-size: 1rem;
    }

    nav a {
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 0.9rem;
        transition: color 0.2s;
    }

    nav a:hover {
        color: var(--text-primary);
    }
}

#theme-toggle {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

#theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Hero Section */
.hero {
    background-color: var(--bg-primary);
    padding: 4rem 2rem 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.hero-content {
    max-width: 500px;
    flex: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
}

.hero-image {
    flex: 1;
    display: none; /* Hidden on mobile */
    position: relative;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 4rem 2rem;
    }
    .hero-image {
        display: flex;
    }
    .hero-content {
        margin-right: 2rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

.circle-bg {
    width: 300px;
    height: 300px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

.person-placeholder {
    width: 280px;
    height: 350px;
    background-color: #334155;
    position: relative;
    z-index: 1;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Sections Common */
.section-light {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4rem 2rem;
}

.section-dark {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 4rem 2rem;
}

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

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tool-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.tool-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.view-more {
    text-align: center;
    margin-top: 2rem;
}

.view-more a {
    color: var(--link-color);
    font-weight: 600;
}

/* Brands */
.brands {
    text-align: center;
    padding: 2rem 0;
}

.brands h3 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    font-weight: bold;
    color: var(--text-secondary);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.testimonial-card .avatar {
    width: 60px;
    height: 60px;
    background-color: #334155;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.testimonial-card h4 {
    margin-bottom: 0.2rem;
}

.testimonial-card .role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-primary);
}


/* Subscribe */
.subscribe-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.subscribe-text {
    flex: 1;
    min-width: 300px;
    margin-bottom: 1rem;
}

.subscribe-text h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subscribe-text p {
    color: var(--text-secondary);
}

.subscribe-form {
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    min-width: 250px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.subscribe-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.subscribe-form button:hover {
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--text-primary);
    font-weight: bold;
}
