/* ==========================================================================
   Omnitral — tıklanabilir ürün önizlemesi
   Siyah zemin, neon beyaz; pencere içi üç sütun (alanlar · ajan · dosyalar).
   ========================================================================== */

.demo-page {
    background: #000;
}

.demo-header {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(1200px, calc(100% - 24px));
    height: 54px;
    margin: 12px auto 0;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035) 46%, rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 18px 50px rgba(0, 0, 0, 0.55);
}

.demo-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(14px);
    border-radius: 999px;
    padding: 4px 11px;
}

.demo-header-links {
    margin-left: auto;
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #9a9a9a;
}

.demo-header-links a:hover {
    color: #fff;
}

/* ---------- Sahne ---------- */

.demo-wrap {
    padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 28px) 40px;
}

.demo-stage {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    max-width: 1500px;
    margin-inline: auto;
}

/* Sol senaryo listesi */

.feature-list {
    display: grid;
    gap: 2px;
    position: sticky;
    top: 84px;
}

.feature {
    display: grid;
    gap: 3px;
    text-align: left;
    padding: 11px 12px 11px 14px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: #8f8f8f;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.feature small {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: #9a9a9a;
}

.feature:hover {
    color: #d6d6d6;
    background: rgba(255, 255, 255, 0.03);
}

.feature.is-active {
    color: #fff;
    border-left-color: #fff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 80%);
}

.feature.is-active small {
    color: #9a9a9a;
}

/* ---------- Pencere ---------- */

.window {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #0a0a0a;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
}

.win-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c0c0c;
}

.win-dots {
    display: flex;
    gap: 7px;
    padding-right: 4px;
}

.win-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
    opacity: 0.75;
}

.d-red { background: #ff5f57; }
.d-yellow { background: #febc2e; }
.d-green { background: #28c840; }

.win-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.win-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8a8a8a;
    font-family: var(--font-mono);
    font-size: 11.5px;
    cursor: pointer;
    white-space: nowrap;
}

.win-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
}

.win-tab.is-active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.agent-ico {
    font-size: 11px;
    opacity: 0.85;
}

.win-tab-add {
    width: 26px;
    justify-content: center;
    color: #9a9a9a;
}

.win-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.run-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #e6e6e6;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
}

.run-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.run-btn[disabled] {
    opacity: 0.55;
    cursor: progress;
}

.run-ico {
    font-size: 8px;
}

.pr-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8f8f8f;
}

/* Gövde: 3 sütun */

.win-body {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr) 300px;
    flex: 1;
    min-height: 0;
}

/* Sol: çalışma alanları */

.ws-side {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
    padding: 10px 8px;
    overflow: auto;
    min-height: 0;
}

.ws-links {
    display: grid;
    gap: 1px;
    padding-bottom: 10px;
}

.ws-link {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #a2a2a2;
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
}

.ws-link span {
    font-size: 11px;
    opacity: 0.6;
}

.ws-link:hover,
.ws-link.is-active {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.ws-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px 5px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: #9a9a9a;
}

.ws-group .count {
    color: #8a8a8a;
}

.ws-list,
.ws-muted {
    display: grid;
    gap: 1px;
}

.ws-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #b9b9b9;
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

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

.ws-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ws-item--muted {
    color: #8a8a8a;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a4a4a;
    justify-self: center;
}

.dot.is-running {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    animation: pulse 1.4s ease-in-out infinite;
}

.dot.is-done {
    background: #7a7a7a;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.ws-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-state {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: #9a9a9a;
}

.ws-diff {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #9a9a9a;
    white-space: nowrap;
}

.ws-diff b {
    color: #dcdcdc;
    font-weight: 500;
}

.ws-diff em {
    color: #9a9a9a;
    font-style: normal;
}

/* Orta: sahne */

.pane-main {
    padding: 18px 20px;
    overflow: auto;
    min-height: 0;
}

.scene[hidden] {
    display: none;
}

