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

:root {
    --primary-bg: #0a0e1a;
    --secondary-bg: #111827;
    --card-bg: #1a1f35;
    --neon-yellow: #ffd60a;
    --neon-cyan: #00ffff;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-gradient: linear-gradient(135deg, var(--neon-cyan), var(--neon-yellow));
    --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--card-bg);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--neon-cyan);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 214, 10, 0.1) 0%, transparent 40%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 214, 10, 0.1));
    border: 1px solid var(--neon-cyan);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.primary-button,
.secondary-button {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.primary-button {
    background: var(--neon-cyan);
    color: var(--primary-bg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.primary-button:hover {
    background: var(--neon-yellow);
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.6);
    transform: translateY(-2px);
}

.secondary-button {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--neon-cyan);
}

.secondary-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
}

.primary-button.large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* Section Styles */
section {
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    background-color: var(--secondary-bg);
}

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

.about-text {
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s;
}

.pillar-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.pillar-icon {
    margin-bottom: 1rem;
    color: var(--neon-cyan);
    display: flex;
    justify-content: center;
}

.pillar-icon svg {
    width: 60px;
    height: 60px;
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neon-cyan);
}

.pillar-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.services-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--neon-cyan);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process Section */
.process {
    background-color: var(--secondary-bg);
}

.process-steps {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--neon-cyan);
    font-family: 'Space Grotesk', sans-serif;
    min-width: 100px;
    text-align: center;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Patenting AI Section */
.patenting-ai {
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.ai-content {
    max-width: 1100px;
    margin: 0 auto;
}

.ai-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .ai-grid {
        grid-template-columns: 1fr;
    }
}

.ai-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 214, 10, 0.2);
    transition: all 0.3s;
}

.ai-card:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.3);
    transform: translateY(-5px);
}

.ai-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--neon-yellow);
}

.ai-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ai-card ul {
    list-style: none;
    padding: 0;
}

.ai-card ul li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.ai-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-yellow);
}

/* AI Technologies We Patent */
.ai-tech {
    margin-top: 3rem;
    text-align: center;
}

.ai-tech h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--neon-cyan);
}

.ai-tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.ai-tech-list li {
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    background-color: var(--secondary-bg);
}

.faq-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 12px;
    transition: border-color 0.3s;
}

.faq-item[open],
.faq-item:hover {
    border-color: var(--neon-cyan);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary h3 {
    display: inline;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    padding: 0 1.5rem 1.5rem;
    line-height: 1.7;
}

/* Blog Section */
.blog {
    background-color: var(--primary-bg);
}

.blog-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.blog-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-date {
    color: var(--neon-cyan);
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-link {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-card:hover .blog-link {
    color: var(--neon-yellow);
}

.ai-content .blog-cta {
    margin-top: 2.5rem;
}

.blog-cta {
    text-align: center;
}

@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Contact Section */
.contact {
    background-color: var(--secondary-bg);
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-actions {
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--neon-yellow);
}

/* Footer */
.footer {
    background-color: var(--primary-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-column h4 {
    margin-bottom: 0.2rem;
    color: var(--neon-cyan);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Insights Page */
.insights-hero {
    padding-top: 8rem;
}

.insights-medium {
    background-color: var(--secondary-bg);
}

.blog-subtitle a {
    color: var(--neon-cyan);
}

/* Article Pages */
.article {
    max-width: 780px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--neon-cyan);
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
}

.article-kicker {
    color: var(--neon-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.article-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-dek {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-meta a,
.article-body a,
.author-box a {
    color: var(--neon-cyan);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d5dbe5;
}

.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    color: var(--text-primary);
    margin: 3rem 0 1rem;
    line-height: 1.3;
}

.article-body p,
.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body li::marker {
    color: var(--neon-cyan);
}

.article-body strong {
    color: var(--text-primary);
}

.claim-example {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 0 1.5rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.article-callout {
    background: rgba(0, 255, 255, 0.06);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.article-toc {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.article-body .article-toc-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-body .article-toc ol {
    margin-bottom: 0;
}

.article-body .article-toc li {
    margin-bottom: 0.25rem;
}

.article-body h2[id] {
    scroll-margin-top: 6rem;
}

.article-figure {
    margin: 0 0 2rem;
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.article-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.article-update {
    background: var(--card-bg);
    border: 1px solid rgba(255, 214, 10, 0.3);
    border-left: 3px solid var(--neon-yellow);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.98rem;
    line-height: 1.65;
}

.article-body .article-update p {
    margin-bottom: 0;
}

.article-body .article-update .article-update-title {
    margin-bottom: 0.4rem;
    color: var(--neon-yellow);
    font-weight: 600;
}

.article-related {
    margin: 0 0 2.5rem;
}

.article-related h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.article-related ul {
    list-style: none;
    padding: 0;
}

.article-related li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.12);
    line-height: 1.5;
}

.article-related a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.article-related a:hover {
    text-decoration: underline;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-table th,
.article-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    vertical-align: top;
}

.article-table th {
    color: var(--neon-cyan);
    font-weight: 600;
    background: var(--card-bg);
}

.article-body .checklist {
    list-style: none;
    padding-left: 0;
}

.article-body .checklist li {
    position: relative;
    padding-left: 1.75rem;
}

.article-body .checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-yellow);
    font-weight: 700;
}

.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-secondary);
}

.author-box img {
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.article-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 3rem;
}

.article-cta {
    text-align: center;
    background: var(--secondary-bg);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
}

.article-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .article {
        padding: 6rem 1rem 3rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-body {
        font-size: 1.05rem;
    }

    .author-box {
        flex-direction: column;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--neon-cyan);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--neon-yellow);
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.6);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-bg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--secondary-bg);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding: 6rem 2rem 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .ai-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        min-width: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 32px;
    }

    .nav {
        padding: 0.4rem 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 1rem;
    }
}

.article-body blockquote.article-callout {
    margin: 0 0 1.5rem;
}

.article-body blockquote.article-callout p:last-child {
    margin-bottom: 0;
}

/* Chat assistant widget */
body.has-chat .back-to-top {
    bottom: 6.5rem;
}

.chat-widget {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-launcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: var(--neon-cyan);
    color: var(--primary-bg);
    font: 600 0.95rem 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.chat-launcher:hover {
    background: var(--neon-yellow);
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.6);
    transform: translateY(-2px);
}

.chat-launcher svg {
    width: 20px;
    height: 20px;
}

.chat-widget.is-open .chat-launcher {
    display: none;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    width: 380px;
    height: min(600px, calc(100vh - 4rem));
    background: var(--secondary-bg);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 255, 0.15);
    overflow: hidden;
    padding: 0;
}

