* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-1: #050c1f;
    --bg-2: #0f1f3c;
    --bg-3: #0b1428;
    --panel: #0f1b30;
    --panel-soft: #12253f;
    --border: rgba(255, 255, 255, 0.08);
    --card-highlight: rgba(255, 255, 255, 0.04);
    --text-main: #e9f1ff;
    --text-muted: #9ab1d1;
    --accent: #f3c866;
    --accent-2: #6ce4d6;
    --accent-3: #4da3ff;
    --danger: #ff7b8a;
    --success: #6de7b4;
    --shadow-strong: 0 24px 55px rgba(5, 12, 31, 0.55);
    --shadow-soft: 0 10px 30px rgba(9, 17, 35, 0.35);
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --font-sans: 'Manrope', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Iowan Old Style', 'Georgia', serif;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at 10% 10%, rgba(76, 163, 255, 0.12), transparent 24%),
        radial-gradient(circle at 90% 20%, rgba(243, 200, 102, 0.15), transparent 26%),
        radial-gradient(circle at 70% 80%, rgba(108, 228, 214, 0.12), transparent 30%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2));
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    position: relative;
    z-index: 1;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
}

.primary-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease, margin 0.5s ease;
    max-height: 1000px; /* Arbitrary large height */
    opacity: 1;
}

.primary-hero.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.primary-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(243, 200, 102, 0.12), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(108, 228, 214, 0.12), transparent 40%);
    opacity: 0.8;
}

.primary-hero > * {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent-2);
    margin-bottom: 8px;
}

.primary-hero h1 {
    font-size: 2.9rem;
    margin-bottom: 12px;
    color: #fdf5e3;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 760px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 6px;
}

.hero-highlights span {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--card-highlight);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.92rem;
}

.hero-kjv-callout {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.soft-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(243, 200, 102, 0.18), rgba(108, 228, 214, 0.14));
    color: var(--text-main);
    border: 1px solid rgba(243, 200, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.coffee-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3c866, #f29d42);
    border: 1px solid rgba(0, 0, 0, 0.25);
    color: #0b1020;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    min-width: 260px;
    justify-content: flex-start;
}

.coffee-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.coffee-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.coffee-copy strong {
    font-size: 1rem;
}

.coffee-copy small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cta-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(243, 200, 102, 0.16);
    color: var(--text-main);
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(243, 200, 102, 0.4);
}

.coffee-steam {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.coffee-inline .cta-icon {
    background: rgba(0, 0, 0, 0.08);
    color: #0b1020;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.coffee-inline .coffee-copy strong { color: #0b1020; }
.coffee-inline .coffee-copy small { color: rgba(11, 16, 32, 0.8); }

.bible-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.coffee-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    color: #0b1020;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    width: fit-content;
    margin-bottom: 4px;
}

.hero-kjv-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.search-focus {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(17, 28, 51, 0.85));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.search-card {
    position: relative;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(9, 15, 29, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.search-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.8;
}

.search-card.is-streaming .search-visual {
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(243, 200, 102, 0.18));
}

.search-orbit, .search-grid {
    position: absolute;
    right: -20px;
    top: -40px;
    width: 260px;
    height: 260px;
    filter: drop-shadow(0 0 18px rgba(243, 200, 102, 0.08));
}

.search-grid {
    right: -10px;
    top: 140px;
    width: 320px;
    height: 120px;
    opacity: 0.65;
}

.orbit {
    fill: none;
    stroke-width: 1.2;
    stroke: rgba(108, 228, 214, 0.35);
    animation: orbitPulse 8s ease-in-out infinite;
}

.orbit-two { animation-duration: 10s; }
.orbit-three { animation-duration: 12s; }

.orbit-path {
    fill: none;
    stroke: rgba(243, 200, 102, 0.45);
    stroke-dasharray: 120 460;
    stroke-linecap: round;
    animation: dash 5s linear infinite;
}

.orbit-node {
    fill: var(--accent);
    opacity: 0.8;
    animation: floatNode 4s ease-in-out infinite;
}

.orbit-node.bright {
    fill: var(--accent-2);
    filter: drop-shadow(0 0 12px rgba(108, 228, 214, 0.55));
}

.search-grid .grid-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-dasharray: 6 8;
    animation: dash 6s linear infinite;
}

.search-grid .grid-line.delayed {
    stroke: rgba(108, 228, 214, 0.3);
    animation-duration: 7.5s;
    animation-delay: 0.8s;
}