.agent-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.agent-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #111;
    font-size: 14px;
    color: #fff;
}

.agent-title {
    font-size: 13px;
    color: #fff;
}

.agent-title .ver {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #8a8a8a;
    margin-left: 6px;
}

.agent-sub {
    font-size: 11.5px;
    color: #9a9a9a;
    margin-top: 2px;
}

.agent-path {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #9a9a9a;
    margin-top: 3px;
}

.crumb {
    margin: 18px 0 14px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #b0b0b0;
}

.crumb .chev {
    color: #9a9a9a;
    margin-right: 4px;
}

.block {
    display: grid;
    gap: 4px;
}

.block-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: #9a9a9a;
}

.block-value {
    font-size: 11.5px;
    color: #9a9a9a;
    margin-bottom: 6px;
}

.server-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #d6d6d6;
}

.server-idx {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #9a9a9a;
}

.server-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #cfcfcf;
}

.server-state .ok {
    color: #fff;
}

.config-line {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #9a9a9a;
}

.config-line code {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 1px 6px;
    color: #cfcfcf;
}

.log {
    margin-top: auto;
    padding-top: 22px;
    display: grid;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.log-line {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #9a9a9a;
}

.log-time {
    color: #9a9a9a;
    margin-right: 6px;
}

/* Otomasyon sahnesi */

.scene-title {
    font-size: 15px;
    color: #fff;
    margin-bottom: 14px;
}

.auto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.auto-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    color: #9a9a9a;
    font-weight: 500;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auto-table td {
    padding: 10px 6px;
    color: #b4b4b4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 2px 8px;
    color: #9a9a9a;
}

.pill.is-running {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.pill.is-ok {
    color: #cfcfcf;
}

/* Uzaktan erişim */

.device-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    background: #070707;
    display: grid;
    gap: 10px;
}

.device-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.device-name {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #fff;
}

.device-specs {
    font-size: 11.5px;
    color: #9a9a9a;
}

.code-block {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.7;
    color: #b8b8b8;
    overflow: auto;
}

.ghost-btn {
    justify-self: start;
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #dcdcdc;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.32);
}

/* Değişiklik sahnesi */

.diff-sum {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #9a9a9a;
    margin-bottom: 12px;
}

.diff-sum em {
    color: #9a9a9a;
    font-style: normal;
}

.branch {
    color: #cfcfcf;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #cfcfcf;
    border: 1px solid transparent;
}

.file-row.is-open {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.file-row.is-child {
    padding-left: 28px;
    color: #9a9a9a;
}

.f-ico {
    color: #9a9a9a;
    font-size: 10px;
    width: 10px;
}

.f-diff,
.file-row .f-diff {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #9a9a9a;
}

.f-diff b,
.tree-row b {
    color: #e2e2e2;
    font-weight: 500;
}

.f-diff em,
.tree-row em {
    color: #9a9a9a;
    font-style: normal;
}

/* Sağ: dosyalar */

.pane-files {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
    padding: 10px;
    overflow: auto;
    min-height: 0;
}

.files-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.ftab {
    height: 26px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #8a8a8a;
    font-family: var(--font-mono);
    font-size: 10.5px;
    cursor: pointer;
}

.ftab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
}

.ftab.is-active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.files-sum {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #9a9a9a;
    margin-bottom: 12px;
}

.files-sum em {
    color: #9a9a9a;
    font-style: normal;
}

.tree {
    display: grid;
    gap: 1px;
}

.tree[hidden],
.files-tabs [hidden] {
    display: none;
}

.tree-group {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.12em;
    color: #9a9a9a;
    padding: 12px 6px 4px;
}

.tree-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #b4b4b4;
    font-family: inherit;
    font-size: 11.5px;
    text-align: left;
    cursor: pointer;
}

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

