/* ===== AI Conference — Smart Video Conferencing Page ===== */

:root {
    --ac-primary: #667eea;
    --ac-primary-dark: #764ba2;
    --ac-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ac-gradient-dark: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --ac-text-dark: #1a1a2e;
    --ac-text-muted: #666;
    --ac-bg-light: #f8f9fa;
    --ac-bg-card: #ffffff;
    --ac-radius: 12px;
    --ac-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --ac-shadow-hover: 0 8px 30px rgba(102,126,234,0.15);
}

body:has(.ac-top-anim) a[data-editable-href]:not(.btn-ac-w):not(.btn-ac-o):not(.ac-cta-contacts a) { text-decoration: none; color: inherit; }
body:has(.ac-top-anim) .ac-cta-contacts a { text-decoration: none; }

/* ===== TOP ANIMATION ===== */
.ac-top-anim { background: linear-gradient(135deg, #0f0a2a 0%, #1e1b4b 50%, #2e1065 100%); position: relative; overflow: hidden; width: 100%; }
.ac-top-anim canvas { width: 100%; height: 280px; display: block; }
@media(max-width:768px){ .ac-top-anim canvas { height: 220px; } }
@media(max-width:480px){ .ac-top-anim canvas { height: 180px; } }

/* ===== SECTIONS COMMON ===== */
.ac-section { padding: 22px 0; width: 100%; }
.ac-section-alt { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.ac-section-dark { background: var(--ac-gradient); color: white; }
.ac-section-accent { background: #f8f9fa; }
.ac-section-lavender { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }

.ac-badge { display: inline-block; background: rgba(102,126,234,0.08); color: var(--ac-primary); border-radius: 50px; padding: 2px 10px; font-size: 0.68rem; font-weight: 600; margin-bottom: 3px; letter-spacing: 0.3px; }
.ac-badge a { color: inherit; text-decoration: none; }
.ac-section-subtitle a { color: inherit; text-decoration: none; }
.ac-pipe-step a, .ac-dir-card a, .ac-feature-card a, .ac-eco-node a, .ac-faq-a a, .ac-faq-q a { color: inherit; text-decoration: none; }
.ac-pipe-step h5 a { color: var(--ac-text-dark); text-decoration: none; }
.ac-pipe-step p a { color: var(--ac-text-muted); text-decoration: none; }
.ac-dir-card h5 a { color: var(--ac-text-dark); text-decoration: none; }
.ac-dir-card p a { color: var(--ac-text-muted); text-decoration: none; }
.ac-dir-tag a { color: var(--ac-primary); text-decoration: none; }
.ac-feature-card h5 a { color: var(--ac-text-dark); text-decoration: none; }
.ac-feature-card p a { color: var(--ac-text-muted); text-decoration: none; }

.ac-section-dark .ac-badge { background: rgba(255,255,255,0.15); color: white; }
.ac-section-title { font-size: 1.35rem; font-weight: 700; color: var(--ac-text-dark); margin-bottom: 2px; text-align: center; }
.ac-section-title a { color: inherit; text-decoration: none; }
.ac-section-dark .ac-section-title { color: white; }
.ac-section-subtitle { font-size: 0.85rem; color: var(--ac-text-muted); text-align: center; max-width: 560px; margin: 0 auto 12px; line-height: 1.5; }
.ac-section-dark .ac-section-subtitle { color: rgba(255,255,255,0.85); }

/* ===== PIPELINE ===== */
.ac-pipeline { display: flex; align-items: stretch; gap: 0; max-width: 960px; margin: 0 auto; }
.ac-pipe-step { flex: 1; background: var(--ac-bg-card); border-radius: var(--ac-radius); padding: 16px 14px; text-align: center; box-shadow: var(--ac-shadow); }
.ac-pipe-num { width: 30px; height: 30px; border-radius: 50%; background: var(--ac-gradient); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; margin: 0 auto 10px; }
.ac-pipe-step h5 { font-size: 0.82rem; font-weight: 700; color: var(--ac-text-dark); margin-bottom: 3px; }
.ac-pipe-step p { font-size: 0.75rem; color: var(--ac-text-muted); margin: 0; line-height: 1.45; }
.ac-pipe-arrow { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--ac-primary); padding: 0 4px; flex-shrink: 0; opacity: 0.5; }

/* ===== DIRECTION CARDS ===== */
.ac-dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ac-dir-card {
    background: var(--ac-bg-card); border-radius: var(--ac-radius);
    padding: 16px 14px; box-shadow: var(--ac-shadow); border: 1px solid #e2e8f0;
    transition: all 0.3s ease, opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
    cursor: pointer; opacity: 0; transform: translateY(20px);
    position: relative; overflow: hidden;
}
.ac-dir-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--ac-gradient); transform: scaleX(0); transition: transform 0.3s ease; }
.ac-dir-card:hover { box-shadow: var(--ac-shadow-hover); }
.ac-dir-card:hover::after { transform: scaleX(1); }
.ac-dir-card.show { opacity: 1; transform: translateY(0); }
.ac-dir-card.show:hover { transform: translateY(-4px); }
.ac-dir-icon { width: 32px; height: 32px; border-radius: 8px; background: #f0edff; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: var(--ac-primary); margin-bottom: 6px; }
.ac-dir-card h5 { font-size: 0.82rem; font-weight: 700; color: var(--ac-text-dark); margin-bottom: 2px; }
.ac-dir-card p { font-size: 0.72rem; color: var(--ac-text-muted); margin: 0; line-height: 1.45; }
.ac-dir-tag { display: inline-block; font-size: 0.62rem; background: rgba(102,126,234,0.08); color: var(--ac-primary); padding: 2px 8px; border-radius: 4px; margin-top: 8px; font-weight: 600; }

/* ===== 3D DRUM ===== */
.ac-drum-layout { display: flex; align-items: center; gap: 50px; margin-top: 4px; padding: 0 10px; }
.ac-drum-scene {
    flex: 1; min-width: 0; max-width: 900px;
    height: 310px; perspective: 1200px;
    display: flex; align-items: center; justify-content: center;
    position: relative; background: #ffffff;
    border-radius: 20px; padding: 14px 16px;
}
.ac-drum {
    width: 260px; height: 280px; position: relative;
    transform-style: preserve-3d;
    transition: transform 1.4s cubic-bezier(.25,.1,.25,1);
}
.ac-drum-face {
    position: absolute; width: 260px; height: 280px;
    backface-visibility: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px; text-align: center; border-radius: 16px;
    background: linear-gradient(135deg, #6b50b0 0%, #4f3d96 100%);
    border: 1px solid rgba(102,126,234,.35);
    box-shadow: 0 0 25px rgba(102,126,234,.2), inset 0 0 20px rgba(102,126,234,.05);
}
.ac-drum-face .face-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(102,126,234,.25); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #c4b5fd; margin-bottom: 14px; }
.ac-drum-face .face-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ac-drum-face .face-tag { font-size: 0.78rem; font-weight: 600; background: rgba(102,126,234,.3); color: #c4b5fd; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.ac-drum-face .face-desc { font-size: 0.95rem; line-height: 1.45; color: rgba(255,255,255,.7); }

.ac-drum-nav { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; width: 170px; }
.ac-drum-nav button { border: 1px solid rgba(102,126,234,.3); background: #fff; color: #444; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 0.72rem; font-weight: 600; transition: all .25s ease; font-family: inherit; text-align: left; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ac-drum-nav button:hover, .ac-drum-nav button.active { background: rgba(102,126,234,.5); color: #fff; border-color: rgba(102,126,234,.6); }
.ac-drum-nav button.active { transform: scale(1.06); }

@media(max-width:600px){
    .ac-drum-scene { height: 310px; perspective: 900px; padding: 20px 10px; }
    .ac-drum, .ac-drum-face { width: 190px; height: 230px; }
    .ac-drum-face .face-title { font-size: .9rem; }
    .ac-drum-face .face-desc { font-size: .68rem; }
    .ac-drum-face .face-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .ac-drum-nav button { padding: 5px 9px; font-size: .65rem; }
}

/* ===== FEATURES ===== */
.ac-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ac-feature-card { background: var(--ac-bg-card); border-radius: var(--ac-radius); padding: 10px 12px; box-shadow: var(--ac-shadow); border: 1px solid #e2e8f0; transition: all 0.3s ease; }
.ac-feature-card:hover { transform: translateY(-4px); box-shadow: var(--ac-shadow-hover); }
.ac-feature-icon { width: 30px; height: 30px; border-radius: 8px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: var(--ac-text-dark); margin-bottom: 6px; }
.ac-feature-card h5 { font-size: 0.82rem; font-weight: 700; color: var(--ac-text-dark); margin-bottom: 2px; }
.ac-feature-card p { font-size: 0.72rem; color: var(--ac-text-muted); margin: 0; line-height: 1.45; }

/* ===== DEMO ===== */
.ac-demo-panel { display: none; border-radius: var(--ac-radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; }
.ac-demo-panel.active { display: block; }
.ac-demo-card { display: flex; align-items: stretch; }
.ac-demo-visual { flex: 0 0 70px; display: flex; align-items: center; justify-content: center; font-size: 2rem; position: relative; background: #f0edff; color: var(--ac-primary); }
.ac-demo-content { flex: 1; padding: 8px 12px; }
.ac-demo-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--ac-text-dark); margin-bottom: 5px; }
.ac-demo-content h4 i { color: var(--ac-primary); margin-right: 5px; }
.ac-demo-flow { margin-bottom: 6px; }
.ac-demo-flow-item { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 0.88rem; color: var(--ac-text-muted); }
.ac-demo-flow-item .num { width: 22px; height: 22px; border-radius: 50%; background: var(--ac-gradient); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; flex-shrink: 0; }
.ac-demo-flow-item .arrow { color: var(--ac-primary); font-size: 0.8rem; }
.ac-demo-result { background: #f8f9fa; border-radius: 6px; padding: 6px 10px; font-size: 0.85rem; color: var(--ac-text-muted); margin-top: 4px; line-height: 1.45; }
.ac-demo-result strong { color: var(--ac-text-dark); }
.ac-demo-result p { margin: 0; padding: 0; }
.ac-demo-result p:first-child { margin-top: 0; }
.ac-demo-result p:last-child { margin-bottom: 0; }
.ac-demo-result a { color: inherit; text-decoration: none; display: block; }
.ac-demo-flow p { margin: 0; padding: 0; }

/* ===== COMPARISON ===== */
body:has(.ac-top-anim) .table-responsive { overflow-x: auto !important; }
.ac-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--ac-radius); overflow: hidden; box-shadow: var(--ac-shadow); }
.ac-compare-table th, .ac-compare-table td { overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
.ac-compare-table th { padding: 12px 16px; font-size: 0.88rem; font-weight: 700; text-align: left; }
.ac-compare-table th:first-child { background: #f8fafc; color: var(--ac-text-muted); }
.ac-compare-table th:nth-child(2) { background: var(--ac-gradient); color: white; text-align: center; }
.ac-compare-table th:nth-child(3) { background: #f1f5f9; color: var(--ac-text-muted); text-align: center; }
.ac-compare-table td { padding: 10px 16px; font-size: 0.85rem; border-bottom: 1px solid #f1f5f9; }
.ac-compare-table td:first-child { font-weight: 600; color: var(--ac-text-dark); text-align: center; }
.ac-compare-table td:nth-child(2), .ac-compare-table td:nth-child(3) { text-align: center; }
.ac-yes { color: #22c55e; font-weight: 700; }
.ac-no { color: #ef4444; font-weight: 700; }
.ac-compare-table tr:last-child td { border-bottom: none; }

/* ===== ECOSYSTEM ===== */
.ac-eco-diagram { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.ac-eco-node { background: var(--ac-bg-card); border-radius: var(--ac-radius); padding: 12px 14px; box-shadow: var(--ac-shadow); text-align: center; border: 2px solid #e2e8f0; flex: 1 1 0; min-width: 140px; transition: all 0.3s; display: flex; flex-direction: column; justify-content: center; }
.ac-eco-node:hover { border-color: var(--ac-primary); box-shadow: var(--ac-shadow-hover); }
.ac-eco-node.active { border-color: var(--ac-primary); background: #f5f3ff; }
.ac-eco-node h6 { font-size: 0.78rem; font-weight: 700; color: var(--ac-text-dark); margin: 0 0 4px; }
.ac-eco-node p { font-size: 0.66rem; color: var(--ac-text-muted); margin: 0; line-height: 1.4; }
.ac-eco-arrow { color: var(--ac-primary); font-size: 1.1rem; opacity: 0.5; flex: 0 0 auto; align-self: center; }

@media (max-width: 768px) {
    .ac-eco-diagram { flex-direction: column; align-items: center; gap: 0; }
    .ac-eco-node { width: 100%; max-width: 340px; }
    .ac-eco-arrow { transform: rotate(90deg); padding: 0; line-height: 1; font-size: 0.9rem; }
}

/* ===== FAQ ===== */
.ac-faq-item { background: var(--ac-bg-card); border-radius: var(--ac-radius); margin-bottom: 8px; box-shadow: var(--ac-shadow); overflow: hidden; border: 1px solid #f1f5f9; }
.ac-faq-q { padding: 10px 14px; font-weight: 600; font-size: 0.82rem; color: var(--ac-text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.ac-faq-q:hover { background: #f8fafc; }
.ac-faq-q i { transition: transform 0.2s; color: var(--ac-primary); }
.ac-faq-q.open i { transform: rotate(180deg); }
.ac-faq-a { padding: 0 14px; max-height: 0; overflow: hidden; transition: all 0.3s ease; font-size: 0.78rem; color: var(--ac-text-muted); line-height: 1.5; }
.ac-faq-a.open { padding: 0 14px 10px; max-height: 200px; }

/* ===== CTA ===== */
.ac-cta { background: var(--ac-gradient); color: white; padding: 36px 0; text-align: center; }
.ac-cta h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.ac-cta h2 a, .ac-cta p a { color: white; text-decoration: none; }
.ac-cta p { font-size: 0.88rem; opacity: 0.9; margin-bottom: 16px; }
.ac-cta-contacts { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; font-size: 0.82rem; }
.ac-cta-contacts a { color: white; text-decoration: none; }
.ac-cta-contacts i { margin-right: 4px; }
.ac-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-ac-w { background: white; color: var(--ac-primary); padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: transform 0.2s; display: inline-block; }
.btn-ac-w:hover { transform: translateY(-2px); color: var(--ac-primary); }
.btn-ac-o { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; display: inline-block; }
.btn-ac-o:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-ac-w p, .btn-ac-o p, .btn-ac-w span, .btn-ac-o span { margin: 0; padding: 0; display: inline; background: none; border: none; }

/* ===== ADMIN BAR ===== */
.ac-admin-bar { background: #1e1b4b; color: white; text-align: center; padding: 8px; font-size: 0.8rem; opacity: 0.7; }

/* ===== DRUM RESPONSIVE ===== */
@media (max-width: 768px) {
    .ac-drum-layout { flex-direction: column-reverse; gap: 14px; }
    .ac-drum-nav { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .ac-drum-nav button { flex: 0 1 auto; padding: 5px 9px; font-size: 0.62rem; }
    .ac-drum-scene { width: 100%; max-width: 100%; height: 280px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .ac-dir-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-features-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-demo-card { flex-direction: column; }
    .ac-demo-visual { flex: 0 0 auto; min-height: 100px; }
}
@media (max-width: 768px) {
    .ac-dir-grid { grid-template-columns: 1fr; }
    .ac-features-grid { grid-template-columns: 1fr; }
    .ac-pipeline { flex-direction: column; }
    .ac-pipe-arrow { transform: rotate(90deg); padding: 4px 0; }
    .ac-section { padding: 18px 0; }
    .ac-section-title { font-size: 1.15rem; }
    .ac-compare-table { font-size: 0.78rem; min-width: 460px; }
    .ac-compare-table th, .ac-compare-table td { padding: 8px 10px; }
    .ac-compare-table th { font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .ac-eco-diagram { gap: 8px; }
    .ac-eco-node { min-width: 110px; padding: 10px 14px; }
}
