:root {
    --primary: #ed8f07;
    --primary-light: #ffb340;
    --text-dark: #222;
    --text-light: #666;
    --bg-light: #F6F6F6;
    --bg-dark: #17141A;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

/* Menu Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-dark);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    display: block;
    border-radius: 8px;
}

nav ul li a:hover {
    color: var(--primary);
    background: rgba(237, 143, 7, 0.08);
}

nav ul li a i {
    margin-left: 5px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 240px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    z-index: 101;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content a {
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    color: var(--primary);
    background: rgba(237, 143, 7, 0.05);
    padding-left: 24px;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 102;
}

.menu-toggle:hover {
    background: rgba(237, 143, 7, 0.08);
    color: var(--primary);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.table-contents {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
}

.table-contents p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-top: 30px;
    font-weight: 700;
    color: var(--primary);
}

#table {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    border-left: var(--primary) solid 4px;
    padding-left: 15px;
}

#table a {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 10px 0;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

#table a::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

#table a:hover {
    color: var(--primary);
    transform: translateX(10px);
}

#table a:hover::before {
    opacity: 1;
}

/* What is Section */
#whatis {
    padding: 80px 5%;
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.texts .line {
    display: block;
    margin: 0;
    line-height: 1.1;
    padding-bottom: 0.15em;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    transform: translateX(var(--tx));
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    text-align: center;
}

.texts .line:not(:last-child) {
    margin-bottom: -0.15em;
}

.from-left { --tx: -100%; }
.from-right { --tx: +100%; }

.texts .line.visible {
    transform: translateX(0);
    opacity: 1;
}

/* What is 2 Section */
#whatis2 {
    padding: 60px 5%; /* Reduzido */
    background-color: #fff;
}

.textwi {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    text-align: center;
    line-height: 1.8;
}

/* Why Section (Tamanho reduzido) */
#why {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    color: var(--bg-light);
    padding: 60px 5%; /* Reduzido de 80px */
    min-height: auto; /* Removido altura fixa */
}

.why-content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.why-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px; /* Reduzido */
    text-align: center;
}

.why-left h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 15px; /* Reduzido */
}

.why-left span {
    margin-top: 15px; /* Reduzido */
    padding: 12px 25px; /* Reduzido */
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    background-color: var(--primary);
    transition: var(--transition);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.why-left span:hover {
    background-color: var(--bg-light);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

.why-right {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px; /* Reduzido */
}

.why-m {
    padding: 20px; /* Reduzido */
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-m:hover {
    transform: translateY(-5px); /* Efeito mais suave */
    background: rgba(255, 255, 255, 0.1);
}

.first-span {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px; /* Reduzido */
}

.why-m span:last-child {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    display: flex;
    align-items: flex-start;
}

.why-m i {
    margin-right: 10px;
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 4px;
}

/* How it Works Section */
#how-it-work {
    padding: 60px 5%; /* Reduzido */
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

#how-it-work h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px; /* Reduzido */
    color: var(--text-dark);
}

.step-container {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Reduzido */
}

.step {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.step-content {
    padding: 25px; /* Reduzido */
}

.step-content h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 12px; /* Reduzido */
    color: var(--primary);
}

.step-content p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-light);
    line-height: 1.7;
}

.step-image {
    height: 220px; /* Reduzido */
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-image img {
    max-width: 90%;
    max-height: 90%;
}

/* Mobile Navigation Styles */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        overflow-y: auto;
        padding: 20px 0;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
  
    nav.active {
        display: block;
        transform: translateX(0);
    }
  
    .menu-toggle {
        display: flex;
    }
  
    nav ul {
        flex-direction: column;
        gap: 0;
    }
  
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
  
    nav ul li a {
        padding: 18px 25px;
        font-weight: 600;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0;
    }

    nav ul li a:hover {
        background: rgba(237, 143, 7, 0.05);
    }
  
    .dropdown-content {
        position: static;
        display: none;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,0.02);
        padding-left: 15px;
        opacity: 1;
        transform: none;
        transition: none;
        border: none;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
  
    .dropdown.open .dropdown-content {
        display: block;
    }
  
    .dropdown.open > a i {
        transform: rotate(180deg);
    }
    
    /* Espaço extra no final do menu */
    nav ul::after {
        content: '';
        display: block;
        height: 40px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .why-right {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .step {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 4%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .why-m {
        padding: 18px; /* Reduzido */
    }
    
    .texts .line {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .step-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .why-right {
        grid-template-columns: 1fr;
    }
    
    .texts .line {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .step-image {
        height: 180px;
    }
    
    .why-left span {
        padding: 12px 25px;
    }
    
    .step-content {
        padding: 20px;
    }
}