/* ============================================
   LLMOps.Pro — Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --navy: #1B2A4A;
    --navy-light: #243556;
    --teal: #0D9488;
    --teal-dark: #0B7C72;
    --teal-light: #E0F7F5;
    --dark-gray: #374151;
    --medium-gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
    --max-width: 1200px;
    --section-padding: 80px 0;
    --section-padding-mobile: 48px 0;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-gray);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--navy);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--teal-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.nav-logo svg {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    text-decoration: none;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--teal);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--teal);
    border-radius: 1px;
}

.nav-cta {
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
    background:
        linear-gradient(135deg, rgba(27,42,74,0.82) 0%, rgba(15,27,51,0.78) 60%, rgba(19,34,64,0.80) 100%),
        url('/static/images/hero-section-background.webp') center center / cover no-repeat;
    color: var(--white);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(13,148,136,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13,148,136,0.10) 0%, transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
    color: var(--white);
    font-size: 3.25rem;
    max-width: 740px;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 620px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Sections --- */
.section {
    padding: var(--section-padding);
}
.section-alt {
    background: var(--light-gray);
}
.section-dark {
    background: var(--navy);
    color: var(--white);
}
.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}
.section-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

/* --- Stat Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal);
    display: block;
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.stat-card .stat-label {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}
.feature-card h3 {
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--medium-gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- Infrastructure & Compliance Banner --- */
.compliance-banner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #F0F4FF;
    border: 1px solid #C7D2FE;
    border-radius: var(--radius);
    padding: 32px 36px;
    transition: box-shadow var(--transition);
}
.compliance-banner:hover {
    box-shadow: var(--shadow-md);
}

.compliance-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.compliance-content h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.compliance-content > p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.compliance-badges .badge {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition: background var(--transition);
}
.compliance-badges .badge:hover {
    background: var(--navy-light);
}

.compliance-note {
    font-size: 0.82rem;
    color: var(--medium-gray);
    font-style: italic;
    margin-bottom: 0;
}

/* --- Pricing Cards --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
    border-color: var(--teal);
}
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card .tier-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.pricing-card .tier-type {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 16px;
}
.pricing-card .tier-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
}
.pricing-card li {
    padding: 6px 0;
    font-size: 0.92rem;
    color: var(--dark-gray);
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.pricing-card li::before {
    content: '\2713';
    color: var(--teal);
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Credibility / Checklist --- */
.checklist {
    list-style: none;
    max-width: 700px;
}
.checklist li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    font-size: 1.05rem;
}
.checklist li::before {
    content: '\2713';
    color: var(--teal);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-placeholder {
    margin-top: 2.5rem;
    padding: 24px 32px;
    border-left: 4px solid var(--teal);
    background: var(--teal-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--medium-gray);
}

/* --- CTA Section --- */
.cta-section {
    background:
        linear-gradient(135deg, rgba(27,42,74,0.88) 0%, rgba(15,27,51,0.86) 60%, rgba(19,34,64,0.88) 100%),
        url('/static/images/hero-section-background.webp') center center / cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto 2rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--white);
}
.footer-copy {
    font-size: 0.9rem;
}

/* --- Page Header --- */
.page-header {
    background:
        linear-gradient(135deg, rgba(27,42,74,0.82) 0%, rgba(15,27,51,0.78) 60%, rgba(19,34,64,0.80) 100%),
        url('/static/images/hero-section-background.webp') center center / cover no-repeat;
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(13,148,136,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13,148,136,0.10) 0%, transparent 40%);
    pointer-events: none;
}
.page-header .container,
.page-header h1,
.page-header p {
    position: relative;
    z-index: 1;
}
.page-header h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
}
.page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
}

/* --- Services Page --- */
.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--medium-gray); margin-bottom: 0; font-size: 0.95rem; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2.5rem;
    font-size: 0.92rem;
}
.comparison-table thead {
    background: var(--navy);
    color: var(--white);
}
.comparison-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}
.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.comparison-table tbody tr:hover {
    background: var(--light-gray);
}
.comparison-table .check { color: var(--teal); font-weight: 700; }

/* --- Demo Page — Chat Interface --- */
.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.sample-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.sample-chip {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}
.sample-chip:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}

