<?php
/**
 * Oemsoft - Ana Sayfa
 * 
 * SEO: Organization + WebSite schema
 * GEO: Doğrudan cevap veren, net tanımlı hero section
 * Topical Authority: Hub sayfalara yönlendirme
 */

$page = [
    'title' => 'MES Yazılımı ve PLC Veri Toplama Çözümleri',
    'description' => 'Oemsoft, üretim süreçlerinizi gerçek zamanlı izleyen, PLC\'lerden veri toplayan ve üretim verimliliğinizi artıran MES yazılım çözümleri sunar. Endüstri 4.0 dönüşümünüzü başlatın.',
    'canonical' => 'https://oemsoft.net',
    'og_type' => 'website',
    'is_home' => true,
    'keywords' => 'MES yazılımı, PLC veri toplama, üretim yönetim sistemi, OEE takip, üretim analitiği, endüstri 4.0, SCADA, OPC UA'
];

require_once __DIR__ . '/includes/header.php';
?>

<!-- Hero Section -->
<section class="hero">
    <div class="container hero__inner">
        <div class="hero__badge">
            <span class="hero__badge-dot"></span>
            Endüstri 4.0 Çözümleri
        </div>
        
        <h1 class="hero__title">
            Üretim Verilerinizi<br>
            <span class="hero__title-accent">Gerçek Zamanlı</span> Yönetin
        </h1>
        
        <p class="hero__description">
            PLC'lerden veri toplayın, üretim süreçlerinizi izleyin ve MES yazılımı ile 
            fabrikanızın verimliliğini artırın. Oemsoft, üretim sahasından yönetim kademesine 
            anlık veri akışı sağlar.
        </p>
        
        <div class="hero__actions">
            <a href="<?php echo url('/iletisim'); ?>" class="btn btn--primary btn--lg">
                Demo Talep Et
                <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
                    <path d="M3.5 8H12.5M12.5 8L8.5 4M12.5 8L8.5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
                </svg>
            </a>
            <a href="<?php echo url('/mes-nedir'); ?>" class="btn btn--secondary btn--lg">
                MES Nedir? Öğrenin
            </a>
        </div>
        
        <div class="hero__stats">
            <div class="hero__stat">
                <div class="hero__stat-value">%99.9</div>
                <div class="hero__stat-label">Veri Güvenilirliği</div>
            </div>
            <div class="hero__stat">
                <div class="hero__stat-value">&lt;100ms</div>
                <div class="hero__stat-label">Gerçek Zamanlı Veri</div>
            </div>
            <div class="hero__stat">
                <div class="hero__stat-value">7/24</div>
                <div class="hero__stat-label">Kesintisiz İzleme</div>
            </div>
        </div>
    </div>
</section>

<!-- Çözümler Section -->
<section class="section" id="cozumler">
    <div class="container">
        <div class="section__header">
            <span class="section__label">Çözümlerimiz</span>
            <h2 class="section__title">Üretim Süreçleriniz İçin Uçtan Uca Çözümler</h2>
            <p class="section__subtitle">
                PLC'lerden veri toplamadan üretim analitiğine, MES yazılımından 
                OEE takibine kadar tüm üretim süreçlerinizi dijitalleştirin.
            </p>
        </div>
        
        <div class="features-grid">
            <!-- MES Yazılımı -->
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <rect x="2" y="3" width="20" height="14" rx="2" ry="2"/>
                        <line x1="8" y1="21" x2="16" y2="21"/>
                        <line x1="12" y1="17" x2="12" y2="21"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">MES Yazılımı</h3>
                <p class="feature-card__description">
                    Üretim Yürütme Sistemi (MES) ile iş emirlerinden kalite kontrole, 
                    makine performansından operatör verimliliğine tüm süreçleri tek platformda yönetin.
                </p>
            </div>
            
            <!-- PLC Veri Toplama -->
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">PLC Veri Toplama</h3>
                <p class="feature-card__description">
                    Siemens, Allen-Bradley, Mitsubishi ve daha fazla PLC markasından 
                    OPC UA, Modbus ve Profinet protokolleri ile gerçek zamanlı veri toplayın.
                </p>
            </div>
            
            <!-- Üretim Analitiği -->
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <line x1="18" y1="20" x2="18" y2="10"/>
                        <line x1="12" y1="20" x2="12" y2="4"/>
                        <line x1="6" y1="20" x2="6" y2="14"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">Üretim Analitiği</h3>
                <p class="feature-card__description">
                    Toplanan üretim verilerini anlamlı KPI'lara dönüştürün. OEE hesaplama, 
                    darboğaz analizi ve kestirimci bakım ile verimliliği artırın.
                </p>
            </div>
            
            <!-- OEE Takip -->
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <circle cx="12" cy="12" r="10"/>
                        <polyline points="12 6 12 12 16 14"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">OEE Takip</h3>
                <p class="feature-card__description">
                    Genel Ekipman Verimliliği'ni (OEE) otomatik hesaplayın. 
                    Kullanılabilirlik, performans ve kalite metriklerini anlık izleyin.
                </p>
            </div>
            
            <!-- Gerçek Zamanlı Dashboard -->
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <rect x="3" y="3" width="7" height="7"/>
                        <rect x="14" y="3" width="7" height="7"/>
                        <rect x="14" y="14" width="7" height="7"/>
                        <rect x="3" y="14" width="7" height="7"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">Gerçek Zamanlı Dashboard</h3>
                <p class="feature-card__description">
                    Özelleştirilebilir üretim dashboard'ları ile makine durumu, üretim miktarı 
                    ve kalite verilerini tek ekranda görün.
                </p>
            </div>
            
            <!-- Entegrasyon -->
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/>
                        <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">ERP Entegrasyonu</h3>
                <p class="feature-card__description">
                    SAP, Microsoft Dynamics, Logo ve diğer ERP sistemleri ile 
                    çift yönlü veri entegrasyonu sağlayın.
                </p>
            </div>
        </div>
    </div>
