/* ============================================
   MagnaAI Technologies
   Enterprise AI Agency — Website Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - MagnaDAI Purple/Magenta (hsl 319°) */
    --primary-dark: #0f0a0f;
    --primary: #B5309A;
    --primary-light: #CC4BB3;
    --primary-lighter: #E089D0;
    --primary-glow: rgba(181, 48, 154, 0.3);
    
    /* Secondary Colors */
    --secondary-dark: #111827;
    --secondary: #1F2937;
    --secondary-light: #374151;
    
    /* Accent Colors */
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Background Colors */
    --bg-dark: #0f0a0f;
    --bg-card: #111827;
    --bg-card-hover: #1F2937;
    --bg-gradient: linear-gradient(135deg, #0f0a0f 0%, #111827 100%);
    
    /* Border Colors */
    --border-color: rgba(181, 48, 154, 0.2);
    --border-color-light: rgba(181, 48, 154, 0.18);
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 24px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Syne', 'Inter', sans-serif;
    
    /* Transitions — ease-out-expo (Emil Kowalski) */
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.32);
    --shadow-glow: 0 0 0 1px rgba(181, 48, 154, 0.3);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.container-narrow {
    max-width: 960px;
}

.container-wide {
    max-width: 1440px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-transform: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color-light);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 10, 15, 0.99);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 7px;
    background: rgba(255,255,255,0.92);
    padding: 3px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    line-height: 1.3;
    /* Shimmer: gradient sweeps slowly so text stays readable */
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 30%,
        #E089D0 48%,
        #B5309A 50%,
        #E089D0 52%,
        #ffffff 70%,
        #ffffff 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shimmer 4s linear infinite;
}

.logo-text span {
    -webkit-text-fill-color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 120px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('imgs/modern-ai-technology-abstract-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 30%, transparent 70%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(181, 48, 154, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-title {
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 48, 154, 0.45);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 32px rgba(181, 48, 154, 0.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-feature {
    padding: 6px 12px;
    background: var(--secondary);
    border: 1px solid var(--border-color-light);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
    transition: var(--transition-normal);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(160deg, #141e2e 60%, rgba(181, 48, 154, 0.1) 100%);
    box-shadow: 0 0 0 1px rgba(181, 48, 154, 0.3), 0 16px 48px rgba(181, 48, 154, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-dark);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.pricing-period {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color-light);
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-feature svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-feature span {
    color: var(--text-secondary);
}

.pricing-card .btn {
    width: 100%;
}

/* Medical service card variant */
.service-card--medical {
    border-color: rgba(181, 48, 154, 0.35);
    background: linear-gradient(160deg, var(--bg-card) 70%, rgba(181, 48, 154, 0.07) 100%);
}

.service-card__partner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color-light);
}

.service-partner-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
}

.service-partner-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service-card__cta {
    margin-top: 24px;
    align-self: flex-start;
}

.service-card--medical .service-icon {
    background: rgba(181, 48, 154, 0.2);
}

/* About Mission Grid — 2-col, stacks on tablet */
.about-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-3px);
    border-color: rgba(181, 48, 154, 0.45);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 32px rgba(181, 48, 154, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.benefit-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    border-color: var(--primary);
}

