/* ===================================
   Ask the Founders - Design System
   =================================== */

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("/static/fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("/static/fonts/AtkinsonHyperlegible-Italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("/static/fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("/static/fonts/AtkinsonHyperlegible-BoldItalic.woff2") format("woff2");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors - Primary */
    --color-primary: #5c3a1d;
    --color-primary-dark: #3a2412;
    --color-primary-light: #8b6a45;

    /* Colors - Neutral */
    --color-white: #ffffff;
    --color-black: #1f140c;
    --color-gray-50: #f7ecd2;
    --color-gray-100: #efe0bf;
    --color-gray-200: #dcc5a0;
    --color-gray-300: #c4a67a;
    --color-gray-400: #a48559;
    --color-gray-500: #806442;
    --color-gray-600: #664c31;
    --color-gray-700: #503922;
    --color-gray-800: #3a2817;
    --color-gray-900: #2a1c10;

    /* Colors - Semantic */
    --color-success: #3f6a47;
    --color-warning: #8b6429;
    --color-error: #8e3c30;
    --color-info: #3f5f77;

    /* Backgrounds */
    --bg-primary: var(--color-gray-50);
    --bg-secondary: var(--color-gray-100);
    --bg-tertiary: var(--color-gray-200);
    --bg-chat-user: var(--color-primary);
    --bg-chat-bot: #efdfc3;

    /* Text Colors */
    --text-primary: var(--color-gray-900);
    --text-secondary: var(--color-gray-700);
    --text-muted: var(--color-gray-600);
    --text-inverse: #f8f0df;

    /* Borders */
    --border-color: #c4a57a;
    --border-color-light: #e1caa4;
    --border-color-strong: #8a6c44;
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(53, 34, 17, 0.18);
    --shadow: 0 4px 10px rgba(53, 34, 17, 0.14);
    --shadow-md: 0 8px 20px rgba(53, 34, 17, 0.2);
    --shadow-lg: 0 16px 30px rgba(53, 34, 17, 0.28);
    --shadow-xl: 0 24px 36px rgba(53, 34, 17, 0.34);

    /* Typography */
    --font-family-base: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
    --font-family-heading: "Atkinson Hyperlegible", "Palatino Linotype", "Book Antiqua", Palatino, serif;

    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* Spacing */
    --spacing-xs: 0.175rem;  /* 2.8px */
    --spacing-sm: 0.35rem;   /* 5.6px */
    --spacing-md: 0.7rem;    /* 11.2px */
    --spacing-lg: 1.05rem;   /* 16.8px */
    --spacing-xl: 1.4rem;    /* 22.4px */
    --spacing-2xl: 2.1rem;   /* 33.6px */
    --spacing-3xl: 2.8rem;   /* 44.8px */
    --spacing-4xl: 4.2rem;   /* 67.2px */

    /* Layout */
    --container-max-width: 1200px;
    --header-height: 70px;
    --footer-height: auto;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    /* Define dark mode overrides here when needed */
}

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 18% 20%, rgba(255, 249, 235, 0.78) 0%, rgba(255, 249, 235, 0) 40%),
        radial-gradient(circle at 82% 82%, rgba(109, 73, 37, 0.11) 0%, rgba(109, 73, 37, 0) 35%),
        repeating-linear-gradient(
            0deg,
            rgba(124, 89, 54, 0.04) 0,
            rgba(124, 89, 54, 0.04) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, #f7edd5 0%, #f2e3c2 48%, #ead3ad 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--spacing-md); }

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(92, 58, 29, 0.35);
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration-color: rgba(58, 36, 18, 0.7);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--spacing-md);
}

/* ===== SITE HEADER ===== */
.site-header {
    background: linear-gradient(180deg, rgba(248, 238, 216, 0.95) 0%, rgba(241, 225, 191, 0.95) 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    backdrop-filter: blur(3px);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    text-decoration: none;
}

.site-logo svg {
    color: var(--color-primary);
    filter: drop-shadow(0 2px 1px rgba(48, 30, 14, 0.22));
}

.site-title {
    display: none;
}

@media (min-width: 640px) {
    .site-title { display: block; }
}

.site-nav .nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.site-nav a {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    padding: var(--spacing-sm) 0;
    position: relative;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--color-primary);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.site-nav a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background:
        repeating-linear-gradient(
            -12deg,
            rgba(109, 73, 37, 0.07) 0 1px,
            transparent 1px 14px
        ),
        linear-gradient(180deg, rgba(242, 227, 193, 0.9) 0%, rgba(236, 214, 176, 0.95) 100%);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    border-bottom: 2px double var(--border-color-strong);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: calc(var(--text-4xl) * 0.75);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255, 247, 232, 0.8);
}

