/* styles.css — финальная версия */
:root {
    --bg-main:      #0d0d0f;
    --bg-inner:     #161618;
    --text-main:    #d0d0d0;
    --brand-blue:   #2962ff;
    --accent-blue:  #3366ff;
    --card-bg:      #1e1e20;
    --card-border:  #2d2d30;
    --radius:       12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Jura', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ОБОЛОЧКА */
.wrapper {
    position: relative;
    width: 100%;
    max-width: 768px;
    padding: 3rem 2rem 4rem;
    background: var(--bg-inner);
    border-radius: var(--radius);
    overflow: hidden;
}

/* НЕОНОВАЯ РАМА */
.wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: var(--radius);
    background: linear-gradient(45deg, #0026ff, #5200ff, #0026ff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: glow 6s linear infinite;
    pointer-events: none;
}

@keyframes glow {
    0%   { filter: blur(4px) hue-rotate(0deg); }
    100% { filter: blur(4px) hue-rotate(360deg); }
}

/* ДЕКОРАТИВНАЯ КАРТИНКА */
.hero-img {
    position: absolute;
    top: 4rem;          /* ниже */
    right: 3rem;        /* отступ от правого края */
    width: 220px;       /* крупнее */
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* HERO */
.brand {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.tg-icon {
    width: 1.4rem;
    height: 1.4rem;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 512 512"><path d="M256 0C114.836 0 0 114.836 0 256c0 141.163 114.836 256 256 256 141.163 0 256-114.837 256-256C512 114.836 397.163 0 256 0zm121.104 171.541l-34.344 161.496c-2.587 11.64-9.356 14.497-18.957 9.052l-52.34-38.584-25.265 24.286c-2.79 2.79-5.128 5.128-10.507 5.128l3.751-53.217 96.819-87.398c4.206-3.751-.914-5.843-6.566-2.092l-119.603 75.225-51.522-16.112c-11.196-3.512-11.42-11.196 2.36-16.54l201.31-77.641c9.356-3.512 17.543 2.092 14.064 16.478z"/></svg>') center/contain no-repeat;
}

.tagline {
    margin: 1rem 0 2rem;
    line-height: 1.4;
}

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: .9rem 1.8rem;
    border-radius: 28px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 0 12px rgba(41,98,255,.62);
}

.btn-outline {
    margin-left: 1rem;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
}

.btn-cta {
    background: var(--accent-blue);
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 40px;
    box-shadow: 0 0 14px rgba(51,102,255,.7);
}

.btn:hover { transform: translateY(-2px); }

/* FEATURES */
.features h2 {
    text-align: center;
    margin: 3rem 0 2rem;
    font-size: 1.75rem;
    color: #fff;
}

.accent { color: var(--accent-blue); }

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.card {
    flex: 0 1 220px;
    background: var(--card-bg);
    padding: 1.3rem 1.1rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: inset 0 0 0 1px var(--card-border);
}

.card h3 {
    margin: 0 0 .6rem;
    font-size: 1.1rem;
    color: var(--accent-blue);
}

.card p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.35;
}

/* CTA */
.cta {
    text-align: center;
    margin: 3rem 0 2rem;
}

/* FOOTER */
footer {
    text-align: center;
    font-size: .8rem;
    opacity: .6;
}

/* МОБИЛЬНЫЙ АДАПТИВ */
@media (max-width: 480px) {
    .btn-outline {
        display: block;
        margin: .8rem 0 0;
    }

    .hero-img {
        width: 170px;
        top: 3rem;
        right: 1rem;
    }
}