.chat-panel[hidden] {
    display: none;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
}

.chat-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.chat-close:hover {
    color: var(--neon-cyan);
}

.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    max-width: 85%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-msg-assistant {
    align-self: flex-start;
    background: var(--card-bg);
    color: #d5dbe5;
    border-bottom-left-radius: 4px;
}

.chat-msg-user {
    align-self: flex-end;
    background: rgba(0, 255, 255, 0.15);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.chat-msg a {
    color: var(--neon-cyan);
}

.chat-typing {
    color: var(--text-secondary);
    animation: chat-pulse 1.2s ease-in-out infinite;
}

@keyframes chat-pulse {
    50% { opacity: 0.4; }
}

.chat-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 1rem 0.75rem;
    padding: 0.85rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
}

.chat-contact[hidden] {
    display: none;
}

.chat-contact-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-contact input,
.chat-contact textarea,
.chat-input textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--primary-bg);
    color: var(--text-primary);
    border: 1px solid rgba(160, 174, 192, 0.3);
    border-radius: 8px;
    font: 0.92rem 'Inter', sans-serif;
    resize: none;
}

.chat-contact input:focus,
.chat-contact textarea:focus,
.chat-input textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

.chat-contact-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.chat-contact-actions button {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font: 600 0.85rem 'Inter', sans-serif;
    cursor: pointer;
}

.chat-contact-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(160, 174, 192, 0.3);
}

.chat-contact-send {
    background: var(--neon-cyan);
    color: var(--primary-bg);
    border: none;
}

.chat-contact-error {
    font-size: 0.8rem;
    color: #ff7b7b;
}

.chat-input {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
}

.chat-input button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: var(--neon-cyan);
    color: var(--primary-bg);
    cursor: pointer;
}

.chat-input button:disabled {
    opacity: 0.5;
    cursor: default;
}

.chat-input button svg {
    width: 18px;
    height: 18px;
}

.chat-footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 1rem 0.85rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.chat-contact-open {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    color: var(--neon-cyan);
    font: 600 0.8rem 'Inter', sans-serif;
    cursor: pointer;
}

@media (max-width: 480px) {
    .chat-widget {
        right: 1rem;
        bottom: 1rem;
    }

    .chat-widget.is-open {
        left: 1rem;
    }

    .chat-panel {
        width: 100%;
        height: calc(100vh - 2rem);
        height: calc(100dvh - 2rem);
    }

    body.has-chat .back-to-top {
        right: 1rem;
        bottom: 5.5rem;
    }
}
