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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #0ea5e9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

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

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

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 300;
}

.logo-text strong {
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    margin-top: 4rem;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background-color: var(--bg-white);
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.feature-card {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

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

.benefit-item {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Use Cases Section */
.use-cases {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

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

.use-case-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.use-case-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.use-case-card p {
    line-height: 1.7;
    opacity: 0.95;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.cta-form input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.cta-form input:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.cta-form button {
    padding: 0.875rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 3rem 0 1.5rem;
    background-color: var(--text-primary);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.8;
}

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

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    margin-bottom: 0.75rem;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

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

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

    .add-features-grid {
        grid-template-columns: 1fr;
    }

    .panel-header h3 {
        font-size: 1.5rem;
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

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

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

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

    .hero-cta a {
        width: 100%;
        text-align: center;
    }

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

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

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

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

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

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

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

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

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

    .stat-number {
        font-size: 2rem;
    }

    .feature-card,
    .benefit-item,
    .use-case-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Product Showcase Section
   ============================================ */

.product-showcase {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.showcase-nav {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
}

.showcase-tab {
    padding: 0.625rem 1.1rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.showcase-tab:hover {
    color: var(--primary-color);
}

.showcase-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.showcase-panel {
    display: none;
}

.showcase-panel.active {
    display: block;
    animation: panelFadeIn 0.3s ease;
}

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

.panel-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.panel-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    line-height: 1.25;
}

.panel-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.panel-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.panel-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Legal Image Slider */
.legal-slider {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.legal-slider-window {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
    grid-column: 2;
    grid-row: 1;
}

.legal-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.legal-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.legal-slider-arrow {
    grid-row: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.legal-slider-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}

.legal-slider-footer {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.legal-slider-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.legal-slider-dots {
    display: flex;
    gap: 0.5rem;
}

.legal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.legal-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

@media (max-width: 600px) {
    .legal-slider-arrow { width: 32px; height: 32px; }
}

.screenshots-single img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07),
                0 20px 60px rgba(0, 0, 0, 0.10),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    display: block;
}

.screenshots-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.screenshot-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07),
                0 12px 40px rgba(0, 0, 0, 0.09),
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Additional Features Strip */
.additional-features {
    padding: 4rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.add-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.add-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.add-feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.add-feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.add-feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card,
.benefit-item,
.use-case-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* =====================
   LEGAL PROCESS SHOWCASE
   ===================== */
.legal-process-showcase {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.legal-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem;
    flex-wrap: wrap;
}

.legal-flow-step {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
    align-items: flex-start;
}

.legal-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 1.25rem;
}

.legal-flow-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-flow-content h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.375rem;
}

.legal-flow-content p {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.legal-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.legal-detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
}

.legal-detail-card h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legal-detail-card ul li {
    font-size: 0.8125rem;
    color: #475569;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.legal-detail-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2563eb;
}

@media (max-width: 900px) {
    .legal-details-grid { grid-template-columns: repeat(2, 1fr); }
    .legal-flow-arrow { display: none; }
    .legal-flow { gap: 1.5rem; }
}

@media (max-width: 560px) {
    .legal-details-grid { grid-template-columns: 1fr; }
}

/* =====================
   AI ENGINE SECTION
   ===================== */
.ai-section {
    padding: 6rem 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.25) 0%, transparent 60%);
    pointer-events: none;
}

.ai-section .section-header { color: white; }
.ai-section .section-header h2 { color: white; }
.ai-section .section-header p { color: rgba(255,255,255,0.75); }

/* AI Hub Diagram */
.ai-hub-diagram {
    position: relative;
    width: 560px;
    height: 560px;
    margin: 2rem auto 0;
}

.ai-hub-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.ai-hub-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ai-hub-center.visible { opacity: 1; }

.ai-hub-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px solid rgba(96,165,250,0.35);
    animation: hubPulse 2.6s ease-out infinite;
}

.ai-hub-ring-2 { animation-delay: 1.3s; }

@keyframes hubPulse {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.75); opacity: 0; }
}

.ai-hub-core {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    box-shadow: 0 0 50px rgba(37,99,235,0.55);
    z-index: 1;
    position: relative;
}

.ai-hub-core span {
    font-size: 0.625rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-node {
    position: absolute;
    left: var(--cx);
    top: var(--cy);
    transform: translate(-50%, -50%) scale(0.75);
    width: 108px;
    height: 108px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.75rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.45s ease var(--delay, 0.4s),
                transform 0.45s ease var(--delay, 0.4s),
                background 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    z-index: 2;
}

.ai-node.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ai-node:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(96,165,250,0.5);
    box-shadow: 0 0 24px rgba(96,165,250,0.22);
}

.ai-node-icon {
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-node-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    line-height: 1.3;
}

@media (max-width: 640px) {
    .ai-hub-diagram {
        left: 50%;
        transform: translateX(-50%) scale(0.55);
        transform-origin: top center;
        margin-bottom: -15rem;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .ai-hub-diagram {
        left: 50%;
        transform: translateX(-50%) scale(0.72);
        transform-origin: top center;
        margin-bottom: -9rem;
    }
}

/* =====================
   AI FEATURE MODAL
   ===================== */
.ai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ai-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.ai-modal-card {
    background: linear-gradient(160deg, #1a2744 0%, #0f172a 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 460px;
    width: 100%;
    position: relative;
    transform: scale(0.88) translateY(24px);
    transition: transform 0.4s cubic-bezier(0.34, 1.46, 0.64, 1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(96, 165, 250, 0.2),
                0 0 50px rgba(37, 99, 235, 0.12);
}

.ai-modal-overlay.open .ai-modal-card {
    transform: scale(1) translateY(0);
}

.ai-modal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 2rem; right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, #818cf8, transparent);
    border-radius: 999px;
}

.ai-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.ai-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.ai-modal-icon-wrap {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(14,165,233,0.35));
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #60a5fa;
    box-shadow: 0 0 24px rgba(96, 165, 250, 0.2);
}

.ai-modal-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ai-modal-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.ai-modal-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ai-modal-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.ai-modal-highlights li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    margin-top: 0.45rem;
}
