/* Live demo / pre-launch */
.prelaunch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d6e0ff;
}
.prelaunch-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.demo {
    max-width: 760px;
    margin: 100px auto;
    padding: 0 25px;
}
.demo-header { text-align: center; margin-bottom: 32px; }
.demo-header h2 { font-size: 36px; }
.demo-header h2 span { color: var(--accent); }
.demo-header p {
    margin: 12px auto 0;
    max-width: 520px;
    color: var(--text-muted);
}

.demo-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
}
.demo-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
}
.demo-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}
.demo-form button {
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 26px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.demo-form button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.25);
}
.demo-form button:disabled { opacity: 0.7; cursor: progress; }

.demo-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-muted);
    align-items: center;
}
.demo-example, .demo-chip {
    border: 1px solid var(--border-soft);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.demo-example:hover, .demo-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.demo-result { margin-top: 28px; min-height: 40px; }
.demo-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}
.demo-error { color: #b91c1c; }

.demo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 24px;
    animation: demoIn 0.3s ease;
}
@keyframes demoIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-banner {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}
.demo-banner-safe { background: #ecfdf5; color: #047857; }
.demo-banner-warn { background: #fffbeb; color: #b45309; }
.demo-banner-danger { background: #fef2f2; color: #b91c1c; }

.demo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.demo-token-img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--bg-main);
}
.demo-name { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.demo-sub { color: var(--text-muted); font-size: 14px; }

.demo-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 15px;
}
.demo-row:last-child { border-bottom: none; }
.demo-label { color: var(--text-muted); }
.demo-value { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.demo-section-title {
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.demo-perf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.demo-perf-cell {
    background: var(--bg-main);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.demo-perf-k { font-size: 12px; color: var(--text-muted); }
.demo-perf-v { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.up { color: #059669; }
.down { color: #dc2626; }

.demo-bar {
    height: 6px;
    border-radius: 999px;
    background: #fecaca;
    overflow: hidden;
    margin-top: 4px;
}
.demo-bar-fill { height: 100%; background: #34d399; }

.demo-ca {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 10px 12px;
    background: var(--bg-main);
    border-radius: 12px;
}
.demo-copy {
    border: none;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.demo-links { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.demo-link {
    flex: 1;
    text-align: center;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}
.demo-link:hover { border-color: var(--accent); color: var(--accent); }
.demo-link-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-link-primary:hover { color: #fff; box-shadow: 0 8px 20px rgba(0, 82, 255, 0.25); }

.demo-alt {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.demo-note {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .demo { margin: 60px auto; }
    .demo-header h2 { font-size: 28px; }
    .demo-form { flex-direction: column; }
    .demo-form button { width: 100%; }
    .demo-perf { grid-template-columns: repeat(2, 1fr); }
}

/* animated UI previews in the feature cards (transparent GIF/WebP) */
.feature-image.feature-ui {
    width: 230px;
    margin-top: -140px;
    margin-bottom: 6px;
    filter: none;
}

/* closing call to action (replaces pricing) */
.cta {
    max-width: 700px;
    margin: 100px auto 0;
    padding: 0 25px;
    text-align: center;
}
.cta h2 { font-size: 36px; }
.cta h2 span { color: var(--accent); }
.cta p { margin: 12px auto 28px; color: var(--text-muted); max-width: 480px; }
.cta .hero-buttons { justify-content: center; }
@media (max-width: 600px) { .cta h2 { font-size: 28px; } }

/* smooth hand-over between two results */
.demo-result { transition: opacity 0.25s ease; }
.demo-result.is-loading .demo-card { opacity: 0.45; transform: scale(0.995); }
.demo-card { transition: opacity 0.25s ease, transform 0.25s ease; }

/* mockup recordings: same 1537x1260 frame as the old images, wrapped in <picture> */
.image-wrapper { aspect-ratio: 878 / 720; min-height: 0; }
.mockup-img { left: 0; }

/* phone grows out of the bottom edge of the card instead of floating inside it */
.preview { overflow: hidden; }
.mockup-container { align-self: end; margin-bottom: -40px; }
.mockup-img { filter: none; }

/* bot status section (replaces the old call to action) */
.status { max-width: 760px; margin: 110px auto 0; padding: 0 25px; }
.status-header { text-align: center; margin-bottom: 36px; }
.status-header h2 { font-size: 36px; }
.status-header h2 span { color: var(--accent); }
.status-header p { margin: 12px auto 0; max-width: 480px; color: var(--text-muted); }
.status-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    padding: 8px 30px;
}
.status-row {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-soft);
}
.status-row:last-child { border-bottom: none; }
.status-info h3 { font-size: 17px; }
.status-info p { margin-top: 3px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.status-dot.live { background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: statusPulse 2s infinite; }
.status-dot.soon { background: #f59e0b; }
@keyframes statusPulse { 70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.status-pill {
    font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    background: #f1f5f9; color: #64748b;
}
.status-pill.live { background: #ecfdf5; color: #047857; }
.status-pill.soon { background: #fffbeb; color: #b45309; }
.status-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
@media (max-width: 600px) {
    .status { margin-top: 70px; }
    .status-header h2 { font-size: 28px; }
    .status-card { padding: 4px 20px; }
    .status-row { grid-template-columns: 14px 1fr; }
    .status-pill { grid-column: 2; justify-self: start; }
}

/* status groups */
.status-group {
    padding: 22px 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.status-group:not(:first-child) { margin-top: 14px; }
.status-dot.test { background: var(--accent); }
.status-pill.test { background: #eef2ff; color: var(--accent); }
.status-info h3 code { font-size: 0.8em; margin-left: 4px; vertical-align: 1px; }

/* launch: actions inside the status card + links that are not configured yet */
.status-right { display: flex; align-items: center; gap: 10px; }
.status-action {
    font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
    background: var(--accent); color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.status-action:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,82,255,.25); }
.is-disabled { opacity: .45; pointer-events: none; cursor: default; box-shadow: none !important; }
@media (max-width: 600px) { .status-right { grid-column: 2; justify-self: start; } }

.mockup-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); text-align: center; max-width: 360px; }
.mockup-note code { font-size: 0.9em; }
