* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #7f85ff;
    --primary-dark: #6b72e6;
    --primary-light: #a3a8ff;
    --secondary: #10b981;
    --accent: #ff6beb;
    --dark: #15161b;
    --darker: #0a0b0d;
    --light: #f2f0f5;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --card-bg: #1a1c23;
    --card-border: #2a2b33;
    --text: #f0f0f0;
    --text-light: #b0b0b0;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.header {
    background: rgba(21, 22, 27, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

/* DESKTOP: Logo vlevo, navigace vpravo */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.logo-domain {
    color: var(--primary);
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(127, 133, 255, 0.1);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(127, 133, 255, 0.2);
}

.cta-nav {
    background: var(--gradient);
    color: white !important;
    padding: 0.75rem 2rem !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(127, 133, 255, 0.3);
    background: var(--gradient);
}

.cta-button {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(127, 133, 255, 0.3);
}

.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0a0b0d 0%, #15161b 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(127, 133, 255, 0.1) 0%, rgba(255, 107, 139, 0.1) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-lead {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Auth Forms */
.auth-form {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--darker);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px transparent; /* keep layout stable when focused */
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(127, 133, 255, 0.12);
}

/* Compact auth tabs (login/register) */
.auth-tabs {
    display: flex;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: transparent;
    color: var(--text);
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
}

/* Make auth card a bit tighter */
.login-container .company-card {
    padding: 1.5rem;
}

/* Password Strength */
.password-strength .strength-fill {
    transition: all 0.3s ease;
}

.strength-very-weak {
    background: #ff4757 !important;
    width: 25% !important;
}

.strength-weak {
    background: #ffa502 !important;
    width: 50% !important;
}

.strength-medium {
    background: #ffd32a !important;
    width: 75% !important;
}

.strength-strong {
    background: #2ed573 !important;
    width: 100% !important;
}

/* Login Container Animation */
.login-container {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Make login section more prominent */
#login {
    padding-top: 60px !important;
}

.domain-warning {
    background: #ff4757;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.25rem 0;
    text-align: center;
    font-weight: 700;
    border: none;
}

/* Remove glint/shimmer effect for clarity */
@keyframes shimmer { from { left: -100%; } to { left: 100%; } }

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.company-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: none; /* disable animations here to avoid lifting */
}

.company-card:hover {
    transform: none;
    border-color: var(--card-border);
}

/* Disable lift & border change for login card specifically */
.login-container .company-card:hover {
    transform: none !important;
    border-color: var(--card-border) !important;
}

.company-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.values-section {
    margin-top: 4rem;
}

.values-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--text);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.value-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-year {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.hosting-mention {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hosting-mention:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.hosting-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hosting-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.hosting-button {
    margin-top: 2rem;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.vision-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.vision-card.future {
    opacity: 0.9;
    border-style: dashed;
}

.vision-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vision-badge.future {
    background: var(--gray);
}

.vision-card ul {
    color: var(--text-light);
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.vision-card li {
    margin-bottom: 0.5rem;
}

.cta-banner {
    background: var(--gradient);
    color: white;
    padding: 5rem 0;
    text-align: center;
    border-radius: 20px;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.cta-primary {
    background: white;
    color: var(--primary);
}

.footer {
    background: var(--darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-column p, .footer-column a {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-domains {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* RESPONSIVE DESIGN */
/* Na mobilech (< 900px): logo na střed, navbar zmizí */
@media (max-width: 900px) {
    .nav {
        display: none !important;
    }
    
    .header-container {
        justify-content: center;
    }
    
    .logo {
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
        text-align: center;
    }
    
    .hero:before {
        width: 100%;
        opacity: 0.2;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-lead {
        font-size: 1.1rem;
        padding: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .cta-button,
    .hero-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 15px;
        text-align: left !important;
    }
    
    .timeline-year {
        position: relative;
        left: -55px;
        margin-left: 0;
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .company-grid, .values-grid, .vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .company-card, .value-card, .vision-card {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cta-banner {
        padding: 3rem 1.5rem;
        margin: 2rem 0;
        border-radius: 15px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .domain-warning {
        padding: 1rem;
        font-size: 0.9rem;
        margin: 1.5rem 0;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-year {
        left: -45px;
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button, .btn-outline {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Dotykové friendly prvky */
.cta-button, .btn-outline, .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Zabránění zoomu v iOS */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}