/**
 * AuditSeo.Org - Modern Design System
 * Inspired by ViserWeb - Professional SEO Platform
 * Version: 2.0.0
 */

/* ===========================================
   Google Fonts Import
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ===========================================
   CSS Variables - Modern Color Palette
   =========================================== */
:root {
    /* Primary - Deep Blue to Purple Gradient */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Secondary - Teal/Cyan */
    --secondary-400: #22d3ee;
    --secondary-500: #06b6d4;
    --secondary-600: #0891b2;

    /* Accent - Orange/Amber */
    --accent-400: #fb923c;
    --accent-500: #f97316;
    --accent-600: #ea580c;

    /* Gray - Slate */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Status Colors */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    --error-50: #fef2f2;
    --error-100: #fee2e2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    --error-700: #b91c1c;

    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #4338ca 50%, #6366f1 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===========================================
   CSS Reset & Base
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ===========================================
   Layout Utilities
   =========================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 640px) {
    .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
    .container { padding: 0 var(--space-8); }
}

.section {
    padding: var(--space-16) 0;
}

.section--lg {
    padding: var(--space-24) 0;
}

/* ===========================================
   Header - Modern Glassmorphism
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-base);
}

.header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--space-4);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--gray-900);
    text-decoration: none;
}

.logo__icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.logo__icon svg {
    width: 24px;
    height: 24px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        align-items: center;
        gap: var(--space-1);
    }
}

.nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-600);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav__link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav__link--active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav__cta {
    margin-left: var(--space-4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--gray-200);
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
}

.menu-toggle__icon {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: var(--space-6);
    overflow-y: auto;
    z-index: 999;
}

.mobile-nav.is-open {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav__link {
    display: block;
    padding: var(--space-4);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-700);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2);
}

.mobile-nav__link:hover {
    background: var(--gray-100);
    color: var(--primary-600);
}

/* ===========================================
   Buttons - Modern Style
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn--secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn--secondary:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: var(--primary-50);
}

.btn--outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-500);
}

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

.btn--ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn--ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

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

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-2xl);
}

.btn--xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
    border-radius: var(--radius-2xl);
}

.btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-lg);
}

.btn__icon {
    width: 1.25em;
    height: 1.25em;
}

/* Loading State */
.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================================
   Hero Section - Stunning Visual
   =========================================== */
.hero {
    position: relative;
    padding: calc(72px + var(--space-16)) 0 var(--space-20);
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.hero__content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero__content {
        text-align: left;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.hero__badge-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-400);
}

.hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: var(--text-6xl);
    }
}

.hero__title-highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    margin-bottom: var(--space-8);
}

@media (min-width: 1024px) {
    .hero__subtitle {
        font-size: var(--text-xl);
    }
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero__actions {
        justify-content: flex-start;
    }
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__stat {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero__stat {
        text-align: left;
    }
}

.hero__stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: white;
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Visual */
.hero__visual {
    display: none;
}

@media (min-width: 1024px) {
    .hero__visual {
        display: block;
        position: relative;
    }
}

.hero__image {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2xl);
}

/* Search Form in Hero */
.hero-search {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-2);
    display: flex;
    gap: var(--space-2);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-search {
        margin: 0;
    }
}

.hero-search__input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    border: none;
    background: transparent;
    font-size: var(--text-base);
    color: var(--gray-900);
    outline: none;
}

.hero-search__input::placeholder {
    color: var(--gray-400);
}

.hero-search__btn {
    padding: var(--space-4) var(--space-8);
}

/* ===========================================
   Cards - Modern Style
   =========================================== */
.card {
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.card__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    flex-shrink: 0;
}

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card__icon--success { background: var(--gradient-success); }
.card__icon--warning { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.card__icon--error { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }

.card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
}

.card__body {
    padding: var(--space-6);
}

