/* ── Home Page Styles ── */
.home-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ── Hero Section ── */
.hero-section {
    text-align: center;
    padding: 3rem 1rem 1rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--accent), #f9d423);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Tools Grid ── */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Tool Card ── */
.tool-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.6) 0%, rgba(20, 20, 25, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    /* High radius for less boxy look */
    padding: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(249, 212, 35, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:nth-child(2)::before {
    background: radial-gradient(circle at top right, rgba(239, 71, 111, 0.05), transparent 60%);
}

.tool-card:nth-child(3)::before {
    background: radial-gradient(circle at top right, rgba(6, 214, 160, 0.05), transparent 60%);
}

.tool-card:nth-child(4)::before {
    background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.05), transparent 60%);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon-wrap {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.icon-profile {
    background: rgba(6, 214, 160, 0.12);
}

.icon-currency {
    background: rgba(249, 212, 35, 0.12);
}

.icon-tax {
    background: rgba(239, 71, 111, 0.12);
}

.icon-exp {
    background: rgba(67, 97, 238, 0.12);
}

.icon-dungeon {
    background: rgba(155, 89, 182, 0.12);
}

.tool-content {
    flex: 1;
    z-index: 1;
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.tool-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

.tool-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* ── Animations ── */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered card animation */
.tool-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.tool-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tool-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive Mobile Adjustments ── */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .tool-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }

    .tool-arrow {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        opacity: 1;
        transform: none;
    }
}