/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light & Premium Colors */
    --primary-color: #6366f1;        /* Light Indigo */
    --secondary-color: #10b981;      /* Light Green */
    --accent-purple: #a78bfa;        /* Light Purple */
    --accent-blue: #60a5fa;          /* Light Blue */
    --accent-orange: #fb923c;        /* Light Orange */
    --success-color: #10b981;        /* Green */
    --warning-color: #f59e0b;        /* Orange */
    --danger-color: #ef4444;         /* Red */
    
    /* Background & Surface */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --surface: #ffffff;
    
    /* Text */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    /* Borders & Shadows */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    
    /* Shine Effect */
    --shine-gradient: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(167, 139, 250, 0.05) 25%, 
        rgba(96, 165, 250, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 75%, 
        rgba(251, 146, 60, 0.05) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(243, 244, 246, 1) 100%);
    overflow: hidden;
}

.shine-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--shine-gradient);
    animation: shine 15s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes shine {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(10%, 10%) rotate(45deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Audit Form */
.audit-form {
    max-width: 700px;
    margin: 0 auto 4rem;
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1.2s ease;
}

.url-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-white);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-container {
    background: var(--bg-white);
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 80px;
    z-index: 90;
}

.progress-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.progress-bar {
    height: 8px;
    background: var(--bg-lighter);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
    width: 0;
}

.progress-step {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Report Section */
.report-section {
    padding: 4rem 0;
    animation: fadeInUp 0.8s ease;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.report-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-actions {
    display: flex;
    gap: 1rem;
}

.btn-download {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-blue) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    padding: 0.875rem 1.75rem;
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Score Card */
.score-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shine-gradient);
    opacity: 0.3;
    pointer-events: none;
}

.score-left {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.score-circle-container {
    width: 250px;
    height: 250px;
}

.score-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.score-right h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.score-right p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.score-breakdown {
    display: flex;
    gap: 2rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-lighter);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.breakdown-item.success {
    border-left: 4px solid var(--success-color);
}

.breakdown-item.warning {
    border-left: 4px solid var(--warning-color);
}

.breakdown-item.danger {
    border-left: 4px solid var(--danger-color);
}

.breakdown-item .count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.breakdown-item.success .count {
    color: var(--success-color);
}

.breakdown-item.warning .count {
    color: var(--warning-color);
}

.breakdown-item.danger .count {
    color: var(--danger-color);
}

.breakdown-item .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Metrics Container */
.metrics-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.metric-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.metric-category:hover {
    box-shadow: var(--shadow-xl);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-icon {
    font-size: 1.75rem;
}

.category-score {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-lighter);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.metrics-grid {
    display: grid;
    gap: 1.5rem;
}

.metric-item {
    padding: 1.5rem;
    background: var(--bg-lighter);
    border-radius: 12px;
    border-left: 4px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.metric-item.status-success {
    border-left-color: var(--success-color);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-lighter) 100%);
}

.metric-item.status-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-lighter) 100%);
}

.metric-item.status-danger {
    border-left-color: var(--danger-color);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-lighter) 100%);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.metric-value {
    font-family: 'Courier New', monospace;
    background: var(--bg-white);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-word;
    border: 1px solid var(--border-color);
}

.metric-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.recommendation {
    margin-top: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-white);
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

/* Action Plan Section */
.action-plan-section {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    margin-top: 3rem;
    border: 1px solid var(--border-light);
}

.action-plan-header {
    text-align: center;
    margin-bottom: 3rem;
}

.action-plan-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.action-plan-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-purple) 100%);
}

.week-card {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.week-card::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.week-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.week-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.week-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.week-content {
    background: var(--bg-lighter);
    padding: 1.5rem;
    border-radius: 12px;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.task-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.task-item:hover {
    padding-left: 2rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-white);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .audit-form {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .score-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .score-breakdown {
        flex-direction: column;
        gap: 1rem;
    }
    
    .report-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .report-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .nav {
        gap: 1rem;
    }
}