.card__footer {
    padding: var(--space-4) var(--space-6);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* Tool Card */
.tool-card {
    display: block;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
    text-decoration: none;
}

.tool-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.tool-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-100);
    border-radius: var(--radius-xl);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.tool-card:hover .tool-card__icon {
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.tool-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.tool-card__desc {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===========================================
   Feature Section
   =========================================== */
.features {
    background: white;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    background: var(--gray-50);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.feature-card:hover {
    background: white;
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    color: white;
    font-size: var(--text-3xl);
}

.feature-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.feature-card__desc {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===========================================
   Section Headers
   =========================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-header__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-header__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .section-header__title {
        font-size: var(--text-4xl);
    }
}

.section-header__desc {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===========================================
   Footer - Modern Dark
   =========================================== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

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

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-xl);
    color: white;
    margin-bottom: var(--space-4);
}

.footer__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__logo-icon svg {
    width: 24px;
    height: 24px;
}

.footer__desc {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--primary-600);
    color: white;
}

.footer__col-title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--space-5);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    color: var(--gray-400);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer__link:hover {
    color: white;
    padding-left: var(--space-2);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__copy {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

.footer__legal a:hover {
    color: white;
}

/* ===========================================
   Forms - Modern Style
   =========================================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    display: block;
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    color: var(--gray-900);
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: var(--gray-300);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.form-input::placeholder {
    color: var(--gray-400);
}

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

.form-hint {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.form-error {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--error-600);
}

/* ===========================================
   Badges & Tags
   =========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge--primary { background: var(--primary-100); color: var(--primary-700); }
.badge--success { background: var(--success-100); color: var(--success-700); }
.badge--warning { background: var(--warning-100); color: var(--warning-600); }
.badge--error { background: var(--error-100); color: var(--error-700); }
.badge--info { background: var(--info-100); color: var(--info-600); }
.badge--gray { background: var(--gray-100); color: var(--gray-600); }

/* Priority badges */
.priority {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
}

.priority--p0 { background: var(--error-600); color: white; }
.priority--p1 { background: var(--error-100); color: var(--error-700); }
.priority--p2 { background: var(--warning-100); color: var(--warning-600); }
.priority--p3 { background: var(--success-100); color: var(--success-700); }

/* ===========================================
   Score Display
   =========================================== */
.score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.score-circle__ring {
    transform: rotate(-90deg);
}

.score-circle__bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 12;
}

.score-circle__progress {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.score-circle__progress--good { stroke: url(#gradient-success); }
.score-circle__progress--warning { stroke: url(#gradient-warning); }
.score-circle__progress--bad { stroke: url(#gradient-error); }

.score-circle__value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-circle__number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.score-circle__label {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ===========================================
   Alerts & Messages
   =========================================== */
.alert {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px solid;
}

.alert__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert__content {
    flex: 1;
}

.alert__title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.alert__text {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.alert--info {
    background: var(--info-50);
    border-color: var(--info-100);
    color: var(--info-600);
}

.alert--success {
    background: var(--success-50);
    border-color: var(--success-100);
    color: var(--success-600);
}

.alert--warning {
    background: var(--warning-50);
    border-color: var(--warning-100);
    color: var(--warning-600);
}

.alert--error {
    background: var(--error-50);
    border-color: var(--error-100);
    color: var(--error-600);
}

/* ===========================================
   Utility Classes
   =========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-primary { color: var(--primary-600); }
.text-success { color: var(--success-600); }
.text-error { color: var(--error-600); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===========================================
   Page Content Area
   =========================================== */
.main {
    padding-top: 72px;
    min-height: 100vh;
}

.page-header {
    background: var(--gradient-hero);
    padding: calc(var(--space-16)) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .page-header__title {
        font-size: var(--text-4xl);
    }
}

.page-header__desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-4);
    justify-content: center;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb__separator {
    opacity: 0.5;
}

/* ===========================================
   Animations
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Stagger delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ===========================================
   Responsive Grid
   =========================================== */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 1280px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================================
   Toast Notifications
   =========================================== */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--gray-900);
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast--success { background: var(--success-600); }
.toast--error { background: var(--error-600); }
.toast--warning { background: var(--warning-600); }

/* ===========================================
   Accessibility - Visually Hidden
   =========================================== */
.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;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-600);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Form styles */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

/* Tools section styling */
.tools-section {
    margin-bottom: 48px;
}

.tools-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-900);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}
