/* Логотип — компонент с квадратными буквами */
.logo-container {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-letter {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-letter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logo-letter.letter-q { background-color: #2A4D8E; }
.logo-letter.letter-y { background-color: #8B5CF6; }
.logo-letter.letter-r { background-color: #F59E0B; }
.logo-letter.letter-o { background-color: #EF4444; }

/* Вторая Q — зелёная (как в вашей палитре) */
.logo-letter:nth-child(3) { background-color: #0D9F6E; }

/* .space — сублейбл, как "место" */
.logo-sublabel {
    margin-left: 12px;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    position: relative;
    top: 1px;
    background: #ccc;
}

.logo-sublabel {
  color: #fff;
}

[data-theme="dark"] .logo-sublabel {
  color: #000;
}

.footer-social a {
    text-decoration: none;
}

/*
.logo-sublabel::before {
    content: '.';
    color: var(--gamedev-gray-400);
    font-weight: 600;
    margin-right: 2px;
}*/

/* На мобильных — уменьшаем */
@media (max-width: 768px) {
    .logo-container {
        gap: 1px;
    }
    
    .logo-letter {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .logo-sublabel {
        font-size: 10px;
        margin-left: 8px;
    }
}


/* Градиенты */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--gamedev-primary) 0%, var(--gamedev-primary-dark) 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--gamedev-gray-50) 0%, var(--gamedev-gray-100) 100%);
}

/* Карточки функций */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gamedev-shadow-lg) !important;
}

/* Карточки тарифов */
.card-pricing {
    transition: all 0.3s ease;
}

.card-pricing:hover {
    transform: scale(1.02);
}

/* Стили для иконок интеграций */
.integration-item {
    min-width: 150px;
    transition: all 0.2s ease;
}

.integration-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--gamedev-shadow) !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2rem; }
    .pricing-price { font-size: 2.5rem; }
    .row.g-4 { --bs-gutter-y: 1.5rem; }
}


    /* Дополнительные стили для главной страницы */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.mb-6 {
    margin-bottom: 4rem !important;
}

.mt-6 {
    margin-top: 4rem !important;
}

.bg-primary-light {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-success-light {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.bg-info-light {
    background-color: rgba(var(--bs-info-rgb), 0.1) !important;
}

.bg-accent {
    background-color: var(--gamedev-accent);
}

.card-feature {
    transition: all 0.3s ease;
    background-color: var(--gamedev-gray-100);
}

[data-theme="dark"] .card-feature {
    background-color: var(--gamedev-gray-700);
}

.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--gamedev-shadow-lg) !important;
}

.card-pricing {
    transition: all 0.3s ease;
}

.card-pricing:hover {
    transform: scale(1.02);
}

.node-preview {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.node-preview:nth-child(2n) {
    animation-delay: 1s;
}

.node-preview:nth-child(3n) {
    animation-delay: 2s;
}

.stats-number {
    font-family: var(--gamedev-font-mono);
}

.accordion-item {
    border-radius: var(--gamedev-border-radius-md) !important;
}

.hero-visual {
    perspective: 1000px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(var(--bs-primary-rgb), 0.1) 0%, transparent 70%);
    border-radius: var(--gamedev-border-radius-lg);
    z-index: -1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .py-6 { padding: 3rem 0 !important; }
    
    .display-3 { font-size: 2.5rem; }
    
    .pricing-price { font-size: 2rem; }
    
    .d-flex.flex-wrap { flex-direction: column !important; }
    
    .btn { width: 100% !important; margin-bottom: 0.5rem; }
    
    .me-3 { margin-right: 0 !important; }
    
    .hero-visual { margin-top: 2rem; }
}

.diagram-home {
    width: 100px;
    height: 100px;
}



/* Контейнер для нодового редактора */
.node-editor-container {
    height: 400px;
    background: linear-gradient(135deg, var(--gamedev-gray-50) 0%, var(--gamedev-gray-100) 100%);
    position: relative;
    border: 1px solid var(--gamedev-gray-300);
}

/* Сетка */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

/* Стили для нод */
.node-node {
    position: absolute;
    cursor: move;
    z-index: 10;
    box-shadow: var(--gamedev-shadow-sm);
    transition: all 0.3s ease;
    min-width: 120px;
    -webkit-user-select: none;
    user-select: none;
}

.node-node:hover {
    transform: scale(1.05);
    box-shadow: var(--gamedev-shadow-lg);
    z-index: 20;
}

/* Позиции нод */
.start-node {
    top: 20%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.dialogue-node {
    top: 15%;
    right: 25%;
    animation: float 4s ease-in-out infinite 0.5s;
}

.choice-node {
    top: 45%;
    right: 10%;
    animation: float 4s ease-in-out infinite 1s;
}

.action-node {
    bottom: 25%;
    left: 20%;
    animation: float 4s ease-in-out infinite 1.5s;
}

.ending-node {
    bottom: 5%;
    right: 20%;
    animation: float 4s ease-in-out infinite 2s;
}

/* Контактные точки (кружочки) */
.node-connector {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gamedev-primary);
    border: 2px solid white;
    z-index: 15;
    box-shadow: 0 0 0 2px var(--gamedev-primary);
    transition: all 0.2s ease;
}

.node-connector:hover {
    transform: scale(1.5);
    background: var(--gamedev-accent);
    box-shadow: 0 0 0 3px var(--gamedev-accent);
}

/* Позиции точек */
.input-connector {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.output-connector {
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
}

/* Анимация плавания */
@keyframes float {
    0%, 100% { 
        transform: translateY(10px) translateX(5px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-8px) translateX(-5px) rotate(6deg); 
    }
}

.node-node.dragging {
    animation: none !important;
}

/* SVG для соединений */
.connections-svg {
    z-index: 5;
}

/* Центральная иконка */
.diagram-center-node {
    animation: pulse 2s infinite;
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .node-editor-container {
        height: 300px;
    }
    
    .node-node {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .node-connector {
        width: 8px;
        height: 8px;
    }
    
    .input-connector { left: -4px; }
    .output-connector { right: -4px; }
    
    .start-node { top: 15%; left: 5%; }
    .dialogue-node { top: 10%; right: 15%; }
    .choice-node { top: 40%; right: 10%; }
    .action-node { bottom: 20%; left: 15%; }
    .ending-node { bottom: 10%; right: 20%; }
}

/* Активная линия */
.active-connection {
    stroke: var(--gamedev-success) !important;
    stroke-width: 3;
    stroke-dasharray: none;
}

/* Анимация активной линии */
.active-connection {
    animation: pulseLine 2s infinite;
}

@keyframes pulseLine {
    0%, 100% { stroke-width: 3; }
    50% { stroke-width: 4; }
}