/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: rgb(99, 102, 241);
    --primary-dark: rgb(79, 70, 229);
    --secondary: rgb(139, 92, 246);
    --accent: rgb(6, 182, 212);
    --bg-dark: rgb(15, 15, 26);
    --bg-card: rgb(26, 26, 46);
    --bg-card-hover: rgb(37, 37, 66);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border: rgb(42, 42, 64);
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --success: #22c55e;
    --warning: #f59e0b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

:target:before {
    content: "";
    display: block;
    height: 90px;
    /* fixed header height*/
    margin: -90px 0 0;
    /* negative fixed header height */
}

.mobile-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo img {
    margin-top: 7px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 100px;
    background: linear-gradient(-45deg, rgba(79, 70, 229, 0.8) 0%, rgba(15, 15, 26, 1) 60%), url(../images/header-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* About Section */
.whatis {
    background: var(--bg-dark);
}

.whatis h2 {
    text-align: center;
    font-size: 3rem;
    margin: 20px 0;
}

.whatis-grid {
    display: grid;
    grid-template-columns: repeat(4, 4fr);
    gap: 25px;
}

.whatis-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.whatis-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.whatis-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.whatis-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Factors Section */
.factors {
    padding: 100px 0 20px 0;
    margin: 50px 0;
    background: linear-gradient(0deg, var(--bg-dark) 0%, #151525 100%);
}

.factors h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.factors-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.factors-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0px;

}

.factors-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.factors-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Disclaimer */
.disclaimer {
    margin: 40px 0;
    padding: 25px;
    background: rgba(29, 29, 29, 0.315);
    border: 1px solid rgba(75, 75, 75, 0.671);
    border-radius: 12px;
    text-align: center;
}

.disclaimer h2 {
    margin-top: 25px;
}

.disclaimer p {
    margin: 0px 0 25px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Ranking Section */
.ranking {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #151525 100%);
}

.ranking h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.ranking-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.ranking-table-wrapper {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.ranking-table th {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-table td {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.ranking-table tbody tr {
    transition: background 0.3s ease;
}

.ranking-table tr.rank-description td {
    padding: 10px;
    height: 30px;
    border-right: 3px solid var(--border);
    vertical-align: middle;
}

.ranking-table tr.rank-description td:last-child {
    border-right: none;
}

.ranking-table tr.rank-description td .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    line-height: 1;
}

.ranking-table tr.rank-description td .content-wrapper svg {
    display: block;
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}

/* Position Column */
.position {
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    white-space: nowrap;
}

.position .rank-number {
    position: relative;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--bg-dark);
}

/* Cores personalizadas por rank */
.rank-1 .rank-number {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: var(--bg-dark);
}

.rank-2 .rank-number {
    background: linear-gradient(135deg, var(--silver), #707070);
}

.rank-3 .rank-number {
    background: linear-gradient(135deg, var(--bronze), #8b4513);
}


.position .medal {
    font-size: 1.8rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Service Name */
.service-name {
    vertical-align: middle;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-name.placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

/* Website Link */
.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(125, 127, 219, 0.274);
    border: 1px solid white;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: var(--primary);
    color: white;
}

.external {
    font-size: 0.8rem;
    opacity: 0.7;
}

.placeholder-text {
    color: var(--text-secondary);
    font-style: italic;
}

/* Status Badge & Rating */
.status {
    text-align: center;
    vertical-align: middle;
}

.rating {
    vertical-align: middle;
    text-align: center;
}

.rating .stars {
    font-size: 1.2rem;
    color: var(--gold);
    line-height: 1;
}

.rating .note {
    font-size: 1.2rem;
    font-weight: 700;
}

.material-icons.full {
    color: var(--gold);
}

.material-icons.empty {
    color: #CCC;
}

/* Rank Highlighting */
.rank-1,
.rank-3,
.rank-5 {
    background: linear-gradient(90deg, rgba(74, 24, 253, 0.5) 0%, transparent 100%);
}

.rank-2,
.rank-4 {
    background: linear-gradient(90deg, rgba(34, 0, 156, 0.5) 0%, transparent 100%);
}



/* Footer */
.footer {
    margin-top: 50px;
    padding: 50px 0;
    background: #0a0a12;
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer a {
    display: inline-flex;
    color: white;
    text-decoration: none;
    margin: 5px 10px;
    padding: 0;
    transition: all 0.4s ease;
}

.footer a:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

.footer-text {
    color: var(--text-secondary);
    margin: 30px 0;
}

.footer-text.small {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1rem;
}

/* About Us */

section.about {
    padding: 40px 20%;
}

section.about h1 {
    margin: 0 0 30px 0;
    padding: 0;
    text-align: center;
    font-size: 3rem;
}

section.about h2 {
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 1.5rem;
}

section.about p {
    margin: 0 0 30px 0;
    padding: 0;
    text-align: left;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(74, 24, 253, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

.btn-mobile {
    display: none;
}

/* Alerts */
.alert {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}