/* CSS for VA AI Academy - Demo Stand */

:root {
    --bg-dark: #07080d;
    --card-bg: rgba(16, 20, 35, 0.6);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-main: #f0f2f5;
    --text-dim: #9aa0a6;
    --primary: #8a2be2;      /* Purple */
    --accent: #00f2ff;       /* Cyan */
    --accent-glow: rgba(0, 242, 255, 0.15);
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --green: #00e676;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background glowing orbs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

body::before {
    top: 10%;
    left: -100px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
}

body::after {
    bottom: 10%;
    right: -100px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 70%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Demo Banner */
.demo-banner {
    background: linear-gradient(90deg, rgba(138,43,226,0.15) 0%, rgba(0,242,255,0.15) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.banner-content p {
    font-size: 0.9rem;
    color: #e0e6ed;
    flex-grow: 1;
}

.badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-banner {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-banner:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-back {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--text-dim);
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0 100px 0;
}

/* Hero Left */
.hero-tag {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #a052ff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 550px;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bullet {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
}

/* Card Wrapper with Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.simulator-card {
    min-height: 520px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Form state */
.form-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.form-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.input-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.15);
}

.input-prefix-wrapper {
    display: flex;
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

.input-prefix-wrapper input {
    width: 100%;
    padding-left: 32px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.3);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* Simulation state */
.hidden {
    display: none !important;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.sim-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sim-title-group h3 {
    font-family: var(--font-header);
    font-size: 1.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
}

.pulsing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 242, 255, 0); }
    100% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

.btn-restart {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-restart:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* Flow diagram styles */
.flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.flow-node {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
    transition: all 0.5s ease;
}

.flow-node.active {
    background: rgba(138, 43, 226, 0.05);
    border-color: rgba(138, 43, 226, 0.3);
}

.flow-node.success {
    background: rgba(0, 230, 118, 0.05);
    border-color: rgba(0, 230, 118, 0.3);
}

.flow-node.success .node-icon {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.node-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.flow-node.active .node-icon {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.node-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.node-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.flow-node.success .node-info p {
    color: var(--green);
}

/* Flow connector lines */
.flow-line {
    height: 18px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin-left: 36px;
    position: relative;
    overflow: hidden;
}

.flow-line.active {
    background: var(--primary);
}

.flow-line.success {
    background: var(--green);
}

.flow-particle {
    position: absolute;
    width: 2px;
    height: 8px;
    background: var(--accent);
    top: -8px;
    left: 0;
}

.flow-line.active .flow-particle {
    animation: flowDown 0.8s linear infinite;
}

@keyframes flowDown {
    0% { top: -8px; }
    100% { top: 18px; }
}

/* Telegram Mock Frame */
.telegram-mock {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #0f121d;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    margin-top: auto;
}

.tg-header {
    background: #171d2e;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.tg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #37a2e3, #2279b9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.tg-bot-info {
    display: flex;
    flex-direction: column;
}

.tg-bot-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.tg-bot-status {
    font-size: 0.7rem;
    color: #37a2e3;
}

.tg-chat-body {
    padding: 16px;
    min-height: 140px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Custom scrollbar */
}

.tg-chat-body::-webkit-scrollbar {
    width: 4px;
}
.tg-chat-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.tg-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 10px 10px 10px 2px;
    background: #1c2336;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: slideIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(8px);
}

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

.tg-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}

/* Typing bubble */
.tg-message.typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 60px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive adjust */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 60px;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .simulator-card {
        min-height: auto;
    }
}
