/* =================================================================
   SEO CHECKER — Sky Blue Theme / Clean & Sober
   Full responsive : Desktop > Laptop > Tablet > Mobile
   ================================================================= */

/* -----------------------------------------------------------------
   RESET & BASE
   ----------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Sky Blue Palette */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-darker: #0369a1;
    --primary-light: #38bdf8;
    --primary-lighter: #7dd3fc;
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;

    /* Status */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #0ea5e9;
    --info-light: #e0f2fe;

    /* Neutrals */
    --white: #ffffff;
    --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;

    /* Layout */
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 8px 10px rgba(0, 0, 0, 0.03);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -----------------------------------------------------------------
   HEADER
   ----------------------------------------------------------------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: var(--gray-800);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo strong {
    color: var(--primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.header-tagline {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-tagline i {
    color: var(--primary-light);
    font-size: 12px;
}

/* -----------------------------------------------------------------
   HERO
   ----------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(160deg, #0c4a6e 0%, var(--primary-dark) 40%, var(--primary) 70%, var(--primary-light) 100%);
    padding: 80px 0 90px;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.88;
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-feature {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-feature i {
    font-size: 14px;
    opacity: 0.9;
}

/* -----------------------------------------------------------------
   SEARCH BAR
   ----------------------------------------------------------------- */
.search-form {
    max-width: 620px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 60px;
    padding: 6px 6px 6px 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow .25s, transform .25s;
}

.search-bar:focus-within {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.search-icon {
    color: var(--gray-400);
    font-size: 17px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    background: transparent;
    min-width: 0;
}

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

.search-bar button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.search-bar button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* -----------------------------------------------------------------
   LOADING
   ----------------------------------------------------------------- */
.loading-section {
    padding: 80px 0;
    text-align: center;
}

.loading-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-md);
    max-width: 540px;
    margin: 0 auto;
}

.loading-spinner {
    margin-bottom: 24px;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 4px solid var(--primary-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.loading-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.loading-card > p {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 15px;
}

.loading-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.loading-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 600;
    transition: color .3s;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all .3s;
}

.loading-step.active .step-icon {
    background: var(--primary-100);
    color: var(--primary);
}

.loading-step.active {
    color: var(--primary);
}

.loading-step.done .step-icon {
    background: var(--success-light);
    color: var(--success);
}

.loading-step.done {
    color: var(--success);
}

.step-separator {
    color: var(--gray-300);
    font-size: 12px;
    margin-top: -20px;
}

/* -----------------------------------------------------------------
   ERROR
   ----------------------------------------------------------------- */
.error-section {
    padding: 80px 0;
    text-align: center;
}

.error-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-md);
    max-width: 480px;
    margin: 0 auto;
}

.error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--error-light);
    color: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.error-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.error-card > p {
    color: var(--gray-600);
    margin-bottom: 28px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-retry {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-retry:hover {
    background: var(--primary-dark);
}

/* -----------------------------------------------------------------
   RESULTS — SCORE HEADER
   ----------------------------------------------------------------- */
.results-section {
    padding: 48px 0 64px;
}

.results-header {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.score-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.score-circle {
    width: 130px;
    height: 130px;
    position: relative;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

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

.score-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease-out, stroke .4s;
}

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

.score-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--gray-900);
}

.score-label {
    font-size: 13px;
    color: var(--gray-400);
    display: block;
    margin-top: 2px;
}

.score-grade {
    font-size: 20px;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: var(--radius-sm);
    color: var(--white);
    letter-spacing: 0.5px;
}

.score-grade.grade-a { background: var(--success); }
.score-grade.grade-b { background: #22c55e; }
.score-grade.grade-c { background: var(--warning); }
.score-grade.grade-d { background: #f97316; }
.score-grade.grade-f { background: var(--error); }

.score-info {
    flex: 1;
    min-width: 0;
}

.score-info h2 {
    font-size: 18px;
    font-weight: 700;
    word-break: break-all;
    margin-bottom: 6px;
    color: var(--gray-900);
}

.score-verdict {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.5;
}

.score-verdict.verdict-good { color: var(--success); }
.score-verdict.verdict-ok { color: var(--warning); }
.score-verdict.verdict-bad { color: var(--error); }

.score-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.score-meta span {
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.score-meta i {
    color: var(--primary-lighter);
    font-size: 13px;
}

/* -----------------------------------------------------------------
   RESULTS — SUMMARY BAR
   ----------------------------------------------------------------- */
.results-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.summary-stat {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-stat i {
    font-size: 20px;
    flex-shrink: 0;
}

.summary-stat strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    display: block;
    line-height: 1.2;
}

.summary-total i { color: var(--primary); }
.summary-passed i { color: var(--success); }
.summary-passed strong { color: var(--success); }
.summary-warnings i { color: var(--warning); }
.summary-warnings strong { color: var(--warning); }
.summary-errors i { color: var(--error); }
.summary-errors strong { color: var(--error); }

/* -----------------------------------------------------------------
   RESULTS — CATEGORY SCORE CARDS
   ----------------------------------------------------------------- */
.category-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.category-score-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all .2s;
    border-left: 4px solid var(--gray-300);
}

.category-score-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--gray-200);
}

.category-score-card.cat-good { border-left-color: var(--success); }
.category-score-card.cat-ok { border-left-color: var(--warning); }
.category-score-card.cat-bad { border-left-color: var(--error); }

.cat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: var(--gray-100);
    color: var(--gray-600);
}

