/* =============================================
   DESIGN TOKENS & CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.04);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b82;

    --accent-primary: #6366f1;
    --accent-primary-light: #818cf8;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);

    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.1);
    --green-border: rgba(16, 185, 129, 0.25);

    --yellow: #f59e0b;
    --yellow-bg: rgba(245, 158, 11, 0.1);
    --yellow-border: rgba(245, 158, 11, 0.25);

    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --red-border: rgba(239, 68, 68, 0.25);

    --orange: #f97316;
    --orange-bg: rgba(249, 115, 22, 0.1);
    --orange-border: rgba(249, 115, 22, 0.25);

    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.1);
    --blue-border: rgba(59, 130, 246, 0.25);

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --container-padding: 0 24px;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-med: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
}

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

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

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

a {
    color: var(--accent-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes scoreCountUp {
    from { stroke-dashoffset: 534; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   FLOATING NAVIGATION
   ============================================= */
.floating-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 900px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
    transform: translateX(-50%) translateY(-10px);
}

.floating-nav.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    z-index: 999;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.12);
    top: -200px;
    left: -100px;
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.08);
    bottom: -200px;
    right: -100px;
    animation: glowPulse 8s ease-in-out infinite 2s;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 10s ease-in-out infinite 4s;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-title-accent {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-meta-item svg {
    color: var(--accent-primary-light);
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Score Ring in Hero */
.hero-score-ring {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.score-ring-container {
    position: relative;
    width: 280px;
    height: 280px;
}

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

.score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.score-ring-fill {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 2s var(--ease-out);
}

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

.score-ring-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-ring-label {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.score-ring-sublabel {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

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

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-tag-green {
    background: var(--green-bg);
    border-color: var(--green-border);
    color: var(--green);
}

.section-tag-red {
    background: var(--red-bg);
    border-color: var(--red-border);
    color: var(--red);
}

.section-tag-blue {
    background: var(--blue-bg);
    border-color: var(--blue-border);
    color: var(--blue);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =============================================
   REPORT STATUS
   ============================================= */
.status-card {
    display: flex;
    gap: 24px;
    padding: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.status-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: var(--radius-md);
    color: var(--green);
}

.status-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.status-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

.status-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    border-left: 3px solid var(--accent-primary);
    padding-left: 16px;
    margin-top: 16px;
}

/* =============================================
   EXECUTIVE SUMMARY
   ============================================= */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.summary-main {
    padding: 0 16px 0 0;
}

.summary-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.summary-main p {
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.summary-verdict {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    background: var(--accent-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
}

.verdict-icon {
    flex-shrink: 0;
    color: var(--accent-primary-light);
    margin-top: 2px;
}

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

.summary-verdict p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.summary-issues {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.issues-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.issues-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.issues-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.issues-list li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.issues-list li svg {
    flex-shrink: 0;
    color: var(--yellow);
}

/* =============================================
   SCORE SECTION
   ============================================= */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.score-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-med);
}

.score-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.score-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.score-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient-subtle);
    color: var(--accent-primary-light);
}

.score-card-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.score-card-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.score-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1.5s var(--ease-out);
}

.score-card[data-color="danger"] .score-bar-fill {
    background: linear-gradient(90deg, var(--red), var(--orange));
}

.score-card[data-color="warning"] .score-bar-fill {
    background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.score-card[data-color="good"] .score-bar-fill {
    background: linear-gradient(90deg, var(--yellow), var(--green));
}

.score-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    min-width: 70px;
    text-align: right;
}

.score-card-value small {
    font-size: 0.75em;
    color: var(--text-muted);
    font-weight: 500;
}

.score-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =============================================
   BUSINESS CONTEXT
   ============================================= */
.context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.context-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition-med);
}

.context-card:hover {
    border-color: var(--border-strong);
}

.context-card-objectives {
    grid-column: 1 / -1;
}

.context-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.context-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.context-icon-services {
    background: var(--blue-bg);
    border: 1px solid var(--blue-border);
    color: var(--blue);
}

.context-icon-location {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green);
}

.context-icon-objectives {
    background: var(--accent-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-primary-light);
}

.context-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.context-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.context-tag {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.context-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
}

.location-tag {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.15);
}

.location-tag:hover {
    background: rgba(16, 185, 129, 0.15);
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.objective-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
}

.objective-number {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 32px;
}

/* =============================================
   STRENGTHS
   ============================================= */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.strength-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.strength-card:hover {
    background: rgba(16, 185, 129, 0.04);
    border-color: var(--green-border);
    transform: translateX(4px);
}

.strength-icon {
    flex-shrink: 0;
    color: var(--green);
}

.strength-card span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================
   SEVERITY LEGEND
   ============================================= */
