/* 
  Styles pre postar-cloud.sk
  Základná farba: Oranžová (#FF6B00)
*/

:root {
    --primary: #FF6B00;
    --primary-hover: #E56000;
    --primary-light: #FFF0E5;
    
    --text-main: #0F172A;
    --text-muted: #64748B;
    
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    
    --border-color: #E2E8F0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-orange: 0 10px 25px -5px rgba(255, 107, 0, 0.4);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
}

body {
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--text-muted);
}

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

.highlight {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-orange);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.btn-ghost {
    font-weight: 500;
    color: var(--text-main);
}

.btn-ghost:hover {
    color: var(--primary);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    color: var(--primary);
}

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

.nav-links a:not([class^="btn"]) {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not([class^="btn"]):hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

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

/* Mockups and Images */
.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.mockup {
    width: 320px;
    position: absolute;
    right: -20px;
    bottom: -30px;
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.mockup-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-info strong {
    color: var(--text-main);
}

.doc-info span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.doc-status {
    padding: 4px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.doc-status.pending {
    background: #FFF3CD;
    color: #856404;
}

.doc-status.success {
    background: #D4EDDA;
    color: #155724;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

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

/* Sections General */
.section {
    padding: 100px 0;
}

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

.section-header {
    margin-bottom: 64px;
    max-width: 600px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 16px;
    line-height: 1;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Features Layout */
.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    gap: 16px;
}

.feature-icon {
    font-size: 2rem;
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-mockup {
    padding: 24px;
    height: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-row {
    display: flex;
    gap: 16px;
}

.stat-box {
    flex: 1;
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.chart-mockup {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-light) 0%, rgba(255,255,255,0) 100%);
    border-radius: var(--radius-sm);
    border-bottom: 2px solid var(--primary);
    position: relative;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border-color);
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    margin-right: 12px;
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: white;
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: #94A3B8;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: #94A3B8;
    margin-bottom: 12px;
}

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

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    text-align: center;
    color: #94A3B8;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .feature-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .mockup {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-actions {
        margin: 16px 0 0;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-actions a {
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* 10-Step Workflow Animation */
.workflow-section {
    padding: 100px 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding-left: 50px;
}

.timeline-track {
    position: absolute;
    top: 0;
    left: 24px;
    width: 4px;
    height: 100%;
    background: var(--border-color);
    border-radius: 4px;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    padding-bottom: 60px;
}

.t-step {
    position: relative;
    opacity: 0.3;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.t-step.active {
    opacity: 1;
    transform: translateX(0);
}

.t-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--border-color);
    z-index: 2;
    transition: all 0.3s ease;
}

.t-step.active .t-dot {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.t-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.t-step.active .t-content h3 {
    color: var(--primary);
}

.t-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* 3D Envelope */
.timeline-envelope {
    position: absolute;
    left: -2px; /* Center over the track */
    top: 0;
    width: 56px;
    height: 40px;
    z-index: 10;
    transition: top 0.3s ease-out, transform 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.envelope-3d {
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-orange);
    color: white;
    font-size: 1.5rem;
    transition: transform 0.5s ease;
    transform: rotateX(0deg);
}

.envelope-3d.rotating {
    animation: flipEnvelope 1s ease-in-out forwards;
}

@keyframes flipEnvelope {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.2); }
    100% { transform: rotateY(360deg) scale(1); }
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 40px;
    }
    .t-dot {
        left: -32px;
    }
    .timeline-envelope {
        left: -6px;
        width: 44px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Split Layout for Workflow */
.workflow-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.workflow-split-left {
    /* timeline goes here */
}

.workflow-split-right {
    position: relative;
    height: 100%;
}

.drawn-animation-sticky {
    position: sticky;
    top: 120px; /* Bezpečná pozícia od vrchu */
    width: 100%;
    height: 600px;
}

.drawn-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
}

.drawn-path {
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.drawn-path.cloud {
    stroke: #CBD5E1;
    stroke-width: 2;
}

.drawn-path.building {
    stroke: var(--text-main);
    stroke-width: 2;
}

.drawn-path.wire {
    stroke: var(--border-color);
    stroke-width: 3;
    stroke-dasharray: 10 10;
}

.drawn-node {
    fill: white;
    stroke: var(--primary);
    stroke-width: 3;
}

.drawn-envelope {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(50px, 100px); /* Initial position */
}

@media (max-width: 576px) {
    .workflow-split {
        grid-template-columns: 1fr;
    }
    .drawn-animation-sticky {
        position: relative;
        top: 0;
        height: 400px;
        margin-top: 40px;
    }
}

/* --- Nové štýly pre Tlačidlo a Upozornenie --- */

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-outline.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.waitlist-section {
    padding: 120px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
}

.waitlist-card {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.waitlist-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.waitlist-card .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.waitlist-card .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.waitlist-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-benefits .benefit {
    font-size: 1.05rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.waitlist-form-container {
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.form-title {
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.waitlist-form {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.waitlist-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.waitlist-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.waitlist-privacy {
    font-size: 0.85rem;
    color: var(--text-light);
}

.waitlist-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 40px 30px;
    border-radius: 12px;
    margin-top: 20px;
    animation: fadeIn 0.5s ease-out forwards;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.waitlist-success h3 {
    color: #166534;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.waitlist-success p {
    color: #15803D;
    font-size: 1.05rem;
}

@media (max-width: 576px) {
    .waitlist-form {
        flex-direction: column;
    }
    .waitlist-card {
        padding: 40px 20px;
    }
}

/* --- Kontakt Sekcia --- */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    padding: 40px 30px;
    text-align: center;
    border-top: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.contact-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255,107,0,0.1) 0%, rgba(255,107,0,0.2) 100%);
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-role {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 20px;
    background: #F8FAFC;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: #FFF5F0;
    color: var(--primary);
}