.cat-good .cat-icon { background: var(--success-light); color: var(--success); }
.cat-ok .cat-icon { background: var(--warning-light); color: var(--warning); }
.cat-bad .cat-icon { background: var(--error-light); color: var(--error); }

.cat-info {
    flex: 1;
    min-width: 0;
}

.cat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.cat-bar {
    height: 5px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.cat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
    width: 0;
}

.cat-good .cat-bar-fill { background: var(--success); }
.cat-ok .cat-bar-fill { background: var(--warning); }
.cat-bad .cat-bar-fill { background: var(--error); }

.cat-counts {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
}

.cat-counts span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.cc-ok { color: var(--success); }
.cc-warn { color: var(--warning); }
.cc-err { color: var(--error); }

.cat-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    flex-shrink: 0;
}

/* -----------------------------------------------------------------
   RESULTS — CATEGORY DETAIL ACCORDION
   ----------------------------------------------------------------- */
.category-detail {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
    overflow: hidden;
}

.category-header {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

.category-header:hover {
    background: var(--gray-50);
}

.category-header i.cat-toggle {
    font-size: 13px;
    color: var(--gray-400);
    transition: transform .3s;
    margin-left: 8px;
}

.category-detail.open .cat-toggle {
    transform: rotate(180deg);
}

.cat-h-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--primary-100);
    color: var(--primary);
    flex-shrink: 0;
}

.cat-h-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.cat-h-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-left: auto;
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 20px;
}

.cat-h-score {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.cat-h-score.score-good { background: var(--success-light); color: var(--success); }
.cat-h-score.score-ok { background: var(--warning-light); color: var(--warning); }
.cat-h-score.score-bad { background: var(--error-light); color: var(--error); }

.category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.category-detail.open .category-body {
    max-height: 8000px;
}

.checks-list {
    padding: 0 28px 24px;
}

/* -----------------------------------------------------------------
   RESULTS — CHECK ITEMS
   ----------------------------------------------------------------- */
.check-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.check-item:last-child {
    border-bottom: none;
}

.check-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.check-item.no-expand .check-main {
    cursor: default;
}

.check-status-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
}

.check-status-icon.status-success { background: var(--success-light); color: var(--success); }
.check-status-icon.status-warning { background: var(--warning-light); color: var(--warning); }
.check-status-icon.status-error { background: var(--error-light); color: var(--error); }
.check-status-icon.status-info { background: var(--info-light); color: var(--info); }

.check-content {
    flex: 1;
    min-width: 0;
}

.check-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.check-message {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.check-score-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    white-space: nowrap;
}

.check-score-badge.badge-good { background: var(--success-light); color: var(--success); }
.check-score-badge.badge-partial { background: var(--warning-light); color: var(--warning); }
.check-score-badge.badge-bad { background: var(--error-light); color: var(--error); }

.check-expand-icon {
    font-size: 10px;
    color: var(--gray-400);
    transition: transform .3s;
    flex-shrink: 0;
    margin-top: 6px;
    margin-left: 4px;
}

.check-item.open .check-expand-icon {
    transform: rotate(180deg);
}

.check-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.check-item.open .check-details {
    max-height: 600px;
}

.check-tip {
    margin: 12px 0 0 38px;
    padding: 12px 16px;
    background: var(--warning-light);
    border-left: 3px solid var(--warning);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.6;
}

.check-tip i {
    color: var(--warning);
    margin-right: 6px;
}

.check-detail-value {
    margin: 8px 0 0 38px;
    padding: 10px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--gray-600);
    word-break: break-all;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* -----------------------------------------------------------------
   NEW ANALYSIS BUTTON
   ----------------------------------------------------------------- */
.new-analysis-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 16px;
}

.btn-new-analysis {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 15px 36px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.btn-new-analysis:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.btn-new-analysis i {
    font-size: 14px;
}

/* -----------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------- */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--gray-300);
}

