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

:root {
    /* Barvy */
    --primary: #FF6B6B;
    --primary-dark: #DC2626;
    --secondary: #1A1A1A;
    --secondary-light: #2D2D2D;
    --accent: #4ECDC4;
    --background: #0A0A0A;
    --surface: #141414;
    --surface-light: #1F1F1F;
    --text: #FFFFFF;
    --text-muted: #A0A0A0;
    --border: #333333;
    
    /* Gradienty */
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #DC2626 100%);
    --gradient-dark: linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%);
    --gradient-surface: linear-gradient(135deg, #1F1F1F 0%, #141414 100%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(255, 107, 107, 0.3);
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

.nav-button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.nav-button:hover {
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat {
    text-align: center;
    padding: var(--space-sm);
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.stat:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

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

.hero-image {
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-15deg);
    animation: float-phone 6s ease-in-out infinite;
}

@keyframes float-phone {
    0%, 100% { transform: perspective(1000px) rotateY(-15deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-15deg) translateY(-20px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #1A1A1A;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features {
    padding: var(--space-2xl) 0;
    background: var(--surface);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

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

.feature-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.feature-title {
    margin-bottom: var(--space-sm);
}

.feature-description {
    margin-bottom: var(--space-md);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: var(--space-xs);
    color: var(--text-muted);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Calculators */
.calculators {
    padding: var(--space-2xl) 0;
    background: var(--background);
}

.calculators-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.calc-category {
    background: var(--surface);
    border-radius: 16px;
    padding: var(--space-lg);
    border: 1px solid var(--border);
}

.category-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.calc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.calc-item {
    padding: var(--space-sm);
    background: var(--surface-light);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.calc-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

/* Pricing */
.pricing {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: var(--space-lg);
    position: relative;
    transition: all var(--transition-base);
}

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

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.pricing-price {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

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

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

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

.pricing-features li.disabled {
    opacity: 0.5;
}

.check-icon, .x-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.check-icon {
    color: var(--accent);
}

.x-icon {
    color: var(--text-muted);
}

/* Testimonials */
.testimonials {
    padding: var(--space-2xl) 0;
    background: var(--background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

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

.testimonial-stars {
    color: #FFD700;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.testimonial-author strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

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

/* FAQ */
.faq {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.faq-question {
    width: 100%;
    padding: var(--space-md);
    background: var(--background);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

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

.faq-arrow {
    font-size: 1.5rem;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: var(--space-md);
    max-height: 500px;
}

/* Download */
.download {
    padding: var(--space-2xl) 0;
    background: var(--background);
    text-align: center;
}

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

.download-description {
    margin-bottom: var(--space-lg);
}

.download-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.store-button {
    transition: all var(--transition-base);
}

.store-button:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.store-button img {
    height: 60px;
}

.download-features {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
}

.download-feature svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

/* Contact */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--surface);
    text-align: center;
}

.contact-info {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    background: var(--background);
    padding: 12px;
    border-radius: 12px;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand .logo-text {
    font-size: 1.5rem;
}

.footer-description {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links h4 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background);
        flex-direction: column;
        padding: var(--space-lg);
        transition: left var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid,
    .calculators-showcase,
    .pricing-cards,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}