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

html, body {
    height: 100%;
}

body {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    background-color: #000711;
    color: #d2f0ff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(1400px, 100vw);
    height: min(1400px, 100vh);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, #0ff 0%, #0a6ebd 20%, #00aaff 40%, transparent 80%);
    opacity: 0.12;
    filter: blur(200px);
    animation: rotate-bg 60s linear infinite;
    z-index: 0;
}

@keyframes rotate-bg {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 30px;
    flex: 1 0 auto;
    width: 100%;
}

/* Стили для страницы активации */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6acffb;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #b6edff;
}

.card {
    background: rgba(6, 14, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(138, 223, 255, 0.2);
}

.logo-small {
    font-size: 36px;
    color: #8adfff;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #bff0ff;
    font-weight: 400;
    margin-bottom: 16px;
}

.timer-badge {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #ff8a8a;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin: 10px 0 20px;
}

.info-message {
    background: rgba(0, 100, 200, 0.2);
    border-left: 3px solid #00aaff;
    padding: 16px 20px;
    border-radius: 16px;
    margin: 25px 0;
    text-align: left;
}

.info-message p {
    font-size: 14px;
    line-height: 1.5;
    color: #cceeff;
    margin: 8px 0;
}

.info-message .highlight {
    color: #00aaff;
    font-weight: 600;
}

.device-detection {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px auto;
    width: fit-content;
}

.device-icon {
    font-size: 24px;
}

.device-name {
    font-size: 14px;
    color: #8adfff;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0 20px;
}

.btn {
    padding: 16px 24px;
    border-radius: 40px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00cfff, #006eff);
    color: white;
    box-shadow: 0 0 15px rgba(0, 140, 255, 0.4);
    padding: 16px 24px;
    text-decoration: none;
    border-radius: 35px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0099ff, #0050ff);
    box-shadow: 0 0 25px rgba(0, 190, 255, 0.5);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #d2f0ff;
    border: 1px solid rgba(138, 223, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    color: #8adfff;
    border: 1px solid #8adfff;
}

.btn-outline:hover {
    background: rgba(138, 223, 255, 0.1);
    transform: scale(1.02);
}

.key-input-group {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.key-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 40px;
    border: 1px solid rgba(138, 223, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.key-input:focus {
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.key-input::placeholder {
    color: rgba(210, 240, 255, 0.5);
}

.note {
    font-size: 12px;
    color: #7fb5d1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.note a {
    color: #8adfff;
    text-decoration: none;
}

.note a:hover {
    text-decoration: underline;
}

/* Конец стилей для страницы активации */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    margin: auto;
    font-size: clamp(2rem, 8vw, 3rem);
    color: #8adfff;
    letter-spacing: 2px;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
    text-align: center;
}

nav a {
    color: #6acffb;
    margin-left: 24px;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s;
}

nav a:hover {
    color: #b6edff;
}

.hero {
    text-align: center;
    margin-top: clamp(20px, 5vh, 40px);
    padding: 0 10px;
}

.hero h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: #bff0ff;
    font-weight: 300;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: white;
    margin: 0 auto clamp(30px, 5vh, 40px);
    max-width: min(700px, 90vw);
    line-height: 1.5;
}

.features {
    margin-top: clamp(30px, 5vh, 40px);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 10px;
}

.feature-card {
    background: rgba(6, 14, 20, 0.5);
    border-radius: 20px;
    padding: clamp(20px, 4vw, 24px);
    flex: 1 1 min(280px, 100%);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
    min-width: 250px;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    display: block;
    margin: 0 auto 15px;
    width: clamp(48px, 10vw, 64px);
    height: auto;
}

.feature-title {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.3;
}

.feature-desc {
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #cccccc;
    line-height: 1.5;
}

footer {
    text-align: center;
    padding: clamp(20px, 3vh, 30px);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #7fb5d1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000a12;
    flex-shrink: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 15px 20px;
    }

    .features {
        gap: 15px;
    }

    .feature-card {
        flex: 1 1 100%;
        max-width: 400px;
    }

    .hero h1 {
        margin-bottom: 0.5rem;
    }

    .card {
        padding: 30px 20px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .key-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 10px 15px;
    }

    .hero {
        margin-top: 15px;
    }

    .features {
        margin-top: 25px;
        gap: 12px;
    }

    .feature-card {
        padding: 18px 15px;
    }

    footer {
        padding: 15px 10px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 20px 8px 10px;
    }

    .feature-card {
        min-width: unset;
    }
}

/* --- Дополнения для стилистики Glassmorphism (к твоему текущему CSS) --- */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    width: 100%;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8adfff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: 0.3s;
    opacity: 0.8;
}

.back-btn:hover {
    opacity: 1;
    color: #0ff;
}

.trial-badge {
    display: inline-block;
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.4);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Состояния страницы */
.step-section {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стилизация карточек шагов */
.instruction-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    text-align: left;
}

.step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px 20px 20px 65px;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(0, 170, 255, 0.06);
    border-color: rgba(0, 170, 255, 0.3);
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    left: 20px;
    top: 22px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #00aaff 0%, #0ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

.step-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #ffffff;
    font-weight: 500;
}

.step-card p {
    font-size: 14px;
    color: #a0d2ff;
    line-height: 1.5;
    font-weight: 200;
}

.copy-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(0, 255, 255, 0.3);
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
    font-family: monospace;
    font-size: 11px;
    color: #0ff;
    word-break: break-all;
    text-align: center;
}

#captcha-wrapper {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 20px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    min-height: 100px;
}