/* Simple white theme - XLEAD home */
:root {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero */
.hero-section {
    background: var(--bg-alt);
    padding: 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

.hero-3d-slideshow {
    position: relative;
    width: 100%;
    height: 70vh;
    margin: 0;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 1s ease;
    animation: slideFade 15s infinite;
}

.slide-item:nth-child(1) { animation-delay: 0s; }
.slide-item:nth-child(2) { animation-delay: 5s; }
.slide-item:nth-child(3) { animation-delay: 10s; }
.slide-item:nth-child(4) { animation-delay: 15s; }

@keyframes slideFade {
    0%, 22% { opacity: 1; visibility: visible; }
    28%, 98% { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

.slide-image-3d {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.slide-overlay h3 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-overlay p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.9);
    max-width: 80%;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Nav dots */
.slideshow-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.nav-dot:hover {
    background: var(--primary);
    opacity: 0.8;
}

/* Carousel buttons */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* Latest activity (orders & deposits) */
.latest-activity-section {
    padding: 4rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.latest-activity-section .section-subtitle {
    margin-bottom: 2rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

.activity-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.activity-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.activity-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.activity-table th {
    text-align: left;
    padding: 0.5rem 0.6rem;
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.activity-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
}

.activity-table tbody tr:hover {
    background: var(--bg-alt);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.activity-link:hover {
    color: var(--primary-hover);
}

/* Features */
.features-section {
    padding: 4rem 0;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* How it works */
.how-it-works {
    padding: 4rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Stats */
.stats-section {
    padding: 3rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CTA */
.cta-section {
    padding: 4rem 0;
    background: var(--bg-alt);
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta-content {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.cta-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-cta {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: var(--primary-hover);
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-hover);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.5s ease forwards;
}

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

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }

[data-aos] { opacity: 0; transition-property: opacity, transform; }
[data-aos].aos-animate { opacity: 1; }
[data-aos="fade-up"] { transform: translateY(20px); }
[data-aos="fade-up"].aos-animate { transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(-20px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.95); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* Footer */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand {
        max-width: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-3d-slideshow { height: 50vh; min-height: 320px; }
    .step-card { flex-direction: column; text-align: center; gap: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-btn.prev { left: 12px; }
    .carousel-btn.next { right: 12px; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .slide-overlay p { max-width: 95%; }
}
