/* =========================================
   MorayLab - Apple Style Design System
   Baseado em SF Pro Display/Text
   ========================================= */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    min-height: 100vh;
}

/* === HEADER === */
header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.021em;
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.016em;
    transition: opacity 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    opacity: 0.5;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    background-color: #000000;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-primary {
    color: white;
}

.nav-links .btn-primary:hover {
    color: white;
}

.nav-links .btn-primary::after {
    display: none;
}

/* === HERO SECTION === */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 22px 80px;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.009em;
    margin-bottom: 12px;
    color: #000000;
}

.hero p {
    font-size: 24px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: #666666;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000000;
    color: white;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.022em;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #000000;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    border: 2px solid #000000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
}

/* === SECTIONS === */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 22px;
}

section h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 16px;
    text-align: center;
}

section p.subtitle {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: #666666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* === CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.009em;
    margin-bottom: 12px;
    color: #000000;
}

.card p {
    font-size: 17px;
    line-height: 1.47059;
    color: #666666;
}

/* === FEATURES GRID === */
.features {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-top: 60px;
}

.feature-item {
    margin-bottom: 40px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item h4 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

.feature-item p {
    font-size: 17px;
    line-height: 1.47059;
    color: #666666;
}

/* === FORM SECTIONS === */
.form-section {
    background: white;
    border-radius: 18px;
    padding: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.016em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #cccccc;
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
    background: #ffffff;
    color: #000000;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === STATS SECTION === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
    text-align: center;
}

.stat-item h3 {
    font-size: 56px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.009em;
}

.stat-item p {
    font-size: 17px;
    color: #666666;
}

/* === FOOTER === */
footer {
    background: #f5f5f7;
    padding: 60px 22px 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.016em;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #000000;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid #d2d2d7;
    text-align: center;
    color: #86868b;
    font-size: 12px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* === PRELOADER === */
#preloader {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f5f5f7;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 21px;
    }

    section h2 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 60px 22px 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 19px;
    }

    section {
        padding: 60px 22px;
    }

    section h2 {
        font-size: 32px;
    }

    section p.subtitle {
        font-size: 19px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .features {
        padding: 32px 24px;
    }

    .feature-item {
        flex-direction: column;
    }

    .form-section {
        padding: 32px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    section h2 {
        font-size: 28px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* === CAROUSEL === */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 60px;
}

.carousel-track {
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track .card {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-track .card.active {
    display: block;
}

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

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    opacity: 1;
}

.carousel-arrow svg {
    display: block;
    color: #000000;
}

.carousel-arrow-prev {
    left: 0;
}

.carousel-arrow-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border: 1.5px solid #000000;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: #666666;
}

.carousel-indicator.active {
    background: #000000;
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        padding: 0 50px 0 50px;
    }

    .carousel-arrow {
        padding: 4px;
    }

    .carousel-arrow svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 40px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-indicators {
        gap: 8px;
        margin-top: 32px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* === LANGUAGE TOGGLE === */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: -0.016em;
}

.lang-btn:hover {
    color: #000000;
    background: #f5f5f7;
}

.lang-btn.active {
    color: #000000;
    font-weight: 600;
}

.lang-separator {
    color: #d2d2d7;
    font-size: 14px;
}

@media (max-width: 768px) {
    .language-toggle {
        order: -1;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-60 {
    margin-top: 60px;
}

.hidden {
    display: none;
}
