/**
 * Стили главной страницы Textolite (демо, CTA, карточки)
 */
.interface-demo {
    position: relative;
    margin: 60px auto;
    max-width: 1000px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1e1e1e;
}

.demo-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-buttons { display: flex; gap: 8px; }

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dot.red { background: #ff5f57; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green { background: #28ca42; }

.demo-title-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    margin-left: auto;
}

.console-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #d4d4d4;
    animation: vt-blink 1s infinite;
    margin-left: 2px;
    margin-top: 4px;
    vertical-align: top;
}

@keyframes vt-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.demo-content {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    min-height: 500px;
    background: #1e1e1e;
}

.demo-sidebar {
    background: #252527;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.demo-sidebar-item,
.demo-canvas-item,
.demo-panel-item {
    opacity: 0;
    transform: translateY(10px);
    animation: vt-fadeInUp 0.5s ease forwards;
}

.demo-canvas {
    padding: 30px;
    background: #1e1e1e;
    position: relative;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d4d4d4;
}

.demo-mode-btn { transition: all 0.3s ease; cursor: pointer; }
.demo-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--vt-theme-rgb), 0.3);
}
.demo-mode-btn.active {
    animation: vt-glow 2s ease-in-out infinite;
}

.demo-panel {
    background: #252527;
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

@keyframes vt-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(var(--vt-theme-rgb), 0.3); }
    50% { box-shadow: 0 0 20px rgba(var(--vt-theme-rgb), 0.6); }
}

.cta-section {
    background: linear-gradient(135deg, rgba(var(--vt-theme-rgb), 0.1), rgba(var(--vt-theme-rgb), 0.1));
    border-radius: 30px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 100px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--vt-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.format-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.format-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--vt-theme);
}

.format-list {
    list-style: none;
    font-size: 14px;
    color: var(--vt-gray);
    line-height: 1.8;
}

.format-list li { margin-bottom: 5px; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--vt-theme);
    box-shadow: 0 12px 32px rgba(var(--vt-theme-rgb), 0.2);
}

.download-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--vt-theme);
}

.download-card p {
    color: var(--vt-gray);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.download-card .btn { width: 100%; justify-content: center; margin-top: auto; }

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.instruction-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--vt-theme-rgb), 0.4);
}

/* Нумерация шагов — основной цвет (оранжевый), как на макете */
.instruction-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--vt-accent);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.instruction-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.instruction-desc {
    color: var(--vt-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.doc-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--vt-theme);
    box-shadow: 0 12px 32px rgba(var(--vt-theme-rgb), 0.2);
}

.doc-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--vt-theme);
}

.doc-card p {
    color: var(--vt-gray);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .demo-content { grid-template-columns: 1fr; }
    .demo-sidebar, .demo-panel { display: none; }
    .cta-section { padding: 40px 20px; }
    .cta-title { font-size: 36px; }
    .formats-grid,
    .download-grid,
    .instructions-grid,
    .docs-grid { grid-template-columns: 1fr; }
}
