/* Базовые стили страницы в стиле приложения BrokenVPN */

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    background: #f5f6fb;
    color: #111827;
}

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* Основной горизонтальный лейаут */
.layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.layout-main {
    /* эта колонка имитирует экран приложения */
    background: #f9fafb;
    border-radius: 28px;
    padding: 16px 18px 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.layout-side {
    /* правая колонка с текстом */
}

/* Скрытие/показ языков */
.ru-text {
    display: inline;
}

.en-text {
    display: none;
}

.lang-en .ru-text {
    display: none;
}

.lang-en .en-text {
    display: inline;
}

/* Шапка */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.access-code {
    font-size: 13px;
    color: #6b7280;
}

.lang-switch {
    border: none;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    margin-left: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.lang-switch:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

.lang-ru .lang-switch[data-lang="ru"],
.lang-en .lang-switch[data-lang="en"] {
    background: #111827;
    color: #f9fafb;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.hero-logo {
    margin-right: 12px;
}

.hero-logo-circle {
    width: 64px;
    height: 64px;
    border-radius: 24px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
}

.hero-logo-lock {
    font-size: 28px;
}

.hero-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}

/* Кнопка подключиться */
.connect-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 32px 0 28px;
}

.connect-button {
    width: 240px;
    height: 240px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: radial-gradient(circle at 30% 20%, #e0f7ff, #ffffff);
    box-shadow:
        0 0 0 8px rgba(34, 211, 238, 0.12),
        0 16px 40px rgba(34, 211, 238, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.connect-button::before {
    /* это свечение вокруг кнопки */
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.6), transparent 65%);
    opacity: 0.7;
    z-index: -1;
    filter: blur(8px);
}

.connect-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 10px rgba(34, 211, 238, 0.18),
        0 20px 50px rgba(34, 211, 238, 0.55);
}

.connect-label {
    font-size: 20px;
    font-weight: 600;
    color: #4b5563;
}

.connect-hint {
    margin-top: 16px;
    font-size: 14px;
    color: #9ca3af;
}

.connect-section.connected .connect-hint-status {
    color: #22c55e;
}

.connect-animation-note {
    margin: 12px auto 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
    max-width: 280px;
    padding: 0 16px;
}

/* зелёное состояние кнопки при подключении */
.connect-section.connected .connect-button {
    background: radial-gradient(circle at 30% 20%, #dcfce7, #ffffff);
    box-shadow:
        0 0 0 8px rgba(34, 197, 94, 0.15),
        0 16px 40px rgba(34, 197, 94, 0.55);
}

.connect-section.connected .connect-button::before {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.6), transparent 65%);
}

/* Описание и секции */
.section-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.section-text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #4b5563;
}

.description {
    margin-bottom: 24px;
}

/* Блоки как карточки */
.features {
    margin-bottom: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 14px 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.feature-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.feature-text {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.45;
}

/* Преимущества */
.benefits {
    margin-bottom: 28px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}

.benefit-item + .benefit-item {
    border-top: 1px solid #e5e7eb;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.benefit-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
}

.benefit-text {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

/* CTA-кнопки */
.cta-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta-button.primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.4);
}

.cta-button.secondary {
    background: #e0f2fe;
    color: #0f172a;
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.25);
}

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

.cta-button.primary:hover {
    box-shadow: 0 16px 40px rgba(147, 51, 234, 0.5);
}

.cta-button.secondary:hover {
    box-shadow: 0 16px 38px rgba(59, 130, 246, 0.32);
}

.cta-note {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* Подвал */
.footer {
    margin-top: 16px;
}

.footer-text {
    margin: 0;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
}

/* Адаптив */
@media (max-width: 360px) {
    /* этот блок уменьшает кнопку и отступы на очень маленьких экранах */
    .page {
        padding: 18px 14px 32px;
    }

    .connect-button {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 24px;
    }
}

@media (min-width: 768px) {
    .page {
        max-width: 960px;
        padding-top: 40px;
        padding-bottom: 56px;
    }

    .layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .layout-main {
        flex: 0 0 360px;
    }

    .layout-side {
        flex: 1;
    }

    .connect-button {
        width: 260px;
        height: 260px;
    }

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

