/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Primary */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-700: #4338ca;
    --primary-100: #e0e7ff;
    --primary-50: #eef2ff;

    /* Colors - Semantic */
    --secondary-color: #10b981;
    --secondary-50: #ecfdf5;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;

    /* Colors - Text */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;

    /* Colors - Background & Border */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-subtle: #f3f4f6;
    --border-color: #e5e7eb;
    --border-subtle: #f3f4f6;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Hero Section */
.hero {
    background: #0a0a1a;
    background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3), transparent);
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

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

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.65;
    font-weight: 400;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Box */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 20px 20px 20px 60px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.97);
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.autocomplete-results.show {
    display: block;
}

.autocomplete-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: var(--bg-light);
}

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

.autocomplete-main {
    font-weight: 600;
    color: var(--text-primary);
}

.autocomplete-secondary {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 0 10px;
}

.badge {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scanning Section */
.scanning-section {
    background: var(--bg-light);
    padding: var(--space-16) var(--space-5);
    min-height: 100vh;
}

.scanning-header {
    text-align: center;
    margin-bottom: 50px;
}

.scanning-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.scanning-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Scanning Layout */
.scanning-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 24px;
}

/* Hidden checklist (kept for JS state tracking) */
.scanning-checklist {
    display: none;
}

/* Compact Progress Indicator */
.scanning-progress-compact {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}

.progress-step-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.progress-step-counter {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.progress-step-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-bar-track {
    width: 100%;
    height: 4px;
    background: var(--bg-subtle);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    transform: scale(1.2);
}

.progress-dot.completed {
    background: var(--secondary-color);
}

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

/* Visual Feedback */
.visual-feedback {
    width: 100%;
    max-width: 900px;
    min-height: 450px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: none;
    animation: fadeInScale 0.4s ease-out;
    box-sizing: border-box;
    overflow: hidden;
}

.visual-feedback.active {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

.animation-container {
    text-align: center;
}

.animation-container h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Results Section */
.results-section {
    background: var(--bg-light);
    padding: 60px 20px;
    min-height: 100vh;
}

/* Score Card */
.score-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    color: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-8);
    margin-bottom: var(--space-10);
    box-shadow: 0 20px 40px rgba(30, 27, 75, 0.3);
    box-sizing: border-box;
}

.score-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.score-card-info {
    text-align: left;
}

.score-card-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.score-business-name {
    opacity: 0.7;
    font-size: 0.95rem;
}

.score-circle-container {
    text-align: center;
}

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

.score-ring-progress {
    stroke-dasharray: 427;
    stroke-dashoffset: 427;
    transition: stroke-dashoffset 2s ease, stroke 0.5s ease;
    filter: drop-shadow(0 0 8px currentColor);
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.score-number #total-score {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.score-max {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.score-label {
    margin-top: var(--space-3);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.modules-grid.blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.module-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-100);
}

.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.module-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
}

.module-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.module-score-badge {
    font-size: 1.1rem;
    font-weight: 700;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.score-value-max {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.module-progress {
    height: 4px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.module-progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
    width: 0%;
}

/* Unlock CTA */
.unlock-cta {
    margin: var(--space-8) 0;
}

.unlock-overlay {
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    color: var(--text-primary);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unlock-overlay .lock-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    margin-bottom: var(--space-4);
}

.unlock-overlay .lock-icon svg {
    width: 32px;
    height: 32px;
}

.unlock-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.unlock-overlay p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 480px;
    margin-bottom: var(--space-6);
}

.unlock-overlay .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.unlock-overlay .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-6);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-subtle);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--bg-light);
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-right: 30px;
}

.modal-content>p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.email-error {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    font-size: 1.1rem;
}

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

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner-small {
    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;
}

