/* ==========================================================
   Linecraft AI - Rishi Product Page
   Page-specific styles only. Shared nav/footer/modal/typography
   and product-hero/module-explorer primitives live in css/base.css.
   File: css/rishi.css
   ========================================================== */

.editorial-accent {
    font-family: var(--font-editorial);
    font-weight: 400;
    font-style: italic;
    letter-spacing: normal;
    display: inline-block;
    color: #171166;
}

/* ==========================================================
   Interactive Rishi Terminal Demo
   ========================================================== */
.rishi-terminal-stage {
    margin-top: 56px;
    padding-bottom: 100px;
}

.rishi-interactive-container {
    display: grid;
    grid-template-columns: 64px 1fr;
    min-height: 540px;
    background: #090c14;
    border: 1px solid #1f2538;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(5, 0, 64, 0.25);
}

.rishi-bot-sidebar {
    background: #0d1119;
    border-right: 1px solid #1f2538;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.r-sidebar-top,
.r-sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.r-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.r-icon-btn {
    background: none;
    border: none;
    color: #64748b;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
}

.r-icon-btn:hover {
    background: #1f2538;
    color: #f8fafc;
}

.rishi-bot-main {
    display: flex;
    flex-direction: column;
    padding: 32px;
    min-height: 540px;
}

.rishi-home-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    gap: 28px;
}

.rishi-greeting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rishi-glow-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.rishi-glow-logo img {
    width: 28px;
    height: 28px;
}

.rishi-greeting h3 {
    color: #f8fafc;
    font-size: 1.3rem;
}

.rishi-greeting p {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 420px;
}

.rishi-input-box {
    width: 100%;
    max-width: 640px;
    background: #121724;
    border: 1px solid #1f2538;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rishi-input-box input {
    background: none;
    border: none;
    color: #f8fafc;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.rishi-input-box input::placeholder {
    color: #64748b;
}

.rishi-input-hint {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #475569;
    text-align: right;
}

.rishi-presets-grid {
    width: 100%;
    max-width: 640px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.r-preset-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.r-preset-header {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #c084fc;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.r-preset-btn {
    background: #121724;
    border: 1px solid #1f2538;
    border-radius: 8px;
    padding: 10px 12px;
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.r-preset-btn:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.rishi-chat-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    max-height: 460px;
}

.r-chat-history {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 4px;
}

.r-bubble {
    max-width: 82%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.6;
}

.r-bubble.user {
    align-self: flex-end;
    background: var(--accent-blue);
    color: #ffffff;
}

.r-bubble.ai {
    align-self: flex-start;
    background: #121724;
    border: 1px solid #1f2538;
    color: #cbd5e1;
}

.r-bubble.ai .ai-title img {
    height: 16px;
    margin-bottom: 8px;
}

.r-bubble strong {
    color: #ffffff;
}

.r-waitlist-btn {
    display: inline-block;
    margin-top: 12px;
    background: var(--accent-purple);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

@keyframes pulseFade {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ==========================================================
   Benchmark Table
   ========================================================== */
.benchmark-section {
    padding: 100px 0;
    background: var(--bg-canvas);
    border-top: 1px solid var(--border-subtle);
}

.benchmark-table-card {
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-figma-card);
    overflow-x: auto;
}

.benchmark-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.benchmark-table th {
    text-align: left;
    padding: 16px 24px;
    background: var(--bg-surface-elevated);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    border-bottom: 1px solid var(--border-standard);
}

.benchmark-table th.col-rishi {
    color: var(--accent-blue);
}

.benchmark-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--ink-standard);
    vertical-align: top;
}

.benchmark-table tr:last-child td {
    border-bottom: none;
}

.benchmark-table td.col-rishi {
    background: #f5f8ff;
    color: var(--ink-heavy);
    font-weight: 500;
}

.benchmark-table td.col-generic {
    color: var(--ink-muted);
}

.benchmark-table strong {
    color: var(--ink-heavy);
}

/* ==========================================================
   Responsive Adaptations
   ========================================================== */
@media (max-width: 992px) {
    .rishi-presets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rishi-interactive-container {
        grid-template-columns: 1fr;
    }

    .rishi-bot-sidebar {
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #1f2538;
        padding: 12px 20px;
    }
}