.chat-widget {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.chat-header {
    background: var(--navy);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header-title {
    font-weight: 600;
    font-size: 1rem;
}
.chat-lang-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
}
.chat-lang-select option {
    color: var(--dark-gray);
    background: var(--white);
}

.chat-messages {
    height: 420px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafbfc;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.chat-message.user {
    align-self: flex-end;
    background: var(--teal);
    color: var(--white);
    border-bottom-right-radius: 4px;
}
.chat-message.assistant {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid #e5e7eb;
    color: var(--dark-gray);
    border-bottom-left-radius: 4px;
}
.chat-message.intro {
    align-self: flex-start;
    background: var(--teal-light);
    color: var(--navy);
    border-left: 3px solid var(--teal);
    font-size: 0.9rem;
    border-radius: 0 12px 12px 0;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid #e5e7eb;
    background: var(--white);
}
.chat-input-area input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}
.chat-input-area button {
    padding: 16px 24px;
    background: var(--teal);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.chat-input-area button:hover {
    background: var(--teal-dark);
}
.chat-input-area button:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
}
/* AgentContract badge */
.chat-contract-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 12px;
    font-size: 0.72rem;
    color: #6b7280;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 10px 10px;
}
.ac-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.72rem;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
}
.ac-badge-btn:hover { color: #2ea44f; }
.ac-check-icon { width: 13px; height: 13px; flex-shrink: 0; }
.ac-sep { color: #d1d5db; margin: 0 2px; }
.ac-spec-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.72rem;
}
.ac-spec-link:hover { color: #2ea44f; }
.ac-gh-icon { width: 12px; height: 12px; flex-shrink: 0; }

/* AgentContract Modal */
.ac-modal { max-width: 520px; }
.ac-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.ac-modal-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}
.ac-modal-icon svg { width: 40px; height: 40px; }
.ac-modal-why {
    background: #f8fffe;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}
.ac-modal-why h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--navy);
}
.ac-modal-why p { margin: 0 0 0.5rem; color: #374151; line-height: 1.5; }
.ac-modal-why ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #374151;
    line-height: 1.6;
}
.ac-modal-why li { margin-bottom: 0.3rem; }
.ac-modal-assertions h3 {
    font-size: 0.9rem;
    color: var(--navy);
    margin: 0 0 0.6rem;
}
.ac-assertions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.5rem;
}
.ac-assertion-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
}
.ac-limit-pill {
    background: #f9fafb;
    border-color: #e5e7eb;
}
.ac-assertion-pill code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.78rem;
    color: #166534;
}
.ac-limit-pill code { color: #6b7280; }
.ac-violation-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
}
.ac-loading { font-size: 0.82rem; color: #9ca3af; }
.ac-modal-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}
.ac-spec-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}
.ac-raw-link {
    font-size: 0.8rem;
    color: #6b7280;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
}
.ac-raw-link:hover { color: var(--navy); border-color: var(--teal); }

