/* TT LIVE landing — compact, performant layout */
:root {
    --neon-cyan: #25f4ee;
    --neon-purple: #9d00ff;
    --neon-pink: #ff0050;
    --bg-main: #0a0b0e;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #9ca3af;
    --header-h: 52px;
    --section-pad: clamp(2rem, 4vw, 3.5rem);
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body.landing-page {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: min(1120px, 100%);
    margin-inline: auto;
    padding-inline: clamp(0.875rem, 3vw, 1.25rem);
}

[id] {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* —— Header —— */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding-block: 0;
    padding-top: env(safe-area-inset-top, 0);
    background: rgba(10, 11, 14, 0.97);
    border-bottom: 1px solid var(--border);
}

.site-header .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: border-color 0.2s ease;
}

.logo:hover,
.logo:focus-visible {
    border-color: rgba(37, 244, 238, 0.4);
    outline: none;
}

.logo-emblem {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0a0b0e;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
}

.logo-live {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-links .nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links .nav-link:hover,
.nav-links .nav-link:focus-visible,
.nav-links .nav-link.active {
    color: var(--text-main);
    background: rgba(37, 244, 238, 0.1);
    outline: none;
}

.nav-links .nav-link.active {
    color: var(--neon-cyan);
}

.site-header-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
}

.btn-login {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 244, 238, 0.5);
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8125rem;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
    background: var(--neon-cyan);
    color: #0a0b0e;
    outline: none;
}

/* —— Sections (lazy paint below fold) —— */
.landing-block,
#register,
.block-tariffs,
.block-beta {
    padding-block: var(--section-pad);
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-dim);
    font-size: clamp(0.9rem, 2vw, 1rem);
    max-width: 36rem;
    margin-inline: auto;
}

/* —— Beta (compact banner) —— */
.block-beta {
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
    padding-bottom: var(--section-pad);
}

.beta-panel {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 244, 238, 0.25);
    background: linear-gradient(135deg, rgba(18, 14, 32, 0.95), rgba(10, 11, 14, 0.98));
    box-shadow: var(--shadow-soft);
}

.beta-panel-inner {
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 1.75rem);
}

.beta-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 3vw, 1.75rem);
    align-items: center;
}

.beta-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.beta-logo-wrap {
    width: clamp(72px, 14vw, 100px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.beta-logo-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neon-cyan);
    background: rgba(37, 244, 238, 0.08);
    border: 1px solid rgba(37, 244, 238, 0.25);
}

.beta-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-pink);
}

