
/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #f1f5f9;
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #000000 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass-effect {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(to right, #f97316, #ef4444);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #ea580c, #dc2626);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid #9ca3af;
    color: #d1d5db;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(55, 65, 81, 0.5);
    color: #f3f4f6;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.6); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(to right, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fb923c;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav.active {
    display: flex;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-content {
    max-width: 4xl;
    margin: 0 auto;
}

.speed-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #d1d5db;
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.section-description {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 2rem;
    color: #f97316;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.service-description {
    color: #d1d5db;
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-item i {
    color: #22c55e;
    font-size: 1.5rem;
}

.benefit-item span {
    font-size: 1.125rem;
    color: #f1f5f9;
}

.facts-card {
    padding: 2rem;
}

.facts-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.facts-card ul {
    list-style: none;
    color: #d1d5db;
}

.facts-card li {
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
}

.cta-card {
    text-align: center;
    padding: 3rem;
    max-width: 48rem;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.cta-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 5rem;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-main {
    max-width: 400px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
}

.footer-nav li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fb923c;
}

.footer-contact li {
    color: #9ca3af;
}

/* Měření rychlosti - nové styly */
.measure-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.url-input {
    flex: 1 1 360px;
    min-width: 260px;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    outline: none;
}
.url-input::placeholder {
    color: #9ca3af;
}
.url-input:focus {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.measurements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.measurement-card {
    text-decoration: none;
    color: inherit;
}
.measurement-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.measurement-card .site {
    font-weight: 600;
    font-size: 1.125rem;
    color: #f1f5f9;
}
.score-badge {
    background: linear-gradient(to right, #f97316, #ef4444);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    min-width: 2.5rem;
    text-align: center;
}
.measurement-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}
.measurement-date {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Tabulka posledních měření */
.table-wrap {
    overflow-x: auto;
    border-radius: 0.75rem;
    padding: 0.5rem;
}
.measure-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.measure-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.measure-table tbody td {
    padding: 0.75rem 1rem;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.measure-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}
.domain-link {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
}
.domain-link:hover { color: #fb923c; }
.device { display: inline-flex; align-items: center; gap: .5rem; color: #d1d5db; }
.res-badge {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    color: #fff;
}
.res-good { background: linear-gradient(90deg, #22c55e, #16a34a); }
.res-ok   { background: linear-gradient(90deg, #f59e0b, #f97316); }
.res-bad  { background: linear-gradient(90deg, #ef4444, #dc2626); }
.timeago { color: #9ca3af; font-size: 0.875rem; }

/* Dual metrics (Mobile/Desktop) */
.dual { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.dual-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.dual-item i { color: #9ca3af; }

/* Tabs: Mobile vs Desktop */
.device-compare { padding-top: .5rem; }
.device-header { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; justify-content:flex-start; text-align:left; color:#d1d5db; margin-bottom:.5rem; }
.device-header .device-label { color:#f1f5f9; font-weight:600; display:inline-flex; align-items:center; gap:.35rem; }
.device-header .vs { color:#9ca3af; margin:0 .5rem; }
.device-note { color:#9ca3af; width:100%; margin-top:.25rem; }

.tabs-toggle { display:flex; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15); border-radius: 9999px; padding: .25rem; gap:.25rem; width:100%; margin: .75rem 0 1.5rem; }
.tab { flex:1; background: transparent; color:#d1d5db; border:none; border-radius:9999px; padding:.5rem 1rem; cursor:pointer; transition: all .2s ease; display:flex; align-items:center; justify-content:center; gap:.5rem; }
.tab:hover { background: rgba(255,255,255,0.06); }
.tab.active { background: linear-gradient(to right, #f97316, #ef4444); color:#fff; }

/* Metric cards like in mockup */
.metric-card { position: relative; }
.metric-card-top { display:flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.metric-title { display:flex; flex-direction: column; gap:.125rem; }
.metric-title h4 { font-size: 1rem; color: #f1f5f9; }
.metric-code { color:#9ca3af; font-size:.875rem; }
.metric-badge { font-size:.75rem; font-weight:700; padding:.25rem .5rem; border-radius:9999px; color:#fff; }
.badge-good { background: linear-gradient(90deg, #22c55e, #16a34a); }
.badge-ok { background: linear-gradient(90deg, #f59e0b, #f97316); }
.badge-bad { background: linear-gradient(90deg, #ef4444, #dc2626); }
.metric-value { font-size: 1.75rem; font-weight: 700; color:#f8fafc; margin: .25rem 0 .5rem; }
.metric-hint { color:#9ca3af; font-size:.9rem; }

/* Layout overrides to match mockup */
.device-compare .metrics-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Responsive stacking for metric cards */
@media (max-width: 1024px) {
    .device-compare .metrics-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}
@media (max-width: 640px) {
    .device-compare .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.device-compare .metric-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 1rem; box-shadow: 0 6px 16px rgba(0,0,0,0.25); padding: 1.25rem; }
/* URL breadcrumb */
.url-breadcrumb { color:#9ca3af; margin-bottom:.5rem; }
.url-breadcrumb a { color:#f1f5f9; text-decoration:none; }
.url-breadcrumb a:hover { color:#fb923c; }



.measurement-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: conic-gradient(#22c55e calc(var(--p, 80) * 1%), rgba(255,255,255,0.1) 0);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}
.metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}
.metric-card h4 {
    margin-bottom: 0.25rem;
    color: #f1f5f9;
}
.metric-card p {
    color: #d1d5db;
    font-size: 1.125rem;
    font-weight: 600;
}
.metrics-grid .metric-card { text-align: left; }

@media (max-width: 640px) {
    .measurement-summary { flex-direction: column; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.categories {
            padding: 2rem 0;
        }
        
        .categories-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
        }
        
        .category-btn {
            padding: 0.5rem 1rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: transparent;
            color: #f1f5f9;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .category-btn.active {
            background: linear-gradient(to right, #f97316, #ef4444);
            border-color: transparent;
        }
        
        .category-btn:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .featured-article {
            padding: 2rem 0;
        }
        
        .featured-card {
            margin-bottom: 3rem;
        }
        
        .featured-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        
        .featured-image {
            position: relative;
            height: 300px;
            border-radius: 0.5rem;
            overflow: hidden;
        }
        
        .featured-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .featured-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: linear-gradient(to right, #f97316, #ef4444);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 1rem;
            font-size: 0.875rem;
            font-weight: 500;
        }
        
        .featured-text {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .article-category {
            background: rgba(249, 115, 22, 0.2);
            border: 1px solid rgba(249, 115, 22, 0.5);
            color: #fb923c;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.875rem;
            align-self: flex-start;
        }
        
        .featured-title {
            font-size: 2rem;
            font-weight: bold;
            color: #f1f5f9;
        }
        
        .featured-excerpt {
            color: #d1d5db;
            font-size: 1.125rem;
        }
        
        .article-meta {
            display: flex;
            gap: 1.5rem;
            color: #9ca3af;
            font-size: 0.875rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .articles {
            padding: 2rem 0;
        }
        
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }
        
        .article-card {
            border-radius: 0.75rem;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .article-card:hover {
            border-color: rgba(249, 115, 22, 0.5);
            transform: translateY(-2px);
        }
        
        .article-image {
            position: relative;
            height: 200px;
            overflow: hidden;
        }
        
        .article-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .article-card:hover .article-image img {
            transform: scale(1.05);
        }
        
        .article-category-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: rgba(249, 115, 22, 0.2);
            border: 1px solid rgba(249, 115, 22, 0.5);
            color: #fb923c;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.875rem;
            backdrop-filter: blur(12px);
        }
        
        .article-content {
            padding: 1.5rem;
        }
        
        .article-title {
            color: #f1f5f9;
            font-size: 1.125rem;
            font-weight: bold;
            margin-bottom: 1rem;
            transition: color 0.3s ease;
        }
        
        .article-card:hover .article-title {
            color: #fb923c;
        }
        
        .article-excerpt {
            color: #d1d5db;
            margin-bottom: 1rem;
        }
        
        .meta-items {
            display: flex;
            gap: 1rem;
        }
        
        .article-date {
            color: #9ca3af;
        }
        
        .btn-full {
            width: 100%;
            margin-top: 1rem;
        }
        
        .load-more {
            text-align: center;
            margin-top: 3rem;
        }
        
        .newsletter {
            padding: 4rem 0;
        }
        
        .newsletter-card {
            text-align: center;
            padding: 3rem;
        }
        
        .newsletter-title {
            font-size: 2rem;
            font-weight: bold;
            color: #f1f5f9;
            margin-bottom: 1rem;
        }
        
        .newsletter-description {
            color: #d1d5db;
            font-size: 1.125rem;
            margin-bottom: 2rem;
        }
        
        .newsletter-form {
            display: flex;
            gap: 1rem;
            max-width: 400px;
            margin: 0 auto;
        }
        
        .newsletter-input {
            flex: 1;
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 0.5rem;
            color: #f1f5f9;
        }
        
        .newsletter-input::placeholder {
            color: #9ca3af;
        }
        
        @media (max-width: 768px) {
            .featured-content {
                grid-template-columns: 1fr;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .categories-filter {
                justify-content: flex-start;
            }
        }