.tree-row b,
.tree-row em {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.change-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.change-head {
    display: flex;
    justify-content: space-between;
    padding: 7px 9px;
    font-size: 11px;
    color: #d6d6d6;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.change-head b {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: #e2e2e2;
}

.review-box {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.review-line {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #9a9a9a;
}

.review-line span:last-child {
    color: #e2e2e2;
    font-family: var(--font-mono);
    font-size: 10.5px;
}

/* Alt komut satırı */

.win-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0b0b;
}

.prompt {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #9a9a9a;
}

.win-foot input {
    flex: 1;
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11.5px;
    outline: none;
}

.win-foot input::placeholder {
    color: #9a9a9a;
}

.mic {
    font-size: 11px;
    color: #9a9a9a;
}

/* Toast */

.toast {
    position: absolute;
    right: 14px;
    bottom: 54px;
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: #0d0d0d;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    padding: 12px;
    z-index: 5;
}

.toast[hidden] {
    display: none;
}

.toast-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #9a9a9a;
    margin-bottom: 6px;
}

.toast-agent {
    color: #fff;
}

.toast-body {
    font-size: 12.5px;
    color: #e6e6e6;
    margin-bottom: 10px;
}

.toast-foot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-stat {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #8a8a8a;
    margin-right: auto;
}

.toast-stat b {
    color: #e2e2e2;
    font-weight: 500;
}

.toast-stat em {
    color: #9a9a9a;
    font-style: normal;
}

.toast-btn {
    height: 24px;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #fff;
    color: #000;
    font-family: var(--font-mono);
    font-size: 10px;
    cursor: pointer;
}

.toast-close {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #8a8a8a;
    font-size: 14px;
    cursor: pointer;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.demo-note {
    max-width: 1500px;
    margin: 18px auto 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.7;
    letter-spacing: 0.04em;
    color: #9a9a9a;
}

.demo-note strong {
    color: #cfcfcf;
    font-weight: 500;
}

/* ---------- Duyarlı ---------- */

@media (max-width: 1240px) {
    .win-body {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .pane-files {
        display: none;
    }
}

@media (max-width: 980px) {
    .demo-stage {
        grid-template-columns: 1fr;
    }

    .feature-list {
        position: static;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .feature {
        border-left: 0;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        padding: 8px 10px;
    }

    .feature.is-active {
        border-left-color: transparent;
        border-bottom-color: #fff;
        background: transparent;
    }

    .feature small {
        display: none;
    }

    .win-body {
        grid-template-columns: 1fr;
    }

    .ws-side {
        display: none;
    }

    .window {
        min-height: 520px;
    }
}

@media (max-width: 620px) {
    .demo-header {
        gap: 10px;
    }

    .demo-badge {
        display: none;
    }

    .win-tabs .win-tab:nth-child(n + 3) {
        display: none;
    }

    .pr-chip {
        display: none;
    }

    .toast {
        left: 10px;
        right: 10px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dot.is-running {
        animation: none;
    }
}

/* Görev listesi */
.tasks {
    margin-top: 18px;
    gap: 2px;
}

.task-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #b4b4b4;
    padding: 4px 0;
}

.task-check {
    color: #fff;
    font-size: 10px;
}

.task-check.is-wait {
    color: #9a9a9a;
}

.task-time {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: #9a9a9a;
}

/* Gömülü mod (ana sayfa iframe) */
body.embed .demo-header {
    display: none;
}

body.embed {
    background: #000;
}
/* Gömülü mod: iç boşlukları sıfırla, geri bağlantısını ve notları gizle */
body.embed .demo-wrap,
body.embed .agents-main {
    padding-top: 0;
}

body.embed .agents-copy .btn,
body.embed .mob-note,
body.embed .demo-note {
    display: none;
}

body.embed .mob-hero {
    padding-top: 4px;
}


/* ---------- Gerçek marka logoları ---------- */
.win-tab img.agent-ico,
.win-tab .agent-ico--text {
    width: 13px;
    height: 13px;
    display: inline-block;
    object-fit: contain;
    vertical-align: -2px;
    opacity: 0.9;
}

.agent-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
