/* ===================================
   SEO Pulse Check - Premium Dark Theme
   =================================== */

/* CSS Variables */
:root {
    /* Colors - Premium dark theme with vibrant accents */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    /* Accent colors - calm ocean blue gradient */
    --accent-primary: #0ea5e9;
    --accent-secondary: #38bdf8;
    --accent-tertiary: #7dd3fc;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
    --accent-gradient-hover: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);

    /* Functional colors */
    --success: #22c55e;
    --warning: #fbbf24;
    --error: #ef4444;

    /* Borders & shadows */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.2);

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
    --card-radius: 20px;
    --btn-radius: 12px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utilities */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.6s;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

.btn--secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 20px;
}

.btn--ghost:hover {
    color: var(--text-primary);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo__pulse {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    position: relative;
    animation: glow 2s ease-in-out infinite;
}

.logo__pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.logo__text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo__accent {
    color: var(--accent-primary);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav__link {
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all var(--transition-base);
}

.nav__link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.hero__glow--1 {
    width: 600px;
    height: 600px;
    background: rgba(14, 165, 233, 0.15);
    top: -200px;
    right: -100px;
}

.hero__glow--2 {
    width: 500px;
    height: 500px;
    background: rgba(2, 132, 199, 0.12);
    bottom: -100px;
    left: -100px;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge__dot {
    width: 8px;
    height: 8px;
    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: -2px;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__cta {
    margin-bottom: 60px;
}

.hero__form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.input-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.hero__input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.hero__input::placeholder {
    color: var(--text-muted);
}

.hero__input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.hero__note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__value {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.stat__suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.stat__label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat__divider {
    width: 1px;
    background: var(--border-color);
    align-self: stretch;
}

/* Pulse Animation Container */
.hero__pulse-container {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 0;
    display: none;
}

@media (min-width: 1200px) {
    .hero__pulse-container {
        display: block;
    }
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
}

.pulse-ring--1 {
    animation: pulseRing 10s ease-out infinite;
}

.pulse-ring--2 {
    animation: pulseRing 10s ease-out infinite 6.4s;
}

.pulse-ring--3 {
    animation: pulseRing 10s ease-out infinite 6.4s;
}

.pulse-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.6);
}

/* ===================================
   Brands Section
   =================================== */

.brands {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.brands__title {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.brands__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.brand-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity var(--transition-base);
    letter-spacing: 1px;
}

.brand-logo:hover {
    opacity: 1;
}

/* ===================================
   Section Styles
   =================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 20px;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   Features Section
   =================================== */

.features {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    transition: all var(--transition-base);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-card--large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
    padding: 48px;
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    margin-bottom: 20px;
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card__desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.score-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(0);
}

.score-gauge circle:last-of-type {
    stroke-dasharray: 0 340;
    animation: scoreLoad 2s ease forwards 0.5s;
}

@keyframes scoreLoad {
    to {
        stroke-dasharray: 280 340;
    }
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    text-align: center;
    transition: all var(--transition-base);
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.step__number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.step__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step__desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step__line {
    display: none;
}

/* ===================================
   Pricing Section
   =================================== */

.pricing {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-base);
}

.toggle-label.active {
    color: var(--text-primary);
}

.toggle-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-left: 8px;
}

.toggle-switch {
    width: 56px;
    height: 30px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 3px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-switch:hover {
    border-color: var(--accent-primary);
}

.toggle-slider {
    display: block;
    width: 22px;
    height: 22px;
    background: var(--accent-gradient);
    border-radius: 50%;
    transition: transform var(--transition-base);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.pricing-card--popular {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        var(--accent-gradient) border-box;
    border: 2px solid transparent;
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card--popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-card__header {
    margin-bottom: 24px;
}

.pricing-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.price__currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.price__amount {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.price__period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card__billing {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.yearly-text {
    display: none;
}

body.yearly .monthly-text {
    display: none;
}

body.yearly .yearly-text {
    display: block;
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

.pricing-card__features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.pricing-card__features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-card__features li.disabled svg {
    color: var(--text-muted);
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.testimonial-card__stars {
    color: var(--warning);
    font-size: 1.25rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card__quote {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author__avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--bg-primary);
}

.author__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author__info strong {
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* ===================================
   CTA Section
   =================================== */

.cta {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.cta__input {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.cta__input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.cta__pulse {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    opacity: 0.3;
}

.cta__pulse .pulse-ring,
.cta__pulse .pulse-core {
    position: absolute;
}

.cta__pulse .pulse-ring {
    inset: 0;
}

.cta__pulse .pulse-core {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===================================
   Footer
   =================================== */

.footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer__brand {
    max-width: 280px;
}

.footer__brand .nav__logo {
    margin-bottom: 16px;
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer__links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.footer__links a:hover {
    color: var(--accent-primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__bottom a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition-base);
}

.footer__bottom a:hover {
    opacity: 0.8;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.footer__social a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   Responsive Design
   =================================== */

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

    .feature-card--large {
        grid-column: span 2;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-card__visual {
        order: -1;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-card--popular {
        transform: none;
    }

    .pricing-card--popular:hover {
        transform: translateY(-4px);
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

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

    .footer__brand {
        grid-column: span 2;
        max-width: none;
    }
}

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

    .nav__menu,
    .nav__buttons {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    /* Mobile menu (can be expanded with JS) */
    .nav__menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav__buttons.active {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 24px 24px;
        background: var(--bg-secondary);
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__form {
        flex-direction: column;
    }

    .input-wrapper {
        min-width: auto;
    }

    .hero__stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat__divider {
        width: 60px;
        height: 1px;
    }

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

    .feature-card--large {
        grid-column: span 1;
    }

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

    .step {
        width: 100%;
        max-width: none;
    }

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

    .footer__brand {
        grid-column: span 1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    .cta__input {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pricing-card,
    .feature-card,
    .testimonial-card,
    .step {
        padding: 24px;
    }

    .hero__badge {
        font-size: 0.75rem;
    }
}

/* Scroll animations - elements that animate on scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===================================
   SEO Results Modal
   =================================== */

.seo-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.seo-modal.active {
    opacity: 1;
    visibility: visible;
}

.seo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.seo-modal__content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 40px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.seo-modal.active .seo-modal__content {
    transform: translateY(0) scale(1);
}

.seo-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.seo-modal__close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.seo-modal__header {
    text-align: center;
    margin-bottom: 30px;
}

.seo-modal__header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.seo-modal__url {
    font-size: 1.125rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

.seo-modal__timestamp {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.seo-modal__overall {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.device-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.device-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 100px;
}

.device-score__icon {
    opacity: 0.8;
}

.device-score__icon svg {
    color: currentColor;
}

.device-score__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.device-score__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    color: var(--text-secondary);
}

.device-score__value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.overall-score {
    position: relative;
    width: 180px;
    height: 180px;
}

.score-ring {
    width: 100%;
    height: 100%;
}

.score-ring__progress {
    transition: stroke-dasharray 1s ease;
}

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

.overall-score__number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.overall-score__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Score color classes */
.score-good {
    color: #22c55e;
}

.score-warning {
    color: #f59e0b;
}

.score-critical {
    color: #ef4444;
}

.seo-modal__categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.category-card__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 12px;
}

.category-card__icon svg {
    width: 20px;
    height: 20px;
}

.category-card.score-good .category-card__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.category-card.score-warning .category-card__icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.category-card.score-critical .category-card__icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.category-card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-card__name {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.category-card__score {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.category-card.score-good .category-card__score {
    color: #22c55e;
}

.category-card.score-warning .category-card__score {
    color: #f59e0b;
}

.category-card.score-critical .category-card__score {
    color: #ef4444;
}

.category-card__bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.category-card__progress {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.category-card.score-good .category-card__progress {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.category-card.score-warning .category-card__progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.category-card.score-critical .category-card__progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.seo-modal__metrics {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

.seo-modal__metrics h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric-item {
    text-align: center;
}

.metric-item__label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-item__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.seo-modal__issues {
    margin-bottom: 30px;
}

.issues-section {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.issues-section--critical {
    border-color: #ef4444;
}

.issues-section--warning {
    border-color: #f59e0b;
}

.issues-section--passed {
    border-color: #22c55e;
}

.issues-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.issues-section--critical h3 {
    color: #ef4444;
}

.issues-section--warning h3 {
    color: #f59e0b;
}

.issues-section--passed h3 {
    color: #22c55e;
}

.issues-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.issues-section--critical .issues-icon {
    background: rgba(239, 68, 68, 0.2);
}

.issues-section--warning .issues-icon {
    background: rgba(245, 158, 11, 0.2);
}

.issues-section--passed .issues-icon {
    background: rgba(34, 197, 94, 0.2);
}

.issues-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.issues-section li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.issues-section li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.seo-modal__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-bottom: 20px;
}

.seo-modal__actions .btn {
    min-width: 180px;
}

@media (max-width: 768px) {
    .seo-modal__content {
        padding: 24px;
    }

    .device-scores {
        flex-direction: column;
        gap: 16px;
    }

    .device-scores .overall-score {
        order: -1;
    }

    .device-score {
        flex-direction: row;
        width: 100%;
        max-width: 200px;
    }

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

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

    .seo-modal__actions {
        flex-direction: column;
    }

    .seo-modal__actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .seo-modal__categories {
        grid-template-columns: 1fr;
    }

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

/* ===================================
   Print Styles for PDF Report
   =================================== */

/* Hide print branding by default */
.print-header,
.print-footer {
    display: none;
}

@media print {

    /* Page setup */
    @page {
        margin: 0.75in 0.5in;
        size: letter;
    }

    /* Reset backgrounds for print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        color: #1a1a1a !important;
        font-size: 11pt;
    }

    /* Hide everything except the modal */
    body>*:not(.seo-modal) {
        display: none !important;
    }

    /* Show and style print branding */
    .print-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        border-bottom: 2px solid #0ea5e9;
        margin-bottom: 24px;
    }

    .print-header__logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .print-header__pulse {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
        border-radius: 50%;
    }

    .print-header__text {
        font-size: 18pt;
        font-weight: 700;
        color: #1a1a1a;
    }

    .print-header__accent {
        color: #0ea5e9;
    }

    .print-header__date {
        font-size: 10pt;
        color: #666;
    }

    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 0;
        border-top: 1px solid #ddd;
        text-align: center;
        font-size: 9pt;
        color: #666;
        background: white;
    }

    .print-footer a {
        color: #0ea5e9;
        text-decoration: none;
    }

    /* Modal styling for print */
    .seo-modal {
        position: static !important;
        display: block !important;
    }

    .seo-modal__backdrop {
        display: none !important;
    }

    .seo-modal__content {
        position: static !important;
        max-height: none !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .seo-modal__close {
        display: none !important;
    }

    .seo-modal__header h2 {
        color: #1a1a1a !important;
        font-size: 20pt;
        margin-bottom: 4px;
    }

    .seo-modal__url {
        color: #0ea5e9 !important;
        font-size: 12pt;
    }

    .seo-modal__timestamp {
        color: #666 !important;
        font-size: 10pt;
    }

    /* Overall score styling */
    .seo-modal__overall {
        margin: 20px 0;
        page-break-inside: avoid;
    }

    .overall-score {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
    }

    .overall-score.score-good {
        border-color: #22c55e !important;
    }

    .overall-score.score-warning {
        border-color: #fbbf24 !important;
    }

    .overall-score.score-critical {
        border-color: #ef4444 !important;
    }

    .overall-score__number {
        color: #1a1a1a !important;
        font-size: 36pt;
    }

    .overall-score__label {
        color: #666 !important;
    }

    /* Category cards for print */
    .seo-modal__categories {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .category-card {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        padding: 12px !important;
    }

    .category-card__name {
        color: #1a1a1a !important;
        font-size: 10pt;
    }

    .category-card__score {
        color: #1a1a1a !important;
        font-weight: 700;
    }

    .category-card__bar {
        background: #e2e8f0 !important;
    }

    .category-card.score-good .category-card__progress {
        background: #22c55e !important;
    }

    .category-card.score-warning .category-card__progress {
        background: #fbbf24 !important;
    }

    .category-card.score-critical .category-card__progress {
        background: #ef4444 !important;
    }

    /* Metrics section */
    .seo-modal__metrics {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .seo-modal__metrics h3 {
        color: #1a1a1a !important;
        font-size: 12pt;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .metric-item__label {
        color: #666 !important;
        font-size: 9pt;
    }

    .metric-item__value {
        color: #1a1a1a !important;
        font-size: 11pt;
    }

    /* Issues section */
    .seo-modal__issues {
        page-break-before: auto;
    }

    .issues-section {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 12px;
        padding: 12px !important;
        page-break-inside: avoid;
    }

    .issues-section h3 {
        color: #1a1a1a !important;
        font-size: 11pt;
        margin-bottom: 8px;
    }

    .issues-section--critical {
        border-left: 3px solid #ef4444 !important;
    }

    .issues-section--warning {
        border-left: 3px solid #fbbf24 !important;
    }

    .issues-section--passed {
        border-left: 3px solid #22c55e !important;
    }

    .issues-section ul {
        color: #333 !important;
        font-size: 10pt;
    }

    .issues-section li {
        margin-bottom: 4px;
        padding-left: 0;
    }

    .issues-section li::before {
        display: none;
    }

    /* Hide action buttons in print */
    .seo-modal__actions {
        display: none !important;
    }

    /* Score ring SVG for print */
    .score-ring {
        color: #e2e8f0;
    }

    .score-good .score-ring__progress {
        stroke: #22c55e !important;
    }

    .score-warning .score-ring__progress {
        stroke: #fbbf24 !important;
    }

    .score-critical .score-ring__progress {
        stroke: #ef4444 !important;
    }
}

/* ===================================
   Progress Overlay
   =================================== */

.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.progress-overlay.active {
    opacity: 1;
    visibility: visible;
}

.progress-overlay__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(8px);
}

.progress-overlay__content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-overlay.active .progress-overlay__content {
    transform: scale(1) translateY(0);
}

.progress-overlay__header {
    text-align: center;
    margin-bottom: 32px;
}

.progress-overlay__pulse {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--accent-gradient);
    border-radius: 50%;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

.progress-overlay__pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border-radius: 50%;
}

.progress-overlay__pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-inner 1s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
    }
}

@keyframes pulse-inner {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.progress-overlay__header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.progress-overlay__url {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.progress-overlay__timer {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.progress-overlay__bar-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.progress-overlay__bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-overlay__bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease-out;
    position: relative;
}

.progress-overlay__bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-overlay__percentage {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 48px;
    text-align: right;
}

.progress-overlay__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.progress-step.active {
    border-color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
}

.progress-step.completed {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.progress-step__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-step.active .progress-step__icon {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    animation: icon-pulse 1s ease-in-out infinite;
}

.progress-step.completed .progress-step__icon {
    background: var(--success);
    color: white;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.progress-step__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-step__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.progress-step__status {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.progress-step.active .progress-step__status {
    color: var(--accent-primary);
}

.progress-step.completed .progress-step__status {
    color: var(--success);
}

.progress-overlay__note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    line-height: 1.4;
}

.progress-overlay__note svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

/* ===================================
   Desktop Loading State in Results Modal
   =================================== */

/* ===================================
   Tabbed Results Modal (PageSpeed Style)
   =================================== */

/* Device Tabs */
.device-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.device-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.device-tab--active {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.device-tab svg {
    opacity: 0.7;
}

.device-tab--active svg {
    opacity: 1;
}

/* Main Score Display */
.seo-modal__score-display {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.main-score {
    position: relative;
    width: 200px;
    height: 200px;
}

.main-score--skeleton {
    opacity: 0.5;
}

.score-ring--large {
    width: 100%;
    height: 100%;
}

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

.main-score__number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.main-score__label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 8px;
}

.main-score.score-good .main-score__number { color: var(--success); }
.main-score.score-warning .main-score__number { color: var(--warning); }
.main-score.score-critical .main-score__number { color: var(--error); }

.main-score.score-good .score-ring__progress { stroke: var(--success); }
.main-score.score-warning .score-ring__progress { stroke: var(--warning); }
.main-score.score-critical .score-ring__progress { stroke: var(--error); }

/* Core Web Vitals Section (like PageSpeed Insights) */
.core-vitals {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.core-vitals__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.core-vitals__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.core-vitals__status {
    font-size: 0.9rem;
    font-weight: 600;
}

.vitals-loading {
    color: var(--text-muted);
}

.vitals-passed {
    color: var(--success);
}

.vitals-warning {
    color: var(--warning);
}

.vitals-failed {
    color: var(--error);
}

.core-vitals__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.vital-metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vital-metric__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vital-metric__name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.vital-metric__value {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.vital-metric__value--good {
    color: var(--success);
}

.vital-metric__value--needs-improvement {
    color: var(--warning);
}

.vital-metric__value--poor {
    color: var(--error);
}

.vital-metric__bar {
    position: relative;
    height: 8px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.vital-metric__range {
    flex: 1;
}

.vital-metric__range--good {
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.vital-metric__range--needs-improvement {
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
}

.vital-metric__range--poor {
    background: linear-gradient(90deg, #ef4444, #fca5a5);
}

.vital-metric__marker {
    position: absolute;
    top: -4px;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.vital-metric__marker--visible {
    opacity: 1;
}

.vital-metric--good .vital-metric__marker {
    border-color: var(--success);
}

.vital-metric--needs-improvement .vital-metric__marker {
    border-color: var(--warning);
}

.vital-metric--poor .vital-metric__marker {
    border-color: var(--error);
}

.vital-metric__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.vital-metric__labels span:first-child {
    color: var(--success);
}

.vital-metric__labels span:nth-child(2) {
    color: var(--warning);
}

.vital-metric__labels span:nth-child(3) {
    color: var(--error);
}

/* Progress bar */
.seo-modal__progress {
    margin: 16px 0 24px;
}

.seo-modal__progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.seo-modal__progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease-out;
    position: relative;
}

.seo-modal__progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

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

/* Skeleton states */
.device-score--skeleton {
    opacity: 0.5;
}

.overall-score--skeleton {
    opacity: 0.5;
}

.skeleton-text {
    color: var(--text-muted);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Pop-in animations */
.device-score--pop {
    animation: pop-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card--pop {
    animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section--pop {
    animation: fade-in 0.4s ease-out;
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Category progress bar animation */
.category-card__progress {
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop button states */
.device-score--clickable {
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.device-score--clickable:not(:disabled):hover {
    border-color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.device-score--clickable:disabled {
    cursor: default;
}

.device-score--disabled {
    opacity: 0.5;
}

.desktop-cta {
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.device-score--loading {
    border-color: var(--accent-primary) !important;
    position: relative;
    overflow: hidden;
}

.device-score--loading .device-score__value {
    color: var(--accent-primary);
}

.device-score__loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.device-score__loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    height: 100%;
    width: 50%;
    background: var(--accent-gradient);
    animation: loading-slide 1s ease-in-out infinite;
}

@keyframes loading-slide {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

.loading-dots {
    display: inline-block;
    animation: loading-pulse 1s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.device-score--updated {
    animation: score-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes score-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}