.tool-switcher {
    display: inline-flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tool-button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tool-button.is-active {
    background: rgba(243, 200, 102, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 200, 102, 0.15);
    border: 1px solid rgba(243, 200, 102, 0.3);
}

.search-card h2 {
    font-size: 2.2rem;
    margin: 8px 0 12px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.search-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.stream-meter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 4px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(108, 228, 214, 0.08);
    border: 1px solid rgba(108, 228, 214, 0.35);
    box-shadow: 0 10px 22px rgba(8, 20, 35, 0.3);
}

.stream-meter.is-live {
    background: rgba(243, 200, 102, 0.12);
    border-color: rgba(243, 200, 102, 0.45);
}

.stream-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(108, 228, 214, 0.45);
    animation: pulseDot 2s infinite;
}

.stream-meter.is-live .stream-dot {
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(243, 200, 102, 0.4);
}

.stream-copy strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
}

.stream-copy small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-section {
    margin-top: 12px;
}

.search-box {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(12px);
}

.search-card.is-focused .search-box,
.search-card.is-streaming .search-box,
.search-box:focus-within {
    background: rgba(20, 35, 60, 0.8);
    border-color: var(--accent);
    box-shadow: 0 12px 48px rgba(243, 200, 102, 0.2), 0 0 0 2px rgba(243, 200, 102, 0.1);
    transform: translateY(-2px);
}

#questionInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 4px 0;
    outline: none;
    min-width: 0;
    font-weight: 500;
    line-height: 1.5;
    resize: none;
    overflow-y: hidden;
}

#questionInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#askButton {
    border: none;
    border-radius: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f3c866, #f29d42);
    color: #0b1020;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    min-width: 140px;
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(243, 200, 102, 0.3);
}

#askButton:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(243, 200, 102, 0.4);
    filter: brightness(1.1);
}
#askButton:disabled { opacity: 0.7; cursor: not-allowed; }

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(11, 16, 32, 0.4);
    border-top-color: #0b1020;
    animation: spin 0.9s linear infinite;
}

.form-hint, .prompt-label {
    text-align: center;
    color: var(--text-muted);
    margin-top: 8px;
}