/* JSON viewer modal */
.ac-json-modal { max-width: 600px; padding: 0; overflow: hidden; }
.ac-json-modal-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}
.ac-json-body {
    background: #0d1117;
    padding: 1rem 1.25rem;
    max-height: 420px;
    overflow: auto;
}
.ac-json-body pre {
    margin: 0;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    white-space: pre;
    color: #e6edf3;
}
.ac-json-body code { display: block; }
.ac-json-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}
.ac-json-copy-btn {
    font-size: 0.8rem;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    color: #6b7280;
    transition: border-color 0.15s, color 0.15s;
}
.ac-json-copy-btn:hover { color: var(--navy); border-color: var(--teal); }
/* Syntax highlight classes */
.ac-json-key  { color: #79c0ff; }
.ac-json-str  { color: #a5d6ff; }
.ac-json-num  { color: #f47067; }
.ac-json-bool { color: #ff7b72; }
.ac-json-null { color: #8b949e; }

.chat-action-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background var(--transition);
}
.chat-action-btn:hover {
    background: var(--teal-dark);
}

/* --- About Page --- */
.about-story {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-profile-img {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--teal-light);
}

.about-narrative {
    max-width: 740px;
    font-size: 1.05rem;
    line-height: 1.8;
}
.about-narrative p {
    margin-bottom: 1.5rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 2rem;
}
.credential-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.credential-item .cred-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}
.credential-item .cred-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

/* --- Blog --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-card-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 32px 24px;
    color: var(--white);
    min-height: 100px;
    display: flex;
    align-items: flex-end;
}
.blog-card-header h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0;
}
.blog-card-body {
    padding: 24px;
}
.blog-card-meta {
    font-size: 0.82rem;
    color: var(--medium-gray);
    margin-bottom: 12px;
}
.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--dark-gray);
    margin-bottom: 16px;
}
.blog-card-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Blog Post */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}
.post-meta {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.post-body {
    font-size: 1.05rem;
    line-height: 1.85;
}
.post-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.post-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.post-body li {
    margin-bottom: 0.5rem;
}
.post-body blockquote {
    border-left: 4px solid var(--teal);
    padding: 16px 24px;
    margin: 1.5rem 0;
    background: var(--teal-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2rem;
    font-weight: 600;
}
.post-cta {
    margin-top: 3rem;
    padding: 32px;
    background: var(--teal-light);
    border-radius: var(--radius);
    text-align: center;
}
.post-cta p { margin-bottom: 1rem; }

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
.related-posts h3 { margin-bottom: 1rem; }

/* --- Blog Post Share Bar --- */
.share-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 2.5rem 0 2rem;
}

.share-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid #d1d5db;
    text-decoration: none;
    line-height: 1;
    background: var(--white);
    color: var(--dark-gray);
    font-family: inherit;
}
.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: var(--dark-gray);
}

.share-linkedin { color: #0A66C2; border-color: #0A66C2; }
.share-linkedin:hover { background: #0A66C2; color: var(--white) !important; }

.share-twitter { color: #000; border-color: #000; }
.share-twitter:hover { background: #000; color: var(--white) !important; }

.share-facebook { color: #1877F2; border-color: #1877F2; }
.share-facebook:hover { background: #1877F2; color: var(--white) !important; }

.share-email { color: var(--teal); border-color: var(--teal); }
.share-email:hover { background: var(--teal); color: var(--white) !important; }

.share-copy:hover { border-color: var(--navy); color: var(--navy); }

@media (max-width: 600px) {
    .share-bar { gap: 12px; }
    .share-btn { font-size: 0.8rem; padding: 7px 12px; }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: rgba(255,255,255,0.9);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 2000;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { margin-bottom: 0; }
.cookie-banner .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: repeat(3, 1fr); }
    .service-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #e5e7eb;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: 2.25rem; }
    .hero .subtitle { font-size: 1.05rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    .pricing-card.featured::before {
        font-size: 0.75rem;
        top: -12px;
    }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }

    .credentials-grid { grid-template-columns: repeat(2, 1fr); }

    .cookie-banner { flex-direction: column; gap: 12px; text-align: center; }

    .comparison-table { font-size: 0.8rem; }
    .comparison-table th, .comparison-table td { padding: 8px 10px; }

    .chat-messages { height: 350px; }

    /* About story mobile */
    .about-story {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-profile-img {
        width: 160px;
        height: 160px;
    }
    .about-narrative {
        text-align: left;
    }

    /* Compliance banner mobile */
    .compliance-banner {
        flex-direction: column;
        padding: 24px 20px;
        gap: 16px;
    }
    .compliance-badges .badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.75rem; }
    .credentials-grid { grid-template-columns: 1fr 1fr; }
    .sample-chips { justify-content: center; }
}

/* ============================================
   Demo Page — Enhanced Components
   ============================================ */

/* --- How It Works --- */
.hiw-steps {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
}

.hiw-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    align-self: stretch;
}

.hiw-num {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 10px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hiw-icon {
    font-size: 2.25rem;
    margin-bottom: 12px;
    display: block;
}

.hiw-step h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.hiw-step p {
    color: var(--medium-gray);
    font-size: 0.87rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.hiw-example {
    display: block;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-style: italic;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(13,148,136,0.2);
    line-height: 1.5;
}

.hiw-connector {
    text-align: center;
    color: var(--teal);
    font-size: 1.75rem;
    font-weight: 300;
    opacity: 0.55;
    user-select: none;
}

/* --- Demo Two-Column Layout --- */
.demo-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    align-items: start;
}

/* --- Scenario Panel --- */
.scenario-panel {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 88px;
}

.scenario-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 22px 24px;
}

.scenario-badge {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scenario-header h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 6px;
}

.scenario-desc {
    color: rgba(255,255,255,0.62);
    font-size: 0.78rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.doc-list {
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
}

.doc-list-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--medium-gray);
    margin-bottom: 10px;
}

.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
}
.doc-item:last-child { border-bottom: none; }

.doc-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.doc-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 2px;
}

.doc-desc {
    font-size: 0.74rem;
    color: var(--medium-gray);
    line-height: 1.4;
}

/* --- Phase Tabs --- */
.phase-tabs {
    padding: 18px 22px;
}

.phase-tabs-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--medium-gray);
    margin-bottom: 10px;
}

