/* HEXAI landing page */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background: #000;
    scrollbar-width: thin;
    scrollbar-color: #ff8c00 #111;
}

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

h1,
h2,
h3,
p,
span,
a {
    text-shadow: 0 0 6px rgba(255, 140, 0, 0.55);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff8c00;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4500;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    padding-top: env(safe-area-inset-top, 0px);
}

.landing-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 60px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.landing-brand img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.landing-brand span {
    color: #ff8c00;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.landing-nav {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.landing-btn-outline {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid #ff8c00;
    background: rgba(255, 140, 0, 0.08);
    color: #ff8c00;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.4);
    white-space: nowrap;
    text-align: center;
}

/* Hero */
.landing-hero {
    padding-top: 60px;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: transparent;
}

.landing-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.landing-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

.landing-hero-inner {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 2rem 1rem;
}

.landing-hero-content {
    max-width: 1100px;
    width: 100%;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0 auto;
}

.landing-hero-title {
    color: #ff8c00;
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.landing-hero-subtitle {
    color: #e67e00;
    font-size: clamp(1.1rem, 5vw, 2rem);
    margin: 0 auto 2rem;
    max-width: 800px;
    line-height: 1.35;
}

.landing-cta-primary {
    display: inline-block;
    background: #ff8c00;
    color: #fff;
    font-size: clamp(1rem, 4vw, 1.28rem);
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 35px rgba(255, 140, 0, 0.4);
    margin-top: 2rem;
    max-width: 100%;
}

.landing-cta-dark {
    display: inline-block;
    background: #ff8c00;
    color: #000;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
}

/* Leader section */
.landing-leader {
    background: #111;
    padding: 6rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.landing-grid-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 140, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.landing-leader-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.landing-leader-title {
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ff8c00;
}

.landing-leader-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.landing-icon-row {
    display: flex;
    gap: 1.8rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.landing-icon-row i {
    font-size: 2.2rem;
    color: #ff8c00;
}

.landing-leader-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.landing-leader-visual-inner {
    height: 480px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        linear-gradient(rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        url('/static/img/logoti.png') center/cover no-repeat;
    background-size: cover, 40px 40px, 40px 40px, cover;
}

/* Advantages */
.landing-advantages {
    padding: 5rem 2rem;
    background: #000;
    display: flex;
    align-items: center;
    min-height: auto;
}

.landing-advantages-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.landing-adv-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.landing-adv-row:last-child {
    margin-bottom: 0;
}

.landing-adv-card {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.15);
    min-width: 0;
}

.landing-adv-row--1 .landing-adv-card:nth-child(1) {
    flex: 0 0 40%;
}

.landing-adv-row--1 .landing-adv-card:nth-child(2) {
    flex: 0 0 60%;
}

.landing-adv-row--2 .landing-adv-card:nth-child(1) {
    flex: 0 0 60%;
}

.landing-adv-row--2 .landing-adv-card:nth-child(2) {
    flex: 0 0 40%;
}

.landing-adv-card-inner {
    min-height: 420px;
    padding: 2.8rem 2rem;
    color: #fff;
    background-size: cover, 35px 35px, 35px 35px, cover;
}

.landing-adv-card-inner h3 {
    color: #ff8c00;
    margin-bottom: 1rem;
    font-size: clamp(1.05rem, 3.5vw, 1.35rem);
    line-height: 1.3;
}

.landing-adv-card-inner p {
    line-height: 1.55;
    font-size: clamp(0.92rem, 3vw, 1rem);
    word-break: break-word;
}

.landing-adv-card--1 .landing-adv-card-inner {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        url('/static/img/adv1.jpg') center/cover no-repeat;
}

.landing-adv-card--2 .landing-adv-card-inner {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        url('/static/img/adv2.jpg') center/cover no-repeat;
}

.landing-adv-card--3 .landing-adv-card-inner {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        url('/static/img/adv4.jpg') center/cover no-repeat;
}

.landing-adv-card--4 .landing-adv-card-inner {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        url('/static/img/adv3.jpg') center/cover no-repeat;
}

/* Tabs section */
.landing-tabs-section {
    background: #0a0a0a;
    padding: 7rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.landing-tabs-wrap {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.landing-tabs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.landing-tabs-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #ff8c00;
    margin-bottom: 1.2rem;
}

.landing-tabs-lead {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2rem;
}

.landing-cta-pill {
    display: inline-block;
    background: #ff8c00;
    color: #000;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    margin-bottom: 2rem;
    text-decoration: none;
}

.landing-tab-bar {
    background: #111;
    padding: 6px;
    border-radius: 14px;
    display: flex;
    gap: 4px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    line-height: 1.2;
}

.tab-button:hover {
    transform: scale(1.03);
    background: rgba(255, 140, 0, 0.18);
}

.tab-button.active {
    background: #ff8c00;
    color: #000;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.65);
}

.tab-content {
    animation: landingFadeIn 0.4s;
}

.tab-content h3 {
    color: #ff8c00;
    margin-bottom: 1.5rem;
}

.tab-feature {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
    align-items: flex-start;
}

.tab-feature:last-child {
    margin-bottom: 0;
}

.tab-feature span {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.tab-feature strong {
    display: block;
    margin-bottom: 0.2rem;
}

.landing-telegram-box {
    margin-top: 3rem;
    padding: 2rem 1.25rem;
    background: rgba(255, 140, 0, 0.08);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.landing-telegram-box p {
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.landing-telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ff8c00;
    color: #000;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    max-width: 100%;
    flex-wrap: wrap;
}

.landing-telegram-btn i {
    font-size: 1.6rem;
}

@keyframes landingFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .landing-leader-grid,
    .landing-tabs-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .landing-leader-visual-inner {
        height: 280px;
    }

    .landing-adv-row {
        flex-direction: column;
    }

    .landing-adv-row .landing-adv-card {
        flex: 1 1 auto !important;
        width: 100%;
    }

    .landing-adv-card-inner {
        min-height: 260px;
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .landing-header-inner {
        padding: 0 1rem;
        height: 56px;
    }

    .landing-brand span {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .landing-brand img {
        height: 34px;
    }

    .landing-nav {
        gap: 0.5rem;
    }

    .landing-btn-outline {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .landing-hero {
        padding-top: 56px;
    }

    .landing-hero-inner {
        min-height: calc(100dvh - 56px);
        padding: 1.5rem 0.75rem;
    }

    .landing-hero-content {
        padding: 1rem 0.5rem;
    }

    .landing-cta-primary {
        margin-top: 1.5rem;
        width: 100%;
        max-width: 320px;
    }

    .landing-leader,
    .landing-advantages,
    .landing-tabs-section {
        padding: 3.5rem 1rem;
    }

    .landing-icon-row {
        gap: 1.2rem;
        margin: 1.5rem 0;
    }

    .landing-icon-row i {
        font-size: 1.6rem;
    }

    .landing-tab-bar {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        flex: none;
    }

    .landing-tabs-lead {
        max-width: 100%;
    }

    .landing-cta-pill,
    .landing-cta-dark {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .landing-telegram-btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .landing-brand span {
        display: none;
    }

    .landing-btn-outline {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .landing-adv-card-inner {
        min-height: 220px;
        padding: 1.25rem 1rem;
    }

    .tab-feature {
        gap: 0.75rem;
    }

    .tab-feature span {
        font-size: 1.5rem;
    }
}