/* Apple-style Design System for Index Page */

/* ========== CSS Variables ========== */
:root {
    --apple-black: #000000;
    --apple-white: #ffffff;
    --apple-gray-50: #f5f5f7;
    --apple-gray-100: #e8e8ed;
    --apple-gray-200: #d2d2d7;
    --apple-gray-400: #86868b;
    --apple-gray-600: #424245;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-purple: #5e5ce6;
    --apple-pink: #ff375f;
    --apple-orange: #ff9500;
    --apple-green: #34c759;
    --apple-gradient-hero: linear-gradient(180deg, #f5f5f7 0%, #ffffff 50%, #f5f5f7 100%);
    --apple-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --apple-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
    --apple-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --apple-radius-sm: 12px;
    --apple-radius-md: 18px;
    --apple-radius-lg: 28px;
    --apple-radius-xl: 40px;
    --apple-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========== Global Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--apple-font);
    background-color: var(--apple-white);
    color: var(--apple-black);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========== Typography ========== */
.apple-hero-title {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 50%, #1d1d1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.apple-hero-subtitle {
    font-size: 28px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.021em;
    color: var(--apple-black);
    text-align: center;
    margin-top: 12px;
}

.apple-hero-desc {
    font-size: 19px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--apple-gray-400);
    text-align: center;
    max-width: 560px;
    margin: 20px auto 0;
}

.apple-section-title {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--apple-black);
    text-align: center;
}

.apple-section-subtitle {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--apple-gray-400);
    text-align: center;
    margin-top: 12px;
}

.apple-card-title {
    font-size: 19px;
    line-height: 1.21053;
    font-weight: 600;
    letter-spacing: 0.011em;
    color: var(--apple-black);
}

.apple-card-text {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.016em;
    color: var(--apple-gray-400);
    margin-top: 8px;
}

/* ========== Buttons ========== */
.apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--apple-blue);
    color: white;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--apple-transition);
    border: none;
    cursor: pointer;
    min-width: 160px;
}

.apple-btn:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.4);
}

.apple-btn-secondary {
    background: transparent;
    color: var(--apple-blue);
    border: 2px solid var(--apple-blue);
}

.apple-btn-secondary:hover {
    background: var(--apple-blue);
    color: white;
}

.apple-btn-large {
    padding: 18px 40px;
    font-size: 17px;
    min-width: 200px;
}

/* ========== Hero Section ========== */
.apple-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--apple-gradient-hero);
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.apple-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 113, 227, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(94, 92, 230, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.apple-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.apple-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--apple-blue);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apple-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.apple-hero-image {
    margin-top: 50px;
    position: relative;
    z-index: 1;
    width: 80%;
    overflow: hidden;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

.apple-hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: var(--apple-shadow-lg);
    display: block;
    margin: 0 auto;
}

/* ========== Features Section ========== */
.apple-features {
    padding: 120px 20px;
    background: var(--apple-white);
}

.apple-container {
    max-width: 1140px;
    margin: 0 auto;
}

.apple-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

@media (max-width: 968px) {
    .apple-features-grid {
        grid-template-columns: 1fr;
    }
    
    .apple-hero-title {
        font-size: 42px;
    }
    
    .apple-hero-image {
        max-width: 800px;
        width: 65%;
        margin-top: 35px;
    }
    
    .apple-hero-image img {
        max-height: 400px;
    }
    
    .apple-section-title {
        font-size: 36px;
    }
}

.apple-feature-card {
    background: var(--apple-white);
    border-radius: var(--apple-radius-lg);
    padding: 36px 28px;
    transition: var(--apple-transition);
    border: 1px solid var(--apple-gray-100);
    position: relative;
    overflow: hidden;
}

.apple-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--apple-shadow-md);
    border-color: transparent;
}

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

.apple-feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--apple-gray-50) 0%, var(--apple-white) 100%);
    border-radius: var(--apple-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--apple-transition);
}

.apple-feature-card:hover .apple-feature-icon {
    background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    color: white;
    transform: scale(1.08);
}

/* ========== Stats Section ========== */
.apple-stats {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--apple-gray-50) 0%, var(--apple-white) 100%);
}

.apple-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 968px) {
    .apple-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .apple-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .apple-hero-image {
        max-width: 100%;
        width: 75%;
        margin-top: 25px;
    }
    
    .apple-hero-image img {
        max-height: 320px;
        border-radius: 5px;
    }
}

.apple-stat-item {
    text-align: center;
    padding: 30px 16px;
}

