/* Recalletta Homepage Cinema
   The Real Experience - based on actual usage patterns */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital@1&display=swap');

/* ========================================
   Hero Section
   ======================================== */

.home-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-quote {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-quote::before,
.hero-quote::after {
    content: '"';
    color: #f59e0b;
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Terminal Cinema
   ======================================== */

.terminal-section {
    padding: 2rem 0 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.terminal-section h2 {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.terminal {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #161b22;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #8b949e;
    font-size: 0.8rem;
    font-family: 'SF Mono', Monaco, 'Fira Code', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'SF Mono', Monaco, 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    min-height: 480px;
    max-height: 480px;
    overflow-y: auto;
    color: #c9d1d9;
    scroll-behavior: smooth;
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #161b22;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

/* ========================================
   Terminal Elements
   ======================================== */

.term-line {
    margin-bottom: 0.25rem;
}

.term-prompt { color: #58a6ff; }
.term-command { color: #f0f6fc; }
.term-muted { color: #6e7681; }
.term-success { color: #3fb950; }

/* Scene titles */
.scene-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #f59e0b;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #30363d;
    font-weight: 600;
}

/* Annotations - the narrator */
.scene-annotation {
    color: #8b949e;
    font-style: italic;
    font-size: 0.8rem;
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 2px solid #484f58;
}

/* User input */
.user-input {
    margin: 0.75rem 0;
    color: #c9d1d9;
}

.user-prompt {
    color: #3fb950;
    font-weight: 600;
}

/* Claude boxes */
.claude-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
}

.claude-box.generic {
    border-left: 3px solid #6e7681;
}

.claude-box.working {
    border-left: 3px solid #58a6ff;
}

.claude-box.aware {
    border-left: 3px solid #3fb950;
    background: linear-gradient(135deg, rgba(63, 185, 80, 0.08), transparent);
}

.claude-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8b949e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.claude-label .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #58a6ff;
}

.claude-box.aware .claude-label .dot {
    background: #3fb950;
    animation: pulse 2s infinite;
}

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

.claude-text {
    color: #c9d1d9;
    line-height: 1.6;
    font-size: 0.85rem;
}

.claude-text em {
    color: #6e7681;
    font-style: italic;
}

/* Code blocks */
.code-block {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre;
}

.code-comment { color: #8b949e; }
.code-keyword { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-number { color: #79c0ff; }

/* Briefing block */
.briefing-block {
    background: #161b22;
    border: 1px solid #30363d;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.briefing-header {
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.briefing-content {
    font-size: 0.8rem;
    color: #8b949e;
}

.briefing-content p {
    margin: 0.4rem 0;
}

.briefing-content strong {
    color: #c9d1d9;
}

/* KB tree */
.kb-tree {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.75rem 0;
    font-size: 0.8rem;
    white-space: pre;
    line-height: 1.5;
}

.kb-root {
    color: #f59e0b;
    font-weight: 600;
}

.kb-dir {
    color: #58a6ff;
}

.kb-file {
    color: #c9d1d9;
}

.kb-meta {
    color: #6e7681;
}

/* Search results */
.search-results {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.75rem 0;
}

.search-header {
    color: #8b949e;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.search-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #21262d;
}

.search-item:last-child {
    border-bottom: none;
}

.search-id {
    color: #6e7681;
    font-family: monospace;
}

.search-date {
    color: #8b949e;
    min-width: 50px;
}

.search-title {
    color: #c9d1d9;
}

/* Session preview */
.session-preview {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.75rem 0;
}

.session-header {
    color: #58a6ff;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #21262d;
}

.session-body {
    font-size: 0.8rem;
    color: #8b949e;
}

.session-body p {
    margin: 0.4rem 0;
}

.session-body strong {
    color: #c9d1d9;
}

/* Quote block - the sacred quote */
.quote-block {
    text-align: center;
    padding: 2rem 1rem;
    margin: 1rem 0;
}

.quote-text {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #f0f6fc;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.quote-text::before,
.quote-text::after {
    color: #f59e0b;
}

.quote-meta {
    color: #6e7681;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Small briefing block */
.briefing-block.small {
    padding: 0.75rem;
}

.briefing-block.small .briefing-content p {
    margin: 0.25rem 0;
}

/* Compact search results */
.search-results.compact {
    padding: 0.75rem;
}

.search-results.compact .search-item {
    padding: 0.3rem 0;
}

.search-item.dim {
    opacity: 0.5;
}

/* Compact session preview */
.session-preview.compact {
    padding: 0.75rem;
}

.session-preview.compact .session-body {
    font-size: 0.8rem;
}

/* Flow sequence - rapid fire demonstration */
.flow-sequence {
    padding: 0.5rem 0;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    opacity: 0;
    animation: flowIn 0.4s ease-out forwards;
}

.flow-item:nth-child(1) { animation-delay: 0s; }
.flow-item:nth-child(2) { animation-delay: 0.8s; }
.flow-item:nth-child(3) { animation-delay: 1.6s; }
.flow-item:nth-child(4) { animation-delay: 2.4s; }

@keyframes flowIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flow-cmd {
    color: #3fb950;
    font-weight: 500;
    min-width: 160px;
}

.flow-arrow {
    color: #6e7681;
}

.flow-result {
    color: #8b949e;
}

/* Tagline block - the finale */
.tagline-block {
    text-align: center;
    padding: 3rem 1rem;
}

.tagline-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
    letter-spacing: -0.02em;
    animation: taglineFade 1s ease-out;
}

@keyframes taglineFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Code in claude text */
.claude-text code {
    background: rgba(110, 118, 129, 0.2);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Animation */
.animate-in {
    animation: slideIn 0.3s ease-out;
}

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

/* ========================================
   How It Works
   ======================================== */

.how-section {
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
}

.how-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.how-item {
    text-align: center;
}

.how-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.how-item h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.how-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ========================================
   Features
   ======================================== */

.features-section {
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
}

.features-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-check {
    color: #3fb950;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Quick Start
   ======================================== */

.start-section {
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.start-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.start-section > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.install-cmd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: inline-block;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.install-cmd .prompt {
    color: var(--primary);
}

.start-links {
    margin-top: 1.5rem;
}

.start-links a {
    color: var(--text-muted);
    margin: 0 1rem;
    font-size: 0.9rem;
}

.start-links a:hover {
    color: var(--text);
}

/* ========================================
   Philosophy
   ======================================== */

.philosophy-section {
    padding: 4rem 1rem 3rem;
    border-top: 1px solid var(--border);
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.philosophy-section p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.philosophy-section p:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ========================================
   Log Blocks - Debugging Pattern
   ======================================== */

.log-block {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.log-header {
    background: #161b22;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8b949e;
    border-bottom: 1px solid #30363d;
}

.log-content {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    line-height: 1.8;
    white-space: pre;
}

.log-time { color: #6e7681; }
.log-info { color: #3fb950; }
.log-warn { color: #d29922; }
.log-meta { color: #f85149; font-style: italic; }

/* ========================================
   Machine Grid - Multi-platform Pattern
   ======================================== */

.machine-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0.5rem;
    flex-wrap: wrap;
}

.machine-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 120px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.machine-card.active {
    opacity: 1;
    border-color: #3fb950;
    box-shadow: 0 0 20px rgba(63, 185, 80, 0.15);
}

.machine-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.machine-name {
    color: #c9d1d9;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.machine-path {
    color: #6e7681;
    font-size: 0.65rem;
    font-family: 'SF Mono', Monaco, monospace;
}

.machine-arrow {
    color: #6e7681;
    font-size: 1.2rem;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; color: #3fb950; }
}

/* ========================================
   Montage Grid - Liberation Finale
   ======================================== */

.montage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
}

.montage-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    opacity: 0;
    animation: montageIn 0.5s ease-out forwards;
}

.montage-item:nth-child(1) { animation-delay: 0s; }
.montage-item:nth-child(2) { animation-delay: 0.3s; }
.montage-item:nth-child(3) { animation-delay: 0.6s; }
.montage-item:nth-child(4) { animation-delay: 0.9s; }

@keyframes montageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.montage-cmd {
    color: #3fb950;
    font-weight: 500;
    font-size: 0.8rem;
}

.montage-desc {
    color: #8b949e;
    font-size: 0.75rem;
}

/* ========================================
   Recall Briefing Block
   ======================================== */

.briefing-block.recall {
    border-left-color: #3fb950;
    background: linear-gradient(135deg, rgba(63, 185, 80, 0.08), transparent);
}

.briefing-block.recall .briefing-header {
    color: #3fb950;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .hero-quote {
        font-size: 1.5rem;
    }

    .terminal-body {
        font-size: 0.75rem;
        padding: 1rem;
        min-height: 400px;
        max-height: 400px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .scene-title {
        font-size: 0.7rem;
    }

    .claude-text,
    .briefing-content {
        font-size: 0.75rem;
    }

    .machine-grid {
        flex-direction: column;
    }

    .machine-arrow {
        transform: rotate(90deg);
    }

    .montage-grid {
        grid-template-columns: 1fr;
    }
}