.testimonial-content {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.process-step {
    position: relative;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Trust Badges */
.trust-section {
    background: var(--bg-card);
    padding: 60px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.trust-item {
    text-align: center;
}

.trust-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.trust-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    margin: 60px 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.cta-feature svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--secondary);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.1;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(181, 48, 154, 0.45);
    box-shadow: 0 8px 32px rgba(181, 48, 154, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 32px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-glow);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.team-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-content {
    padding: 32px;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.team-avatar {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(181, 48, 154, 0.15) 0%, rgba(181, 48, 154, 0.04) 100%);
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(181, 48, 154, 0.15);
    user-select: none;
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color-light);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-grid .stat-item:last-child {
        grid-column: 1 / -1;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-section {
        padding: 60px 24px;
    }

    .cta-features {
        flex-direction: column;
    }

    /* Timeline collapses to 2-col on tablet/mobile */
    .timeline-milestones {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ecosystem section inline grids collapse on mobile */
    .section [style*="grid-template-columns: repeat(3, 1fr)"],
    .section [style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .service-card,
    .pricing-card,
    .contact-form {
        padding: 24px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s var(--ease-expo),
        transform 0.6s var(--ease-expo);
    transition-delay: var(--stagger, 0ms);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger siblings automatically */
.animate-on-scroll:nth-child(1) { --stagger: 0ms; }
.animate-on-scroll:nth-child(2) { --stagger: 60ms; }
.animate-on-scroll:nth-child(3) { --stagger: 120ms; }
.animate-on-scroll:nth-child(4) { --stagger: 180ms; }
.animate-on-scroll:nth-child(5) { --stagger: 240ms; }
.animate-on-scroll:nth-child(6) { --stagger: 300ms; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ============================================
   NEW COMPONENTS — MagnaAI Technologies
   ============================================ */

/* Live Badge — amber/operational colour */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

/* Industry Cards — 4-col strip */
.industry-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 28px 24px;
    transition: var(--transition-normal);
}

.industry-card:hover {
    border-color: rgba(181, 48, 154, 0.45);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(181, 48, 154, 0.1);
}

.industry-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(181, 48, 154, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.industry-card__icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.industry-card__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.industry-card h4 {
    font-size: 1rem;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.industry-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Consulting / Professional Services Cards */
.consulting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.consulting-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 36px 32px;
    transition: var(--transition-normal);
}

.consulting-card:hover {
    border-color: rgba(181, 48, 154, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(181, 48, 154, 0.1);
}

.consulting-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(181, 48, 154, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.consulting-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.consulting-card h3 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.consulting-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Eco Cards — clean class-based ecosystem cards */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.eco-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-normal);
}

.eco-card:hover {
    border-color: rgba(181, 48, 154, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(181, 48, 154, 0.1);
}

.eco-card--featured {
    background: linear-gradient(135deg, var(--bg-card) 60%, rgba(181, 48, 154, 0.08) 100%);
    border-color: rgba(181, 48, 154, 0.3);
}

.eco-icon {
    width: 48px;
    height: 48px;
    background: rgba(181, 48, 154, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.eco-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.eco-card h4 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.eco-card > p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Responsive — new components */
@media (max-width: 1024px) {
    .industry-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .consulting-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .eco-grid {
        grid-template-columns: 1fr;
    }
}

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

/* =====================================================
   Product Showcase — Screenshot + Browser Chrome
   ===================================================== */

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.product-showcase--reverse {
    direction: rtl;
}
.product-showcase--reverse .product-showcase__info,
.product-showcase--reverse .product-showcase__preview {
    direction: ltr;
}

.product-showcase__info h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 14px 0 16px;
    line-height: 1.2;
}

.product-showcase__info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Live pill badge */
.product-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Pulsing green dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Feature list */
.product-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 28px;
}

.product-features-list li {
    padding: 7px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.product-features-list li:last-child {
    border-bottom: none;
}

.product-features-list li::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(181, 48, 154, 0.5);
}

/* Browser chrome mockup */
.browser-chrome {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(181, 48, 154, 0.25);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.browser-chrome:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(181, 48, 154, 0.4),
        0 0 50px rgba(181, 48, 154, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.browser-chrome__bar {
    background: #16141c;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.browser-url {
    margin-left: 12px;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: rgba(255,255,255,0.05);
    padding: 2px 10px;
    border-radius: 4px;
}

.product-screenshot {
    width: 100%;
    display: block;
    transition: opacity var(--transition-normal);
}

.product-screenshot:hover {
    opacity: 0.92;
}

/* Responsive */
@media (max-width: 960px) {
    .product-showcase,
    .product-showcase--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 36px;
        margin-bottom: 56px;
    }
}

@media (max-width: 768px) {
    .product-showcase__info h3 {
        font-size: 1.4rem;
    }
}

/* =====================================================
   Our Story / Impact Section
   ===================================================== */

.story-section { background: var(--secondary-dark); }

.story-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 80px;
    align-items: start;
}

.story-content .section-badge { margin-bottom: 16px; display: inline-block; }

.story-text {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 16px;
    font-size: 1rem;
}

.story-text strong { color: var(--text-primary); }
.story-text em     { color: var(--primary-lighter); font-style: normal; font-weight: 600; }

.story-principles {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.story-principle {
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.story-principle strong {
    color: var(--primary);
    font-weight: 700;
    min-width: 155px;
    font-size: 0.9rem;
}

.story-principle span {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 48px;
}

.story-stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 22px 18px;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.story-stat-card:hover {
    border-color: rgba(181,48,154,0.4);
    transform: translateY(-2px);
}

.story-stat-card--featured {
    background: linear-gradient(135deg, rgba(181,48,154,0.15) 0%, rgba(181,48,154,0.04) 100%);
    border-color: rgba(181,48,154,0.3);
}

.story-stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.story-stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.story-stat-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 960px) {
    .story-grid { grid-template-columns: 1fr; gap: 48px; }
    .story-stats { padding-top: 0; }
}

/* =====================================================
   Animated Link Wrapper
   ===================================================== */

.anim-link-wrap {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* =====================================================
   Animated Dashboard — FinGuard AI (l1bya.com)
   ===================================================== */

.anim-dashboard {
    background: #f8fafc;
    padding: 18px 20px 20px;
    min-height: 320px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    overflow: hidden;
}

.anim-db__header { margin-bottom: 14px; }

.anim-db__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}

.anim-ar {
    font-size: 0.75rem;
    color: #64748b;
    direction: rtl;
}

.anim-db__sub {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 2px;
}

.anim-db__kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 14px;
}

.anim-kpi {
    border-radius: 8px;
    padding: 9px 7px;
    text-align: center;
    animation: kpi-pop 12s ease-in-out infinite both;
}

.anim-kpi--approved  { background: #dcfce7; animation-delay: 0.2s; }
.anim-kpi--submitted { background: #dbeafe; animation-delay: 0.4s; }
.anim-kpi--review    { background: #fef9c3; animation-delay: 0.6s; }
.anim-kpi--rejected  { background: #fee2e2; animation-delay: 0.8s; }

.anim-kpi__v {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.anim-kpi--approved  .anim-kpi__v { color: #16a34a; }
.anim-kpi--submitted .anim-kpi__v { color: #2563eb; }
.anim-kpi--review    .anim-kpi__v { color: #ca8a04; }
.anim-kpi--rejected  .anim-kpi__v { color: #dc2626; }

.anim-kpi__l {
    font-size: 0.6rem;
    color: rgba(0,0,0,0.45);
    font-weight: 500;
    margin-top: 3px;
}

.anim-kpi__p {
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 1px;
}
.anim-kpi--approved  .anim-kpi__p { color: #16a34a; }
.anim-kpi--submitted .anim-kpi__p { color: #2563eb; }
.anim-kpi--review    .anim-kpi__p { color: #ca8a04; }
.anim-kpi--rejected  .anim-kpi__p { color: #dc2626; }

@keyframes kpi-pop {
    0%, 8%   { opacity: 0; transform: scale(0.85); }
    18%, 84% { opacity: 1; transform: scale(1); }
    93%, 100% { opacity: 0; transform: scale(0.9); }
}

/* Bar Chart */
.anim-db__chart-section { margin-bottom: 14px; }

.anim-db__chart-title {
    font-size: 0.67rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.anim-bars {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 76px;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2px;
}

.anim-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.anim-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    height: 0;
    animation: bar-rise 12s ease-in-out infinite both;
}

.anim-bar--usd { background: linear-gradient(180deg,#38bdf8,#0ea5e9); animation-delay: 1.0s; }
.anim-bar--eur { background: linear-gradient(180deg,#34d399,#10b981); animation-delay: 1.3s; }
.anim-bar--gbp { background: linear-gradient(180deg,#a78bfa,#7c3aed); animation-delay: 1.6s; }

@keyframes bar-rise {
    0%, 8%    { height: 0; opacity: 0; }
    22%       { height: var(--bar-h); opacity: 1; }
    84%       { height: var(--bar-h); opacity: 1; }
    94%, 100% { height: 0; opacity: 0; }
}

.anim-bar-lbl {
    font-size: 0.58rem;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

.anim-bar-lbl strong { color: #1e293b; font-size: 0.62rem; }

/* Fraud Risk Pills */
.anim-db__fraud { }

.anim-db__fraud-title {
    font-size: 0.67rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.anim-risk-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.risk-pill {
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0;
    animation: pill-pop 12s ease-in-out infinite both;
}

.risk-pill--low      { background: #dcfce7; color: #16a34a; animation-delay: 2.0s; }
.risk-pill--unknown  { background: #f1f5f9; color: #475569; animation-delay: 2.3s; }
.risk-pill--medium   { background: #fef3c7; color: #d97706; animation-delay: 2.6s; }
.risk-pill--high     { background: #fee2e2; color: #dc2626; animation-delay: 2.9s; }
.risk-pill--critical { background: #ede9fe; color: #7c3aed; animation-delay: 3.2s; }

@keyframes pill-pop {
    0%, 18%   { opacity: 0; transform: translateY(6px); }
    28%, 84%  { opacity: 1; transform: translateY(0); }
    93%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* =====================================================
   Animated Chat — MedPub Research (magnaai.app/en)
   ===================================================== */

.anim-chat {
    background: #0f172a;
    padding: 18px 18px 16px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    overflow: hidden;
}

.anim-chat__hdr {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.anim-chat__ico {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #B5309A 0%, #7c3aed 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.anim-chat__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
}

.anim-chat__sub {
    font-size: 0.65rem;
    color: #475569;
}

.anim-chat__tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.chat-tag {
    background: rgba(181,48,154,0.15);
    border: 1px solid rgba(181,48,154,0.3);
    color: #E089D0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 600;
}

.anim-chat__msgs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: hidden;
}

.chat-msg {
    max-width: 88%;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 0.73rem;
    line-height: 1.55;
    opacity: 0;
    animation: chat-pop 14s ease-in-out infinite both;
}

.chat-msg--user {
    background: rgba(181,48,154,0.22);
    color: #e2e8f0;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-msg--ai {
    background: rgba(255,255,255,0.06);
    color: #cbd5e1;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.chat-ai-badge {
    font-size: 0.58rem;
    color: #E089D0;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.chat-msg--a1 { animation-delay: 0.4s; }
.chat-msg--a2 { animation-delay: 1.4s; }
.chat-msg--a3 { animation-delay: 2.6s; }
.chat-msg--a4 { animation-delay: 3.8s; }

@keyframes chat-pop {
    0%, 3%    { opacity: 0; transform: translateY(10px); }
    10%, 85%  { opacity: 1; transform: translateY(0); }
    94%, 100% { opacity: 0; }
}

.anim-chat__input {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 9px;
}

.chat-inp {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-inp__txt {
    font-size: 0.7rem;
    color: #334155;
    flex: 1;
}

.chat-cursor {
    color: #B5309A;
    font-weight: 700;
    animation: blink-cur 1s step-end infinite;
}

@keyframes blink-cur {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* =====================================================
   Animated Lab Report — MedAI Diagnostics
   ===================================================== */

.anim-medai {
    background: #f0fdf4;
    padding: 18px 20px;
    min-height: 320px;
    overflow: hidden;
}

.anim-medai__hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d1fae5;
}

.anim-medai__ico { font-size: 1.4rem; flex-shrink: 0; }

.anim-medai__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #064e3b;
}

.anim-medai__sub {
    font-size: 0.65rem;
    color: #059669;
}

.anim-medai__ctr {
    margin-left: auto;
    font-size: 0.65rem;
    color: #065f46;
    font-weight: 600;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    padding: 5px 10px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.4;
    flex-shrink: 0;
}

.ctr-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: #059669;
}

.anim-medai__tbl { margin-bottom: 12px; }

.anim-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    border-bottom: 1px solid #d1fae5;
    opacity: 0;
    animation: row-slide 12s ease-in-out infinite both;
}

.anim-row--1 { animation-delay: 0.5s; }
.anim-row--2 { animation-delay: 1.0s; }
.anim-row--3 { animation-delay: 1.5s; }
.anim-row--4 { animation-delay: 2.0s; }

@keyframes row-slide {
    0%, 4%    { opacity: 0; transform: translateX(-10px); }
    14%, 84%  { opacity: 1; transform: translateX(0); }
    93%, 100% { opacity: 0; }
}

.row-lbl { flex: 1; font-size: 0.72rem; color: #374151; font-weight: 500; }
.row-val { font-size: 0.72rem; font-weight: 700; color: #1e293b; min-width: 85px; text-align: right; }

.row-flag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.row-flag--low  { background: #fee2e2; color: #dc2626; }
.row-flag--high { background: #fef3c7; color: #d97706; }
.row-flag--ok   { background: #dcfce7; color: #16a34a; }

.anim-medai__ai {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 10px 12px;
    opacity: 0;
    animation: row-slide 12s ease-in-out 2.7s infinite both;
}

.anim-ai__lbl {
    font-size: 0.67rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.anim-ai__txt {
    font-size: 0.72rem;
    color: #064e3b;
    line-height: 1.6;
}

.txt-warn { color: #d97706; font-weight: 700; }

/* ─── Animated AI Neural Network Logo ─── */
.ai-logo-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.ai-logo-svg {
    width: 44px;
    height: 44px;
    overflow: visible;
    filter: drop-shadow(0 0 7px rgba(181, 48, 154, 0.6));
}

.ai-ring {
    transform-origin: 22px 22px;
    animation: ai-ring-spin 10s linear infinite;
}

.ai-core {
    transform-box: fill-box;
    transform-origin: center;
    animation: ai-core-pulse 2.5s ease-in-out infinite;
}

.ai-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: ai-node-blink 3s ease-in-out infinite;
}
.ai-n1 { animation-delay: 0s; }
.ai-n2 { animation-delay: 0.5s; }
.ai-n3 { animation-delay: 1.0s; }
.ai-n4 { animation-delay: 1.5s; }
.ai-n5 { animation-delay: 2.0s; }
.ai-n6 { animation-delay: 2.5s; }

.ai-spoke {
    animation: ai-spoke-flash 3s ease-in-out infinite;
}
.ai-s1 { animation-delay: 0s; }
.ai-s2 { animation-delay: 0.5s; }
.ai-s3 { animation-delay: 1.0s; }
.ai-s4 { animation-delay: 1.5s; }
.ai-s5 { animation-delay: 2.0s; }
.ai-s6 { animation-delay: 2.5s; }

/* Logo text shimmer — slow sweep so text is always readable */
@keyframes logo-shimmer {
    0%   { background-position: 160% center; }
    100% { background-position: -60% center; }
}

@keyframes ai-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes ai-core-pulse {
    0%,  100% { transform: scale(1);    opacity: 0.85; }
    50%       { transform: scale(1.25); opacity: 1; }
}

@keyframes ai-node-blink {
    0%,  100% { transform: scale(1);   opacity: 0.45; }
    50%       { transform: scale(1.5); opacity: 1; }
}

@keyframes ai-spoke-flash {
    0%,  100% { opacity: 0.2; }
    50%       { opacity: 0.9; }
}

/* ─── Agentic AI Showcase Section ─── */
.agentic-showcase {
    background: var(--bg-dark);
    padding: var(--section-padding);
}

.agentic-showcase__inner {
    background: linear-gradient(135deg, #0d0818 0%, #12082a 50%, #0d0818 100%);
    border: 1px solid rgba(181, 48, 154, 0.25);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.agentic-showcase__inner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(181, 48, 154, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.agentic-showcase__header {
    padding: 56px 64px 40px;
    position: relative;
    z-index: 1;
}

.agentic-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(181, 48, 154, 0.15);
    border: 1px solid rgba(181, 48, 154, 0.35);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.agentic-showcase__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 10px;
}

.agentic-showcase__title em {
    font-style: normal;
    background: linear-gradient(135deg, #B5309A 0%, #E089D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agentic-showcase__sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.agentic-showcase__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: rgba(181, 48, 154, 0.1);
    margin: 0 0 2px;
}

.agentic-cap-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 36px 48px;
    background: linear-gradient(135deg, #0d0818 0%, #110a22 100%);
    transition: background 0.3s ease;
    cursor: default;
}

.agentic-cap-card:hover {
    background: linear-gradient(135deg, #15092a 0%, #1c0c38 100%);
}

.agentic-cap-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.agentic-cap-card__icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

/* Card icon gradients - matching MIT image palette */
.icon-gen-ai {
    background: linear-gradient(135deg, #1a0533 0%, #4b0082 50%, #7b2fbe 100%);
    box-shadow: 0 4px 20px rgba(123, 47, 190, 0.4);
}
.icon-gen-ai svg { color: #e0aaff; }

.icon-workflow {
    background: linear-gradient(135deg, #002a1a 0%, #004d2e 50%, #00875a 100%);
    box-shadow: 0 4px 20px rgba(0, 135, 90, 0.35);
}
.icon-workflow svg { color: #69ffca; }

.icon-enterprise {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #2d2d5e 100%);
    box-shadow: 0 4px 20px rgba(45, 45, 94, 0.5);
}
.icon-enterprise svg { color: #a0aec0; }

.icon-risk {
    background: linear-gradient(135deg, #001a40 0%, #003080 50%, #0057e7 100%);
    box-shadow: 0 4px 20px rgba(0, 87, 231, 0.35);
}
.icon-risk svg { color: #93c5fd; }

.agentic-cap-card__body {}

.agentic-cap-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.agentic-cap-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.agentic-showcase__footer {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--primary);
    padding: 18px 48px;
}

.agentic-footer-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
}

.agentic-footer-stat svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    flex-shrink: 0;
}

.agentic-footer-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 24px;
}

.agentic-footer-highlight {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .agentic-showcase__grid {
        grid-template-columns: 1fr;
    }
    .agentic-showcase__header {
        padding: 40px 28px 28px;
    }
    .agentic-cap-card {
        padding: 28px;
    }
    .agentic-showcase__footer {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px 28px;
    }
    .agentic-footer-divider {
        display: none;
    }
}