.question-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.question-pill {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.question-pill:hover,
.question-pill:focus-visible {
    background: rgba(243, 200, 102, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.focus-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    flex-wrap: wrap;
}

.focus-card, .status-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.focus-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.focus-description { color: var(--text-muted); margin-top: 6px; }

.mode-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mode-button {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.mode-button.is-active {
    background: rgba(243, 200, 102, 0.16);
    border-color: rgba(243, 200, 102, 0.45);
    transform: translateY(-1px);
}

.status-card {
    display: grid;
    gap: 4px;
}

.status-label { color: var(--text-muted); font-size: 0.9rem; }
.status-value {
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.status-value.is-healthy { background: rgba(109, 231, 180, 0.18); color: #d5ffe7; border: 1px solid rgba(109, 231, 180, 0.45); }
.status-value.is-warning { background: rgba(255, 123, 138, 0.12); color: #ffd6dd; border: 1px solid rgba(255, 123, 138, 0.4); }
.status-note { color: var(--text-muted); font-size: 0.9rem; }

.answer-lab .response-wrapper { display: flex; flex-direction: column; gap: 18px; }

.response-section {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 18px;
}

.response-section.is-hidden { display: none; }

.response-card, .passages-card, .error-card {
    background: var(--panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.response-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.response-heading h2 { margin: 0; color: #fdf5e3; }

.mode-pill {
    background: rgba(243, 200, 102, 0.12);
    border: 1px solid rgba(243, 200, 102, 0.35);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.answer-text { color: var(--text-main); line-height: 1.75; font-size: 1.02rem; }
.answer-text p { margin-bottom: 12px; }
.answer-text ul, .answer-text ol { padding-left: 22px; margin-bottom: 12px; }
.answer-text a { color: var(--accent-2); }

.answer-actions { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.answer-hint { color: var(--text-muted); font-size: 0.9rem; }

.ghost-button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover { background: rgba(243, 200, 102, 0.14); transform: translateY(-1px); }

.passages-card h3 { margin: 0 0 10px; }
.passages-container { display: flex; flex-direction: column; gap: 12px; }

.passage-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}

.passage-reference { color: var(--accent-2); font-weight: 700; }
.passage-meta { color: var(--text-muted); font-size: 0.9rem; margin: 6px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.relevance-badge { background: rgba(243, 200, 102, 0.14); color: var(--text-main); padding: 4px 8px; border-radius: 999px; font-size: 0.82rem; }
.passage-text { color: var(--text-main); font-style: italic; }
.passage-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.passage-actions a, .passage-actions button { color: var(--accent); }

.loading-section, .error-section { animation: fadeIn 0.35s ease; }
.loading-section { display: none; }

.ai-thinking-container { display: grid; place-items: center; padding: 24px; }
.neural-halo { width: 160px; height: 160px; }
.halo-ring { fill: none; stroke-width: 2; }
.halo-ring.outer { stroke: rgba(243, 200, 102, 0.45); animation: spin 8s linear infinite; }
.halo-ring.middle { stroke: rgba(108, 228, 214, 0.4); animation: spin 6s linear infinite reverse; }
.halo-ring.inner { stroke: rgba(77, 163, 255, 0.35); }
.divine-core { stroke: rgba(255, 255, 255, 0.6); stroke-width: 3; }
.neural-node { fill: var(--accent); animation: pulseDot 2.8s ease infinite; }
.thinking-text { margin-top: 12px; color: var(--text-muted); }

.error-card h3 { margin: 0 0 8px; }
.error-card { border-color: rgba(255, 123, 138, 0.4); }

.focus-row + .answer-lab { margin-top: 4px; }

.study-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.recents-card, .session-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.card-header { display: flex; justify-content: space-between; align-items: center; }
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.recent-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.recent-question { background: transparent; border: none; color: var(--text-main); text-align: left; cursor: pointer; flex: 1; }
.recent-question:hover { color: var(--accent); }
.recent-meta { color: var(--text-muted); font-size: 0.9rem; }
.recent-empty { color: var(--text-muted); }

.session-card textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
}

.session-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.small-hint { color: var(--text-muted); font-size: 0.9rem; }

.simple-about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.simple-about h2 { margin-bottom: 8px; }
.simple-about p { color: var(--text-muted); margin-top: 10px; }
.simple-donate { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0 6px; align-items: stretch; }

.site-footer { color: var(--text-muted); text-align: center; line-height: 1.5; }

.typing-cursor {
    display: inline-block;
    width: 1ch;
    background: rgba(255, 255, 255, 0.6);
    animation: blink 1s infinite;
    margin-left: 2px;
}

.bible-tooltip {
    position: fixed;
    max-width: 280px;
    background: #0b162a;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--shadow-soft);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.bible-tooltip.visible { opacity: 1; pointer-events: auto; }
.tooltip-reference { font-weight: 700; margin-bottom: 6px; color: var(--accent-2); }
.tooltip-text { color: var(--text-main); }
.tooltip-hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }
.tooltip-error { color: var(--danger); }

.trinity-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 10, 20, 0.82);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 999;
}

.trinity-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.divine-geometry {
    position: relative;
    width: 360px;
    height: 360px;
}

.triangle-path {
    width: 100%;
    height: 100%;
    stroke: rgba(243, 200, 102, 0.55);
    fill: none;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: dash 4s linear forwards;
}

.vertex {
    position: absolute;
    color: var(--text-main);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.vertex-glow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 auto 6px;
    box-shadow: 0 0 22px rgba(243, 200, 102, 0.55);
}

.vertex-label {
    font-size: 0.9rem;
    color: var(--text-main);
}

.vertex-top { top: -6%; left: 50%; transform: translateX(-50%); }
.vertex-left { bottom: 6%; left: 8%; }
.vertex-right { bottom: 6%; right: 8%; }

.center-light {
    position: absolute;
    inset: 46% auto auto 46%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-2);
    filter: drop-shadow(0 0 24px rgba(108, 228, 214, 0.6));
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes orbitPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 0.95; transform: scale(1.02); }
}
@keyframes dash { to { stroke-dashoffset: -600; } }
@keyframes floatNode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(108, 228, 214, 0.45); }
    70% { box-shadow: 0 0 0 16px rgba(108, 228, 214, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 228, 214, 0); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 27, 48, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 16px 24px; /* Extra padding for safe area on iOS */
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-item svg {
    stroke: currentColor;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active svg {
    opacity: 1;
    stroke: var(--accent);
}

.nav-item:hover {
    color: var(--text-main);
    text-decoration: none;
}

@media (max-width: 1020px) {
    .container { padding: 28px 18px 48px; }
    .primary-hero h1 { font-size: 2.4rem; }
    .response-section { grid-template-columns: 1fr; }
    .focus-row { grid-template-columns: 1fr; }
    .search-orbit { opacity: 0.4; }
}

@media (max-width: 640px) {
    .mobile-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 90px; /* Space for mobile nav */
    }

    /* Adjustments for mobile layout */
    .hero-highlights { flex-direction: column; align-items: flex-start; }
    .stream-meter { width: 100%; }
    #askButton { width: 110px; padding: 10px 14px; }
    .search-box { flex-direction: column; align-items: stretch; }
    #askButton { width: 100%; }
    
    /* Make cards full width on mobile with less padding */
    .container {
        padding: 20px 16px 80px;
    }
    
    .search-focus, .response-card, .passages-card, .focus-card, .recents-card, .session-card {
        padding: 20px 16px;
    }
    
    /* Improve typography for mobile */
    .primary-hero h1 {
        font-size: 2rem;
    }
    
    .search-card h2 {
        font-size: 1.8rem;
    }
}

/* Minimalist Redesign Styles */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.centered-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
}

.centered-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-area h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.minimal-search {
    width: 100%;
}

.minimal-card {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.large-search-box {
    background: rgba(15, 27, 48, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.large-search-box:focus-within {
    background: rgba(15, 27, 48, 0.95);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(243, 200, 102, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 12px;
    display: flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 12px;
}

.large-search-box textarea {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    width: 100%;
    outline: none;
    padding: 12px 0;
    resize: none;
    overflow: hidden;
    min-height: 48px;
    max-height: 200px;
    font-family: var(--font-sans);
    line-height: 1.5;
}

.large-search-box .icon-button {
    background: var(--accent);
    color: var(--bg-1);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 4px;
}

.large-search-box .icon-button:hover {
    transform: scale(1.05);
    background: #fff;
}

.minimal-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.minimal-pills .question-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.minimal-pills .question-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: var(--accent);
}

/* Verse of the Day */
.verse-of-day {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(243, 200, 102, 0.08), rgba(108, 228, 214, 0.05));
    border: 1px solid rgba(243, 200, 102, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.verse-of-day-label {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.verse-of-day-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-main);
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 0.75rem 0;
    padding: 0;
    border: none;
}

.verse-of-day-ref {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-2);
    font-style: normal;
}

.verse-compare-btn {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Compare Modal */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 12, 31, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.compare-modal-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-strong);
}

.compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.compare-modal-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--accent);
}

.compare-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.compare-modal-close:hover {
    color: var(--text-main);
}

.compare-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.compare-item:last-child {
    border-bottom: none;
}

.compare-version {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}

.compare-text {
    font-family: var(--font-serif);
    color: var(--text-main);
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.minimal-footer {
    margin-top: auto;
    padding-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
}

.small-modes {
    display: flex;
    gap: 8px;
}

.small-modes .mode-button {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
}

.small-modes .mode-button.is-active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    border-color: var(--border);
}

.minimal-status {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 10%;
    width: 250px;
    height: 250px;
    animation-delay: -5s;
}

.shape-3 {
    bottom: 10%;
    left: 30%;
    width: 200px;
    height: 200px;
    animation-delay: -10s;
}

.shape-4 {
    top: 15%;
    right: 15%;
    width: 180px;
    height: 180px;
    animation-delay: -7s;
    opacity: 0.5;
}

.shape-5 {
    bottom: 25%;
    right: 5%;
    width: 160px;
    height: 160px;
    animation-delay: -15s;
    opacity: 0.4;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .logo-area h1 {
        font-size: 2rem;
    }
    
    .large-search-box {
        padding: 6px 6px 6px 16px;
    }
    
    .large-search-box input {
        font-size: 1rem;
    }
    
    .large-search-box .icon-button {
        width: 40px;
        height: 40px;
    }
    
    .minimal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .centered-content {
        padding: 0 16px;
    }
}

/* Site Footer */
.site-footer {
    margin-top: auto;
    padding: 0 0 2rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    opacity: 0.8;
}

.footer-link:hover {
    color: var(--accent);
    opacity: 1;
    text-decoration: none;
    transform: translateY(-1px);
}

.separator {
    color: var(--border);
    font-size: 0.8rem;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
}

@media (max-width: 640px) {
    .site-footer {
        padding-bottom: 3rem;
        gap: 1.5rem;
    }
    
    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
    
    .separator {
        display: none;
    }
}
