* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --secondary: #EC4899;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FC;
    --text-dark: #111827;
    --text-body: #374151;
    --text-gray: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --stars: #F59E0B;
    --success: #059669;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(124,58,237,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0;
    height: 64px;
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}

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

.logo-container {
    flex-shrink: 0;
}

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

.logo-play {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-triangle {
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
}

.logo-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--text-dark);
}

.btn-header {
    background: var(--text-dark);
    color: white;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
    white-space: nowrap;
}

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

/* ==================== HERO ==================== */
.hero {
    margin-top: 64px;
    padding: 72px 0 64px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 680px;
}

.portal-animation {
    display: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    color: var(--text-gray);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 560px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-icon::before {
    content: '';
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
}

.trust-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
}

.icon-check-circle {
    background: #D1FAE5;
}

.icon-check-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid var(--success);
    border-width: 0 2px 2px 0;
}

.icon-shield-badge {
    background: #EDE9FE;
}

.icon-shield-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 11px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.icon-star-badge {
    background: #FEF3C7;
}

.icon-star-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--stars);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    text-align: left;
    margin-bottom: 8px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: left;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 560px;
}

/* ==================== PLATFORM CARDS ==================== */
.platform-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.platform-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.platform-featured {
    border: 2px solid var(--primary);
}

.platform-featured:hover {
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.platform-rank {
    padding-top: 4px;
}

.rank-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.platform-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.platform-header-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.platform-logo-wrap {
    flex-shrink: 0;
}

.platform-thumb {
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

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

.platform-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-recommended {
    background: var(--primary);
    color: white;
}

.badge-tag {
    background: var(--bg-light);
    color: var(--text-gray);
    border: 1px solid var(--border);
}

.platform-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.platform-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.65;
}

/* Rating Bars */
.platform-ratings {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.rating-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-track {
    height: 6px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.rating-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Platform Footer */
.platform-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.platform-highlight {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    flex: 1;
}

.btn-platform {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 11px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-platform:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

/* SERP Images */
.platform-image-serp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== CRITERIA GRID ==================== */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.criteria-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.criteria-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.criteria-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border);
}

.icon-stability::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2.5px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
}

.icon-quality-criteria::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 12px;
    border: 2.5px solid var(--primary);
    border-radius: 2px;
}

.icon-channels-criteria::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 14px;
    background: var(--primary);
    box-shadow: -7px 0 0 var(--primary), 7px 0 0 var(--primary);
}

.icon-support-criteria::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 11px;
    background: var(--primary);
    border-radius: 7px 7px 0 0;
    box-shadow: 0 6px 0 -3px var(--primary);
}

.icon-device-criteria::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 11px;
    height: 16px;
    border: 2.5px solid var(--primary);
    border-radius: 3px;
}

.icon-activation-criteria::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid var(--primary);
    border-width: 0 2.5px 2.5px 0;
}

.criteria-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.criteria-card p {
    color: var(--text-gray);
    line-height: 1.65;
    font-size: 14px;
}

/* ==================== COMPARISON TABLE ==================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: white;
}

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

.comparison-table thead {
    background: var(--bg-light);
}

.comparison-table th {
    color: var(--text-gray);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border);
}

.comparison-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr {
    transition: background 0.15s;
}

.comparison-table tbody tr:hover {
    background: var(--bg-light);
}

.table-highlight {
    background: rgba(124, 58, 237, 0.03);
}

.btn-table {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: background 0.2s;
}

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

/* ==================== DEVICES GRID ==================== */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.device-card {
    background: white;
    padding: 28px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.device-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.device-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    margin: 0 auto 14px;
    position: relative;
    border: 1px solid var(--border);
}

.device-icon.icon-tv::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    width: 20px;
    height: 14px;
    border: 2.5px solid var(--primary);
    border-radius: 2px;
    box-shadow: 0 5px 0 -3px var(--primary);
}

.device-icon.icon-mobile::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 18px;
    border: 2.5px solid var(--primary);
    border-radius: 3px;
}

.device-icon.icon-tablet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 13px;
    border: 2.5px solid var(--primary);
    border-radius: 2px;
}

.device-icon.icon-computer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    width: 18px;
    height: 13px;
    border: 2.5px solid var(--primary);
    border-radius: 2px;
    box-shadow: 0 5px 0 -3px var(--primary), -6px 5px 0 -3px var(--primary), 6px 5px 0 -3px var(--primary);
}

.device-icon.icon-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2.5px solid var(--primary);
    border-radius: 3px;
}

.device-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.device-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ==================== REVIEWS ==================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.review-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: var(--stars);
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.review-text {
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 14px;
    font-size: 14px;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==================== FAQ ==================== */
.faq-container {
    max-width: 760px;
}

.faq-category {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.faq-category:first-child {
    margin-top: 0;
}

.faq-item {
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.15s;
    font-family: inherit;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.faq-icon {
    font-size: 22px;
    color: var(--text-muted);
    font-weight: 300;
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 18px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

/* ==================== CTA SECTION ==================== */
.section-cta {
    background: var(--text-dark);
    color: white;
}

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

.cta-final h2 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.cta-final p {
    font-size: 15px;
    margin-bottom: 0;
    opacity: 0.65;
    line-height: 1.6;
    max-width: 420px;
}

.btn-large {
    font-size: 15px;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}

.btn-large:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-logo .logo-text {
    font-size: 14px;
}

.footer-logo .logo-play {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.footer-logo .play-triangle {
    border-left-width: 8px;
    border-top-width: 5px;
    border-bottom-width: 5px;
}

.footer-section h3 {
    font-size: 13px;
    margin-bottom: 14px;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.65;
    font-size: 13px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-disclaimer {
    margin-top: 14px;
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .platform-ratings {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 12px 0;
    }

    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
        padding-top: 10px;
        border-top: 1px solid var(--border-light);
        margin-top: 8px;
    }

    .nav a {
        font-size: 13px;
    }

    .hero {
        margin-top: 100px;
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .platform-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .platform-rank {
        display: none;
    }

    .platform-header-row {
        gap: 14px;
    }

    .platform-thumb {
        width: 56px !important;
        height: 56px !important;
    }

    .platform-name {
        font-size: 18px;
    }

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

    .platform-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-platform {
        width: 100%;
        text-align: center;
    }

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

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

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

    .cta-final {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .cta-final p {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 13px;
    }

    .btn-header {
        padding: 7px 14px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .platform-ratings {
        grid-template-columns: 1fr;
    }

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