{% extends "base.html" %}

{% block title %}About - SmartTools{% endblock %}

{% block meta_description %}Learn about SmartTools, the open-source platform for building custom AI-powered command-line tools.{% endblock %}

{% block content %}
<div class="bg-white">
    <!-- Hero -->
    <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16 text-center">
        <h1 class="text-4xl font-bold text-gray-900">About SmartTools</h1>
        <p class="mt-6 text-xl text-gray-600">
            An open-source platform for building and sharing AI-powered command-line tools.
        </p>
    </div>

    <!-- Mission -->
    <div class="bg-gray-50 py-16">
        <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
            <h2 class="text-2xl font-bold text-gray-900 mb-6">Our Mission</h2>
            <div class="prose prose-lg prose-indigo max-w-none">
                <p>
                    SmartTools was created with a simple belief: powerful AI tools should be accessible to everyone,
                    not just those with extensive programming knowledge or expensive API subscriptions.
                </p>
                <p>
                    We're building a <strong>universally accessible development ecosystem</strong> that empowers
                    regular people to collaborate and build upon each other's progress rather than compete.
                </p>
                <p>
                    Our platform follows the Unix philosophy: simple, composable tools that do one thing well.
                    With SmartTools, you can create custom AI commands using simple YAML configuration,
                    chain them together, and share them with the community.
                </p>
            </div>
        </div>
    </div>

    <!-- Values -->
    <div class="py-16">
        <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
            <h2 class="text-2xl font-bold text-gray-900 mb-8">Our Values</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div class="bg-white border border-gray-200 rounded-lg p-6">
                    <div class="w-12 h-12 bg-indigo-100 rounded-lg flex items-center justify-center mb-4">
                        <svg class="w-6 h-6 text-indigo-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"/>
                        </svg>
                    </div>
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">Open Source</h3>
                    <p class="text-gray-600">
                        SmartTools is MIT licensed and open source. We believe in transparency and community ownership.
                    </p>
                </div>

                <div class="bg-white border border-gray-200 rounded-lg p-6">
                    <div class="w-12 h-12 bg-cyan-100 rounded-lg flex items-center justify-center mb-4">
                        <svg class="w-6 h-6 text-cyan-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
                        </svg>
                    </div>
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">Community First</h3>
                    <p class="text-gray-600">
                        We prioritize collaboration over competition. Share tools, learn from others, build together.
                    </p>
                </div>

                <div class="bg-white border border-gray-200 rounded-lg p-6">
                    <div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mb-4">
                        <svg class="w-6 h-6 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>
                        </svg>
                    </div>
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">Privacy Respecting</h3>
                    <p class="text-gray-600">
                        Your data stays yours. We collect minimal analytics and never sell user information.
                    </p>
                </div>

                <div class="bg-white border border-gray-200 rounded-lg p-6">
                    <div class="w-12 h-12 bg-amber-100 rounded-lg flex items-center justify-center mb-4">
                        <svg class="w-6 h-6 text-amber-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
                        </svg>
                    </div>
                    <h3 class="text-lg font-semibold text-gray-900 mb-2">Provider Agnostic</h3>
                    <p class="text-gray-600">
                        Works with any AI provider. Use Claude, GPT, local models, or any CLI-accessible AI.
                    </p>
                </div>
            </div>
        </div>
    </div>

    <!-- Sustainability -->
    <div class="bg-gray-50 py-16">
        <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
            <h2 class="text-2xl font-bold text-gray-900 mb-6">Sustainability</h2>
            <div class="prose prose-lg prose-indigo max-w-none">
                <p>
                    SmartTools is committed to long-term sustainability. Revenue from optional ads
                    and donations supports:
                </p>
                <ul>
                    <li>Maintaining and expanding the project</li>
                    <li>Hosting infrastructure for the registry</li>
                    <li>Future hosting of AI models for users with less access to paid services</li>
                    <li>Building a sustainable, community-first platform</li>
                </ul>
                <p>
                    <a href="{{ url_for('web.donate') }}" class="text-indigo-600 hover:text-indigo-800">
                        Support the project
                    </a>
                </p>
            </div>
        </div>
    </div>

    <!-- Open Source -->
    <div class="py-16">
        <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
            <h2 class="text-2xl font-bold text-gray-900 mb-6">Contribute</h2>
            <p class="text-lg text-gray-600 mb-8">
                SmartTools is open source and welcomes contributions of all kinds.
            </p>
            <a href="https://github.com/your-org/smarttools"
               target="_blank"
               rel="noopener noreferrer"
               class="inline-flex items-center px-6 py-3 text-base font-medium text-white bg-gray-900 rounded-md hover:bg-gray-800">
                <svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
                    <path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"/>
                </svg>
                View on GitHub
            </a>
        </div>
    </div>
</div>
{% endblock %}
