/* Minimalist Design System - X.AI Inspired */

/* Google Fonts Import - IBM Plex Sans */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Adjust if your fixed navbar height differs */
    --nav-height: 64px;
}

/* Contact Form */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* FAQ Section */
.faq {
    background: #f8f9fa;
    padding: 4rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.faq h3 {
    color: #000;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.faq h3:first-of-type {
    margin-top: 0;
}

.faq p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #000;
    letter-spacing: -0.015em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1rem 0;
    color: #555;
    line-height: 1.7;
}

/* Links */
a {
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #666;
}

/* Layout Containers */
.wrapper {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 2rem;
}

.inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

section.hero {
    padding: 6rem 0;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 75%); */
}

section.features {
    padding: 5rem 0;
}

section.contact {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Buttons */
.button,
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.button:hover,
.btn-primary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    /* transform: translateY(-1px); */
}

.button.secondary {
    background: transparent;
    color: #000;
    border-color: #000;
}

.button.secondary:hover {
    background: #000;
    color: #fff;
}

.button.large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Tech Grid for Service Pages */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.tech-grid p {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 0;
    border-left: 3px solid #000;
}

/* Forms */
.field {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.field.half {
    flex: 1;
    min-width: 280px;
}

.fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.fields .field {
    flex: 1;
    min-width: 100%;
}

.fields .field.half {
    flex: 1;
    min-width: 280px;
}

/* Cards and Content Blocks */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

/* Split Layouts */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.split > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.split.reverse {
    direction: rtl;
}

.split.reverse > * {
    direction: ltr;
}

/* Lists */
ul.clean {
    list-style: none;
    padding: 0;
}

ul.clean li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

ul.clean li:last-child {
    border-bottom: none;
}

ul.actions {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

ul.actions li {
    margin: 0;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-method {
    margin-bottom: 1rem;
    padding: .5rem 0;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.contact-method .icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #666;
}

/* Footer */
#footer {
    background: #f8f9fa;
    padding: 3rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: 0;
}

#footer .menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

#footer .menu li {
    color: #666;
    font-size: 0.9rem;
}

#footer .menu a {
    color: #666;
    transition: color 0.3s ease;
}

#footer .menu a:hover {
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .wrapper {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    section {
        padding: 3rem 0;
    }

    section.hero {
        padding: 4rem 0;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .field.half {
        width: 100%;
        margin-left: 0;
    }

    .fields .field.half {
        min-width: 100%;
    }

    ul.actions {
        justify-content: center;
    }

    #footer .menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 0 1rem;
    }

    .inner {
        padding: 0 0.5rem;
    }

    section {
        padding: 2rem 0;
    }

    .button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

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

/* Focus states for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .nav-header,
    #footer {
        display: none;
    }

    section {
        padding: 1rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card {
        border-color: #000;
    }

    .button {
        border-width: 3px;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #ccc;
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child):after {
    content: " › ";
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-item a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #66BB6A;
}

.breadcrumb-item.active {
    color: #fff;
}

/* Enhanced Visual Components for Chatbot Page */

/* Intro Card */
.intro-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-left: 3px solid #f0f0f0;
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 4px;
}

.service-item:hover {
    border-color: #333;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.service-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.service-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #fff;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h4 {
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.1rem;
}

.benefit-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Process Timeline */
.process-timeline {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding: 2rem 0;
    margin-top: 2rem;
}

.process-step {
    flex: 0 0 200px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.process-step h4 {
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1rem;
}

.process-step p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.process-connector {
    flex: 0 0 50px;
    height: 2px;
    background: #ddd;
    margin-top: 20px;
    border-radius: 1px;
}

/* Tech Stack */
.tech-stack {
    margin-top: 2rem;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tech-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tech-icon {
    font-size: 1.5rem;
}

.tech-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.use-case-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.use-case-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.use-case-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.use-case-item span:last-child {
    font-size: 0.9rem;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        width: 2px;
        height: 30px;
        margin: 1rem 0;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .intro-card {
        padding: 1.5rem;
    }

    .service-item {
        padding: 1rem;
    }

    .benefit-card {
        padding: 1rem;
    }

    .process-step {
        flex: 0 0 150px;
    }
}

/* In-page subnav */
.subnav {
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.subnav-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: .75rem 0;
  margin: 0;
  list-style: none;
}

.subnav a {
  color: #444;
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
  font-size: 0.9rem;
}

.subnav a:hover {
  background: #f5f5f5;
}

.subnav a.active {
  background: #111;
  color: #fff;
}

/* Ensure anchors don't hide under fixed navbar */
section[id] {
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* Stats band */
.stats-band {
  padding-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.stats-grid li {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stats-grid li:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-grid strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #333;
  margin-bottom: 0.25rem;
}

.stats-grid span {
  color: #666;
  font-size: .9rem;
}
