/* ==========================================================================
   UtilityX Design System
   New palette: deep teal + cyan gradient identity with a warm amber accent.
   Tokens exposed as CSS custom properties so every tool page (which loads
   this file alongside its own <tool>.css) can share the same identity.
   ========================================================================== */
:root {
    /* Brand */
    --primary-color: #0f766e;      /* teal-700 - primary brand color */
    --primary-light: #14b8a6;      /* teal-500 - hovers / highlights */
    --primary-dark: #115e59;       /* teal-800 - pressed / deep accents */
    --secondary-color: #0891b2;    /* cyan-600 - gradient partner */
    --accent-color: #f59e0b;       /* amber-500 - CTA / highlight */
    --accent-dark: #d97706;        /* amber-600 - CTA hover */

    /* Semantic */
    --success-color: #16a34a;
    --error-color: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #0891b2;
    --dark-color: #0f172a;         /* slate-900 - headings on light bg */

    /* Surfaces & text */
    --surface: #ffffff;
    --surface-muted: #f5f7fa;
    --text: #1e293b;
    --text-muted: #5b6b82;
    --border-color: #e2e8f0;

    /* Gradient */
    --gradient-brand: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);

    /* Shape & elevation */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
    --shadow-brand: 0 10px 30px rgba(15, 118, 110, 0.25);

    /* Motion */
    --transition: 0.25s ease;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    z-index: 2000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--gradient-brand);
    min-height: 100vh;
}

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

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 130px 0 90px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.25rem;
    opacity: 0.95;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: #1a1305;
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cta-button:hover {
    background: var(--accent-dark);
    color: #1a1305;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.4);
}

/* Tools Section */
.tools-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tool-category {
    background: var(--surface-muted);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tool-category:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.tool-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.tool-list {
    list-style: none;
}

.tool-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.tool-list li:last-child {
    border-bottom: none;
}

.tool-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.tool-list a:hover {
    color: var(--secondary-color);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 34px 22px;
    background: var(--surface-muted);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

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

.submit-button {
    background: var(--gradient-brand);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}

.form-message.success {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

/* Blog Section */
.blog-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 2px 16px rgba(15, 118, 110, 0.10);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15, 118, 110, 0.18);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding-bottom: 0.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .tools-section {
        padding: 40px 20px;
    }
}
