/* ============================================
   QuietKey AI - Comparison Page Styles
   Extends the main styles.css theme
   ============================================ */

/* Compare Page Layout */
.compare-page {
    padding-top: 80px;
}

/* Compare Hero Section */
.compare-hero {
    padding: 80px 40px 60px;
    text-align: center;
}

.compare-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.compare-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.compare-subtitle em {
    font-style: italic;
    color: var(--text-primary);
}

/* 1v1 Comparison Cards Section */
.one-on-one-section {
    padding: 60px 40px 80px;
}

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

.one-on-one-section h2 {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.one-on-one-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.one-on-one-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.one-on-one-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
}

.one-on-one-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(28, 28, 26, 0.1);
    border-color: var(--accent-primary);
}

.one-on-one-card .vs-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.one-on-one-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-right: 50px;
    color: var(--text-primary);
}

.one-on-one-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}

.one-on-one-card .card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.one-on-one-card:hover .card-link {
    gap: 8px;
}

/* Problem Section */
.problem-section {
    padding: 80px 40px;
    background: var(--bg-secondary);
}

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

.problem-section h2 {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -0.01em;
}

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

.problem-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(28, 28, 26, 0.08);
}

.problem-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problem-icon svg {
    width: 24px;
    height: 24px;
    color: var(--error);
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.problem-issue {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.problem-but {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Solution Section */
.solution-section {
    padding: 100px 40px;
    text-align: center;
}

.solution-container {
    max-width: 800px;
    margin: 0 auto;
}

.solution-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.solution-section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.solution-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.solution-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    transition: background var(--transition-fast);
}

.solution-feature:hover {
    background: var(--bg-card-hover);
}

.solution-check {
    width: 32px;
    height: 32px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solution-check svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.solution-feature span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Comparison Table Section */
.comparison-section {
    padding: 100px 40px;
    background: var(--bg-secondary);
}

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

.comparison-section h2 {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.comparison-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    position: sticky;
    top: 0;
}

.feature-col {
    width: 25%;
    min-width: 200px;
}

.highlight-col {
    background: rgba(45, 45, 42, 0.03);
}

.comparison-table thead .highlight-col {
    background: var(--accent-primary);
    color: #ffffff;
}

.table-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.category-row td {
    background: var(--bg-tertiary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 12px 20px;
}

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

.feature-title {
    font-weight: 600;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Check/Status Indicators */
.check {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.check.yes {
    background: rgba(74, 157, 91, 0.12);
    color: #3A8C4B;
}

.check.yes.exclusive {
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 600;
}

.check.no {
    background: rgba(196, 92, 92, 0.1);
    color: #B54545;
}

.check.partial {
    background: rgba(200, 150, 50, 0.12);
    color: #9A7030;
}

.check.waitlist {
    background: rgba(100, 100, 200, 0.1);
    color: #6060B0;
}

.check.na {
    background: var(--bg-card);
    color: var(--text-tertiary);
}

.check.coming {
    background: rgba(100, 140, 200, 0.12);
    color: #4A6A9A;
    font-style: italic;
}

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

.price.free {
    color: var(--success);
}

/* Table Legend */
.table-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.table-footnote {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 16px;
    font-style: italic;
}

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

/* Exclusive Features Section */
.exclusive-section {
    padding: 100px 40px;
}

.exclusive-container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.section-badge {
    display: inline-flex;
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.exclusive-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 48px;
}

.exclusive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    text-align: left;
}

.exclusive-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.exclusive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.exclusive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(28, 28, 26, 0.1);
}

.exclusive-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.exclusive-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.exclusive-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.exclusive-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.exclusive-tag {
    display: inline-flex;
    background: rgba(74, 157, 91, 0.12);
    color: #3A8C4B;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Use Cases Section */
.use-cases-section {
    padding: 100px 40px;
    background: var(--bg-secondary);
}

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

.use-cases-section h2 {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.use-cases-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.use-case-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(28, 28, 26, 0.08);
}

.use-case-header {
    margin-bottom: 24px;
}

.use-case-label {
    display: inline-block;
    background: var(--bg-card);
    color: var(--text-tertiary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.use-case-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.use-case-demo {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.demo-step {
    margin-bottom: 12px;
}

.demo-step:last-child {
    margin-bottom: 0;
}

.step-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-text.raw {
    color: var(--text-secondary);
    font-style: italic;
}

.step-text.formatted {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--success);
}

.demo-arrow {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.demo-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.use-case-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Why Android Section */
.why-android-section {
    padding: 100px 40px;
}

.why-android-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.android-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3DDC84;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.android-icon {
    width: 22px;
    height: 22px;
}

.why-android-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.why-android-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
}

.why-android-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.why-point {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.why-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(28, 28, 26, 0.06);
}

.why-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0.3;
    flex-shrink: 0;
}

.why-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Compare CTA Section */
.compare-cta {
    padding: 100px 40px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-urgency-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.cta-urgency-badge.pulse-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 45, 42, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(45, 45, 42, 0);
    }
}

.compare-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.compare-cta > .cta-container > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.social-proof {
    margin-bottom: 32px;
}

.waitlist-counter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.counter-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

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

.cta-form {
    margin-bottom: 12px;
}

.cta-subtext {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .feature-desc {
        display: none;
    }
}

@media (max-width: 768px) {
    .compare-hero {
        padding: 60px 24px 40px;
    }

    .one-on-one-section {
        padding: 40px 24px 60px;
    }

    .one-on-one-grid {
        grid-template-columns: 1fr;
    }

    .problem-section,
    .solution-section,
    .comparison-section,
    .exclusive-section,
    .use-cases-section,
    .why-android-section,
    .compare-cta {
        padding: 60px 24px;
    }

    .problem-grid,
    .exclusive-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .why-point {
        flex-direction: column;
        gap: 16px;
    }

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

    .input-wrapper {
        flex-direction: column;
    }

    .input-wrapper input {
        text-align: center;
    }

    .input-wrapper button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .compare-hero h1 {
        font-size: 2rem;
    }

    .compare-subtitle {
        font-size: 1rem;
    }

    .problem-card,
    .exclusive-card,
    .use-case-card {
        padding: 24px;
    }

    .exclusive-icon {
        width: 48px;
        height: 48px;
    }

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

/* ============================================
   Power Bar Comparison Section
   ============================================ */

.power-comparison-section {
    padding: 100px 40px;
    background: var(--bg-primary);
}

.power-comparison-container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.power-comparison-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.power-subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.power-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    text-align: left;
}

.power-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.power-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(28, 28, 26, 0.08);
}

.power-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.power-row {
    display: grid;
    grid-template-columns: 90px 1fr 45px;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.power-row.highlight {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
    margin: 0 -12px;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Winner row - QuietKey standout styling */
.power-row.winner {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, rgba(232, 197, 71, 0.08) 100%);
    margin: 0 -12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    animation: winnerPulse 3s ease-in-out infinite;
}

.power-row.winner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #D4AF37 0%, #E8C547 50%, #C4A052 100%);
    border-radius: 10px 0 0 10px;
}

@keyframes winnerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 0 20px 2px rgba(212, 175, 55, 0.15);
    }
}

.power-row.winner .power-label {
    color: #C4A052;
    font-weight: 700;
}

.power-row.winner .power-score {
    color: #C4A052;
    font-weight: 700;
}

/* Winner power bar - gold gradient with glow */
.power-bar.winner-bar {
    background: linear-gradient(90deg, #C4A052 0%, #E8C547 50%, #D4AF37 100%) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5), 0 0 24px rgba(212, 175, 55, 0.3) !important;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on winner bar */
.power-bar.winner-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.power-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.power-row.highlight .power-label {
    color: var(--text-primary);
    font-weight: 600;
}

.power-meter {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.power-bar {
    height: 100%;
    border-radius: 6px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Animate power bars when visible */
.power-category.visible .power-bar {
    width: var(--power-level, 0%);
}

/* Staggered animation delays for power bars */
.power-category.visible .power-row:nth-child(1) .power-bar { transition-delay: 0.1s; }
.power-category.visible .power-row:nth-child(2) .power-bar { transition-delay: 0.15s; }
.power-category.visible .power-row:nth-child(3) .power-bar { transition-delay: 0.2s; }
.power-category.visible .power-row:nth-child(4) .power-bar { transition-delay: 0.25s; }
.power-category.visible .power-row:nth-child(5) .power-bar { transition-delay: 0.3s; }
.power-category.visible .power-row:nth-child(6) .power-bar { transition-delay: 0.35s; }
.power-category.visible .power-row:nth-child(7) .power-bar { transition-delay: 0.4s; }
.power-category.visible .power-row:nth-child(8) .power-bar { transition-delay: 0.45s; }
.power-category.visible .power-row:nth-child(9) .power-bar { transition-delay: 0.5s; }

/* Power bar levels with distinct colors */
.power-bar.full {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.power-bar.high {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.power-bar.medium {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
}

.power-bar.low {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.power-bar.none {
    background: var(--bg-card);
    width: 4px !important;
    opacity: 0.5;
}

.power-score {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-align: right;
}

.power-row.highlight .power-score {
    color: var(--text-primary);
}

/* Power Legend */
.power-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

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

.power-bar-sample {
    width: 24px;
    height: 10px;
    border-radius: 5px;
}

.power-bar-sample.full {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.power-bar-sample.high {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.power-bar-sample.medium {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.power-bar-sample.low {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.power-bar-sample.none {
    background: var(--bg-tertiary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .power-comparison-section {
        padding: 60px 24px;
    }

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

    .power-row {
        grid-template-columns: 80px 1fr 40px;
        gap: 8px;
    }

    .power-label {
        font-size: 0.8rem;
    }

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

/* ============================================
   Scroll-Triggered Animations
   ============================================ */

/* Base state for scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Fade up animation for cards */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Scale in animation */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children animation */
.stagger-children.visible > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.4s ease forwards;
}

.stagger-children.visible > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { animation-delay: 0.4s; }

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects for comparison cards */
.one-on-one-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.one-on-one-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(28, 28, 26, 0.15);
}

/* Power category hover effects */
.power-category {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.power-category:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(28, 28, 26, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Table row hover effect */
.comparison-table tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(45, 45, 42, 0.03);
}

/* Problem card hover effect */
.problem-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(28, 28, 26, 0.12);
}

/* Badge pulse animation */
.badge {
    animation: badgeFloat 3s ease-in-out infinite;
}

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

/* Gradient text shimmer effect */
.gradient-text {
    background-size: 200% auto;
    animation: gradientShimmer 4s ease-in-out infinite;
}

@keyframes gradientShimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

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

    .animate-on-scroll,
    .animate-fade-up,
    .animate-scale-in {
        opacity: 1;
        transform: none;
    }

    .power-bar {
        transition: none;
        width: var(--power-level, 0%);
    }

    .power-bar.winner-bar::after {
        animation: none;
    }

    .winner-pulse,
    .badge {
        animation: none;
    }
}
