:root {
    /* Paleta Premium Dark */
    --bg-color: #09090b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.07);
    --card-hover-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-glow: rgba(255, 255, 255, 0.15);

    /* Espaçamentos e Transições */
    --transition-speed: 0.4s;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 25%);
}

/* --- Header --- */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) forwards;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.user-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

/* --- Main Content --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    background: linear-gradient(to bottom right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Grids --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* --- Card Styles --- */
.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Card Animation Initial State */
.tool-card.primary {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s var(--ease-out) forwards;
}

/* Escalando as animações para os cards principais dinamicamente */
.tool-card.primary:nth-child(1) { animation-delay: 0.4s; }
.tool-card.primary:nth-child(2) { animation-delay: 0.5s; }
.tool-card.primary:nth-child(3) { animation-delay: 0.6s; }
.tool-card.primary:nth-child(4) { animation-delay: 0.7s; }
.tool-card.primary:nth-child(5) { animation-delay: 0.8s; }
.tool-card.primary:nth-child(6) { animation-delay: 0.9s; }
.tool-card.primary:nth-child(7) { animation-delay: 1.0s; }
.tool-card.primary:nth-child(8) { animation-delay: 1.1s; }
.tool-card.primary:nth-child(9) { animation-delay: 1.2s; }
.tool-card.primary:nth-child(10) { animation-delay: 1.3s; }
.tool-card.primary:nth-child(11) { animation-delay: 1.4s; }
.tool-card.primary:nth-child(12) { animation-delay: 1.5s; }
.tool-card.primary:nth-child(n+13) { animation-delay: 1.6s; }

.tool-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    transition: transform var(--transition-speed) var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-content h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.arrow-indicator {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-speed) var(--ease-out);
    color: #fff;
}

.tool-card:hover .arrow-indicator {
    opacity: 1;
    transform: translateX(0);
}

/* Shine Effect */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

/* --- Secondary Tools Section --- */
.secondary-section {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1s forwards;
}

.divider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    flex: 1;
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--card-hover-border);
    background: rgba(255, 255, 255, 0.03);
}

.toggle-btn i {
    transition: transform 0.4s ease;
}

.toggle-btn.active i {
    transform: rotate(180deg);
}

/* Accordion Wrapper */
.secondary-content-wrapper {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.secondary-content-wrapper.open {
    opacity: 1;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- Animations --- */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

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

    .tool-card {
        padding: 2rem;
    }

    .arrow-indicator {
        opacity: 1;
        transform: translateX(0);
        right: 2rem;
        bottom: 2rem;
    }
}
/* --- Login Styles --- */
.login-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    z-index: 9999;
    padding: 1rem;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s var(--ease-out) forwards;
}

.login-logo {
    height: 48px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group input {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

.input-group input:focus {
    border-color: var(--card-hover-border);
}

.input-group button {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform var(--transition-speed), background var(--transition-speed);
}

.input-group button:hover {
    transform: translateY(-2px);
    background: #e4e4e7;
}

.error-msg {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
