<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/session.php");
?>

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>KoDATA vs NICE 기업신용등급 API 비교 전략</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            width: 100%;
        }

        .header {
            text-align: center;
            margin-bottom: 60px;
            animation: fadeInDown 0.8s ease-out;
        }

        .header h1 {
            color: white;
            font-size: 3em;
            margin-bottom: 15px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .header p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.3em;
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .card {
            background: white;
            border-radius: 20px;
            padding: 50px 40px;
            text-decoration: none;
            color: inherit;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.8s ease-out;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .card:hover::before {
            transform: scaleX(1);
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .card-icon {
            font-size: 4em;
            margin-bottom: 20px;
            display: block;
            animation: bounce 2s infinite;
        }

        .card-title {
            font-size: 2em;
            color: #1e3c72;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .card-description {
            color: #666;
            font-size: 1.1em;
            line-height: 1.8;
            margin-bottom: 25px;
        }

        .badge {
            display: inline-block;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
        }

        .home-btn {
            position: fixed;
            top: 30px;
            left: 30px;
            background: linear-gradient(135deg, #00acc1 0%, #0288d1 100%);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 1em;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            z-index: 1000;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
        }

        .home-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            background: linear-gradient(135deg, #0288d1 0%, #00acc1 100%);
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }

            .header p {
                font-size: 1em;
            }

            .cards-container {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .card {
                padding: 35px 25px;
            }

            .card-icon {
                font-size: 3em;
            }

            .card-title {
                font-size: 1.5em;
            }

            .card-description {
                font-size: 1em;
            }

            .home-btn {
                top: 15px;
                left: 15px;
                padding: 10px 20px;
                font-size: 0.9em;
            }
        }
    </style>
</head>
<body>
    <!-- Home Button -->
    <a href="../index.php" class="home-btn">
        <span>🏠</span>
        <span>홈으로</span>
    </a>

    <div class="container">
        <div class="header">
            <h1>KoDATA vs NICE 기업신용등급 API 비교</h1>
            <p>기업신용평가 정보 API 도입 전략 분석</p>
        </div>

        <div class="cards-container">
            <a href="longterm_kodatavsnice.php" class="card">
                <span class="card-icon">📊</span>
                <h2 class="card-title">중장기 API 도입 전략</h2>
                <p class="card-description">
                    KoDATA와 NICE 기업신용등급 API 종합 비교 분석<br>
                    가격 정책, 계약 요건, 데이터 범위, 기술 스펙 상세 검토<br>
                    월 1,000건 수준 상용 서비스 도입을 위한 의사결정 가이드<br>
                    보안 컴플라이언스 및 라이선싱 요구사항 포함
                </p>
                <span class="badge">종합 비교 분석</span>
            </a>
        </div>
    </div>
</body>
</html>