.apple-stat-number {
    font-size: 52px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apple-stat-label {
    font-size: 15px;
    color: var(--apple-gray-400);
    margin-top: 10px;
}

/* ========== Showcase Section ========== */
.apple-showcase {
    padding: 120px 20px;
    background: var(--apple-black);
    color: var(--apple-white);
    position: relative;
    overflow: hidden;
}

.apple-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 50% 30% at 30% 20%, rgba(0, 113, 227, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 25% at 70% 80%, rgba(94, 92, 230, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.apple-showcase .apple-section-title {
    color: var(--apple-white);
}

.apple-showcase .apple-section-subtitle {
    color: var(--apple-gray-400);
}

.apple-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {
    .apple-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.apple-showcase-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--apple-radius-lg);
    padding: 40px 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--apple-transition);
}

.apple-showcase-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.apple-showcase-card .apple-card-title {
    color: var(--apple-white);
}

.apple-showcase-card .apple-card-text {
    color: var(--apple-gray-400);
}

/* ========== Testimonials Section ========== */
.apple-testimonials {
    padding: 120px 20px;
    background: var(--apple-white);
}

.apple-testimonial-card {
    background: var(--apple-gray-50);
    border-radius: var(--apple-radius-lg);
    padding: 40px 36px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.apple-testimonial-text {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--apple-black);
    font-style: italic;
    margin-bottom: 28px;
}

.apple-testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.apple-testimonial-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apple-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.apple-testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--apple-black);
    text-align: left;
    line-height: 1.4;
}

.apple-testimonial-role {
    font-size: 13px;
    color: var(--apple-gray-400);
    text-align: left;
    line-height: 1.4;
    margin-top: 2px;
}

/* ========== CTA Section ========== */
.apple-cta {
    padding: 120px 20px;
    background: linear-gradient(180deg, var(--apple-gray-50) 0%, var(--apple-white) 100%);
    text-align: center;
}

.apple-cta-title {
    font-size: 52px;
    line-height: 1.07692;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--apple-black);
    margin-bottom: 16px;
}

.apple-cta-subtitle {
    font-size: 19px;
    line-height: 1.42105;
    color: var(--apple-gray-400);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Footer ========== */
.apple-footer {
    background: var(--apple-gray-50);
    padding: 50px 20px 36px;
    border-top: 1px solid var(--apple-gray-100);
}

.apple-footer-content {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.apple-footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--apple-black);
    margin-bottom: 20px;
}

.apple-footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.apple-footer-links a {
    font-size: 13px;
    color: var(--apple-gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.apple-footer-links a:hover {
    color: var(--apple-black);
}

.apple-footer-copy {
    font-size: 11px;
    color: var(--apple-gray-400);
    line-height: 1.8;
}

.apple-footer-copy a {
    color: var(--apple-gray-400);
    text-decoration: none;
}

.apple-footer-copy a:hover {
    text-decoration: underline;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.apple-animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.apple-animate-fadeIn {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.apple-animate-scaleIn {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.apple-animate-float {
    animation: float 6s ease-in-out infinite;
}

.apple-delay-1 { animation-delay: 0.1s; }
.apple-delay-2 { animation-delay: 0.2s; }
.apple-delay-3 { animation-delay: 0.3s; }
.apple-delay-4 { animation-delay: 0.4s; }
.apple-delay-5 { animation-delay: 0.5s; }

/* ========== Scroll Reveal ========== */
.apple-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-reveal.apple-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Header Override ========== */
.apple-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.apple-header .h-nav {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.apple-header .logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--apple-black) !important;
}

.apple-header .nav-bar a {
    font-size: 13px;
    color: var(--apple-gray-600) !important;
    transition: color 0.3s ease;
}

.apple-header .nav-bar a:hover {
    color: var(--apple-blue) !important;
}

/* ========== Utility Classes ========== */
.apple-text-center { text-align: center; }
.apple-text-left { text-align: left; }
.apple-text-right { text-align: right; }

.apple-mt-sm { margin-top: 16px; }
.apple-mt-md { margin-top: 32px; }
.apple-mt-lg { margin-top: 48px; }

.apple-mb-sm { margin-bottom: 16px; }
.apple-mb-md { margin-bottom: 32px; }
.apple-mb-lg { margin-bottom: 48px; }

/* ========== Swiper Customization ========== */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--apple-gray-200);
    opacity: 1;
    transition: var(--apple-transition);
}

.swiper-pagination-bullet-active {
    background: var(--apple-blue);
    width: 24px;
    border-radius: 4px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--apple-gray-400);
    transition: var(--apple-transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--apple-blue);
}