.beta-copy h2 {
    font-size: clamp(1.15rem, 3.5vw, 1.65rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.beta-copy p {
    color: var(--text-dim);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin-bottom: 0.85rem;
    max-width: 40rem;
}

.beta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-beta-play,
.btn-beta-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-beta-play {
    color: #0a0b0e;
    background: linear-gradient(135deg, var(--neon-cyan), #6ee7f7);
    border: 1px solid rgba(37, 244, 238, 0.4);
}

.btn-beta-join {
    color: #fff;
    background: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.5);
}

.btn-beta-play img {
    height: 22px;
    width: auto;
    border-radius: 4px;
    background: #fff;
    padding: 2px 4px;
}

.btn-beta-play:hover,
.btn-beta-join:hover,
.btn-beta-play:focus-visible,
.btn-beta-join:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

@media (hover: hover) {
    .btn-beta-play:hover,
    .btn-beta-join:hover {
        transform: translateY(-1px);
    }
}

.icon-telegram {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

/* —— Hero (dynamic) —— */
.block-hero {
    text-align: center;
    padding-block: clamp(2rem, 6vw, 3.5rem);
    min-height: unset;
    display: block;
}

.block-hero h1 {
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #fff 30%, var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.block-hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-dim);
    max-width: 36rem;
    margin: 0 auto 1.25rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.block-hero .hero-btns .btn-primary,
.block-hero .hero-btns .btn-outline,
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.block-hero .hero-btns .btn-primary,
.btn-primary {
    color: #0a0b0e;
    background: var(--neon-cyan);
    border: none;
}

.block-hero .hero-btns .btn-outline,
.btn-outline {
    color: var(--neon-cyan);
    background: transparent;
    border: 1.5px solid rgba(37, 244, 238, 0.45);
}

@media (hover: hover) {
    .block-hero .hero-btns .btn-primary:hover,
    .btn-primary:hover {
        box-shadow: 0 6px 20px rgba(37, 244, 238, 0.25);
        transform: translateY(-1px);
    }
}

/* —— Widget grid —— */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 0.85rem;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1rem, 3vw, 1.35rem);
    transition: border-color 0.2s ease;
}

@media (hover: hover) {
    .widget-card:hover {
        border-color: rgba(37, 244, 238, 0.45);
    }
}

.widget-icon {
    font-size: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--neon-cyan);
}

.widget-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.widget-card p {
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* —— Media + text —— */
.block-mediaText .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
}

.block-mediaText.layout-right .content-wrapper {
    direction: rtl;
}

.block-mediaText.layout-right .text-content {
    direction: ltr;
}

.block-mediaText .text-content h2 {
    font-size: clamp(1.35rem, 4vw, 2rem);
    margin-bottom: 0.65rem;
}

.block-mediaText .text-content p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.media-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.media-container img,
.media-container video {
    width: 100%;
    display: block;
    height: auto;
}

/* —— CTA —— */
.block-cta {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-block: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(37, 244, 238, 0.04);
    border: 1px solid var(--border);
}

.block-cta h2 {
    font-size: clamp(1.35rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

/* —— Tariffs —— */
.block-tariffs .tariffs-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    max-width: 720px;
    margin-inline: auto;
}

.tariff-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    display: block;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
    .tariff-card:hover {
        border-color: rgba(37, 244, 238, 0.4);
        transform: translateY(-2px);
    }
}

.tariff-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* —— Register —— */
#register {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: var(--section-pad);
    padding: var(--section-pad) clamp(1rem, 4vw, 1.75rem);
    border: 1px solid var(--border);
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.register-info h2 {
    font-size: clamp(1.35rem, 4vw, 2rem);
    margin-bottom: 0.65rem;
}

.register-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.register-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.register-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.register-info .icon-check {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--neon-cyan);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.register-card {
    background: var(--bg-main);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: 2px solid rgba(37, 244, 238, 0.35);
    outline-offset: 0;
    border-color: var(--neon-cyan);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    color: #0a0b0e;
    background: linear-gradient(90deg, var(--neon-cyan), #7dd3fc);
    transition: filter 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
    filter: brightness(1.06);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

#register-status {
    margin-top: 0.75rem;
    text-align: center;
    border-radius: 10px;
    display: none;
    padding: 0.65rem;
    font-size: 0.875rem;
}

.status-success {
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.2);
}

.status-error {
    background: rgba(255, 0, 80, 0.1);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 80, 0.2);
}

/* —— Footer —— */
footer.site-footer {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0));
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.site-footer p + p {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* —— Loader —— */
.page-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.page-loader__spin {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* —— Tablet —— */
@media (max-width: 1024px) {
    .block-mediaText .content-wrapper {
        grid-template-columns: 1fr;
    }

    .block-mediaText.layout-right .content-wrapper {
        direction: ltr;
    }

    .register-container {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none !important;
    }

    header.site-header .nav-links {
        display: flex !important;
    }
}

/* —— Mobile —— */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 10;
        padding: 0.75rem 0 0.25rem;
        border-top: 1px solid var(--border);
        gap: 0.25rem;
    }

    header.site-header {
        height: auto;
        min-height: var(--header-h);
    }

    header.site-header .site-header-inner {
        flex-wrap: wrap;
        padding-block: 0.5rem;
    }

    header.site-header .mobile-nav-toggle {
        display: inline-flex;
    }

    header.site-header.nav-open .nav-links {
        display: flex;
    }

    .nav-links .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.55rem 0.75rem;
    }

    .site-header-end {
        margin-left: auto;
    }

    .beta-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .beta-visual {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .beta-copy p,
    .beta-actions {
        margin-inline: auto;
    }

    .beta-actions {
        flex-direction: column;
        max-width: 20rem;
    }

    .btn-beta-play,
    .btn-beta-join {
        width: 100%;
    }

    .block-tariffs .tariffs-container {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        max-width: 20rem;
        margin-inline: auto;
    }

    .block-hero .hero-btns .btn-primary,
    .block-hero .hero-btns .btn-outline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .btn-login {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
    }

    .logo-live {
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .page-loader__spin {
        animation: none;
        border-top-color: var(--neon-cyan);
    }

    .btn-beta-play:hover,
    .btn-beta-join:hover,
    .block-hero .hero-btns .btn-primary:hover,
    .tariff-card:hover {
        transform: none;
    }
}