/* NFC Gift */
.nfc-gift {
    margin-top: 30px;
    padding: var(--space-5) var(--space-4);
    background: var(--bg-light);
    border: 1px solid var(--warning-color);
    border-left: 4px solid var(--warning-color);
    border-radius: var(--radius-lg);
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.gift-badge {
    display: inline-block;
    background: white;
    color: #f59e0b;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 10px;
    max-width: 100%;
    word-wrap: break-word;
}

.nfc-gift p {
    color: var(--text-primary);
    font-size: 0.85rem;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.nfc-gift p strong {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        padding: 0 15px;
        word-wrap: break-word;
    }

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

    .scanning-header h2 {
        font-size: 1.75rem;
        padding: 0 15px;
        word-wrap: break-word;
    }

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

    .visual-feedback {
        padding: 20px 15px;
        min-height: 300px;
    }

    .scanning-progress-compact {
        padding: 0 10px;
    }

    .progress-step-name {
        font-size: 0.9rem;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .module-card {
        padding: var(--space-4);
    }

    .module-card h3 {
        font-size: 0.85rem;
    }

    .score-value {
        font-size: 1rem;
    }

    .score-card-header {
        flex-direction: column;
        text-align: center;
    }

    .score-card-info {
        text-align: center;
        margin-bottom: var(--space-6);
    }

    .modal-content {
        padding: 25px 15px;
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    .trust-badges {
        gap: 10px;
    }

    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .unlock-overlay {
        padding: var(--space-6) var(--space-4);
    }

    .unlock-overlay h3 {
        font-size: 1.1rem;
    }

    .unlock-overlay p {
        font-size: 0.85rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .score-card {
        padding: var(--space-8) var(--space-4);
    }

    .score-card-info h2 {
        font-size: 1.25rem;
    }
}

/* Detailed Results */
.detailed-results {
    margin-top: 40px;
}

.top-issues {
    margin-bottom: 40px;
}

.top-issues h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

.issue-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
    border-left: 3px solid;
    display: flex;
    gap: var(--space-4);
    overflow: hidden;
    box-sizing: border-box;
}

.issue-card.critical {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.issue-card.high {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.issue-card.medium {
    border-color: #f59e0b;
}

.issue-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.issue-content {
    flex: 1;
}

.issue-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.issue-message {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.issue-loss {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: var(--space-3);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Benchmark Card */
.benchmark-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    text-align: center;
    margin-bottom: var(--space-10);
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.benchmark-card h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-5);
}

.benchmark-card p {
    font-size: 1.1rem;
    margin: var(--space-2) 0;
}

.benchmark-card strong {
    font-size: 1.4rem;
    font-weight: 700;
}

.benchmark-card .warning {
    background: rgba(239, 68, 68, 0.9);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-top: var(--space-5);
    font-weight: 600;
}

.benchmark-card .success {
    background: rgba(16, 185, 129, 0.9);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-top: var(--space-5);
    font-weight: 600;
}

/* Strategy CTA */
.strategy-cta {
    background: var(--bg-white);
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.strategy-cta h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.strategy-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    box-sizing: border-box;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Utility Classes */
.blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.hidden {
    display: none !important;
}

/* Add Social Button */
.add-social-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.add-social-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Social Modal Styles */
#social-modal .modal-content {
    max-width: 500px;
}

#social-modal .form-group {
    margin-bottom: 20px;
}

#social-modal label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

#social-modal .social-icon {
    font-size: 1.5rem;
}

#social-modal input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

#social-modal input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#social-modal input[type="url"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Critical No-Website Alert */
.critical-alert {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: var(--radius-xl);
    padding: 0;
    margin: var(--space-8) 0;
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.5s ease-out, pulse-border 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.critical-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
    background-size: 200% 100%;
    animation: gradient-slide 3s linear infinite;
}

.alert-content {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 20px 15px;
    overflow: hidden;
    box-sizing: border-box;
}

.alert-icon {
    font-size: 2.5rem;
    animation: shake 1s ease-in-out infinite;
    flex-shrink: 0;
}

.alert-text h3 {
    color: #991b1b;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.alert-text p {
    color: #7f1d1d;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.alert-loss {
    background: #fef2f2;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    font-weight: 600;
    margin-top: 15px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.alert-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #991b1b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.alert-close:hover {
    background: rgba(153, 27, 27, 0.1);
    transform: scale(1.1);
}

.alert-cta {
    background: white;
    padding: 15px 20px;
    border-top: 2px dashed #ef4444;
    overflow: hidden;
    box-sizing: border-box;
}

.alert-cta p {
    color: #1f2937;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

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

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
    }

    50% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25%,
    75% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

@keyframes gradient-slide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Success Modal */
.success-modal-content {
    max-width: 500px;
    text-align: center;
    padding: var(--space-10) var(--space-8);
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-checkmark {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #10b981;
    animation: fillGreen 0.4s ease-in-out 0.4s forwards;
}

.checkmark.animate .checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #10b981;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark.animate .checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    stroke-width: 3;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-title {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 800;
}

.success-message {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-details {
    background: var(--secondary-50);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.success-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #065f46;
}

.success-item:not(:last-child) {
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

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

#success-modal .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

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

@keyframes fillGreen {
    100% {
        box-shadow: inset 0 0 0 60px #10b981;
    }
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

/* ==================== Competitor Map Section ==================== */
.competitor-map-section {
    margin: var(--space-10) 0;
    padding: 0;
    background: transparent;
    border-radius: var(--radius-xl);
    box-shadow: none;
}

.competitor-map-section h2 {
    margin-bottom: var(--space-2);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.map-description {
    margin-bottom: var(--space-5);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.competitor-map {
    width: 100%;
    height: 100%;
}

/* Radar Overlay */
.radar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.radar-scanner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
}

@keyframes radar-scan {
    0% {
        width: 0;
        height: 0;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
    }

    50% {
        width: 400px;
        height: 400px;
        box-shadow: 0 0 50px 20px rgba(99, 102, 241, 0.3);
    }

    100% {
        width: 800px;
        height: 800px;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .competitor-map-section {
        padding: 0;
    }

    .map-container {
        height: 350px;
    }
}

/* Info Sections - Detailed Results */
.info-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-section h2 {
    margin-bottom: var(--space-5);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

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

.info-item {
    padding: var(--space-4) 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.info-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--space-1);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Competitors List */
.competitors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.competitor-item {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    gap: var(--space-3);
    overflow: hidden;
    box-sizing: border-box;
    transition: background var(--transition-fast);
}

.competitor-item:hover {
    background: var(--primary-50);
}

.competitor-number {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.competitor-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.competitor-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* Website Screenshot */
.website-screenshot {
    margin-bottom: 30px;
    text-align: center;
}

.website-screenshot h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.screenshot-img {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

/* Screenshots Grid for Website Previews */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.screenshot-card {
    overflow: hidden;
}

.screenshot-card h3 {
    padding: 8px 12px;
    margin: 0 0 2px 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.screenshot-iframe {
    width: 100%;
    max-width: 100%;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: block;
    background: white;
    overflow: hidden;
    box-sizing: border-box;
}

.screenshot-iframe.mobile-view {
    height: 600px;
}

.screenshot-placeholder {
    padding: var(--space-16) var(--space-5);
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.performance-card {
    background: var(--bg-light);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
}

.performance-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.metric:last-of-type {
    border-bottom: none;
}

.checks {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.check-item {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.check-pass {
    background: #d1fae5;
    color: #065f46;
}

.check-fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Social Media Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 20px;
}

.social-card {
    background: var(--bg-light);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
}

.social-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.social-status {
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.social-status.active {
    background: #d1fae5;
    color: #065f46;
}

.social-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
}

.comparison-card {
    background: var(--bg-light);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
}

.comparison-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-row .label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-primary);
}

.bar-container {
    flex: 1;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 32px;
    position: relative;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 1s ease;
}

.bar.metric-good {
    background: linear-gradient(90deg, #10b981, #059669);
}

.bar.metric-bad {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.bar.bar-neutral {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.comparison-warning {
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: #fee2e2;
    color: #991b1b;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-success {
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: #d1fae5;
    color: #065f46;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-info {
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--primary-100);
    color: #3730a3;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

/* SEO Analysis Section */
.seo-score-container {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
    padding: var(--space-5);
    background: var(--bg-light);
    border-radius: var(--radius-xl);
}

.seo-score {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding: 0;
    font-weight: bold;
    flex-shrink: 0;
}

.seo-score.good {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.seo-score.medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.seo-score.poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.seo-score .score-value {
    font-size: 1.5rem;
    line-height: 1;
}

.seo-score .score-label {
    font-size: 0.65rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seo-status strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.seo-status p {
    color: #64748b;
    margin: 0;
}

.seo-issues,
.seo-recommendations {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.seo-issues {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.seo-recommendations {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
}

.seo-issues h3,
.seo-recommendations h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #1e293b;
}

.seo-issues ul,
.seo-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.seo-issues li,
.seo-recommendations li {
    margin: 5px 0;
    color: #475569;
}

.seo-details {
    margin-top: var(--space-5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    background: white;
}

.seo-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #3b82f6;
    user-select: none;
}

.seo-details summary:hover {
    color: #2563eb;
}

.seo-checklist {
    margin-top: 15px;
}

.seo-checklist h4 {
    margin: 15px 0 8px 0;
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

    .performance-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .seo-score-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .competitor-meta {
        flex-direction: column;
        gap: 5px;
    }

    .info-section {
        padding: var(--space-5) var(--space-4);
    }

    .info-section h2 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }

    .issue-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

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

    .comparison-card {
        padding: var(--space-4);
    }

    .comparison-row .label {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .bar {
        font-size: 0.8rem;
        padding: 0 var(--space-2);
    }

    .benchmark-card {
        padding: var(--space-8) var(--space-5);
    }

    .benchmark-card h3 {
        font-size: 1.5rem;
    }

    .strategy-cta {
        padding: var(--space-10) var(--space-5);
    }

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

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

    .btn-large {
        padding: var(--space-4) var(--space-8);
        font-size: 1.05rem;
        width: 100%;
        max-width: 100%;
    }

    .top-issues h2 {
        font-size: 1.6rem;
    }

    .success-modal-content {
        padding: 40px 20px;
    }

    .success-title {
        font-size: 1.6rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .success-details {
        padding: 20px 15px;
    }

    .success-item {
        font-size: 0.9rem;
    }

    .checkmark {
        width: 80px;
        height: 80px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .search-input {
        font-size: 1rem;
        padding: 16px 16px 16px 50px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

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

    .module-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .module-card h3 {
        font-size: 0.85rem;
    }

    .score-value {
        font-size: 1rem;
    }

    .score-number #total-score {
        font-size: 2rem;
    }

    .score-max {
        font-size: 0.8rem;
    }

    .unlock-overlay h3 {
        font-size: 1.1rem;
    }

    .unlock-overlay p {
        font-size: 0.8rem;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .issue-content h3 {
        font-size: 1rem;
    }

    .issue-message {
        font-size: 0.9rem;
    }

    .alert-text h3 {
        font-size: 1.1rem;
    }

    .alert-text p {
        font-size: 0.85rem;
    }

    .alert-icon {
        font-size: 2rem;
    }

    .score-card {
        padding: var(--space-6) var(--space-4);
    }

    .scanning-progress-compact {
        padding: 0 var(--space-2);
    }

    .benchmark-card {
        padding: var(--space-6) var(--space-4);
    }

    .benchmark-card h3 {
        font-size: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .benchmark-card p {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .strategy-cta {
        padding: var(--space-8) var(--space-4);
    }

    .strategy-cta h2 {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .strategy-cta p {
        font-size: 0.9rem;
    }

    .info-section {
        padding: var(--space-4) var(--space-3);
    }

    .comparison-row {
        flex-wrap: wrap;
    }

    .comparison-row .label {
        min-width: unset;
        width: 100%;
        font-size: 0.85rem;
    }

    .success-modal-content {
        padding: 30px 15px;
    }

    .success-title {
        font-size: 1.4rem;
    }
}

/* Website Screenshot Preview (Animation) */
.website-screenshot-preview {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.screenshot-device {
    position: relative;
    overflow: hidden;
}

.screenshot-device.desktop {
    max-width: 500px;
    width: 100%;
}

.screenshot-device.mobile {
    max-width: 200px;
    width: 100%;
}

.screenshot-label {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.screenshot-loading {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    animation: screenshot-fade-in 0.8s ease-out;
}

.screenshot-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
}

.scanner-line-horizontal {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(99, 102, 241, 0.8) 50%,
            transparent 100%);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    animation: scanner-sweep 2s ease-in-out infinite;
}

@keyframes scanner-sweep {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes screenshot-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

@media (max-width: 768px) {
    .website-screenshot-preview {
        flex-direction: column;
        align-items: center;
    }

    .screenshot-device.desktop {
        max-width: 100%;
    }

    .screenshot-device.mobile {
        max-width: 150px;
    }
}

/* Mobile Screenshot in Phone Frame (Step 5) */
.mobile-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    animation: screenshot-fade-in 0.8s ease-out;
}

/* Iframe container for website preview */
.iframe-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}

.website-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* OG Image fallback when iframe fails to load */
.og-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
}

/* Show OG image on iframe error (Safari CSP fallback) */
.iframe-container iframe:not([src])+.og-image-fallback,
.iframe-container iframe[src=""]+.og-image-fallback {
    display: block;
}

/* Scroll fade-in animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Accessibility: Focus visible styles */
:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Accessibility: Visually hidden (for screen readers) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}