@media (min-width: 768px) {
    .hero-title { font-size: calc(var(--text-5xl) * 0.75); }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin: 0 auto var(--spacing-xl);
    max-width: 800px;
    line-height: var(--leading-relaxed);
}

/* ===== SEARCH ===== */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

#founder-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    padding-right: var(--spacing-2xl);
    font-size: var(--text-base);
    border: 2px solid var(--border-color-strong);
    border-radius: var(--border-radius-lg);
    background: rgba(250, 244, 229, 0.95);
    transition: all var(--transition-base);
    box-shadow: inset 0 1px 2px rgba(65, 43, 22, 0.15);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(92, 58, 29, 0.2);
}

.search-submit {
    position: absolute;
    right: var(--spacing-sm);
    padding: var(--spacing-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.search-submit:hover {
    color: var(--color-primary);
}

/* ===== SECTION STYLES ===== */
.founders-section {
    padding: var(--spacing-3xl) 0;
    background:
        linear-gradient(180deg, rgba(249, 240, 221, 0.5) 0%, rgba(243, 228, 198, 0.5) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-sm);
    text-transform: none;
    letter-spacing: 0.03em;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* ===== FOUNDERS GRID ===== */
.founders-grid {
    min-height: 400px;
}

.founders-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    align-items: start;
}

@media (max-width: 640px) {
    .founders-grid-inner {
        grid-template-columns: 1fr;
    }
}

/* ===== FOUNDER CARD ===== */
.founder-card {
    background:
        linear-gradient(165deg, rgba(249, 241, 224, 0.95) 0%, rgba(240, 224, 190, 0.96) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.founder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-strong);
}

.founder-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.founder-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 252, 242, 0.75) 0%, rgba(255, 252, 242, 0) 35%),
        linear-gradient(180deg, #e9d4aa 0%, #dcc08f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color-light);
}

.founder-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.36) saturate(0.88) contrast(1.03);
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.founder-card:hover .founder-card-image img {
    transform: scale(1.05);
    filter: sepia(0.22) saturate(0.95) contrast(1.08);
}

.founder-card-placeholder {
    color: var(--color-gray-500);
}

.founder-card-content {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(131, 98, 61, 0.24);
}

.founder-card-name {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-family: var(--font-family-heading);
}

.founder-card-company {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    margin-bottom: var(--spacing-xs);
}

.founder-card-title {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.founder-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.founder-tag {
    font-size: var(--text-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-medium);
}

.founder-card-bio {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--spacing-md);
}

.founder-card-cta {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    letter-spacing: 0.03em;
}

/* ===== NO RESULTS ===== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--text-secondary);
}

.no-results a {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    margin-top: var(--spacing-md);
    display: inline-block;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color-strong);
    background: linear-gradient(180deg, rgba(241, 224, 191, 0.95) 0%, rgba(233, 212, 172, 0.95) 100%);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: var(--text-sm);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: var(--color-gray-400);
    margin-left: var(--spacing-sm);
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-muted);
}

/* ===== FOUNDER DETAIL PAGE ===== */
.founder-detail-section {
    padding: var(--spacing-2xl) 0;
}

.founder-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .founder-layout {
        grid-template-columns: 1fr 400px;
        align-items: start;
    }
}

/* ===== FOUNDER BIO ===== */
.founder-bio {
    background: rgba(250, 244, 230, 0.7);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xl);
}

.founder-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 640px) {
    .founder-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

.founder-portrait {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.founder-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.42) saturate(0.87) contrast(1.04);
}

.founder-portrait-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-300);
}

.founder-meta {
    flex: 1;
}

.founder-name {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-family-heading);
}

@media (min-width: 640px) {
    .founder-name { font-size: var(--text-4xl); }
}

.founder-company {
    font-size: var(--text-lg);
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    margin-bottom: var(--spacing-xs);
}

