:root {
    --primary: #5b4cdb;
    --primary-hover: #4a3bc4;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --background: #f0f4ff;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(91, 76, 219, 0.15);
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Responsive Footer Container */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-container p {
        margin-bottom: 12px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Advanced Animated Mesh Background */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #e8f0fe 0%, #f5f3ff 50%, #fdf4ff 100%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: linear-gradient(to right, #e0e7ff, #c7d2fe);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: linear-gradient(to left, #fce7f3, #e9d5ff);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: linear-gradient(to bottom, #bae6fd, #e0f2fe);
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 50px) rotate(10deg);
    }
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* Solid background on mobile for better readability */
@media (max-width: 768px) {
    nav {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

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

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

/* Breadcrumbs */
.breadcrumb {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 16px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .breadcrumb {
        padding: 12px 16px;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 12px;
        font-size: 0.8rem;
    }

    .logo img {
        height: 36px;
    }
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1200px) {
    .container {
        padding: 60px 40px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 60px 60px;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 20px 40px;
}

@media (min-width: 1200px) {
    .hero {
        padding: 80px 20px 60px;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--primary);
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 20px;
    font-weight: 400;
}

/* Tool Interface Card */
.tool-interface {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

/* Form Elements */
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s;
    margin-bottom: 20px;
}

textarea {
    font-family: 'JetBrains Mono', monospace;
    min-height: 150px;
    line-height: 1.5;
    font-size: 0.9rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Results */
.result-box {
    display: none;
    background: #ffffff;
    /* Cleaner white background */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    max-height: 500px;
    /* Limit height slightly */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Slight shadow */
}

.result-box.show {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smoother animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

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

.result-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
}

.result-label {
    font-weight: 600;
    color: var(--text-muted);
    width: 140px;
    flex-shrink: 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
    font-size: 0.9rem;
}

/* Content Section */
.content-section {
    background: var(--surface);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-main);
}

.content-section p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

.content-section ul,
.content-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.content-section code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

/* Related Tools */
.related-tools {
    margin-top: 60px;
}

.related-tools h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.tool-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 80px;
    color: var(--text-muted);
}

/* Responsive */
/* Responsive Improvements */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem !important;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero {
        padding: 40px 16px 20px;
    }

    /* Stack Navigation on Mobile */
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Reduce Padding on Mobile */
    .container {
        padding: 24px 16px;
    }

    .tool-interface,
    .content-section {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 24px;
    }

    /* Grid layouts */
    .tools-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .tool-card {
        padding: 24px;
    }

    .result-status-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .status-icon {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .status-title {
        font-size: 1.5rem;
    }

    .status-subtitle {
        font-size: 0.95rem;
    }

    /* Force Result Rows to Stack */
    .result-row {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid #f1f5f9;
        padding: 12px 0;
    }

    .result-label {
        width: 100% !important;
        margin-bottom: 4px;
        color: var(--text-muted);
        font-size: 0.75rem;
    }

    .result-value {
        font-size: 0.9rem;
        width: 100%;
        word-break: break-all;
    }

    /* Adjust Buttons */
    .btn {
        width: 100%;
        justify-content: center;
        display: flex;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .copy-btn {
        margin-left: 0;
        margin-top: 8px;
        width: fit-content;
    }

    /* Improve form inputs on mobile */
    input[type="text"],
    textarea,
    select {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 14px;
    }

    /* Better touch targets */
    .tool-card {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }

    .tool-interface,
    .content-section {
        padding: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}



/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
/* Success/Error Messages */
.success {
    background: #dcfce7;
    color: #166534;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-weight: 600;
    border: 1px solid #fecaca;
}

.warning {
    background: #fefce8;
    color: #854d0e;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-weight: 600;
    border: 1px solid #fde68a;
}

/* =========================================
   Professional Result Display System
   ========================================= */

/* Status Summary Card (The big colorful box) */
.result-status-card {
    text-align: center;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.result-status-card.success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.result-status-card.error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.result-status-card.warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.status-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.status-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.status-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Result Group (Sections like "Certificate Details") */
.result-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* Result Rows */
.result-row {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--text-muted);
    width: 160px;
    flex-shrink: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    flex-grow: 1;
    line-height: 1.5;
}

/* Copy Button */
.copy-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-color: var(--primary);
}

.copy-btn.copied {
    background: #dcfce7;
    color: #166534;
    border-color: #166534;
}

/* Text Areas / Code Blocks in Results */
.result-code-block {
    background: #0f172a;
    color: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    position: relative;
}

.result-code-block .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
}

.result-code-block .copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Status Badges within lists */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-badge.success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.warning {
    background: #fefce8;
    color: #854d0e;
}

.status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.neutral {
    background: #f1f5f9;
    color: #475569;
}

/* Grid Layout for Result Groups (Optional) */
.result-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .result-grid-2 {
        grid-template-columns: 1fr;
    }

    .result-row {
        flex-direction: column;
    }

    .result-label {
        width: 100%;
        margin-bottom: 4px;
    }
}

/* Home Page Specific Styles */
.homepage-hero {
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-subtitle-line {
    font-size: 0.6em;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-primary-light {
    background: white;
    color: var(--primary);
    border: none;
    padding: 18px 48px;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.trusted-by-section {
    margin-top: 60px;
    text-align: center;
    width: 100%;
}

.trusted-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #475569;
    font-weight: 700;
    margin-bottom: 24px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    color: #64748b;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .trusted-by-section {
        margin-top: 40px;
    }

    .trusted-logos {
        gap: 24px;
        font-size: 1rem;
    }
}

.main-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

@media (min-width: 1024px) {
    .main-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
}

@media (min-width: 1440px) {
    .main-tools-grid {
        gap: 40px;
    }
}

.tool-title {
    margin-top: 16px;
    font-size: 1.5rem;
}

.tool-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.tool-action {
    margin-top: 16px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.section-divider {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

.divider-text {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.secondary-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

@media (min-width: 1024px) {
    .secondary-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
}


.tool-card.compact {
    padding: 24px;
    min-height: auto;
}

.compact-tool-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.compact-title {
    margin: 0;
    font-size: 1.1rem;
}

.compact-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.features-section {
    margin-top: 100px;
    padding: 0 20px;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.features-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-section {
    margin: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.25);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .homepage-hero {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 300px;
    }

    .trusted-logos {
        gap: 20px;
        font-size: 1rem;
    }

    .features-section {
        margin-top: 60px;
    }

    .features-header h2 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 40px 20px;
        margin: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .homepage-hero {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .features-header h2 {
        font-size: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }
}

/* =========================================
   Mobile Performance Optimization
   ========================================= */
@media (max-width: 768px) {

    /* Disable heavy blur filters which cause flickering on mobile GPUs */
    .blob {
        display: none;
        /* Hide animated blobs on mobile */
    }

    .background-mesh {
        background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
        /* Static background */
    }

    nav,
    .tool-card,
    .tool-interface,
    .content-section,
    .badge,
    .result-status-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95);
        /* Solid accessible background */
    }

    .tool-card:hover {
        transform: none;
        /* Disable hover lift on touch devices */
        box-shadow: var(--shadow-md);
    }
}

/* =========================================
   Blog Responsive Fixes
   ========================================= */
@media (max-width: 768px) {
    .blog-post {
        padding: 24px !important;
        border-radius: 16px !important;
    }

    .blog-header {
        margin-bottom: 24px !important;
        padding-bottom: 24px !important;
    }

    .blog-header h1 {
        font-size: 1.75rem !important;
    }

    .blog-content h2 {
        font-size: 1.5rem !important;
        margin-top: 32px !important;
    }

    .highlight-box {
        padding: 16px !important;
        margin: 24px 0 !important;
    }

    .check-list li {
        padding-left: 24px !important;
    }

    /* Fix image overflow just in case */
    .blog-content img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }
}