.footer-logo strong {
    color: var(--primary-light);
}

.footer-logo i {
    color: var(--primary-light);
    font-size: 18px;
}

.footer-inner p {
    font-size: 13px;
}

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

.results-section .results-header,
.results-section .results-summary,
.results-section .category-score-card,
.results-section .category-detail,
.results-section .new-analysis-wrapper {
    animation: fadeInUp 0.5s ease-out both;
}

.results-section .results-header { animation-delay: 0s; }
.results-section .results-summary { animation-delay: 0.05s; }
.results-section .category-score-card:nth-child(1) { animation-delay: 0.1s; }
.results-section .category-score-card:nth-child(2) { animation-delay: 0.15s; }
.results-section .category-score-card:nth-child(3) { animation-delay: 0.2s; }
.results-section .category-score-card:nth-child(4) { animation-delay: 0.25s; }
.results-section .category-score-card:nth-child(5) { animation-delay: 0.3s; }
.results-section .category-score-card:nth-child(6) { animation-delay: 0.35s; }
.results-section .category-detail:nth-child(1) { animation-delay: 0.15s; }
.results-section .category-detail:nth-child(2) { animation-delay: 0.25s; }
.results-section .category-detail:nth-child(3) { animation-delay: 0.35s; }
.results-section .category-detail:nth-child(4) { animation-delay: 0.45s; }
.results-section .category-detail:nth-child(5) { animation-delay: 0.55s; }
.results-section .category-detail:nth-child(6) { animation-delay: 0.65s; }
.results-section .new-analysis-wrapper { animation-delay: 0.7s; }

/* =================================================================
   RESPONSIVE — LAPTOP (max 1024px)
   ================================================================= */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero {
        padding: 64px 0 72px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .category-scores {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-header {
        padding: 28px 28px;
        gap: 28px;
    }
}

/* =================================================================
   RESPONSIVE — TABLET (max 768px)
   ================================================================= */
@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }

    .header-tagline {
        display: none;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-features {
        gap: 16px;
    }

    .hero-feature {
        font-size: 12px;
    }

    .search-bar {
        padding: 4px 4px 4px 16px;
    }

    .search-bar input {
        font-size: 14px;
    }

    .search-bar button {
        padding: 11px 20px;
        font-size: 14px;
    }

    .results-section {
        padding: 32px 0 48px;
    }

    .results-header {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }

    .score-meta {
        justify-content: center;
    }

    .score-info h2 {
        font-size: 16px;
    }

    .results-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-scores {
        grid-template-columns: 1fr;
    }

    .category-header {
        padding: 16px 20px;
    }

    .checks-list {
        padding: 0 20px 20px;
    }

    .check-tip,
    .check-detail-value {
        margin-left: 38px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .loading-card {
        padding: 40px 24px;
    }

    .error-card {
        padding: 40px 24px;
    }
}

/* =================================================================
   RESPONSIVE — MOBILE (max 480px)
   ================================================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 17px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero {
        padding: 36px 0 44px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .hero-features {
        flex-direction: column;
        gap: 8px;
    }

    .search-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 8px;
        gap: 6px;
    }

    .search-icon {
        display: none;
    }

    .search-bar input {
        width: 100%;
        padding: 10px 14px;
        font-size: 15px;
        border-radius: var(--radius-sm);
    }

    .search-bar button {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-sm);
        padding: 12px;
    }

    .results-header {
        padding: 24px 16px;
    }

    .score-circle {
        width: 110px;
        height: 110px;
    }

    .score-number {
        font-size: 30px;
    }

    .results-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .summary-stat {
        padding: 14px 14px;
        font-size: 12px;
    }

    .summary-stat i {
        font-size: 16px;
    }

    .summary-stat strong {
        font-size: 18px;
    }

    .category-score-card {
        padding: 16px;
        gap: 12px;
    }

    .cat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .cat-score {
        font-size: 18px;
    }

    .category-header {
        padding: 14px 16px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .cat-h-count {
        display: none;
    }

    .checks-list {
        padding: 0 16px 16px;
    }

    .check-tip,
    .check-detail-value {
        margin-left: 0;
        margin-top: 10px;
    }

    .check-item {
        padding: 12px 0;
    }

    .check-main {
        gap: 10px;
    }

    .check-name {
        font-size: 13px;
    }

    .check-message {
        font-size: 12px;
    }

    .btn-new-analysis {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .loading-steps {
        gap: 10px;
    }

    .step-separator {
        display: none;
    }

    .loading-step span {
        font-size: 11px;
    }
}

/* =================================================================
   RESPONSIVE — VERY SMALL (max 360px)
   ================================================================= */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 21px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }
}