.founder-title {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.founder-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.expertise-tag {
    font-size: var(--text-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-primary-light);
    color: var(--color-white);
    border-radius: var(--border-radius);
    font-weight: var(--font-medium);
}

.founder-bio-content {
    margin-bottom: var(--spacing-xl);
}

.bio-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
}

.bio-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.bio-text p {
    margin-bottom: var(--spacing-md);
}

.bio-text ul, .bio-text ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.bio-text li {
    margin-bottom: var(--spacing-xs);
}

.founder-achievements {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}

.achievements-title {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
}

.achievements-list {
    list-style: disc;
    margin-left: var(--spacing-lg);
}

.achievements-list li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: var(--leading-relaxed);
}

/* ===== CHAT PANEL ===== */
.chat-panel {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-md));
    background: linear-gradient(180deg, rgba(247, 236, 211, 0.96) 0%, rgba(239, 224, 190, 0.97) 100%);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height) - var(--spacing-lg));
    box-shadow: var(--shadow-md);
}

.chat-panel-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: rgba(232, 206, 161, 0.55);
}

.chat-title {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-xs);
}

.chat-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-height: 300px;
    max-height: 500px;
}

/* Custom scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

/* Chat Messages */
.chat-message {
    display: flex;
    animation: messageSlideIn 0.3s ease;
}

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

.chat-message-user {
    justify-content: flex-end;
}

.chat-message-bot,
.chat-message-system {
    justify-content: flex-start;
}

.message-content {
    max-width: 85%;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.chat-message-user .message-content {
    background: var(--bg-chat-user);
    color: var(--text-inverse);
    border-bottom-right-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.chat-message-bot .message-content {
    background: var(--bg-chat-bot);
    color: var(--text-primary);
    border-bottom-left-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color-light);
}

.chat-message-system .message-content {
    background: var(--bg-secondary);
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    border-radius: var(--border-radius);
}

.chat-message-bot .message-content p,
.chat-message-user .message-content p {
    margin-bottom: 0;
    white-space: pre-wrap;
}

.chat-message-bot .message-content ul,
.chat-message-bot .message-content ol {
    margin-left: var(--spacing-md);
    margin-bottom: 0;
}

/* Chat Form */
.chat-form {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: rgba(248, 237, 212, 0.95);
}

.chat-input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: var(--spacing-md);
    font-size: var(--text-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    resize: none;
    font-family: inherit;
    transition: border-color var(--transition-base);
    max-height: 120px;
    background: rgba(255, 249, 237, 0.9);
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.chat-submit {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--text-inverse);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.chat-submit:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.chat-submit:disabled {
    background: var(--color-gray-400);
    cursor: not-allowed;
    transform: none;
}

.chat-thinking-indicator {
    margin-top: var(--spacing-sm);
    font-size: var(--text-xs);
    color: var(--text-muted);
    opacity: 0.82;
    text-align: left;
    letter-spacing: 0.01em;
}

/* Chat Tips */
.chat-tips {
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(232, 206, 161, 0.4);
    border-top: 1px solid var(--border-color);
}

.chat-tips-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.chat-tips-list {
    list-style: none;
}

.chat-tips-list li {
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding-left: var(--spacing-md);
    position: relative;
    margin-bottom: var(--spacing-xs);
}

.chat-tips-list li::before {
    content: '"';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ===== SITE FOOTER ===== */
.site-footer {
    margin-top: auto;
    background: linear-gradient(180deg, rgba(239, 224, 191, 0.95) 0%, rgba(228, 204, 163, 0.96) 100%);
    border-top: 1px solid var(--border-color-strong);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.footer-copyright {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ===== LOADING STATE ===== */
.htmx-request .founders-grid-inner {
    opacity: 0.6;
    pointer-events: none;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-4xl: 4rem;
    }

    .hero-section {
        padding: var(--spacing-2xl) 0;
    }

    .founders-section {
        padding: var(--spacing-xl) 0;
    }

    .founder-detail-section {
        padding: var(--spacing-lg) 0;
    }

    .chat-panel {
        position: static;
        max-height: none;
    }

    .chat-messages {
        max-height: 400px;
    }

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-md) 0;
    }

    .site-nav .nav-list {
        gap: var(--spacing-md);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .breadcrumb,
    .chat-panel,
    .site-footer,
    .search-container {
        display: none;
    }

    .founder-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
