/* 
    Landing Page Wily — Premium Design
    Theme: Modern, Dark, Minimalist with Red accents
*/

:root {
    --primary: #B11226;
    --primary-glow: rgba(177, 18, 38, 0.4);
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --dark-deep: #020617;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --gold: #fbbf24;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-deep);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Outfit', sans-serif;
}

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

.btn-cta-nav {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.3s;
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
}

.btn-login-ghost {
    color: var(--text) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-login-ghost:hover {
    background: var(--glass);
    border-color: var(--glass-border);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(5px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--dark-deep) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(18px, 4vw, 24px);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--primary-glow);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-outline {
    border: 2px solid var(--glass-border);
    color: var(--text);
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--text);
}

/* --- SECTIONS --- */
section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
}

/* --- ECOSYSTEM GRID --- */
.grid-ecosystem {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card-service {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-visit {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-visit:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.card-service:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-service::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

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

.service-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 25px;
    display: block;
}

.service-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* --- TRUST SECTION --- */
.trust-banner {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-deep) 100%);
    border-radius: 40px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 50px auto;
    border: 1px solid var(--glass-border);
}

.trust-content {
    flex: 1;
}

.trust-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.trust-visual ion-icon {
    font-size: 200px;
    color: var(--primary);
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MARKETPLACE PREVIEW --- */
.preview-scroll-container {
    padding: 20px 40px 60px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.preview-scroll-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}
.preview-grid {
    display: flex;
    gap: 25px;
    width: max-content;
}
.preview-card {
    background: var(--dark-surface);
    width: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid var(--glass-border);
}
.preview-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(177, 18, 38, 0.2);
    border-color: var(--primary);
}
.preview-img-wrapper {
    position: relative;
    height: 180px;
}
.preview-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.preview-info {
    padding: 20px;
}
.preview-info h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}
.preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.preview-meta .price {
    color: var(--gold);
    font-weight: 800;
    font-size: 14px;
}
.preview-meta .rating {
    font-size: 12px;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- FOOTER --- */
footer {
    padding: 80px 5% 40px;
    background: #020617;
    border-top: 1px solid var(--glass-border);
}

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

.footer-col h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 12px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding-top: 150px; }
    .trust-banner { flex-direction: column; text-align: center; padding: 40px 20px; }
}
