:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --primary: #1e60d4; /* Sapphire blend */
    --primary-hover: #2b74f0;
    --card-bg: rgba(22, 27, 34, 0.6);
    --card-border: rgba(48, 54, 61, 0.8);
    --commercial-accent: #a371f7; /* Lilac/Yogurt tone for PAID badge */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(15, 82, 186, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 110%, rgba(220, 208, 255, 0.12) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.9), transparent);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    background: -webkit-linear-gradient(45deg, #58a6ff, #a371f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tld {
    -webkit-text-fill-color: #8b949e;
    font-weight: 600;
    letter-spacing: 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 5% 2rem;
}

.hero {
    text-align: center;
    margin: 1.5rem 0 5rem;
}

.badge-soon-inline {
    display: inline-block;
    background: rgba(134, 239, 172, 0.12);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.35);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    animation: soonGlow 3.2s ease-in-out infinite;
}

/* Мягкая «дышащая» подсветка бейджа — без резкого мигания */
@keyframes soonGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(134, 239, 172, 0);
        border-color: rgba(134, 239, 172, 0.25);
    }
    50% {
        box-shadow: 0 0 14px rgba(134, 239, 172, 0.3);
        border-color: rgba(134, 239, 172, 0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .badge-soon-inline { animation: none; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #a371f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    position: relative;
}

.hero h1::before {
    content: '';
    position: absolute;
    inset: -0.3em -0.6em;
    z-index: -1;
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    backdrop-filter: blur(16px);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-color);
    max-width: 720px;
    margin: 0 auto;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

/* Акцентная карточка — нейросети */
.card.highlight {
    border-color: rgba(163, 113, 247, 0.55);
    box-shadow: 0 0 0 1px rgba(163, 113, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card.highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 100% 0%, rgba(163, 113, 247, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.card.highlight:hover {
    border-color: var(--commercial-accent);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--commercial-accent);
    color: #fff;
    padding: 0.4rem 0.6rem 0.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-badge.free {
    background: var(--primary);
}

.card-badge.soon {
    background: #86efac;
    color: #064e3b;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: #8b949e;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: max-content;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.96) translateY(0);
}

.btn.primary {
    background: linear-gradient(135deg, #0f52ba 0%, #a371f7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(163, 113, 247, 0.2);
    border: none;
}

.btn.primary:hover {
    background: linear-gradient(135deg, #1562d6 0%, #b388ff 100%);
    box-shadow: 0 6px 20px rgba(163, 113, 247, 0.4);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    border: 1px solid rgba(163, 113, 247, 0.5);
    color: #e6edf3;
}

.btn.secondary:hover {
    background-color: rgba(163, 113, 247, 0.1);
    border-color: rgba(163, 113, 247, 0.8);
    transform: translateY(-2px);
}

/* Блок «как это работает» */
.donate-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.how-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #e6edf3;
}

.how-lead {
    color: #c9d1d9;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.how-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.how-list li {
    color: #c9d1d9;
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    font-size: 1.02rem;
}

.how-num {
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #0f52ba 0%, #a371f7 100%);
    align-self: flex-start;
}

.donate-note {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    font-style: italic;
    color: #8b949e;
}

/* Финальный призыв */
.cta {
    margin-bottom: 4rem;
}

.soon-card {
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #c9d1d9;
    font-weight: 600;
    font-size: 0.98rem;
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #86efac;
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(134, 239, 172, 0); }
    100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); }
}

.soon-card .card-actions {
    justify-content: center;
    max-width: 460px;
    width: 100%;
}

footer {
    text-align: center;
    padding: 3rem;
    color: #8b949e;
    border-top: 1px solid var(--card-border);
}

footer p {
    display: inline-block;
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    backdrop-filter: blur(12px);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.author-link {
    color: #8b949e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.author-link:hover {
    color: #c9d1d9;
}

@media (min-width: 1400px) {
    main.home {
        max-width: 1500px;
    }
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    nav a {
        margin: 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