.severity-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
    padding: 20px 32px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.severity-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.severity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.severity-critical .severity-dot { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.severity-high .severity-dot { background: var(--orange); box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
.severity-medium .severity-dot { background: var(--yellow); box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.severity-low .severity-dot { background: var(--green); box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

.severity-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.severity-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   FINDING CARDS
   ============================================= */
.finding-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all var(--transition-med);
}

.finding-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.finding-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.finding-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 52px;
    line-height: 1;
}

.finding-meta {
    flex: 1;
}

.finding-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.finding-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-critical { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }
.badge-high { background: var(--orange-bg); border: 1px solid var(--orange-border); color: var(--orange); }
.badge-medium { background: var(--yellow-bg); border: 1px solid var(--yellow-border); color: var(--yellow); }
.badge-low { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }

.badge-priority { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-priority-high { background: rgba(249, 115, 22, 0.08); border: 1px solid rgba(249, 115, 22, 0.15); color: #fb923c; }
.badge-priority-med { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-priority-low { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.15); color: #34d399; }

.badge-difficulty-easy { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-difficulty-medium { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-difficulty-hard { background: rgba(168, 85, 247, 0.08); border: 1px solid rgba(168, 85, 247, 0.15); color: #c084fc; }

.finding-body {
    padding: 28px 32px;
}

.finding-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.finding-impact,
.finding-fix,
.finding-concern {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius-md);
}

.finding-impact {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
}

.finding-fix {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
}

.finding-concern {
    background: var(--yellow-bg);
    border: 1px solid var(--yellow-border);
}

.finding-impact h4,
.finding-fix h4,
.finding-concern h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.finding-impact h4 { color: var(--red); }
.finding-fix h4 { color: var(--green); }
.finding-concern h4 { color: var(--yellow); }

.finding-impact ul,
.finding-fix ul,
.finding-concern ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finding-impact li,
.finding-fix li,
.finding-concern li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.finding-impact li::before,
.finding-fix li::before,
.finding-concern li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.finding-impact li::before { color: var(--red); }
.finding-fix li::before { color: var(--green); }
.finding-concern li::before { color: var(--yellow); }

.finding-fix p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* =============================================
   CODE EXAMPLES / SPECIAL VISUALS
   ============================================= */
.code-examples {
    margin-top: 16px;
}

.code-examples h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.code-block code {
    display: block;
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 0.82rem;
    color: var(--accent-primary-light);
}

/* Cannibalisation Visual */
.cannibalisation-visual {
    margin-top: 20px;
}

.cannibalisation-visual h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.overlap-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
}

.overlap-url {
    width: 100%;
    text-align: center;
}

.overlap-url code {
    font-size: 0.78rem;
    word-break: break-all;
}

.overlap-vs {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.overlap-trio {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(249, 115, 22, 0.04);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.overlap-trio .overlap-url {
    text-align: left;
}

/* Competing Pages Visual */
.competing-pages-visual {
    margin-top: 16px;
}

.competing-group {
    padding: 20px;
    background: rgba(249, 115, 22, 0.04);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: var(--radius-md);
}

.competing-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.competing-url {
    padding: 6px 0;
}

.competing-url code {
    font-size: 0.82rem;
}

/* QA Alert */
.qa-alert {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.qa-alert-icon {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 2px;
}

.qa-alert-content {
    flex: 1;
}

.qa-alert-content strong {
    display: block;
    color: var(--red);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.qa-alert-content code {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    word-break: break-all;
}

.qa-alert-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Internal Linking Diagram */
.linking-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.link-node {
    padding: 12px 24px;
    background: var(--accent-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
}

.link-node-center {
    font-size: 1.1rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.link-arrows {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.link-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.link-arrow span {
    color: var(--accent-primary-light);
    font-size: 1.2rem;
}

.link-node-small {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
}

/* Tier Visual */
.tier-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.tier-item {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.tier-primary {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--accent-primary);
}

.tier-secondary {
    background: rgba(59, 130, 246, 0.06);
    border-color: var(--blue);
}

.tier-supporting {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--text-muted);
}

.tier-label {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

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

/* Conversion Gaps Grid */
.conversion-gaps {
    margin: 16px 0;
}

.conversion-gaps h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.gap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gap-item svg {
    flex-shrink: 0;
    color: var(--red);
}

/* Robots.txt Code */
.robots-code {
    margin: 16px 0;
}

.robots-code pre {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.robots-code code {
    display: block;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--green);
    line-height: 1.8;
    white-space: pre;
}

/* =============================================
   ROADMAP
   ============================================= */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(to bottom, var(--red), var(--orange), var(--green));
    border-radius: 2px;
    opacity: 0.3;
}

.roadmap-phase {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-med);
}

.roadmap-phase:hover {
    border-color: var(--border-strong);
    transform: translateX(4px);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.phase-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.phase-immediate .phase-icon { background: var(--red-bg); }
.phase-high .phase-icon { background: var(--orange-bg); }
.phase-medium .phase-icon { background: var(--green-bg); }

.phase-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.phase-timeline {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.phase-items {
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phase-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.phase-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.item-num {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-primary-light);
    background: var(--accent-gradient-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    min-width: 28px;
    text-align: center;
}

/* =============================================
   CTA SECTION
   ============================================= */
.section-cta {
    background: var(--bg-primary);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px;
    background: var(--accent-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    filter: blur(80px);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-branding {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-logo {
    max-width: 180px;
    margin-bottom: 12px;
}

.cta-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-left p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-right a:hover {
    color: var(--text-primary);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-score-ring {
        display: none;
    }

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

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .cta-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .status-card {
        flex-direction: column;
    }

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

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

    .finding-header {
        padding: 20px;
    }

    .finding-body {
        padding: 20px;
    }

    .finding-number {
        font-size: 1.5rem;
        min-width: 40px;
    }

    .finding-title {
        font-size: 1rem;
    }

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

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

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

    .footer-left {
        flex-direction: column;
    }

    .severity-legend {
        border-radius: var(--radius-lg);
        padding: 16px 20px;
    }

    .roadmap-timeline::before {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .finding-badges {
        gap: 4px;
    }

    .badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .cta-card {
        padding: 28px 20px;
    }

    .overlap-pair {
        padding: 12px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    body {
        background: white;
        color: #1a1a1a;
    }

    .floating-nav,
    .back-to-top,
    .mobile-menu,
    .hero-glow,
    .hero-bg-grid {
        display: none !important;
    }

    .section, .section-dark {
        background: white;
    }

    .finding-card,
    .score-card,
    .context-card,
    .strength-card {
        border-color: #ddd;
        break-inside: avoid;
    }

    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}
