/* ==========================================================================
   ONYX PROTOCOL - HIGH TECH LIGHT THEME (2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* --- COLOR PALETTE: CLEAN LIGHT --- */
    --bg-base: #f8f9fc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);

    /* --- ACCENTS: VIBRANT SPECTRUM --- */
    --primary: #6366f1;
    /* Indigo */
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --secondary: #8b5cf6;
    /* Purple */
    --secondary-glow: rgba(139, 92, 246, 0.2);
    --success: #10b981;
    /* Emerald */
    --success-light: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    /* Red */
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    /* Amber */
    --warning-light: rgba(245, 158, 11, 0.1);

    /* --- TEXT --- */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-dim: #94a3b8;
    /* Slate 400 */

    /* --- UI ELEMENTS --- */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* --- ANIMATION --- */
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

/* Clean Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 2px 8px var(--primary-glow);
    border-radius: 3px;
    transform: rotate(45deg);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s var(--ease-elastic);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(180px);
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ==========================================================================
   GLASS CARDS (Grid System)
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: color 0.3s;
}

.card:hover h3 {
    color: var(--primary);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-score {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   PAGE: PRICING / COMPARISON SPECIFICS
   ========================================================================== */
.score-circle-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(from 0deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    box-shadow: 0 8px 32px var(--primary-glow);
}

.score-circle-lg::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-surface);
    border-radius: 50%;
    z-index: 1;
}

.score-value {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
    margin-top: 2rem;
}

.comparison-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.comparison-row {
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.comparison-row:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.01);
}

.comparison-row td {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.comparison-row td:first-child {
    border-left: 1px solid var(--border-light);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-weight: 600;
    color: var(--text-main);
}

.comparison-row td:last-child {
    border-right: 1px solid var(--border-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   ADDITIONAL COMPONENTS
   ========================================================================== */

/* Pricing Page Specific */
.pricing-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.price-score-card {
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 32px var(--primary-glow);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: center;
}

.price-score {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.pricing-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pricing-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.pricing-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pricing-box ul {
    list-style: none;
    padding: 0;
}

.pricing-box li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

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

/* Verdict Badges */
.verdict-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.verdict-good,
.verdict-buy {
    background: var(--success-light);
    color: var(--success);
}

.verdict-bad,
.verdict-avoid {
    background: var(--danger-light);
    color: var(--danger);
}

.verdict-watchlist {
    background: var(--warning-light);
    color: var(--warning);
}

/* Alternatives Page */
.alternatives-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.alternative-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-smooth);
}

.alternative-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.alternative-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rank-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-top: 0.5rem;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.alternative-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.alternative-reason {
    color: var(--text-muted);
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

.alternative-highlights {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.highlight-tag {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.highlight-tag.pro {
    background: var(--success-light);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.highlight-tag.con {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Why Switch Section */
.why-switch {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.why-switch h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.why-switch ul {
    list-style: none;
}

.why-switch li {
    padding: 0.75rem 0 0.75rem 1rem;
    color: var(--text-muted);
    border-left: 3px solid var(--primary);
    margin: 0.5rem 0;
    background: linear-gradient(90deg, var(--primary-glow), transparent);
}

/* Methodology Section */
.methodology-section,
.methodology-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.methodology-section h2,
.methodology-container h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.methodology-section li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.disclaimer {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-top: 1rem;
    font-style: italic;
}

/* AdSense Container */
.ad-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-base);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    margin-top: 6rem;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.03), transparent);
}

.site-footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ==========================================================================
   COMPARISON PAGE LAYOUT
   ========================================================================== */

/* Main comparison container */
.comparison-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.comparison-page h1 {
    margin-bottom: 1rem;
}

.comparison-page .intro {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Score Grid - Side by Side Comparison */
.score-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.score-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.score-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 1rem auto;
    box-shadow: 0 8px 30px var(--primary-glow);
}

.vs-divider {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dim);
}

/* Winner Box */
.winner-box,
.recommendation-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.winner-box h2,
.recommendation-box h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.winner-box p,
.recommendation-box p {
    color: var(--text-muted);
}

/* Verdict Badge */
.verdict-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verdict-badge.buy,
.verdict-badge.success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.verdict-badge.watchlist,
.verdict-badge.warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.verdict-badge.avoid,
.verdict-badge.danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Pros and Cons Grid */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros,
.cons {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.pros h4 {
    color: var(--success);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cons h4 {
    color: var(--danger);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pros ul,
.cons ul {
    list-style: none;
}

.pros li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: bold;
}

.cons li::before {
    content: '✗ ';
    color: var(--danger);
    font-weight: bold;
}

.pros li,
.cons li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

.pros li:last-child,
.cons li:last-child {
    border-bottom: none;
}

/* Moat Grid */
.moat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.moat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.moat-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.moat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Methodology Section */
.methodology-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.methodology-section h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.methodology-section ul {
    list-style: none;
}

.methodology-section li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 0.5rem 0;
}

/* Disclaimer */
.disclaimer {
    font-size: 0.875rem;
    color: var(--text-dim);
    opacity: 0.8;
    margin-top: 1.5rem;
    font-style: italic;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

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

    .pricing-analysis-grid {
        grid-template-columns: 1fr;
    }

    .alternative-card {
        grid-template-columns: 1fr;
    }

    .alternative-rank {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
    }

    /* Comparison page responsive */
    .score-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vs-divider {
        display: none;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

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