</section>

<!-- Bilgi Merkezi / Hub Sayfalar Section -->
<section class="section section--alt" id="bilgi-merkezi">
    <div class="container">
        <div class="section__header">
            <span class="section__label">Bilgi Merkezi</span>
            <h2 class="section__title">Üretim Teknolojileri Hakkında Her Şey</h2>
            <p class="section__subtitle">
                MES, PLC veri toplama, Endüstri 4.0 ve üretim analitiği konularında 
                kapsamlı rehberler ve teknik içerikler.
            </p>
        </div>
        
        <div class="features-grid features-grid--2col">
            <?php foreach ($topical_map as $slug => $hub): ?>
            <a href="<?php echo url('/' . $slug); ?>" class="hub-card" data-animate>
                <span class="hub-card__label">Kapsamlı Rehber</span>
                <h3 class="hub-card__title"><?php echo htmlspecialchars($hub['title']); ?></h3>
                <p class="hub-card__description"><?php echo htmlspecialchars($hub['description']); ?></p>
                <div class="hub-card__meta">
                    <span class="hub-card__spoke-count">
                        <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/>
                            <polyline points="14 2 14 8 20 8"/>
                        </svg>
                        <?php echo count($hub['spokes']); ?> alt konu
                    </span>
                </div>
            </a>
            <?php endforeach; ?>
        </div>
    </div>
</section>

<!-- Neden Oemsoft -->
<section class="section" id="neden-oemsoft">
    <div class="container">
        <div class="section__header">
            <span class="section__label">Neden Oemsoft?</span>
            <h2 class="section__title">Üretim Verimliliğinizi Artırın</h2>
        </div>
        
        <div class="features-grid">
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">Gerçek Zamanlı Veri</h3>
                <p class="feature-card__description">
                    100ms altında veri toplama hızı ile üretim sahanızdaki değişiklikleri 
                    anında görün ve müdahale edin.
                </p>
            </div>
            
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">Yüksek Güvenilirlik</h3>
                <p class="feature-card__description">
                    %99.9 uptime garantisi ve yedekli veri mimarisi ile 
                    üretim verileriniz her zaman güvende.
                </p>
            </div>
            
            <div class="feature-card" data-animate>
                <div class="feature-card__icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <circle cx="12" cy="12" r="3"/>
                        <path d="M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-2 2 2 2 0 01-2-2v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06A1.65 1.65 0 004.68 15a1.65 1.65 0 00-1.51-1H3a2 2 0 01-2-2 2 2 0 012-2h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06A1.65 1.65 0 009 4.68a1.65 1.65 0 001-1.51V3a2 2 0 012-2 2 2 0 012 2v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06a1.65 1.65 0 00-.33 1.82V9a1.65 1.65 0 001.51 1H21a2 2 0 012 2 2 2 0 01-2 2h-.09a1.65 1.65 0 00-1.51 1z"/>
                    </svg>
                </div>
                <h3 class="feature-card__title">Kolay Entegrasyon</h3>
                <p class="feature-card__description">
                    Tüm büyük PLC markaları ve ERP sistemleri ile hazır entegrasyon. 
                    Hızlı kurulum ve devreye alma.
                </p>
            </div>
        </div>
    </div>
</section>

<!-- CTA Section -->
<section class="section">
    <div class="container">
        <div class="cta-section">
            <div class="cta-section__inner">
                <h2 class="cta-section__title">Üretim Süreçlerinizi Dijitalleştirin</h2>
                <p class="cta-section__description">
                    Oemsoft MES çözümleri ile üretim verimliliğinizi artırın, 
                    maliyetlerinizi düşürün ve rekabet avantajı kazanın.
                </p>
                <a href="<?php echo url('/iletisim'); ?>" class="btn btn--primary btn--lg">
                    Ücretsiz Demo Talep Et
                </a>
            </div>
        </div>
    </div>
</section>

<?php require_once __DIR__ . '/includes/footer.php'; ?>
