@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #7d40ff;
    --primary-dark: #622ad4;
    --secondary: #00d2ff;
    --bg: #0b0e14;
    --card-bg: rgba(22, 27, 34, 0.7);
    --text: #e6edf3;
    --text-dim: #8b949e;
    --border: rgba(48, 54, 61, 0.5);
    --glass: rgba(255, 255, 255, 0.03);
    --success: #2ea043;
    --nav-height: 80px;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
}

.logo { font-size: 24px; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 14px; transition: 0.3s; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: radial-gradient(circle at 50% 50%, rgba(125, 64, 255, 0.08) 0%, transparent 60%);
}

.hero h1 { font-size: clamp(32px, 8vw, 64px); line-height: 1.1; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: clamp(16px, 2vw, 18px); color: var(--text-dim); max-width: 750px; margin-bottom: 40px; }

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(125, 64, 255, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(125, 64, 255, 0.5); filter: brightness(1.1); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(46, 160, 67, 0.3); filter: brightness(1.1); }

/* Sections Styling */
.section-title { text-align: center; font-size: clamp(24px, 5vw, 36px); margin-bottom: 10px; margin-top: 100px; color: #fff; }
.section-subtitle { text-align: center; color: var(--text-dim); max-width: 850px; margin: 0 auto 60px; font-size: 15px; padding: 0 20px; }

/* Motores Grid / Slider */
.slider-container {
    position: relative;
    margin: 40px -20px;
    padding: 0 20px;
}

.motores-grid {
    display: flex;
    flex-wrap: nowrap; /* Garante que os cards fiquem em uma única linha */
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    width: 100%;
}

.motores-grid::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 320px; /* Largura fixa do card no slider */
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    scroll-snap-align: start;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: 0.3s;
    font-size: 20px;
    opacity: 0.6;
}

.slider-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 5px; }
.slider-btn.next { right: 5px; }

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

.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; margin-bottom: 25px; }

.card h3 { margin-bottom: 10px; font-size: 22px; color: #fff; }
.card .subtitle { font-size: 13px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }

.card .price { 
    background: rgba(125, 64, 255, 0.1); 
    color: var(--primary); 
    padding: 10px 18px; 
    border-radius: 10px; 
    font-weight: 700; 
    font-size: 20px; 
    margin-bottom: 25px;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(125, 64, 255, 0.2);
}

.card ul { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.card li { margin-bottom: 12px; color: var(--text-dim); font-size: 14px; display: flex; align-items: flex-start; gap: 12px; }
.card li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

.card-actions { display: flex; gap: 12px; margin-top: auto; }
.card-actions .btn { flex: 1; text-align: center; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 40px; }
    .motores-grid { grid-template-columns: 1fr; }
}
