:root {
    --bg-color: #0a0a1a;
    --card-color: #1a1a2e;
    --accent-color: #7c3aed;
    --accent-color-2: #ec4899;
    --text-color: #f3f4f6;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-logo: 'Space Grotesk', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

header, nav, footer { padding: 20px; max-width: 1200px; margin: 0 auto; }
main { padding: 0; max-width: 100%; margin: 0; }

header {
    background-color: var(--card-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    color: var(--accent-color);
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}
section {
    min-height: 400px;
    padding: 40px 20px;
    border-bottom: 1px solid #333;
}

#hero {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    border-radius: 0;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(2px);
}
.hero-glass-card {
    position: relative;
    z-index: 2;
    max-width: 850px;
    width: 90%;
    margin: 0 auto;
    padding: 50px 40px;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.hero-title {
    font-family: var(--font-logo);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}
.gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-2 {
    background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #e0d4f0;
    margin-bottom: 30px;
    opacity: 0.9;
}
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn-glass, .btn-liquid {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}
.btn-start {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-pricing {
    display: inline-block;
    background: transparent;
    border: 2px solid #7c3aed;
    color: #7c3aed;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-pricing:hover {
    background: #7c3aed;
    color: white;
}
.btn-premium {
    background: #7c3aed;
    color: white;
}
.btn-premium:hover {
    background: #6d28d9;
    transform: scale(1.05);
}

/* Кнопки годовых подписок */
.sub-btn {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 50px;
    padding: 8px 18px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
}
.sub-btn:hover {
    background: rgba(124, 58, 237, 0.5);
    border-color: #7c3aed;
    transform: translateY(-2px);
}
.sub-btn.btn-premium {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-color: transparent;
}
.sub-btn.btn-premium:hover {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.6);
}

/* Карточки персонажей */
.character-cards {
    display: grid;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}
.card {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover {
    transform: scale(1.03);
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.5);
}
.card h3 { margin-bottom: 15px; color: var(--accent-color); }
.card.kay-purr h3 { color: var(--accent-color-2); }
.character-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
}
.character-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.card:hover .character-video { transform: scale(1.02); }

@media (min-width: 1200px) {
    .character-cards { grid-template-columns: repeat(2, minmax(300px, 400px)); justify-content: center; }
}
@media (max-width: 1199px) and (min-width: 768px) {
    .character-cards { grid-template-columns: repeat(2, minmax(280px, 350px)); justify-content: center; }
}
@media (max-width: 767px) {
    .character-cards { grid-template-columns: 1fr; }
}

#features {
    background-image: url('images/Features.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-card {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #7c3aed;
}
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { color: #7c3aed; margin-bottom: 15px; }

#pricing { text-align: center; }
.pricing-subtitle { color: #b89ec9; margin-bottom: 40px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}
.pricing-card {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px 20px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pricing-card .btn-pricing { margin-top: auto; }
.pricing-card.popular {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(124, 58, 237, 0.8);
    transform: scale(1.02);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #7c3aed;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.price { font-size: 3rem; font-weight: bold; color: #ec4899; }
.pricing-features { list-style: none; margin: 25px 0; text-align: left; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.pricing-features li.disabled { color: #6b7280; text-decoration: line-through; }

/* Demo Chat */
#demo { text-align: center; }
.demo-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px;
}
.demo-characters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.demo-char-btn {
    background: rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(5px);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 6px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f3f4f6;
    font-weight: 600;
}
.demo-char-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.demo-char-btn.active {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-color: #ec4899;
}
.demo-chat {
    background: rgba(10, 10, 26, 0.6);
    border-radius: 16px;
    overflow: hidden;
}
.demo-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.demo-message {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
}
.demo-message.user {
    background: #7c3aed;
    color: white;
    align-self: flex-end;
    text-align: right;
}
.demo-message.character {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    align-self: flex-start;
}
.demo-input-area {
    display: flex;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
}
.demo-input {
    flex: 1;
    background: rgba(10, 10, 26, 0.8);
    border: none;
    padding: 15px;
    color: #f3f4f6;
    outline: none;
}
.demo-send-btn {
    background: #7c3aed;
    border: none;
    padding: 0 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.flashlight-text {
    color: #fff;
    cursor: default;
    position: relative;
    transition: mask-image 0.1s ease, -webkit-mask-image 0.1s ease;
    -webkit-mask-image: radial-gradient(circle 0px at 0px 0px, transparent 0%, transparent 100%);
    mask-image: radial-gradient(circle 0px at 0px 0px, transparent 0%, transparent 100%);
}
.flashlight-text.active {
    -webkit-mask-image: radial-gradient(circle 120px at var(--x) var(--y), rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(circle 120px at var(--x) var(--y), rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
}

footer {
    background-color: var(--card-color);
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #333;
    margin-top: 60px;
}
footer a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
section.in-viewport {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    section { text-align: center; padding: 40px 15px; }
    h1, h2, h3 { text-align: center; }
    .card, .feature-card, .pricing-card {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }
    .character-cards, .features-grid, .pricing-grid { justify-content: center; }
    .demo-container { width: 100%; max-width: 450px; }
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .logo { width: 100%; }
    nav ul { justify-content: center; flex-wrap: wrap; }
    footer div { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
    .hero-glass-card { width: 95%; padding: 40px 20px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    #characters, #features, #pricing, #demo { padding: 40px 15px; }
}

.card.daisy h3 { color: #ffd700; }
.card.daisy:hover { background: rgba(255, 215, 0, 0.15); }
.card.kay-purr h3 { color: #c0c0c0; }
.card.kay-purr:hover { background: rgba(192, 192, 192, 0.15); }
.card .description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

@media (max-width: 768px) {
    nav {
        position: relative;
        width: 100%;
    }
    nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: var(--card-color);
        padding: 15px;
        border-radius: 12px;
        margin-top: 10px;
    }
    nav ul.show { display: flex; }
    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: var(--text-color);
    }
}
@media (min-width: 769px) { .menu-toggle { display: none; } }

@media (max-width: 768px) {
    .flashlight-text {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
}

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, minmax(240px, 280px));
        justify-content: center;
    }
}
@media (max-width: 1199px) and (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(280px, 320px));
        justify-content: center;
    }
}
@media (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

.gift-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    flex: 1;
    height: 48px;
    box-sizing: border-box;
}
.gift-scroll::-webkit-scrollbar { height: 4px; }
.gift-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.gift-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 4px;
}
.gift-scroll::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

.crypto-pay-btn {
    background: linear-gradient(135deg, #f7931a, #ffd700) !important;
    color: #1a1a2e !important;
    border-color: #f7931a !important;
}
.crypto-pay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.5);
}