/* Casovnica Marketing Site - Modern Design */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #171717;
    --bg-card-hover: #1f1f1f;

    --text-primary: #fafafa;
    --text-secondary: #a1a1a1;
    --text-muted: #666666;

    --border-color: #262626;
    --border-light: #333333;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

    --green: #22c55e;
    --orange: #f97316;
    --pink: #ec4899;
    --cyan: #06b6d4;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary, .btn-ghost, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

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

.btn-block {
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

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

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

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

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

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

.nav-mobile-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    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: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 60px auto 0;
    perspective: 1000px;
}

.browser-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 20px 50px -10px rgba(0,0,0,0.5),
        0 0 100px rgba(99, 102, 241, 0.1);
    transform: rotateX(2deg);
    transition: transform 0.5s var(--ease-out);
}

.browser-window:hover {
    transform: rotateX(0deg);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:last-child { background: #28ca42; }

.browser-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.browser-content {
    min-height: 300px;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Showcase Sections */
.showcase {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.showcase:nth-child(even) {
    background: var(--bg-primary);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.showcase-reverse .showcase-content {
    grid-template-columns: 1.5fr 1fr;
}

.showcase-reverse .showcase-text {
    order: 2;
}

.showcase-reverse .showcase-visual {
    order: 1;
}

.showcase-text h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.showcase-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.showcase-visual .browser-window {
    max-width: 100%;
}

@media (max-width: 968px) {
    .showcase-content,
    .showcase-reverse .showcase-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-reverse .showcase-text,
    .showcase-reverse .showcase-visual {
        order: unset;
    }

    .showcase-text h2 {
        font-size: 32px;
    }

    .showcase-text p {
        font-size: 16px;
    }
}

.app-preview {
    display: flex;
    gap: 16px;
    height: 280px;
}

.preview-sidebar {
    width: 48px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-nav-item {
    height: 32px;
    background: var(--border-color);
    border-radius: 6px;
    opacity: 0.5;
}

.preview-nav-item.active {
    background: var(--accent-primary);
    opacity: 1;
}

.preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-header {
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.preview-board {
    flex: 1;
    display: flex;
    gap: 12px;
}

.preview-column {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-column-header {
    height: 20px;
    background: var(--border-color);
    border-radius: 4px;
    width: 60%;
}

.preview-card {
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    animation: float 3s ease-in-out infinite;
}

.preview-card.highlight {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

/* Logos Section */
.logos {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.logos-title {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.logos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.logo-item:hover {
    opacity: 1;
}

/* Features Section */
.features {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s var(--ease-out);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.feature-card.feature-large {
    grid-column: span 2;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.feature-icon.purple { background: rgba(139, 92, 246, 0.1); }
.feature-icon.purple svg { color: var(--accent-secondary); }
.feature-icon.green { background: rgba(34, 197, 94, 0.1); }
.feature-icon.green svg { color: var(--green); }
.feature-icon.orange { background: rgba(249, 115, 22, 0.1); }
.feature-icon.orange svg { color: var(--orange); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.1); }
.feature-icon.pink svg { color: var(--pink); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.1); }
.feature-icon.cyan svg { color: var(--cyan); }

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.feature-visual {
    margin-top: 24px;
}

.kanban-visual {
    display: flex;
    gap: 8px;
    height: 80px;
}

.mini-column {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-card {
    height: 20px;
    background: var(--border-color);
    border-radius: 3px;
}

.mini-card.active {
    background: var(--accent-primary);
}

.timeline-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-bar {
    height: 12px;
    background: var(--accent-gradient);
    border-radius: 6px;
    width: 100%;
}

.timeline-bar.short { width: 60%; }
.timeline-bar.medium { width: 80%; }

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing {
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 32px;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.price-period {
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

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

.pricing-features svg {
    width: 16px;
    height: 16px;
    color: var(--green);
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
}

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

/* CTA Section */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 13px;
    color: var(--text-muted);
}

.cta-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card.feature-large {
        grid-column: span 2;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }

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

    .hero {
        padding: 100px 20px 40px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

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

    .feature-card.feature-large {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .stat-value {
        font-size: 36px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Legal Pages */
.legal-page {
    padding: 120px 20px 80px;
    min-height: 80vh;
}

.legal-page h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    color: var(--text-muted);
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-section ul {
    list-style: disc;
    padding-left: 24px;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-section a {
    color: var(--accent-primary);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.footer-simple {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.footer-simple .container {
    text-align: center;
}

@media (max-width: 768px) {
    .legal-page h1 {
        font-size: 32px;
    }

    .legal-section h2 {
        font-size: 20px;
    }
}
