* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "Segoe UI", sans-serif;

    min-height: 100vh;
    overflow-x: hidden;
}


/* Фон */

.background-glow {
    position: fixed;
    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(130px);

    opacity: 0.16;

    pointer-events: none;

    z-index: -1;
}

.glow-1 {
    background: white;
    top: -250px;
    left: -200px;
}

.glow-2 {
    background: #777;
    right: -250px;
    top: 40%;
}


/* Liquid Glass */

.glass {
    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.08),
        0 20px 60px rgba(0,0,0,0.45);
}


/* Навигация */

.navbar {
    position: fixed;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    width: min(1100px, calc(100% - 30px));

    height: 68px;

    border-radius: 24px;

    display: flex;
    align-items: center;

    justify-content: space-between;

    padding: 0 18px;

    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 700;
    letter-spacing: 1px;
}

.logo-circle {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    color: black;

    font-weight: 800;

    box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: #aaa;
    text-decoration: none;

    font-size: 14px;

    transition: 0.3s;
}

nav a:hover {
    color: white;
}

.nav-button {
    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(255,255,255,0.08);

    color: white;

    padding: 11px 18px;

    border-radius: 15px;

    cursor: pointer;

    transition: 0.3s;
}

.nav-button:hover {
    background: white;
    color: black;
}


/* Главный экран */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 80px;

    padding: 140px 8% 80px;
}

.hero-content {
    max-width: 620px;
}

.badge {
    display: inline-block;

    padding: 9px 15px;

    border-radius: 20px;

    font-size: 13px;

    color: #ddd;

    margin-bottom: 25px;
}

h1 {
    font-size: clamp(60px, 8vw, 105px);

    line-height: 0.9;

    letter-spacing: -6px;

    margin-bottom: 30px;
}

h1 span {
    display: block;

    color: #888;
}

.hero p {
    color: #999;

    font-size: 18px;

    line-height: 1.6;

    max-width: 540px;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.primary-button {
    border: none;

    background: white;
    color: black;

    padding: 15px 22px;

    border-radius: 17px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.primary-button span {
    margin-left: 12px;
}

.primary-button:hover {
    transform: translateY(-3px);

    box-shadow: 0 10px 35px rgba(255,255,255,0.15);
}

.secondary-button {
    color: white;

    text-decoration: none;

    padding: 14px 20px;

    border-radius: 17px;

    font-size: 14px;
}


/* AI карточка */

.ai-card {
    width: 370px;
    min-height: 430px;

    border-radius: 35px;

    padding: 25px;

    transform: rotate(2deg);

    transition: 0.5s;
}

.ai-card:hover {
    transform: rotate(0deg) translateY(-10px);
}

.ai-top {
    display: flex;
    align-items: center;

    gap: 12px;

    padding-bottom: 25px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ai-avatar {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: white;
    color: black;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}

.ai-top strong {
    display: block;
}

.ai-top small {
    color: #777;
}

.online {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: white;

    margin-left: auto;
}

.message {
    padding-top: 25px;

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.message-ai,
.message-user {
    padding: 14px 16px;

    border-radius: 18px;

    max-width: 85%;

    line-height: 1.5;

    font-size: 14px;
}

.message-ai {
    background: rgba(255,255,255,0.07);
}

.message-user {
    background: white;
    color: black;

    align-self: flex-end;
}

.typing span {
    animation: typing 1s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    50% {
        opacity: 0.2;
    }
}


/* Секции */

.section {
    padding: 130px 8%;
}

.section-title span,
.small-title {
    color: #777;

    font-size: 12px;

    letter-spacing: 2px;
}

.section-title h2 {
    font-size: clamp(45px, 6vw, 80px);

    line-height: 0.95;

    letter-spacing: -4px;

    margin-top: 20px;
}

.section-title h2 span {
    color: #777;
}


/* Карточки */

.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 70px;
}

.feature-card {
    padding: 30px;

    min-height: 260px;

    border-radius: 30px;

    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);

    background: rgba(255,255,255,0.08);
}

.icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(255,255,255,0.08);

    font-size: 22px;

    margin-bottom: 35px;
}

.feature-card h3 {
    font-size: 22px;

    margin-bottom: 12px;
}

.feature-card p {
    color: #888;

    line-height: 1.6;

    font-size: 14px;
}


/* About */

.about {
    margin: 50px 8% 130px;

    border-radius: 40px;

    padding: 70px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    overflow: hidden;
}

.about h2 {
    font-size: clamp(50px, 6vw, 85px);

    letter-spacing: -5px;

    margin: 20px 0;
}

.about h2 span {
    color: #777;
}

.about p {
    max-width: 550px;

    color: #888;

    line-height: 1.7;

    margin-bottom: 30px;
}

.orb {
    width: 280px;
    height: 280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            white,
            #777 12%,
            #222 45%,
            #000 70%
        );

    box-shadow:
        0 0 80px rgba(255,255,255,0.12);

    display: flex;

    align-items: center;
    justify-content: center;
}

.orb-core {
    font-size: 60px;

    font-weight: 800;

    color: white;

    text-shadow: 0 0 30px white;
}


/* Footer */

footer {
    padding: 40px 8%;

    border-top: 1px solid rgba(255,255,255,0.08);

    display: flex;

    justify-content: space-between;

    color: #666;
}

.footer-logo {
    color: white;

    font-weight: bold;

    letter-spacing: 2px;
}


/* Чат */

.chat-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.65);

    backdrop-filter: blur(15px);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 500;
}

.chat-overlay.active {
    display: flex;
}

.chat-window {
    width: min(600px, calc(100% - 30px));

    height: 700px;

    max-height: 90vh;

    border-radius: 32px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.chat-header {
    height: 75px;

    padding: 0 20px;

    display: flex;
    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.close-button {
    border: none;

    background: rgba(255,255,255,0.08);

    color: white;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    font-size: 24px;

    cursor: pointer;
}

.chat-content {
    flex: 1;

    padding: 25px;

    overflow-y: auto;
}

.chat-message {
    padding: 14px 17px;

    border-radius: 18px;

    max-width: 80%;

    margin-bottom: 15px;
}

.chat-message.ai {
    background: rgba(255,255,255,0.08);
}
.chat-message.user {
    background: white;
    color: black;

    margin-left: auto;
}

.chat-input {
    display: flex;

    gap: 10px;

    padding: 15px;
}

.chat-input input {
    flex: 1;

    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.06);

    color: white;

    outline: none;

    padding: 15px;

    border-radius: 18px;
}

.chat-input button {
    width: 50px;

    border: none;

    border-radius: 17px;

    background: white;

    color: black;

    font-size: 20px;

    cursor: pointer;
}


/* Телефон */

@media (max-width: 850px) {

    nav {
        display: none;
    }

    .hero {
        flex-direction: column;

        padding-top: 150px;

        gap: 60px;

        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;

        flex-wrap: wrap;
    }

    .ai-card {
        width: min(370px, 90vw);
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .about {
        flex-direction: column;

        gap: 50px;

        padding: 40px 25px;

        text-align: center;
    }

    .about p {
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        letter-spacing: -4px;
    }
}

@media (max-width: 500px) {

    .navbar {
        height: 60px;
    }

    .nav-button {
        padding: 9px 13px;
        font-size: 12px;
    }

    h1 {
        font-size: 58px;
    }

    .section {
        padding: 90px 6%;
    }

    .about {
        margin-left: 6%;
        margin-right: 6%;
    }

    .orb {
        width: 210px;
        height: 210px;
    }

}