:root {
    --primary: #6d57dc;
    --primary-hover: #5a45c7;
    --secondary: #a78bfa;
    --bg: #151114;
    --surface: #1e1a1d;
    --surface-light: #2a2529;
    --text: #ffffff;
    --text-muted: #b8b0b6;
    --accent-gradient: linear-gradient(135deg, #6d57dc 0%, #a78bfa 100%);
    --card-bg: #1e1a1d;
    --border-radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 16px 48px rgba(109, 87, 220, 0.18);
    --glow: 0 0 24px rgba(109, 87, 220, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(21, 17, 20, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(109, 87, 220, 0.35);
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--surface-light);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    background: radial-gradient(ellipse at 50% 0%, rgba(109, 87, 220, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 90%, rgba(167, 139, 250, 0.1) 0%, transparent 45%);
}

.hero-content {
    max-width: 720px;
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    margin-top: 64px;
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-visual img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--surface-light);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.characters {
    padding: 100px 0;
}

.character-section {
    margin-bottom: 72px;
}

.character-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.character-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--surface-light);
}

.character-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.character-media {
    aspect-ratio: 3 / 4;
    background: linear-gradient(180deg, #262229 0%, #151114 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.character-card:hover .character-media img {
    transform: scale(1.03);
}

.character-info {
    padding: 18px;
}

.character-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.character-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.character-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--surface-light);
    color: var(--secondary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.features {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(30, 26, 29, 0.6) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 28px;
    border: 1px solid var(--surface-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.gallery {
    padding: 100px 0;
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}

.gallery-row-reverse .gallery-image {
    order: 2;
}

.gallery-row-reverse .gallery-text {
    order: 1;
}

.gallery-image {
    width: 100%;
}

.gallery-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--surface-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-image-mobile {
    max-width: 340px;
    margin: 0 auto;
}

.gallery-text {
    width: 100%;
}

.gallery-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.gallery-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.pricing {
    padding: 100px 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(109, 87, 220, 0.12) 0%, transparent 60%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 32px;
    border: 1px solid var(--surface-light);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pricing-popular {
    border-color: var(--primary);
    box-shadow: var(--glow), var(--shadow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-card li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--surface-light);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid var(--surface-light);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: var(--surface-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--surface-light);
    background: var(--bg);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--surface-light);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-languages {
    display: flex;
    gap: 18px;
}

.footer-languages a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-languages a:hover {
    color: var(--primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

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

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

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

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }

    .character-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .gallery-row {
        grid-template-columns: 1fr;
    }

    .gallery-row-reverse .gallery-image,
    .gallery-row-reverse .gallery-text {
        order: 0;
    }
}
