@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --secondary-color: #a78bfa;
    --secondary-dark: #8b5cf6;
    --accent-color: #34d399;
    --accent-dark: #10b981;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --bg-light: #0f172a;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-white: #1e293b;
    --bg-dark: #0f172a;
    --border-color: #334155;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -2px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 10px 10px -5px rgb(0 0 0 / 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

.main-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-toggle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.dropdown:hover .dropdown-toggle::before {
    width: 100%;
}

.dropdown:hover .dropdown-toggle {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.9rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    font-size: 0.85rem;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-menu a strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.dropdown-menu a span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 24px;
    margin: 2rem 0;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

.experiment-overview {
    margin: 4rem 0;
}

.experiment-overview h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.experiment-design {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.design-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.design-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.design-card:hover::before {
    transform: scaleX(1);
}

.design-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.design-card h4 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.stat-item {
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.design-card blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-light);
}

.key-findings {
    background: var(--bg-white);
    padding: 4rem 2rem;
    border-radius: 8px;
    margin: 4rem 0;
}

.key-findings h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.finding {
    padding: 1.5rem;
}

.finding h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.finding p {
    color: var(--text-light);
}

.framework {
    margin: 4rem 0;
    text-align: center;
}

.framework h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.principles {
    list-style: none;
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
}

.principles li {
    padding: 1rem;
    background: var(--bg-white);
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cta {
    text-align: center;
    padding: 4rem 2rem;
}

.cta h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1e293b 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.quote {
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.85;
    font-size: 1.1rem;
}

/* Dialogue viewer styles */
.dialogue-container {
    max-width: 900px;
    margin: 2rem auto;
}

.dialogue-turn {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.dialogue-turn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.speaker-label {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-light);
}

.speaker-opus {
    color: #7c3aed;
}

.speaker-opus span:first-child {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dialogue-turn:has(.speaker-opus) {
    border-left-color: #7c3aed;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(168, 85, 247, 0.02) 100%);
}

.speaker-sonnet {
    color: #2563eb;
}

.speaker-sonnet span:first-child {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dialogue-turn:has(.speaker-sonnet) {
    border-left-color: #2563eb;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.timestamp {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: normal;
}

.turn-content {
    white-space: pre-wrap;
    line-height: 1.8;
}

.turn-content h1,
.turn-content h2,
.turn-content h3,
.turn-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.turn-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-light);
}

.turn-content ul,
.turn-content ol {
    margin-left: 2rem;
    margin: 1rem 0;
}

/* Filter and search */
.controls {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.search-box {
    flex: 1;
    min-width: 300px;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Downloads page */
.download-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.download-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    font-weight: 500;
}

.file-type {
    color: var(--text-light);
    font-size: 0.875rem;
}

.download-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #1d4ed8;
}

/* Discoveries page */
.discovery-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.discovery-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.discovery-quote {
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    margin: 1rem 0;
    font-style: italic;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .experiment-design {
        grid-template-columns: 1fr;
    }
}

/* Video Container */
.video-container {
    margin: 2rem 0;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.video-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Discovery Sections */
.discovery-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.discovery-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(129, 140, 248, 0.3);
    padding-bottom: 0.5rem;
}

.discovery-section h4 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.discovery-content {
    line-height: 1.8;
    color: var(--text-light);
}

.discovery-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.discovery-content li {
    margin: 0.5rem 0;
}

.quote-box {
    background: rgba(30, 41, 59, 0.5);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.quote-box .quote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.quote-box .attribution {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: right;
}

/* Comparison Section */
.comparison-section {
    margin: 3rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(129, 140, 248, 0.2);
    color: var(--text-light);
}

.comparison-table th {
    color: white;
    font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.3);
}

.comparison-table tbody tr:hover {
    background: rgba(129, 140, 248, 0.1);
}

/* Download Section */
.download-section {
    margin: 3rem 0;
}

.download-section h3 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.download-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.download-card:hover::before {
    transform: scaleX(1);
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.download-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.download-card h4 {
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.download-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-blue);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.download-btn:hover {
    background: var(--hover-blue);
}

/* Usage Section */
.usage-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.usage-info h4 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.usage-info ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-light);
}

.usage-info li {
    margin: 0.5rem 0;
}

.usage-info code {
    background: rgba(15, 23, 42, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a78bfa;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

/* Conversation sections */
.conversation-section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.conversation-section:hover {
    box-shadow: var(--shadow-xl);
}

.conversation-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.conversation-header h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.75rem;
}

.conversation-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.speaker-human {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.speaker-human span:first-child {
    color: var(--primary-color);
    font-weight: 700;
}

.speaker-assistant {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
}

.speaker-assistant span:first-child {
    color: var(--secondary-color);
    font-weight: 700;
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .experiment-design {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Analysis page styles */
.analysis-intro {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.analysis-intro h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.analysis-intro ul {
    margin: 1rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

/* Conversation links box at top of page */
.conversation-links-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0 3rem 0;
    box-shadow: var(--shadow-lg);
}

.conversation-links-box h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.conversation-links-box > p {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.link-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.conversation-link {
    background: var(--bg-white);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    box-shadow: var(--shadow-md);
}

.conversation-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.conversation-link strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.conversation-link span {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.conversation-links {
    margin: 3rem 0;
}

.conversation-links h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.link-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.link-card h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.link-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.analysis-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}

.analysis-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pattern-analysis, .key-themes, .revelation-analysis, .critical-analysis, .ryan-analysis, .distinction-analysis {
    margin-top: 2rem;
}

.pattern-analysis h4, .revelation-analysis h4, .critical-analysis h4, .ryan-analysis h4, .distinction-analysis h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.pattern-analysis ol, .revelation-analysis ol, .distinction-analysis ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.pattern-analysis ol li, .revelation-analysis ol li, .distinction-analysis ol li {
    counter-increment: item;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.pattern-analysis ol li::before, .revelation-analysis ol li::before, .distinction-analysis ol li::before {
    content: counter(item);
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.theme-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
}

.theme-card h5 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.theme-card blockquote {
    background: white;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.theme-card ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.conclusion-section {
    margin: 3rem 0;
}

.conclusion-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.conclusions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.conclusion-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.conclusion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.conclusion-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 3rem 0;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.next-steps h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.9;
}

.quick-nav {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.quick-nav h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-nav-btn {
    display: block;
    padding: 1rem;
    background: var(--bg-white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.quick-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* AI Responses document page */
.document-nav {
    margin: 3rem 0;
}

.document-nav h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.doc-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.doc-card h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.doc-card p {
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.document-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
    scroll-margin-top: 100px;
}

.document-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.document-header h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.document-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.document-content {
    margin-top: 2rem;
}

.download-link {
    text-align: center;
    margin-top: 2rem;
}
