/* ─── AI Systems Page ─── */

/* ─── Hero ─── */
.ais-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
}

.ais-hero-content {
    max-width: 720px;
    padding: 80px 0;
}

.ais-hero-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent);
    display: block;
    margin-bottom: 24px;
}

.ais-hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 300;
    line-height: 1.08;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.ais-hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 620px;
}

.ais-hero-sub {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
}

/* ─── Sections ─── */
.ais-section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
}

.ais-section--alt {
    background: rgba(5, 5, 5, 0.96);
}

/* ─── Problem Section ─── */
.ais-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.ais-problem-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 36px;
}

.ais-problem-icon {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.ais-problem-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ais-problem-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ais-thesis-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 32px 0;
}

.ais-thesis-bar p {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ─── Use Cases ─── */
.ais-usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ais-usecase {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 32px;
    transition: all 0.25s ease;
}

.ais-usecase:hover {
    border-color: var(--border-hover);
}

.ais-usecase h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.ais-usecase p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Architecture Diagram (SVG) ─── */
.ais-arch-diagram {
    max-width: 640px;
    margin: 0 auto 64px;
}

.ais-arch-svg {
    width: 100%;
    height: auto;
}

/* Connection paths */
.ais-path {
    stroke: #1E1E1E;
    stroke-width: 1;
    fill: none;
    animation: pathPulse 3s ease-in-out infinite;
}

.ais-path:nth-child(2) { animation-delay: 0.5s; }
.ais-path:nth-child(3) { animation-delay: 1s; }
.ais-path:nth-child(4) { animation-delay: 1.5s; }
.ais-path:nth-child(5) { animation-delay: 2s; }
.ais-path:nth-child(6) { animation-delay: 2.5s; }

@keyframes pathPulse {
    0%, 100% { stroke: #1E1E1E; }
    50% { stroke: rgba(255, 255, 255, 0.4); }
}

/* Animated dots */
.ais-dot {
    opacity: 0.8;
}

/* Hand boxes */
.ais-svg-hand {
    fill: #0A0A0A;
    stroke: #1E1E1E;
    stroke-width: 1;
    transition: stroke 0.25s ease;
}

.ais-svg-hand-text {
    fill: #A1A1AA;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Brain box */
.ais-svg-brain-glow {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1;
    animation: brainGlow 3s ease-in-out infinite;
}

@keyframes brainGlow {
    0%, 100% {
        stroke: rgba(255, 255, 255, 0.2);
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        stroke: rgba(255, 255, 255, 0.6);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
    }
}

.ais-svg-brain {
    fill: #0A0A0A;
    stroke: #1E1E1E;
    stroke-width: 1;
}

.ais-svg-brain-label {
    fill: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.ais-svg-brain-title {
    fill: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 500;
}

/* ─── Architecture Explanation ─── */
.ais-arch-explain {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ais-arch-explain-item h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.ais-arch-explain-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Phases ─── */
.ais-phases {
    max-width: 680px;
}

.ais-phase {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.ais-phase-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
}

.ais-phase-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.ais-phase-line {
    width: 1px;
    height: 100%;
    min-height: 40px;
    background: var(--border-color);
}

.ais-phase-content {
    padding-bottom: 40px;
}

.ais-phase-content h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
}

.ais-phase-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Domain / Verticals ─── */
.ais-domain-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.ais-domain-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.ais-domain-accent {
    color: var(--text-primary) !important;
    font-weight: 500;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    margin-top: 32px !important;
}

.ais-verticals-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 20px;
}

.ais-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ais-vertical {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 24px;
    transition: all 0.25s ease;
}

.ais-vertical:hover {
    border-color: var(--border-hover);
}

.ais-vertical h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.ais-vertical p {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ─── Limits ─── */
.ais-limits {
    max-width: 800px;
}

.ais-limits-intro {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.ais-limits-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ais-limit {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.ais-limit-x {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-tertiary);
    flex-shrink: 0;
    width: 24px;
    line-height: 1;
}

.ais-limit p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── CTA Section ─── */
.ais-cta-section {
    background: rgba(5, 5, 5, 0.98);
    text-align: center;
}

.ais-cta-block {
    max-width: 600px;
    margin: 0 auto;
}

.ais-cta-block h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.ais-cta-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.ais-cta-sub {
    font-size: 13px !important;
    color: var(--text-tertiary) !important;
    margin-bottom: 32px !important;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .ais-domain-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .ais-hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 60px;
    }

    .ais-hero-content {
        padding: 40px 0;
    }

    .ais-hero-title {
        font-size: 32px;
    }

    .ais-section {
        padding: 80px 0;
    }

    .ais-problem-grid {
        grid-template-columns: 1fr;
    }

    .ais-usecases-grid {
        grid-template-columns: 1fr;
    }

    .ais-arch-explain {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ais-arch-diagram {
        max-width: 100%;
    }

    .ais-svg-hand-text {
        font-size: 10px;
    }

    .ais-svg-brain-title {
        font-size: 16px;
    }

    .ais-phase {
        gap: 20px;
    }

    .ais-cta-block h2 {
        font-size: 26px;
    }
}

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

    .ais-arch-connectors {
        height: 28px;
    }
}
