/* Об'єднаний CSS з flux-id.css */
:root {
    --bg-main: #0b0c10;
    --bg-card: #13141C;
    --text-main: #ffffff;
    --text-muted: #8a8d93;
    --flux-purple: #6a00ff;
    --flux-purple-hover: #832bff;
    --border-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Навігація */
.id-navbar {
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    background: var(--flux-purple);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(106, 0, 255, 0.5);
}

.highlight {
    color: var(--flux-purple);
}

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

.btn-login {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-login:hover {
    color: white;
}

.btn-signup {
    background: var(--flux-purple);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(106, 0, 255, 0.4);
}

.btn-signup:hover {
    background: var(--flux-purple-hover);
    transform: translateY(-2px);
}

/* Головний екран */
.hero-section {
    padding: 80px 20px 72px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(106, 0, 255, 0.1) 0%, var(--bg-main) 70%);
}

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

.badge {
    background: rgba(106, 0, 255, 0.15);
    color: #b580ff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(106, 0, 255, 0.3);
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--flux-purple);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(106, 0, 255, 0.5);
}

.btn-primary:hover {
    background: var(--flux-purple-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--bg-card);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

/* Сервіси */
.services-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

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

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--flux-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 0, 255, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--flux-purple);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.service-link {
    color: var(--flux-purple);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.service-link:hover {
    gap: 15px;
}

.badge-mini {
    background: #FFD700;
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
}

.coming-soon {
    opacity: 0.6;
}

.disabled {
    color: var(--text-muted);
    cursor: default;
}

/* CTA: OAuth / екосистема для розробників */
.ecosystem-cta-section {
    padding: 0 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.ecosystem-cta-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 44px 40px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.ecosystem-cta-inner:hover {
    border-color: var(--flux-purple);
    box-shadow: 0 10px 40px rgba(106, 0, 255, 0.15);
}

.ecosystem-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b580ff;
    background: rgba(106, 0, 255, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(106, 0, 255, 0.3);
    margin-bottom: 18px;
}

.ecosystem-cta-inner h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 14px;
}

.ecosystem-cta-inner h2 .highlight {
    color: var(--flux-purple-hover);
}

.ecosystem-cta-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 620px;
}

.ecosystem-cta-points {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgba(243, 244, 246, 0.9);
    font-size: 0.95rem;
}

.ecosystem-cta-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: transform 0.2s ease, color 0.2s;
}

.ecosystem-cta-points li:hover {
    transform: translateX(5px);
    color: #fff;
}

.ecosystem-cta-points i {
    color: var(--flux-purple);
    margin-top: 3px;
    flex-shrink: 0;
}

.ecosystem-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn-ecosystem-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--flux-purple);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(106, 0, 255, 0.4);
}

.btn-ecosystem-primary:hover {
    background: var(--flux-purple-hover);
    transform: translateY(-3px);
}

.btn-ecosystem-secondary {
    background: transparent;
    color: var(--text-muted);
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: 0.2s;
}

.btn-ecosystem-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .ecosystem-cta-inner {
        padding: 32px 22px;
    }

    .ecosystem-cta-inner h2 {
        font-size: 1.55rem;
    }

    .ecosystem-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-ecosystem-primary,
    .btn-ecosystem-secondary {
        justify-content: center;
        text-align: center;
    }
}

/* Переваги */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 20px;
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: var(--flux-purple);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* ========================================= */
/* Мобільна адаптація (max-width: 768px)     */
/* ========================================= */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .id-navbar {
        width: 100%;
        box-sizing: border-box;
    }

    .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
        box-sizing: border-box;
    }

    .logo {
        font-size: 1.2rem;
        max-width: 50%;
        min-width: 0;
    }

    .nav-actions {
        gap: 10px;
    }

    .btn-login,
    .btn-signup {
        min-height: 44px;
        padding: 12px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-section {
        padding: 44px 20px 48px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        word-break: break-word;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }

    .services-section {
        padding: 40px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-header h2 {
        font-size: 1.5rem;
        word-break: break-word;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 24px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .service-card h3 {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .features-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .feature h4 {
        font-size: 1.1rem;
        word-break: break-word;
    }

    footer {
        padding: 20px 12px;
        width: 100%;
        box-sizing: border-box;
    }
}

.hero-section .highlight, .service-link, .service-icon, .feature i { color: #b580ff; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.service-card { display: flex; flex-direction: column; min-width: 0; }
.service-card .service-link { margin-top: auto; min-height: 44px; }
.hero-section h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
#services { scroll-margin-top: calc(var(--flux-header-height) + 20px); }
@media (max-width: 480px) {
    .hero-content { padding: 0; }
    .hero-section p { line-height: 1.65; margin-bottom: 28px; }
    .ecosystem-cta-inner { padding: 28px 20px; }
    .features-section { margin-bottom: 48px; }
}