.phase-tab-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.phase-tab {
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--dark-gray);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
}
.phase-tab:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.phase-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.phase-questions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.phase-questions.hidden { display: none; }

.phase-questions .sample-chip {
    text-align: left;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    padding: 9px 13px;
    white-space: normal;
    line-height: 1.4;
}

/* --- Chat Column --- */
.demo-chat-col .chat-messages {
    height: 500px;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.3);
}

.chat-disclaimer {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* --- Source Citations --- */
.chat-sources {
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 0 2px;
    margin-top: -4px;
}

.sources-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.source-tag {
    display: inline-block;
    background: var(--teal-light);
    border: 1px solid rgba(13,148,136,0.25);
    color: var(--teal-dark);
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 0.71rem;
    font-weight: 500;
}

/* --- Use Case Grid --- */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.use-case-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}
.use-case-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.use-case-card.active-scenario {
    border-color: var(--teal);
    background: var(--teal-light);
}

.uc-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.use-case-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.use-case-card p {
    color: var(--medium-gray);
    font-size: 0.87rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.uc-badge {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-dark);
    background: rgba(13,148,136,0.15);
    padding: 3px 10px;
    border-radius: 10px;
}

/* --- Demo Page Responsive --- */
@media (max-width: 1100px) {
    .demo-layout { grid-template-columns: 320px 1fr; }
}

@media (max-width: 900px) {
    .demo-layout {
        grid-template-columns: 1fr;
    }
    .scenario-panel {
        position: static;
    }
    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hiw-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hiw-connector {
        display: block;
        text-align: center;
        font-size: 1.4rem;
        line-height: 1;
        padding: 4px 0;
    }
    .demo-chat-col .chat-messages { height: 420px; }
}

@media (max-width: 600px) {
    .use-case-grid { grid-template-columns: 1fr; }
    .demo-chat-col .chat-messages { height: 360px; }
    .phase-tab { font-size: 0.74rem; padding: 4px 10px; }
}

/* ========================
   Contact Form Modal
   ======================== */
.cf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
}
.cf-overlay.hidden, .cf-modal.hidden { display: none; }

.cf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}
.cf-modal h2 {
    margin: 0 0 0.25rem;
    color: var(--navy);
    font-size: 1.2rem;
}
.cf-subtitle {
    color: var(--medium-gray);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}
.cf-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--medium-gray);
    padding: 0;
}
.cf-close:hover { color: var(--navy); }
.cf-field { margin-bottom: 0.85rem; }
.cf-field label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.3rem;
}
.cf-field input,
.cf-field textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.cf-field input:focus,
.cf-field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(13,148,136,0.12);
}
.cf-field textarea { resize: vertical; }
.cf-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    color: var(--medium-gray);
    font-size: 0.82rem;
    cursor: pointer;
}
.cf-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.cf-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.cf-actions .btn { flex: 1; justify-content: center; text-align: center; }
.cf-cancel {
    background: #f3f4f6;
    color: var(--navy);
    border: 1px solid #d1d5db;
}
.cf-cancel:hover { background: #e5e7eb; }
/* ========================
   Contact Page
   ======================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 0.75rem;
}
.contact-info > p {
    color: var(--medium-gray);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-detail-item strong {
    display: block;
    color: var(--navy);
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.contact-detail-item p {
    color: var(--medium-gray);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
}
.contact-form-card h3 {
    margin-bottom: 0.25rem;
}
.contact-form-subtitle {
    color: var(--medium-gray);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.contact-success {
    text-align: center;
    padding: 32px 16px;
}
.contact-success.hidden { display: none; }
.contact-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.contact-success h3 {
    color: var(--navy);
    margin-bottom: 8px;
}
.contact-success p {
    color: var(--medium-gray);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
